Err: "/www/wwwroot/peak.youzhiapi.top/protected/view/default/index.html" is not exists!
- /www/wwwroot/peak.youzhiapi.top/protected/lib/speed.php on line 506
501.
}
502.
503.
public function compile($tempalte_name) {
504.
$file = $this->template_dir . DS . $tempalte_name;
505.
if (!file_exists($file)) {
506.
507.
err('Err: "' . $file . '" is not exists!');
}
508.
509.
if (!is_writable($this->compile_dir) || !is_readable($this->compile_dir)) {
510.
err('Err: Directory "' . $this->compile_dir . '" is not writable or readable');
511.
}
- /www/wwwroot/peak.youzhiapi.top/protected/lib/speed.php on line 477
472.
$this->template_dir = $template_dir;
473.
$this->compile_dir = $compile_dir;
474.
}
475.
476.
public function render($tempalte_name) {
477.
478.
$complied_file = $this->compile($tempalte_name);
479.
@ob_start();
480.
extract($this->template_vals, EXTR_SKIP);
481.
$_view_obj = &$this;
482.
include $complied_file;
- /www/wwwroot/peak.youzhiapi.top/protected/lib/speed.php on line 271
266.
$this->_auto_display = false;
267.
268.
if ($return) {
269.
return $this->_v->render($tpl_name);
270.
} else {
271.
272.
echo $this->_v->render($tpl_name);
}
273.
}
274.
}
275.
276.
//echo $_SERVER['REQUEST_URI'];
- /www/wwwroot/peak.youzhiapi.top/protected/controller/MainController.php on line 16
11.
$template_index = $template.'/index.html';
12.
}else{
13.
echo TEMPLATE_ROOT;
14.
exit(' -> 无首页模板,请前往后台进行首页模板设置');
15.
}
16.
17.
$this->display($template_index);
}
18.
}
- /www/wwwroot/peak.youzhiapi.top/protected/lib/speed.php on line 127
122.
if (!method_exists($controller_name, $action_name)) {
123.
_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
124.
}
125.
126.
$controller_obj = new $controller_name();
127.
128.
$controller_obj->$action_name();
129.
if ($controller_obj->_auto_display) {
130.
$auto_tpl_name = (empty($__module) ? '' : $__module . DS) . $__controller . '_' . $__action . '.html';
131.
if (file_exists(APP_DIR . DS . 'protected' . DS . 'view' . DS . $auto_tpl_name)) {
132.
$controller_obj->display($auto_tpl_name);
- /www/wwwroot/peak.youzhiapi.top/index.php on line 45
40.
if($_GET['runcron']){
41.
//云端防止监控自动停止
42.
$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);
43.
exit('站点正常哦');
44.
}
45.
require(APP_DIR.'/protected/lib/speed.php');