/var/www/hosts/framework/db/CDbCommand.php(548)
536 { 537 if($this->_connection->enableProfiling) 538 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 539 540 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 541 $message=$e->getMessage(); 542 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 543 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 544 545 if(YII_DEBUG) 546 $message.='. The SQL statement executed was: '.$this->getText().$par; 547 548 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 549 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 550 } 551 } 552 553 /** 554 * Builds a SQL SELECT statement from the given query specification. 555 * @param array $query the query specification in name-value pairs. The following 556 * query options are supported: {@link select}, {@link distinct}, {@link from}, 557 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 558 * {@link limit}, {@link offset} and {@link union}. 559 * @throws CDbException if "from" key is not present in given query parameter 560 * @return string the SQL statement
#0 |
+
–
/var/www/hosts/framework/db/CDbCommand.php(420): CDbCommand->queryInternal() 415 * @return mixed the first row (in terms of an array) of the query result, false if no result. 416 * @throws CException execution failed 417 */ 418 public function queryRow($fetchAssociative=true,$params=array()) 419 { 420 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 421 } 422 423 /** 424 * Executes the SQL statement and returns the value of the first column in the first row of data. 425 * This is a convenient method of {@link query} when only a single scalar |
#1 |
+
–
/var/www/hosts/framework/web/auth/CDbAuthManager.php(485): CDbCommand->queryRow() 480 { 481 $row=$this->db->createCommand() 482 ->select() 483 ->from($this->itemTable) 484 ->where('name=:name', array(':name'=>$name)) 485 ->queryRow(); 486 487 if($row!==false) 488 { 489 if(($data=@unserialize($row['data']))===false) 490 $data=null; |
#2 |
+
–
/var/www/hosts/framework/web/auth/CDbAuthManager.php(93): CDbAuthManager->getAuthItem() 88 * @return boolean whether the operations can be performed by the user. 89 * @since 1.1.3 90 */ 91 protected function checkAccessRecursive($itemName,$userId,$params,$assignments) 92 { 93 if(($item=$this->getAuthItem($itemName))===null) 94 return false; 95 Yii::trace('Checking permission "'.$item->getName().'"','system.web.auth.CDbAuthManager'); 96 if(!isset($params['userId'])) 97 $params['userId'] = $userId; 98 if($this->executeBizRule($item->getBizRule(),$params,$item->getData())) |
#3 |
+
–
/var/www/hosts/framework/web/auth/CDbAuthManager.php(75): CDbAuthManager->checkAccessRecursive() 70 * @return boolean whether the operations can be performed by the user. 71 */ 72 public function checkAccess($itemName,$userId,$params=array()) 73 { 74 $assignments=$this->getAuthAssignments($userId); 75 return $this->checkAccessRecursive($itemName,$userId,$params,$assignments); 76 } 77 78 /** 79 * Performs access check for the specified user. 80 * This method is internally called by {@link checkAccess}. |
#4 |
+
–
/var/www/hosts/framework/web/auth/CWebUser.php(815): CDbAuthManager->checkAccess() 810 public function checkAccess($operation,$params=array(),$allowCaching=true) 811 { 812 if($allowCaching && $params===array() && isset($this->_access[$operation])) 813 return $this->_access[$operation]; 814 815 $access=Yii::app()->getAuthManager()->checkAccess($operation,$this->getId(),$params); 816 if($allowCaching && $params===array()) 817 $this->_access[$operation]=$access; 818 819 return $access; 820 } |
#5 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/news/models/News.php(637): CWebUser->checkAccess() 632 633 /** 634 * запись просмотров сторонними пользователями 635 */ 636 public function countView(){ 637 if($_SERVER['REMOTE_ADDR'] != '89.175.162.243' && $_SERVER['REMOTE_ADDR'] != '95.142.37.145' && !Yii::app()->user->checkAccess('manager')) { 638 // views 639 $this->saveAttributes(array('pageviews' =>($this->pageviews + 1))); 640 } 641 642 } |
#6 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/news/controllers/NewsController.php(89): News->countView() 84 $companyNews = CompanyNews::model()->findByAttributes(['outer_id' => $model->id]); 85 $widgets = $this->getWidgets((int)$companyNews->category_id); 86 87 ContentView::addView(self::CATEGORY_ID, $id); 88 TagStatQueue::addTagsStat($model); 89 $model->countView(); 90 $userTagsList = []; 91 92 if (!Yii::app()->user->isGuest) { 93 $userBaseId = Yii::app()->getModule('user')->user()->profile->base_id; 94 $userTagsList = TagSubscribe::model()->getTagListForUser($userBaseId); |
#7 |
unknown(0): NewsController->actionView()
|
#8 |
+
–
/var/www/hosts/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs() 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#9 |
+
–
/var/www/hosts/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal() 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 else 49 return $controller->$methodName(); 50 } 51 52 } |
#10 |
+
–
/var/www/hosts/framework/web/CController.php(312): CInlineAction->runWithParams() 307 $priorAction=$this->_action; 308 $this->_action=$action; 309 310 if ($this->beforeAction($action)) { 311 312 if ($action->runWithParams($this->getActionParams())===false) { 313 $this->invalidActionParams($action); 314 } else { 315 $this->afterAction($action); 316 } 317 } |
#11 |
+
–
/var/www/hosts/framework/web/CController.php(290): CController->runAction() 285 */ 286 public function runActionWithFilters($action,$filters) 287 { 288 289 if(empty($filters)) { 290 $this->runAction($action); 291 } else { 292 $priorAction=$this->_action; 293 $this->_action=$action; 294 CFilterChain::create($this,$action,$filters)->run(); 295 $this->_action=$priorAction; |
#12 |
+
–
/var/www/hosts/framework/web/CController.php(268): CController->runActionWithFilters() 263 if (($parent=$this->getModule())===null) { 264 $parent=Yii::app(); 265 } 266 267 if ($parent->beforeControllerAction($this,$action)) { 268 $this->runActionWithFilters($action,$this->filters()); 269 $parent->afterControllerAction($this,$action); 270 } 271 } else { 272 $this->missingAction($actionID); 273 } |
#13 |
+
–
/var/www/hosts/framework/web/CWebApplication.php(282): CController->run() 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))); |
#14 |
+
–
/var/www/hosts/framework/web/CWebApplication.php(141): CWebApplication->runController() 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. |
#15 |
+
–
/var/www/hosts/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#16 |
+
–
/var/www/hosts/lk.usoft.ru/index.php(58): CApplication->run() 53 //Yii::setPathOfAlias('templates', $dirname_file .DIRECTORY_SEPARATOR.'templates'); 54 Yii::setPathOfAlias('core',INDEX_DIR.DIRECTORY_SEPARATOR.'core'); 55 require_once(__DIR__.DIRECTORY_SEPARATOR.'protected' .DIRECTORY_SEPARATOR.'vendors' .DIRECTORY_SEPARATOR.'Loader.php'); 56 Yii::registerAutoloader(array('Loader','systemMainAutoload')); 57 58 Yii::createWebApplication($config_yii_path)->run(); |