Skip to content

Commit

Permalink
Port the frontend verification controller to the Yii framework- done …
Browse files Browse the repository at this point in the history
…by GCI participant yaxar maxson D

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@11688 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Dec 19, 2011
1 parent ea65bbf commit 9b2a019
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions application/controllers/verification.php
Expand Up @@ -14,16 +14,23 @@
*
*/

class verification extends CI_Controller {

function __construct()
{
parent::__construct();
class verification extends CController
{
/**
* the Verification class, this is grouped with
* other classes in the "limesurvey_yii" package and * is part of "controllers" subpackage
* @package limesurvey_yii
* @subpackage controllers
*/
public function run()
{
Yii::app()->loadHelper('database');
if (isset($_GET['image']))
$this->image();
}

function image()
{
$rootdir=$this->config->item('rootdir');
$rootdir = Yii::app()->getConfig('rootdir');

// header for png
Header("Content-Type: image/png");
Expand Down

0 comments on commit 9b2a019

Please sign in to comment.