NOTICE: Undefined index: sid in /www/wwwroot/zmn.91beibeile.com/protected/controller/BaseController.php on line 21

510.      $msg "ERROR";
511.      if($errno == E_WARNING)$msg "WARNING";
512.      if($errno == E_NOTICE)$msg "NOTICE";
513.      if($errno == E_STRICT)$msg "STRICT";
514.      if($errno == 8192)$msg "DEPRECATED";
515.      err("$msg$errstr in $errfile on line $errline");
516.  }
517.  function err($msg){
518.      $msg htmlspecialchars($msg);
519.      $traces debug_backtrace();
520.      if(!empty($GLOBALS['err_handler'])){
16.          header("Content-type: text/html; charset=utf-8");
17. 
18.          if ($__controller != "login"){
19.              //redis,除检查登录状态的其他操作重置ttl
20.              if($__action != "hasvalid") {
21.                  $sid $_REQUEST['sid'];
22.                  if (strlen($sid) > 0) {
23.                      $redis = new RedisModel();
24.                      $redis->expire($sid7200);
25.                  }
26.              }
180.      public $_auto_display true;
181.      protected $_v;
182.      private $_data = array();
183. 
184.      public function init(){}
185.      public function __construct(){$this->init();}
186.      public function &__get($name){return $this->_data[$name];}
187.      public function __set($name$value){$this->_data[$name] = $value;}
188.      
189.      public function display($tpl_name$return false){
190.          if(!$this->_v){
82.  }
83.  if(!is_available_classname($__controller))_err_router("Err: Controller '$controller_name' is not correct!");
84.  if(!class_exists($controller_nametrue))_err_router("Err: Controller '$controller_name' is not exists!");
85.  if(!method_exists($controller_name$action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
86. 
87.  $controller_obj = new $controller_name();
88.  $controller_obj->$action_name();
89. 
90.  if($controller_obj->_auto_display){
91.      $auto_tpl_name = (empty($__module) ? '' $__module.DS).$__controller.'_'.$__action.'.html';
92.      if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
6. 
7.  $url $_SERVER['SCRIPT_NAME'];
8.  $contextpath preg_replace("/\\/index\\.php.*$/","",$url) ;
9.  define('CONTEXT_PATH',$contextpath);
10. 
11.  require(APP_DIR.'/protected/lib/speed.php');