/home/nicua/club.nic.ua/public_html/yii.1.1.13/db/CDbCommand.php(357)
345 { 346 if($this->_connection->enableProfiling) 347 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute'); 348 349 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 350 $message=$e->getMessage(); 351 Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.', 352 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 353 354 if(YII_DEBUG) 355 $message.='. The SQL statement executed was: '.$this->getText().$par; 356 357 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 358 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 359 } 360 } 361 362 /** 363 * Executes the SQL statement and returns query result. 364 * This method is for executing an SQL query that returns result set. 365 * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative 366 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing 367 * them in this way can improve the performance. Note that if you pass parameters in this way, 368 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa. 369 * Please also note that all values are treated as strings in this case, if you need them to be handled as
#0 |
+
–
/home/nicua/club.nic.ua/public_html/yii.1.1.13/db/ar/CActiveRecord.php(1023): CDbCommand->execute() 1018 { 1019 Yii::trace(get_class($this).'.insert()','system.db.ar.CActiveRecord'); 1020 $builder=$this->getCommandBuilder(); 1021 $table=$this->getMetaData()->tableSchema; 1022 $command=$builder->createInsertCommand($table,$this->getAttributes($attributes)); 1023 if($command->execute()) 1024 { 1025 $primaryKey=$table->primaryKey; 1026 if($table->sequenceName!==null) 1027 { 1028 if(is_string($primaryKey) && $this->$primaryKey===null) |
#1 |
+
–
/home/nicua/club.nic.ua/public_html/yii.1.1.13/db/ar/CActiveRecord.php(795): CActiveRecord->insert(null) 790 * @return boolean whether the saving succeeds 791 */ 792 public function save($runValidation=true,$attributes=null) 793 { 794 if(!$runValidation || $this->validate($attributes)) 795 return $this->getIsNewRecord() ? $this->insert($attributes) : $this->update($attributes); 796 else 797 return false; 798 } 799 800 /** |
#2 |
+
–
/home/nicua/club.nic.ua/public_html/2014/protected/models/Users.php(128): CActiveRecord->save() 123 124 if (!$userModel) { 125 $userModel=new Users(); 126 $userModel->token=md5(time().' '.rand(1000000, 9999999)); 127 $userModel->status=Users::StatusNew; 128 $userModel->save(); 129 130 setcookie($cookieName, $userModel->token, time()+3600*24*60, '/'); 131 } 132 133 return $userModel; |
#3 |
+
–
/home/nicua/club.nic.ua/public_html/2014/protected/components/FrontEndController.php(24): Users::getByToken() 19 20 21 public function init() { 22 parent::init(); 23 24 $this->user=Users::getByToken(); 25 26 /*if (isset($_SESSION['user_token'])) { 27 $this->user=Users::model()->find('token=:token', array('token'=>$_SESSION['user_token'])); 28 unset($_SESSION['user_token']); 29 } |
#4 |
+
–
/home/nicua/club.nic.ua/public_html/yii.1.1.13/web/CWebApplication.php(281): FrontEndController->init() 276 if(($ca=$this->createController($route))!==null) 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}".', |
#5 |
+
–
/home/nicua/club.nic.ua/public_html/yii.1.1.13/web/CWebApplication.php(141): CWebApplication->runController("index/rules") 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. |
#6 |
+
–
/home/nicua/club.nic.ua/public_html/yii.1.1.13/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#7 |
+
–
/home/nicua/club.nic.ua/public_html/2014/protected/behaviors/WebApplicationEndBehavior.php(42): CApplication->run() 37 $this->_endName = $name; 38 39 $this->onModuleCreate = array($this, 'changeModulePaths'); 40 $this->onModuleCreate(new CEvent ($this->owner)); 41 42 $this->owner->run(); 43 } 44 45 /** 46 * onModuleCreate 47 * |
#8 |
unknown(0): WebApplicationEndBehavior->runEnd("frontend")
|
#9 |
+
–
/home/nicua/club.nic.ua/public_html/yii.1.1.13/base/CComponent.php(260): call_user_func_array(array(WebApplicationEndBehavior, "runEnd"), array("frontend")) 255 if($this->_m!==null) 256 { 257 foreach($this->_m as $object) 258 { 259 if($object->getEnabled() && method_exists($object,$name)) 260 return call_user_func_array(array($object,$name),$parameters); 261 } 262 } 263 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 264 return call_user_func_array($this->$name, $parameters); 265 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
#10 |
+
–
/home/nicua/club.nic.ua/public_html/2014/index.php(64): CComponent->__call("runEnd", array("frontend")) 59 if ($isAdmin) { 60 $config = dirname(__FILE__).'/protected/config/backend.php'; 61 Yii::createWebApplication($config)->runEnd('backend'); 62 } else { 63 $config = dirname(__FILE__).'/protected/config/frontend.php'; 64 Yii::createWebApplication($config)->runEnd('frontend'); 65 } |
#11 |
+
–
/home/nicua/club.nic.ua/public_html/2014/index.php(64): CWebApplication->runEnd("frontend") 59 if ($isAdmin) { 60 $config = dirname(__FILE__).'/protected/config/backend.php'; 61 Yii::createWebApplication($config)->runEnd('backend'); 62 } else { 63 $config = dirname(__FILE__).'/protected/config/frontend.php'; 64 Yii::createWebApplication($config)->runEnd('frontend'); 65 } |