/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(8893)
8881 return $n; 8882 } 8883 catch(Exception $e) 8884 { 8885 if($this->_connection->enableProfiling) 8886 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute'); 8887 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 8888 $message=$e->getMessage(); 8889 Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.', 8890 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 8891 if(YII_DEBUG) 8892 $message.='. The SQL statement executed was: '.$this->getText().$par; 8893 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 8894 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 8895 } 8896 } 8897 public function query($params=array()) 8898 { 8899 return $this->queryInternal('',0,$params); 8900 } 8901 public function queryAll($fetchAssociative=true,$params=array()) 8902 { 8903 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 8904 } 8905 public function queryRow($fetchAssociative=true,$params=array())
#0 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(7657): CDbCommand->execute() 7652 { 7653 $builder=$this->getCommandBuilder(); 7654 $table=$this->getTableSchema(); 7655 $criteria=$builder->createPkCriteria($table,$pk,$condition,$params); 7656 $command=$builder->createUpdateCommand($table,$attributes,$criteria); 7657 return $command->execute(); 7658 } 7659 public function updateAll($attributes,$condition='',$params=array()) 7660 { 7661 $builder=$this->getCommandBuilder(); 7662 $criteria=$builder->createCriteria($condition,$params); |
#1 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(7331): CActiveRecord->updateByPk("6949", array("tabId" => "6949", "userId" => null, "artistId" => "6217", "categoryId" => null, ...)) 7326 throw new CDbException(Yii::t('yii','The active record cannot be updated because it is new.')); 7327 if($this->beforeSave()) 7328 { 7329 if($this->_pk===null) 7330 $this->_pk=$this->getPrimaryKey(); 7331 $this->updateByPk($this->getOldPrimaryKey(),$this->getAttributes($attributes)); 7332 $this->_pk=$this->getPrimaryKey(); 7333 $this->afterSave(); 7334 return true; 7335 } 7336 else |
#2 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(7197): CActiveRecord->update(null) 7192 return $attributes; 7193 } 7194 public function save($runValidation=true,$attributes=null) 7195 { 7196 if(!$runValidation || $this->validate($attributes)) 7197 return $this->getIsNewRecord() ? $this->insert($attributes) : $this->update($attributes); 7198 else 7199 return false; 7200 } 7201 public function getIsNewRecord() 7202 { |
#3 |
+
–
/var/www/tvampire2/data/www/gtptabs.com/protected/modules/tab/controllers/frontend/tab/DownloadAction.php(68): CActiveRecord->save() 63 // Если не было куки с языком, значит это бот 64 elseif(!empty(Yii::app()->request->cookies['language']->value)) 65 { 66 $downloadedTabsArray[] = $tab->tabId; 67 Yii::app()->request->cookies['downloadedTabs'] = new CHttpCookie('downloadedTabs', GiJSON::encode($downloadedTabsArray), array('expire' => time()+60*60*24*365)); 68 $tab->save(); 69 } 70 } 71 if($type == 'free') 72 { 73 FileFunctions::fileForceDownload( |
#4 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(3850): DownloadAction->run() 3845 { 3846 $method=new ReflectionMethod($this, 'run'); 3847 if($method->getNumberOfParameters()>0) 3848 return $this->runWithParamsInternal($this, $method, $params); 3849 else 3850 return $this->run(); 3851 } 3852 protected function runWithParamsInternal($object, $method, $params) 3853 { 3854 $ps=array(); 3855 foreach($method->getParameters() as $i=>$param) |
#5 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(3403): CAction->runWithParams(array("tabId" => "6949", "language" => "ru")) 3398 { 3399 $priorAction=$this->_action; 3400 $this->_action=$action; 3401 if($this->beforeAction($action)) 3402 { 3403 if($action->runWithParams($this->getActionParams())===false) 3404 $this->invalidActionParams($action); 3405 else 3406 $this->afterAction($action); 3407 } 3408 $this->_action=$priorAction; |
#6 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(6405): CController->runAction(DownloadAction) 6400 { 6401 $filter=$this->itemAt($this->filterIndex++); 6402 $filter->filter($this); 6403 } 6404 else 6405 $this->controller->runAction($this->action); 6406 } 6407 } 6408 class CFilter extends CComponent implements IFilter 6409 { 6410 public function filter($filterChain) |
#7 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(6414): CFilterChain->run() 6409 { 6410 public function filter($filterChain) 6411 { 6412 if($this->preFilter($filterChain)) 6413 { 6414 $filterChain->run(); 6415 $this->postFilter($filterChain); 6416 } 6417 } 6418 public function init() 6419 { |
#8 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(3781): CFilter->filter(CFilterChain) 3776 } 3777 public function filterAccessControl($filterChain) 3778 { 3779 $filter=new CAccessControlFilter; 3780 $filter->setRules($this->accessRules()); 3781 $filter->filter($filterChain); 3782 } 3783 public function getPageState($name,$defaultValue=null) 3784 { 3785 if($this->_pageStates===null) 3786 $this->_pageStates=$this->loadPageStates(); |
#9 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(6447): CController->filterAccessControl(CFilterChain) 6442 array('{filter}'=>$filterName, '{class}'=>get_class($controller)))); 6443 } 6444 public function filter($filterChain) 6445 { 6446 $method='filter'.$this->name; 6447 $filterChain->controller->$method($filterChain); 6448 } 6449 } 6450 class CAccessControlFilter extends CFilter 6451 { 6452 public $message; |
#10 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(6402): CInlineFilter->filter(CFilterChain) 6397 public function run() 6398 { 6399 if($this->offsetExists($this->filterIndex)) 6400 { 6401 $filter=$this->itemAt($this->filterIndex++); 6402 $filter->filter($this); 6403 } 6404 else 6405 $this->controller->runAction($this->action); 6406 } 6407 } |
#11 |
+
–
/var/www/tvampire2/data/www/gtptabs.com/protected/extends/GiController.php(132): CFilterChain->run() 127 elseif (!empty(Yii::app()->request->cookies['language']->value) && Yii::app()->language != Yii::app()->request->cookies['language']->value) 128 { 129 Yii::app()->language = Yii::app()->request->cookies['language']->value; 130 } 131 132 $filterChain->run(); 133 } 134 } 135 136 ?> |
#12 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(6447): GiController->filterUrlRules(CFilterChain) 6442 array('{filter}'=>$filterName, '{class}'=>get_class($controller)))); 6443 } 6444 public function filter($filterChain) 6445 { 6446 $method='filter'.$this->name; 6447 $filterChain->controller->$method($filterChain); 6448 } 6449 } 6450 class CAccessControlFilter extends CFilter 6451 { 6452 public $message; |
#13 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(6402): CInlineFilter->filter(CFilterChain) 6397 public function run() 6398 { 6399 if($this->offsetExists($this->filterIndex)) 6400 { 6401 $filter=$this->itemAt($this->filterIndex++); 6402 $filter->filter($this); 6403 } 6404 else 6405 $this->controller->runAction($this->action); 6406 } 6407 } |
#14 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(3393): CFilterChain->run() 3388 $this->runAction($action); 3389 else 3390 { 3391 $priorAction=$this->_action; 3392 $this->_action=$action; 3393 CFilterChain::create($this,$action,$filters)->run(); 3394 $this->_action=$priorAction; 3395 } 3396 } 3397 public function runAction($action) 3398 { |
#15 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(3378): CController->runActionWithFilters(DownloadAction, array("urlRules", "accessControl", array(0 => "COutputCache +view", "duration" => 2592000, "requestTypes" => array("GET"), "varyByParam" => array("language", "tabAlias", "tabArtistAlias", "tabArtistCategoryAlias"), ...), array(0 => "COutputCache +listNew, listPopular, listPaid, listByTag", "duration" => 2592000, "requestTypes" => array("GET"), "varyByParam" => array("language", "tagId", "tabCategoryAlias"), ...))) 3373 { 3374 if(($parent=$this->getModule())===null) 3375 $parent=Yii::app(); 3376 if($parent->beforeControllerAction($this,$action)) 3377 { 3378 $this->runActionWithFilters($action,$this->filters()); 3379 $parent->afterControllerAction($this,$action); 3380 } 3381 } 3382 else 3383 $this->missingAction($actionID); |
#16 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(1725): CController->run("download") 1720 { 1721 list($controller,$actionID)=$ca; 1722 $oldController=$this->_controller; 1723 $this->_controller=$controller; 1724 $controller->init(); 1725 $controller->run($actionID); 1726 $this->_controller=$oldController; 1727 } 1728 else 1729 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1730 array('{route}'=>$route===''?$this->defaultController:$route))); |
#17 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(1645): CWebApplication->runController("tab/frontend/tab/download") 1640 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1641 $_GET[$name]=$value; 1642 } 1643 else 1644 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1645 $this->runController($route); 1646 } 1647 protected function registerCoreComponents() 1648 { 1649 parent::registerCoreComponents(); 1650 $components=array( |
#18 |
+
–
/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php(1170): CWebApplication->processRequest() 1165 public function run() 1166 { 1167 if($this->hasEventHandler('onBeginRequest')) 1168 $this->onBeginRequest(new CEvent($this)); 1169 register_shutdown_function(array($this,'end'),0,false); 1170 $this->processRequest(); 1171 if($this->hasEventHandler('onEndRequest')) 1172 $this->onEndRequest(new CEvent($this)); 1173 } 1174 public function end($status=0,$exit=true) 1175 { |
#19 |
+
–
/var/www/tvampire2/data/www/gtptabs.com/index.php(15): CApplication->run() 10 11 // Подключаем файл инициализации Yii 12 require_once('/var/www/tvampire2/data/frameworks/yii-1.1.13.e9e4a0/framework/yiilite.php'); 13 14 // Создаем экземпляр приложения и запускаем его 15 Yii::createWebApplication('protected/config/main.php')->run(); 16 17 18 ?> |