/style.php不存在!

224.          }
225.          if(!is_file($includefile)){
226.              //兼容自定义扩展和.html模板
227.              $includefile str_replace(File_TXT,'.html',$includefile);
228.              if (!is_file($includefile)) {
229.                  Error_msg($file.'不存在!');
230.              }
231.              
232.          }
233.    
234.          $content file_get_contents($includefile);
131.      //模板分解替换
132.      public function template_html($content){
133.          //include标签
134.          preg_match_all('/\{include=\"(.*?)\"\}/si',$content,$i);
135.          foreach($i[0] as $k=>$v){
136.              $content=str_ireplace($v,$this->template_html_include($i[1][$k]),$content);
137.          }
138.          //loop标签
139.          preg_match_all('/\{loop (.*?)\}/si',$content,$i);
140.          $this->check_template_err(substr_count($content'{/loop}'),count($i[0]),'loop');
141.          foreach($i[0] as $k=>$v){
99.          }
100.          if(APP_DEBUG===true){
101.              $fp_tp=@fopen($controllerLayout,"r");
102.              $fp_txt=@fread($fp_tp,filesize($controllerLayout));
103.              @fclose($fp_tp);
104.              $fp_txt=$this->template_html($fp_txt);
105.              $fp_txt = "<?php if (!defined('CORE_PATH')) exit();?>".$fp_txt;
106.              $fpt_tpl=@fopen($cache_file,"w");
107.              @fwrite($fpt_tpl,$fp_txt);
108.              @fclose($fpt_tpl);
109.          }else if(is_readable($cache_file)!==true || $isclear){
64.              $this->template($controllerLayout);
65.          } else {
66.              //兼容自定义扩展和.html模板
67.              $controllerLayout str_replace(File_TXT,'.html',$controllerLayout);
68.              if (file_exists($controllerLayout)) {
69.                  $this->template($controllerLayout);
70.              }else{
71.                  $f strpos($name,File_TXT)!==false $name $name.File_TXT;
72.                  Error_msg('无法找到视图文件,页面模板:'.$f);
73.              }
74.            
62.      }
63. 
64.      // 渲染视图
65.      public function display($name=null)
66.      {
67.          $this->_view->render($name);
68.      }
69.      
70.      // 获取URL参数值
71.      public function frparam($str=null$int=0,$default FALSE$method null){
72.          
969.              }
970.              
971.              exit;
972.          }
973.          header("HTTP/1.0 404");
974.          $this->display($this->template.'/404');
975.          $this->end_cache($this->cache_file);
976.          exit;
977.      }
978.      
979.      //开启检查缓存
22. 
23.      //首页
24.      function index(){
25.          //检查缓存
26.          if(stripos(REQUEST_URI,'.php')!==false && REQUEST_URI!='/index.php'){
27.              $this->error(JZLANG('链接错误!'));
28.          }
29.          $url current_url();
30.          $this->ishome true;
31.          $cache_file APP_PATH.'cache/data/'.md5('index.php');
32.          $this->cache_file $cache_file;
42.          $position strpos($request_url,'?');
43.          $url = ($position!==FALSE) ? substr($request_url,0,$position) : $request_url;
44.          $url substr($url,1,strlen($url)-1);
45. 
46.          if($url=='' || $url=='/' || $url=='index.php' || $url=='index.html'){
47.              $this->index();exit;
48.          }
49.          $this->ishome false;
50.          
51.          //  news/123.html  news-123.html  news-list-123.html
52.          $url str_ireplace('.html','',$url);
326.                  }
327.              
328.              }
329.          }
330.          $dispatch = new $controller($param);
331.          $dispatch->$actionName($param);
332.         
333.          
334.          
335.          
336.      }
89.          spl_autoload_register(array($this'loadClass'));
90.          $this->setDbConfig();
91.          $this->setReporting();
92.          $this->removeMagicQuotes();
93.          //$this->unregisterGlobals();
94.          $this->route();
95.          
96.      }
97. 
98.      // 路由处理
99.      public function route()
456. 
457.  // 加载配置文件
458.  $config = require(APP_PATH 'conf/config.php');
459. 
460.  //实例化核心类
461.  (new frphp($config))->run();
47. 
48.  //定义静态文件路径
49.  define('Tpl_style','/static/');
50. 
51.  // 加载框架文件
52.  require(APP_PATH 'frphp/fr.php');
53. 
54.  // 就这么简单~
55.