/data/www/17ce_dev_php7/framework/web/CHttpRequest.php(657)
645 /** 646 * Redirects the browser to the specified URL. 647 * @param string $url URL to be redirected to. If the URL is a relative one, the base URL of 648 * the application will be inserted at the beginning. 649 * @param boolean $terminate whether to terminate the current application 650 * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html} 651 * for details about HTTP status code. This parameter has been available since version 1.0.4. 652 */ 653 public function redirect($url,$terminate=true,$statusCode=302) 654 { 655 if(strpos($url,'/')===0) 656 $url=$this->getHostInfo().$url; 657 header('Location: '.$url, true, $statusCode); 658 if($terminate) 659 Yii::app()->end(); 660 } 661 662 /** 663 * Returns the user preferred language. 664 * The returned language ID will be canonicalized using {@link CLocale::getCanonicalID}. 665 * This method returns false if the user does not have language preference. 666 * @return string the user preferred language. 667 */ 668 public function getPreferredLanguage() 669 {
#0 |
+
–
/data/www/17ce_dev_php7/framework/web/CHttpRequest.php(657): header("Location: http://api.17ce.com/member/site/login.html", true, 302) 652 */ 653 public function redirect($url,$terminate=true,$statusCode=302) 654 { 655 if(strpos($url,'/')===0) 656 $url=$this->getHostInfo().$url; 657 header('Location: '.$url, true, $statusCode); 658 if($terminate) 659 Yii::app()->end(); 660 } 661 662 /** |
#1 |
+
–
/data/www/17ce_dev_php7/framework/web/auth/CWebUser.php(353): CHttpRequest->redirect("http://api.17ce.com/member/site/login.html") 348 if(is_array($url)) 349 { 350 $route=isset($url[0]) ? $url[0] : $app->defaultController; 351 $url=$app->createUrl($route,array_splice($url,1)); 352 } 353 $request->redirect($url); 354 } 355 else 356 throw new CHttpException(403,Yii::t('yii','Login Required')); 357 } 358 |
#2 |
+
–
/data/www/17ce_dev_php7/framework/web/auth/CAccessControlFilter.php(156): CWebUser->loginRequired() 151 * @since 1.0.5 152 */ 153 protected function accessDenied($user,$message) 154 { 155 if($user->getIsGuest()) 156 $user->loginRequired(); 157 else 158 throw new CHttpException(403,$message); 159 } 160 } 161 |
#3 |
+
–
/data/www/17ce_dev_php7/framework/web/auth/CAccessControlFilter.php(120): CAccessControlFilter->accessDenied(CWebUser, "您未被授權執行這個動作") 115 { 116 if(($allow=$rule->isUserAllowed($user,$filterChain->controller,$filterChain->action,$ip,$verb))>0) // allowed 117 break; 118 else if($allow<0) // denied 119 { 120 $this->accessDenied($user,$this->resolveErrorMessage($rule)); 121 return false; 122 } 123 } 124 125 return true; |
#4 |
+
–
/data/www/17ce_dev_php7/framework/web/filters/CFilter.php(39): CAccessControlFilter->preFilter(CFilterChain) 34 * if the action should be executed. 35 * @param CFilterChain $filterChain the filter chain that the filter is on. 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } |
#5 |
+
–
/data/www/17ce_dev_php7/framework/web/CController.php(1144): CFilter->filter(CFilterChain) 1139 */ 1140 public function filterAccessControl($filterChain) 1141 { 1142 $filter=new CAccessControlFilter; 1143 $filter->setRules($this->accessRules()); 1144 $filter->filter($filterChain); 1145 } 1146 1147 /** 1148 * Generates pagination information. 1149 * This method can be used to generate pagination information given item count |
#6 |
+
–
/data/www/17ce_dev_php7/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain) 54 * @param CFilterChain $filterChain the filter chain that the filter is on. 55 */ 56 public function filter($filterChain) 57 { 58 $method='filter'.$this->name; 59 $filterChain->controller->$method($filterChain); 60 } 61 } |
#7 |
+
–
/data/www/17ce_dev_php7/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#8 |
+
–
/data/www/17ce_dev_php7/framework/web/CController.php(283): CFilterChain->run() 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); 284 $this->_action=$priorAction; 285 } 286 } 287 288 /** |
#9 |
+
–
/data/www/17ce_dev_php7/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl")) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#10 |
+
–
/data/www/17ce_dev_php7/framework/web/CWebApplication.php(277): CController->run("index") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#11 |
+
–
/data/www/17ce_dev_php7/framework/web/CWebApplication.php(136): CWebApplication->runController("member/page/index") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#12 |
+
–
/data/www/17ce_dev_php7/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#13 |
+
–
/data/www/17ce_dev_php7/index.php(14): CApplication->run() 09 define('YII_DEBUG',true); 10 // specify how many levels of call stack should be shown in each log message 11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 12 13 require_once($yii); 14 Yii::createWebApplication($config)->run(); 15 16 ?> |