NOTICE: Undefined index: is_vip in /www/wwwroot/novel.phoenixfm.com/protected/controller/book/MainController.php on line 69

539.      $msg "ERROR";
540.      if($errno == E_WARNING)$msg "WARNING";
541.      if($errno == E_NOTICE)$msg "NOTICE";
542.      if($errno == E_STRICT)$msg "STRICT";
543.      if($errno == 8192)$msg "DEPRECATED";
544.      err("$msg$errstr in $errfile on line $errline");
545.  }
546.  function err($msg){
547.      $msg htmlspecialchars($msg);
548.      $traces debug_backtrace();
549.      if(!empty($GLOBALS['err_handler'])){
64.          }else{
65.              $this->nextBookIndexId $nextData[0]["id"];
66.          }
67.          // 判断是否需要购买
68.          $this->needBuy false;
69.          if($this->bookIndex["is_vip"] == 1){
70.              // 收费项目
71.              // 判断用户是否已经购买过,如果用户没有登录直接返回需要购买
72.              $token = isset($_COOKIE["Authorization"]) ? $_COOKIE["Authorization"] : "";
73.              if(empty($token)){
74.                  $this->needBuy true;
111.      // exit;
112.  };
113.  if(!method_exists($controller_name$action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
114. 
115.  $controller_obj = new $controller_name();
116.  $controller_obj->$action_name();
117. 
118.  if($controller_obj->_auto_display){
119.      $auto_tpl_name = (empty($__module) ? '' $__module.DS).$__controller.'_'.$__action.'.html';
120.      if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
121.  }
3.  header('Access-Control-Allow-Origin: *');
4.  header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
5.  header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');
6.  define('APP_DIR'realpath('./'));
7.  define("APP_PATH",dirname(__FILE__));
8.  require(APP_DIR.'/protected/lib/speed.php');