/style.php不存在!
- /www/wwwroot/wordinppt.com/frphp/lib/View.php on line 231
226.
}
227.
if(!is_file($includefile)){
228.
//兼容自定义扩展和.html模板
229.
$includefile = str_replace(File_TXT,'.html',$includefile);
230.
if (!is_file($includefile)) {
231.
232.
Error_msg($file.'不存在!');
}
233.
234.
}
235.
236.
$content = file_get_contents($includefile);
- /www/wwwroot/wordinppt.com/frphp/lib/View.php on line 138
133.
//模板分解替换
134.
public function template_html($content){
135.
//include标签
136.
preg_match_all('/\{include=\"(.*?)\"\}/si',$content,$i);
137.
foreach($i[0] as $k=>$v){
138.
139.
$content=str_ireplace($v,$this->template_html_include($i[1][$k]),$content);
}
140.
//loop标签
141.
preg_match_all('/\{loop (.*?)\}/si',$content,$i);
142.
$this->check_template_err(substr_count($content, '{/loop}'),count($i[0]),'loop');
143.
foreach($i[0] as $k=>$v){
- /www/wwwroot/wordinppt.com/frphp/lib/View.php on line 106
101.
}
102.
if(APP_DEBUG===true){
103.
$fp_tp=@fopen($controllerLayout,"r");
104.
$fp_txt=@fread($fp_tp,filesize($controllerLayout));
105.
@fclose($fp_tp);
106.
107.
$fp_txt=$this->template_html($fp_txt);
$fp_txt = "<?php if (!defined('CORE_PATH')) exit();?>".$fp_txt;
108.
$fpt_tpl=@fopen($cache_file,"w");
109.
@fwrite($fpt_tpl,$fp_txt);
110.
@fclose($fpt_tpl);
111.
}else if(is_readable($cache_file)!==true || $isclear){
- /www/wwwroot/wordinppt.com/frphp/lib/View.php on line 70
65.
$this->template($controllerLayout);
66.
} else {
67.
//兼容自定义扩展和.html模板
68.
$controllerLayout = str_replace(File_TXT,'.html',$controllerLayout);
69.
if (file_exists($controllerLayout)) {
70.
71.
$this->template($controllerLayout);
}else{
72.
$f = strpos($name,File_TXT)!==false ? $name : $name.File_TXT;
73.
Error_msg('无法找到视图文件,页面模板:'.$f);
74.
}
75.
- /www/wwwroot/wordinppt.com/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.
- /www/wwwroot/wordinppt.com/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.
//开启检查缓存
- /www/wwwroot/wordinppt.com/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;
- /www/wwwroot/wordinppt.com/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);
- /www/wwwroot/wordinppt.com/frphp/fr.php on line 331
326.
}
327.
328.
}
329.
}
330.
$dispatch = new $controller($param);
331.
332.
$dispatch->$actionName($param);
333.
334.
335.
336.
}
- /www/wwwroot/wordinppt.com/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()
- /www/wwwroot/wordinppt.com/frphp/fr.php on line 461
456.
457.
// 加载配置文件
458.
$config = require(APP_PATH . 'conf/config.php');
459.
460.
//实例化核心类
461.
(new frphp($config))->run();
- /www/wwwroot/wordinppt.com/index.php on line 52
47.
48.
//定义静态文件路径
49.
define('Tpl_style','/static/');
50.
51.
// 加载框架文件
52.
53.
require(APP_PATH . 'frphp/fr.php');
54.
// 就这么简单~
55.