/comm/head.php不存在!
- /usr/home/hyu5709940001/htdocs/frphp/lib/View.php on line 229
224.
}
225.
if(!is_file($includefile)){
226.
//兼容自定义扩展和.html模板
227.
$includefile = str_replace(File_TXT,'.html',$includefile);
228.
if (!is_file($includefile)) {
229.
230.
Error_msg($file.'不存在!');
}
231.
232.
}
233.
234.
$content = file_get_contents($includefile);
- /usr/home/hyu5709940001/htdocs/frphp/lib/View.php on line 136
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.
137.
$content=str_ireplace($v,$this->template_html_include($i[1][$k]),$content);
}
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){
- /usr/home/hyu5709940001/htdocs/frphp/lib/View.php on line 104
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.
105.
$fp_txt=$this->template_html($fp_txt);
$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){
- /usr/home/hyu5709940001/htdocs/frphp/lib/View.php on line 69
64.
$this->template($controllerLayout);
65.
} else {
66.
//兼容自定义扩展和.html模板
67.
$controllerLayout = str_replace(File_TXT,'.html',$controllerLayout);
68.
if (file_exists($controllerLayout)) {
69.
70.
$this->template($controllerLayout);
}else{
71.
$f = strpos($name,File_TXT)!==false ? $name : $name.File_TXT;
72.
Error_msg('无法找到视图文件,页面模板:'.$f);
73.
}
74.
- /usr/home/hyu5709940001/htdocs/frphp/lib/Controller.php on line 67
62.
}
63.
64.
// 渲染视图
65.
public function display($name=null)
66.
{
67.
68.
$this->_view->render($name);
}
69.
70.
// 获取URL参数值
71.
public function frparam($str=null, $int=0,$default = FALSE, $method = null){
72.
- /usr/home/hyu5709940001/htdocs/app/home/c/HomeController.php on line 974
969.
}
970.
971.
exit;
972.
}
973.
header("HTTP/1.0 404");
974.
975.
$this->display($this->template.'/404');
$this->end_cache($this->cache_file);
976.
exit;
977.
}
978.
979.
//开启检查缓存
- /usr/home/hyu5709940001/htdocs/app/home/c/HomeController.php on line 27
22.
23.
//首页
24.
function index(){
25.
//检查缓存
26.
if(stripos(REQUEST_URI,'.php')!==false && REQUEST_URI!='/index.php'){
27.
28.
$this->error(JZLANG('链接错误!'));
}
29.
$url = current_url();
30.
$this->ishome = true;
31.
$cache_file = APP_PATH.'cache/data/'.md5('index.php');
32.
$this->cache_file = $cache_file;
- /usr/home/hyu5709940001/htdocs/app/home/c/HomeController.php on line 47
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.
48.
$this->index();exit;
}
49.
$this->ishome = false;
50.
51.
// news/123.html news-123.html news-list-123.html
52.
$url = str_ireplace('.html','',$url);
- /usr/home/hyu5709940001/htdocs/frphp/fr.php on line 339
334.
}
335.
336.
}
337.
}
338.
$dispatch = new $controller($param);
339.
340.
$dispatch->$actionName($param);
341.
342.
343.
344.
}
- /usr/home/hyu5709940001/htdocs/frphp/fr.php on line 94
89.
spl_autoload_register(array($this, 'loadClass'));
90.
$this->setDbConfig();
91.
$this->setReporting();
92.
$this->removeMagicQuotes();
93.
//$this->unregisterGlobals();
94.
95.
$this->route();
96.
}
97.
98.
// 路由处理
99.
public function route()
- /usr/home/hyu5709940001/htdocs/frphp/fr.php on line 469
464.
465.
// 加载配置文件
466.
$config = require(APP_PATH . 'conf/config.php');
467.
468.
//实例化核心类
469.
(new frphp($config))->run();
- /usr/home/hyu5709940001/htdocs/index.php on line 52
47.
48.
//定义静态文件路径
49.
define('Tpl_style','/static/');
50.
51.
// 加载框架文件
52.
53.
require(APP_PATH . 'frphp/fr.php');
54.
// 就这么简单~
55.