Err: "/www/wwwroot/m/protected/view/gogo/index.html" is not exists!
- /www/wwwroot/m/protected/lib/speed.php on line 535
530.
}
531.
532.
public function compile($tempalte_name) {
533.
$file = $this->template_dir . DS . $tempalte_name;
534.
if (!file_exists($file)) {
535.
536.
err('Err: "' . $file . '" is not exists!');
}
537.
538.
if (!is_writable($this->compile_dir) || !is_readable($this->compile_dir)) {
539.
err('Err: Directory "' . $this->compile_dir . '" is not writable or readable');
540.
}
- /www/wwwroot/m/protected/lib/speed.php on line 506
501.
$this->template_dir = $template_dir;
502.
$this->compile_dir = $compile_dir;
503.
}
504.
505.
public function render($tempalte_name) {
506.
507.
$complied_file = $this->compile($tempalte_name);
508.
@ob_start();
509.
extract($this->template_vals, EXTR_SKIP);
510.
$_view_obj = &$this;
511.
include $complied_file;
- /www/wwwroot/m/protected/lib/speed.php on line 289
284.
$this->_auto_display = false;
285.
286.
if ($return) {
287.
return $this->_v->render($tpl_name);
288.
} else {
289.
290.
echo $this->_v->render($tpl_name);
}
291.
}
292.
}
293.
294.
//echo $_SERVER['REQUEST_URI'];
- /www/wwwroot/m/protected/controller/MainController.php on line 14
9.
$template_index = $template.'/index.html';
10.
}else{
11.
echo TEMPLATE_ROOT;
12.
exit(' -> 无首页模板,请前往后台进行首页模板设置');
13.
}
14.
15.
$this->display($template_index);
}
16.
}
- /www/wwwroot/m/protected/lib/speed.php on line 145
140.
if (!method_exists($controller_name, $action_name)) {
141.
_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
142.
}
143.
144.
$controller_obj = new $controller_name();
145.
146.
$controller_obj->$action_name();
147.
if ($controller_obj->_auto_display) {
148.
$auto_tpl_name = (empty($__module) ? '' : $__module . DS) . $__controller . '_' . $__action . '.html';
149.
if (file_exists(APP_DIR . DS . 'protected' . DS . 'view' . DS . $auto_tpl_name)) {
150.
$controller_obj->display($auto_tpl_name);
- /www/wwwroot/m/index.php on line 41
36.
}
37.
38.
define('APP_DIR', realpath('./'));
39.
require(APP_DIR.'/protected/Version.php');
40.
require(APP_DIR.'/protected/lib/Common.php');
41.
42.
require(APP_DIR.'/protected/lib/speed.php');
43.
if($_GET['runcron']){
44.
//云端防止监控自动停止
45.
$ch = curl_init();curl_setopt($ch, CURLOPT_URL, ((int)$_SERVER['SERVER_PORT'] == 80 ? 'http://'.$_SERVER['HTTP_HOST'] : 'https://'.$_SERVER['HTTP_HOST']).'/Crontab/Tim/Run?r='.time());curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_TIMEOUT, 1);curl_exec($ch);curl_close($ch);
46.
exit('站点正常哦');