/home/html-02/motofan.sk/public_html/protected/controllers/FilesController.php(69)
57 $criteria->compare('bussines_type', DomainCodes::PHOTO_COMPETITION); 58 59 $dataProvider = new CActiveDataProvider('Files', array( 60 'criteria' => $criteria, 61 'pagination' => false, 62 )); 63 $this->render('photoCompetition', array('dataProvider' => $dataProvider)); 64 } 65 66 public function actionViewPhoto($id, $type = NULL, $url = NULL) { 67 $image = Files::model()->findByPK($id); 68 69 $image->view_counter = $image->view_counter + 1; 70 $image->saveAttributes(array('view_counter')); 71 72 switch ($type) { 73 case DomainCodes::BIKER_PHOTO: 74 $images = Files::model()->findAllByAttributes(array('bike_id' => $image->bike_id, 'bussines_type' => $type)); 75 break; 76 case DomainCodes::PHOTO_COMPETITION: 77 $criteria = new CDbCriteria; 78 $criteria->with = array('photoCompetion'); 79 $criteria->together = true; 80 $criteria->compare('t.bussines_type', $type); 81 $criteria->compare('photoCompetion.new', DomainCodes::NO);
#0 |
unknown(0): FilesController->actionViewPhoto("13418", null, "akumulator-je-hotova-veda")
|
#1 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(4039): ReflectionMethod->invokeArgs(FilesController, array("13418", null, "akumulator-je-hotova-veda")) 4034 elseif($param->isDefaultValueAvailable()) 4035 $ps[]=$param->getDefaultValue(); 4036 else 4037 return false; 4038 } 4039 $method->invokeArgs($object,$ps); 4040 return true; 4041 } 4042 } 4043 class CInlineAction extends CAction 4044 { |
#2 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(4056): CAction->runWithParamsInternal(FilesController, ReflectionMethod, array("url" => "akumulator-je-hotova-veda", "id" => "13418")) 4051 { 4052 $methodName='action'.$this->getId(); 4053 $controller=$this->getController(); 4054 $method=new ReflectionMethod($controller, $methodName); 4055 if($method->getNumberOfParameters()>0) 4056 return $this->runWithParamsInternal($controller, $method, $params); 4057 else 4058 return $controller->$methodName(); 4059 } 4060 } 4061 class CWebUser extends CApplicationComponent implements IWebUser |
#3 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(3570): CInlineAction->runWithParams(array("url" => "akumulator-je-hotova-veda", "id" => "13418")) 3565 { 3566 $priorAction=$this->_action; 3567 $this->_action=$action; 3568 if($this->beforeAction($action)) 3569 { 3570 if($action->runWithParams($this->getActionParams())===false) 3571 $this->invalidActionParams($action); 3572 else 3573 $this->afterAction($action); 3574 } 3575 $this->_action=$priorAction; |
#4 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(6743): CController->runAction(CInlineAction) 6738 { 6739 $filter=$this->itemAt($this->filterIndex++); 6740 $filter->filter($this); 6741 } 6742 else 6743 $this->controller->runAction($this->action); 6744 } 6745 } 6746 class CFilter extends CComponent implements IFilter 6747 { 6748 public function filter($filterChain) |
#5 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(6752): CFilterChain->run() 6747 { 6748 public function filter($filterChain) 6749 { 6750 if($this->preFilter($filterChain)) 6751 { 6752 $filterChain->run(); 6753 $this->postFilter($filterChain); 6754 } 6755 } 6756 public function init() 6757 { |
#6 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(6740): CFilter->filter(CFilterChain) 6735 public function run() 6736 { 6737 if($this->offsetExists($this->filterIndex)) 6738 { 6739 $filter=$this->itemAt($this->filterIndex++); 6740 $filter->filter($this); 6741 } 6742 else 6743 $this->controller->runAction($this->action); 6744 } 6745 } |
#7 |
+
–
/home/html-02/motofan.sk/public_html/protected/components/ControllerBase.php(136): CFilterChain->run() 131 132 public function filterthemeResolver($filterChain) { 133 if (!in_array(strtolower(Yii::app()->controller->action->id), array('forgottenpassword', 'login')) && !in_array(strtolower(Yii::app()->controller->action->id), $this->getAdminActions())) 134 Yii::app()->theme = Yii::app()->user->getShop()->getTheme(); 135 136 $filterChain->run(); 137 } 138 139 /* 140 * Check if user has permissions to view requested site 141 */ |
#8 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(6785): ControllerBase->filterthemeResolver(CFilterChain) 6780 array('{filter}'=>$filterName, '{class}'=>get_class($controller)))); 6781 } 6782 public function filter($filterChain) 6783 { 6784 $method='filter'.$this->name; 6785 $filterChain->controller->$method($filterChain); 6786 } 6787 } 6788 class CAccessControlFilter extends CFilter 6789 { 6790 public $message; |
#9 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(6740): CInlineFilter->filter(CFilterChain) 6735 public function run() 6736 { 6737 if($this->offsetExists($this->filterIndex)) 6738 { 6739 $filter=$this->itemAt($this->filterIndex++); 6740 $filter->filter($this); 6741 } 6742 else 6743 $this->controller->runAction($this->action); 6744 } 6745 } |
#10 |
+
–
/home/html-02/motofan.sk/public_html/protected/components/ControllerBase.php(145): CFilterChain->run() 140 * Check if user has permissions to view requested site 141 */ 142 143 public function filtercheckAccess($filterChain) { 144 if (Yii::app()->user->isGuest || (!Yii::app()->user->isGuest && Yii::app()->user->getUser()->group_id == DomainCodes::SUPERADMIN)) { 145 $filterChain->run(); 146 exit(); 147 } 148 if (in_array(strtolower(Yii::app()->controller->action->id), $this->getAdminActions())) { 149 // Get permissions for loget user 150 $permissions = json_decode(Yii::app()->user->getUser()->group->permissions); |
#11 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(6785): ControllerBase->filtercheckAccess(CFilterChain) 6780 array('{filter}'=>$filterName, '{class}'=>get_class($controller)))); 6781 } 6782 public function filter($filterChain) 6783 { 6784 $method='filter'.$this->name; 6785 $filterChain->controller->$method($filterChain); 6786 } 6787 } 6788 class CAccessControlFilter extends CFilter 6789 { 6790 public $message; |
#12 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(6740): CInlineFilter->filter(CFilterChain) 6735 public function run() 6736 { 6737 if($this->offsetExists($this->filterIndex)) 6738 { 6739 $filter=$this->itemAt($this->filterIndex++); 6740 $filter->filter($this); 6741 } 6742 else 6743 $this->controller->runAction($this->action); 6744 } 6745 } |
#13 |
+
–
/home/html-02/motofan.sk/public_html/protected/components/ControllerBase.php(210): CFilterChain->run() 205 Yii::app()->user->logout(false); 206 Yii::app()->getSession()->add('shop', $shop); 207 $this->redirect(array('site/home')); 208 } 209 Yii::app()->getSession()->add('shop', $shop); 210 $filterChain->run(); 211 } 212 213 /** 214 * Returns a list of external action classes. 215 * |
#14 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(6785): ControllerBase->filtershopCheck(CFilterChain) 6780 array('{filter}'=>$filterName, '{class}'=>get_class($controller)))); 6781 } 6782 public function filter($filterChain) 6783 { 6784 $method='filter'.$this->name; 6785 $filterChain->controller->$method($filterChain); 6786 } 6787 } 6788 class CAccessControlFilter extends CFilter 6789 { 6790 public $message; |
#15 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(6740): CInlineFilter->filter(CFilterChain) 6735 public function run() 6736 { 6737 if($this->offsetExists($this->filterIndex)) 6738 { 6739 $filter=$this->itemAt($this->filterIndex++); 6740 $filter->filter($this); 6741 } 6742 else 6743 $this->controller->runAction($this->action); 6744 } 6745 } |
#16 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(6752): CFilterChain->run() 6747 { 6748 public function filter($filterChain) 6749 { 6750 if($this->preFilter($filterChain)) 6751 { 6752 $filterChain->run(); 6753 $this->postFilter($filterChain); 6754 } 6755 } 6756 public function init() 6757 { |
#17 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(3948): CFilter->filter(CFilterChain) 3943 } 3944 public function filterAccessControl($filterChain) 3945 { 3946 $filter=new CAccessControlFilter; 3947 $filter->setRules($this->accessRules()); 3948 $filter->filter($filterChain); 3949 } 3950 public function getPageState($name,$defaultValue=null) 3951 { 3952 if($this->_pageStates===null) 3953 $this->_pageStates=$this->loadPageStates(); |
#18 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(6785): CController->filterAccessControl(CFilterChain) 6780 array('{filter}'=>$filterName, '{class}'=>get_class($controller)))); 6781 } 6782 public function filter($filterChain) 6783 { 6784 $method='filter'.$this->name; 6785 $filterChain->controller->$method($filterChain); 6786 } 6787 } 6788 class CAccessControlFilter extends CFilter 6789 { 6790 public $message; |
#19 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(6740): CInlineFilter->filter(CFilterChain) 6735 public function run() 6736 { 6737 if($this->offsetExists($this->filterIndex)) 6738 { 6739 $filter=$this->itemAt($this->filterIndex++); 6740 $filter->filter($this); 6741 } 6742 else 6743 $this->controller->runAction($this->action); 6744 } 6745 } |
#20 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(3560): CFilterChain->run() 3555 $this->runAction($action); 3556 else 3557 { 3558 $priorAction=$this->_action; 3559 $this->_action=$action; 3560 CFilterChain::create($this,$action,$filters)->run(); 3561 $this->_action=$priorAction; 3562 } 3563 } 3564 public function runAction($action) 3565 { |
#21 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(3545): CController->runActionWithFilters(CInlineAction, array("accessControl", "shopCheck", "checkAccess", "themeResolver", ...)) 3540 { 3541 if(($parent=$this->getModule())===null) 3542 $parent=Yii::app(); 3543 if($parent->beforeControllerAction($this,$action)) 3544 { 3545 $this->runActionWithFilters($action,$this->filters()); 3546 $parent->afterControllerAction($this,$action); 3547 } 3548 } 3549 else 3550 $this->missingAction($actionID); |
#22 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(1746): CController->run("viewPhoto") 1741 { 1742 list($controller,$actionID)=$ca; 1743 $oldController=$this->_controller; 1744 $this->_controller=$controller; 1745 $controller->init(); 1746 $controller->run($actionID); 1747 $this->_controller=$oldController; 1748 } 1749 else 1750 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1751 array('{route}'=>$route===''?$this->defaultController:$route))); |
#23 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(1666): CWebApplication->runController("files/viewPhoto") 1661 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1662 $_GET[$name]=$value; 1663 } 1664 else 1665 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1666 $this->runController($route); 1667 } 1668 protected function registerCoreComponents() 1669 { 1670 parent::registerCoreComponents(); 1671 $components=array( |
#24 |
+
–
/home/html-02/motofan.sk/yii/framework/yii.php(1191): CWebApplication->processRequest() 1186 public function run() 1187 { 1188 if($this->hasEventHandler('onBeginRequest')) 1189 $this->onBeginRequest(new CEvent($this)); 1190 register_shutdown_function(array($this,'end'),0,false); 1191 $this->processRequest(); 1192 if($this->hasEventHandler('onEndRequest')) 1193 $this->onEndRequest(new CEvent($this)); 1194 } 1195 public function end($status=0,$exit=true) 1196 { |
#25 |
+
–
/home/html-02/motofan.sk/public_html/index.php(12): CApplication->run() 07 defined('YII_DEBUG') or define('YII_DEBUG', true); 08 // specify how many levels of call stack should be shown in each log message 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); 10 11 require_once($yii); 12 Yii::createWebApplication($config)->run(); |