数据缓存失败,/www/sites/lg2006.com/index/cache/data文件夹的读写权限设置为777!

613.      $res = '<?php die();?>'.$res;
614.      $r = file_put_contents($cache_file_data,$res);
615.      if($r){
616.          return true;
617.      }else{
618.          Error_msg('数据缓存失败,'.Cache_Path.'/data文件夹的读写权限设置为777!');
619.      }
620. 
621.      
622.  }
623. 
299.          //读Hook数据缓存
300.          $hookconfig = getCache('hook');
301.          if(!$hookconfig){
302.              //Hook插件注册--缓存整个插件表数据
303.              $hookconfig = M('hook')->findAll(array('isopen'=>1),'orders desc');
304.              setCache('hook',$hookconfig);
305.          }
306.          
307.          if($hookconfig){
308.              foreach($hookconfig as $v){
309.                  if("app\\".$v['module']==$app_home && $v['controller']==APP_CONTROLLER && (strpos(','.$v['action'].',',','.APP_ACTION.',')!==false || $v['all_action']==1)){
78.          spl_autoload_register(array($this, 'loadClass'));
79.          $this->setDbConfig();
80.          $this->setReporting();
81.          $this->removeMagicQuotes();
82.          //$this->unregisterGlobals();
83.          $this->route();
84.          
85.      }
86. 
87.      // 路由处理
88.      public function route()
445. 
446.  // 加载配置文件
447.  $config = require(APP_PATH . 'conf/config.php');
448. 
449.  //实例化核心类
450.  (new frphp($config))->run();
34. 
35.  //定义静态文件路径
36.  define('Tpl_style','/static/');
37. 
38.  // 加载框架文件
39.  require(APP_PATH . 'frphp/fr.php');
40. 
41.  // 就这么简单~
42.