C:\AppServ\www\framework\web\CHttpRequest.php(803)
791 /** 792 * Redirects the browser to the specified URL. 793 * @param string $url URL to be redirected to. Note that when URL is not 794 * absolute (not starting with "/") it will be relative to current request URL. 795 * @param boolean $terminate whether to terminate the current application 796 * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html} 797 * for details about HTTP status code. 798 */ 799 public function redirect($url,$terminate=true,$statusCode=302) 800 { 801 if(strpos($url,'/')===0 && strpos($url,'//')!==0) 802 $url=$this->getHostInfo().$url; 803 header('Location: '.$url, true, $statusCode); 804 if($terminate) 805 Yii::app()->end(); 806 } 807 808 /** 809 * Parses an HTTP Accept header, returning an array map with all parts of each entry. 810 * Each array entry consists of a map with the type, subType, baseType and params, an array map of key-value parameters, 811 * obligatorily including a `q` value (i.e. preference ranking) as a double. 812 * For example, an Accept header value of <code>'application/xhtml+xml;q=0.9;level=1'</code> would give an array entry of 813 * <pre> 814 * array( 815 * 'type' => 'application',
#0 |
+
–
C:\AppServ\www\framework\web\CHttpRequest.php(803): header("Location: http://dc.plkhealth.go.th/epidemonline/index.php?r=sit...", true, 302) 798 */ 799 public function redirect($url,$terminate=true,$statusCode=302) 800 { 801 if(strpos($url,'/')===0 && strpos($url,'//')!==0) 802 $url=$this->getHostInfo().$url; 803 header('Location: '.$url, true, $statusCode); 804 if($terminate) 805 Yii::app()->end(); 806 } 807 808 /** |
#1 |
+
–
C:\AppServ\www\framework\web\auth\CWebUser.php(385): CHttpRequest->redirect("/epidemonline/index.php?r=site/login") 380 if(is_array($url)) 381 { 382 $route=isset($url[0]) ? $url[0] : $app->defaultController; 383 $url=$app->createUrl($route,array_splice($url,1)); 384 } 385 $request->redirect($url); 386 } 387 } 388 elseif(isset($this->loginRequiredAjaxResponse)) 389 { 390 echo $this->loginRequiredAjaxResponse; |
#2 |
+
–
C:\AppServ\www\framework\web\auth\CAccessControlFilter.php(180): CWebUser->loginRequired() 175 * @param string $message the error message to be displayed 176 */ 177 protected function accessDenied($user,$message) 178 { 179 if($user->getIsGuest()) 180 $user->loginRequired(); 181 else 182 throw new CHttpException(403,$message); 183 } 184 } 185 |
#3 |
+
–
C:\AppServ\www\framework\web\auth\CAccessControlFilter.php(145): CAccessControlFilter->accessDenied(CWebUser, "คุณไม่ได้รับอนุญาตให้�...") 140 elseif($allow<0) // denied 141 { 142 if(isset($rule->deniedCallback)) 143 call_user_func($rule->deniedCallback, $rule); 144 else 145 $this->accessDenied($user,$this->resolveErrorMessage($rule)); 146 return false; 147 } 148 } 149 150 return true; |
#4 |
+
–
C:\AppServ\www\framework\web\filters\CFilter.php(38): CAccessControlFilter->preFilter(CFilterChain) 33 * if the action should be executed. 34 * @param CFilterChain $filterChain the filter chain that the filter is on. 35 */ 36 public function filter($filterChain) 37 { 38 if($this->preFilter($filterChain)) 39 { 40 $filterChain->run(); 41 $this->postFilter($filterChain); 42 } 43 } |
#5 |
+
–
C:\AppServ\www\framework\web\CController.php(1145): CFilter->filter(CFilterChain) 1140 */ 1141 public function filterAccessControl($filterChain) 1142 { 1143 $filter=new CAccessControlFilter; 1144 $filter->setRules($this->accessRules()); 1145 $filter->filter($filterChain); 1146 } 1147 1148 /** 1149 * Returns a persistent page state value. 1150 * A page state is a variable that is persistent across POST requests of the same page. |
#6 |
+
–
C:\AppServ\www\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(CFilterChain) 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } |
#7 |
+
–
C:\AppServ\www\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(CFilterChain) 125 { 126 if($this->offsetExists($this->filterIndex)) 127 { 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#8 |
+
–
C:\AppServ\www\framework\web\CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#9 |
+
–
C:\AppServ\www\framework\web\CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl")) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#10 |
+
–
C:\AppServ\www\framework\web\CWebApplication.php(282): CController->run("Admin") 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))); |
#11 |
+
–
C:\AppServ\www\framework\web\CWebApplication.php(141): CWebApplication->runController("Epe0/Admin") 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. |
#12 |
+
–
C:\AppServ\www\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 /** |
#13 |
+
–
C:\AppServ\www\epidemonline\index.php(14): CApplication->run() 09 defined('YII_DEBUG') or 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(); |