/home/site/wwwroot/protected/extensions/Captcha/YiiCaptcha.php(75)
63 putenv('GDFONTPATH=' . realpath('.')); 64 $textbox = imagettfbbox($font_size, 0, $this->settings['font'], $code) or die('Error in imagettfbbox function'); 65 $x = ($width - $textbox[4])/2; 66 $y = ($height - $textbox[5])/2; 67 $y -= 5; 68 $x = (int)$x; 69 $y = (int)$y; 70 imagettftext($image, $font_size, 0, $x, $y, $text_color, $this->settings['font'] , $code) or die('Error in imagettftext function'); 71 Yii::app()->session['security_code']=$code; 72 //$this->Controller->Session->write('security_code',$code); 73 @ob_end_clean(); //clean buffers, as a fix for 'headers already sent errors..' 74 /* output captcha image to browser */ 75 header('Content-Type: image/jpeg'); 76 imagejpeg($image); 77 imagedestroy($image); 78 } 79 80 public function getVerCode() { 81 return Yii::app()->session['security_code']; 82 } 83 84 public function prepare_themes() { 85 if($this->settings['theme']=='random') { 86 $this->themes['random'] = array( 87 'bgcolor'=>array($bg_r=rand(0,255), $bg_g=rand(0,255), $bg_b=rand(0,255)),
| #0 |
+
–
/home/site/wwwroot/protected/extensions/Captcha/YiiCaptcha.php(75): header("Content-Type: image/jpeg") 70 imagettftext($image, $font_size, 0, $x, $y, $text_color, $this->settings['font'] , $code) or die('Error in imagettftext function'); 71 Yii::app()->session['security_code']=$code; 72 //$this->Controller->Session->write('security_code',$code); 73 @ob_end_clean(); //clean buffers, as a fix for 'headers already sent errors..' 74 /* output captcha image to browser */ 75 header('Content-Type: image/jpeg'); 76 imagejpeg($image); 77 imagedestroy($image); 78 } 79 80 public function getVerCode() { |
| #1 |
+
–
/home/site/wwwroot/protected/controllers/SiteController.php(33): YiiCaptcha->create(array(), 0) 28 $this->render('error', $error); 29 } 30 } 31 32 public function actionCaptcha($v=0){ 33 Yii::app()->acaptcha->create(array(),$v); 34 Yii::app()->end(); 35 } 36 37 public function actionForgotform(){ 38 $this->layout = 'login_template_new2'; |
| #2 |
unknown(0): SiteController->actionCaptcha(0)
|
| #3 |
+
–
/home/site/wwwroot/yii/framework/web/actions/CAction.php(114): ReflectionMethod->invokeArgs(SiteController, array(0)) 109 elseif($param->isDefaultValueAvailable()) 110 $ps[]=$param->getDefaultValue(); 111 else 112 return false; 113 } 114 $method->invokeArgs($object,$ps); 115 return true; 116 } 117 } |
| #4 |
+
–
/home/site/wwwroot/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(SiteController, ReflectionMethod, array()) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
| #5 |
+
–
/home/site/wwwroot/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array()) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
| #6 |
+
–
/home/site/wwwroot/yii/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
| #7 |
+
–
/home/site/wwwroot/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
| #8 |
+
–
/home/site/wwwroot/yii/framework/web/CWebApplication.php(282): CController->run("Captcha") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #9 |
+
–
/home/site/wwwroot/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("site/Captcha") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
| #10 |
+
–
/home/site/wwwroot/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
| #11 |
+
–
/home/site/wwwroot/index.php(35): CApplication->run() 30 require_once($yii); 31 $app = Yii::createWebApplication($config); 32 Yii::import('ext.yiiexcel.YiiExcel', true); 33 Yii::registerAutoloader(array('YiiExcel', 'autoload'), true); 34 Yii::app()->setTimeZone('UTC'); 35 $app->run(); |