Err: Directory "/www/sites/47.119.136.110/index/webroot/protected/tmp" is not writable or readable
- /www/sites/47.119.136.110/index/webroot/protected/lib/speed.php on line 453
448.
}
449.
450.
public function compile($tempalte_name){
451.
$file = $this->template_dir.DS.$tempalte_name;
452.
if(!file_exists($file)) err('Err: "'.$file.'" is not exists!');
453.
454.
if(!is_writable($this->compile_dir) || !is_readable($this->compile_dir)) err('Err: Directory "'.$this->compile_dir.'" is not writable or readable');
455.
$complied_file = $this->compile_dir.DS.md5(realpath($file)).'.'.filemtime($file).'.'.basename($tempalte_name).'.php';
456.
if(file_exists($complied_file))return $complied_file;
457.
458.
$template_data = file_get_contents($file);
- /www/sites/47.119.136.110/index/webroot/protected/lib/speed.php on line 430
425.
$this->template_dir = $template_dir;
426.
$this->compile_dir = $compile_dir;
427.
}
428.
429.
public function render($tempalte_name){
430.
431.
$complied_file = $this->compile($tempalte_name);
432.
@ob_start();
433.
extract($this->template_vals, EXTR_SKIP);
434.
$_view_obj = & $this;
435.
include $complied_file;
- /www/sites/47.119.136.110/index/webroot/protected/lib/speed.php on line 199
194.
$this->_auto_display = false;
195.
196.
if($return){
197.
return $this->_v->render($tpl_name);
198.
}else{
199.
200.
echo $this->_v->render($tpl_name);
}
201.
}
202.
}
203.
204.
class Model{
- /www/sites/47.119.136.110/index/webroot/protected/controller/MainController.php on line 58
53.
{
54.
55.
$this->pageTitle = $this->param['indexTitle'];
56.
$this->pageKeywords = $this->param['indexKeywords'];
57.
$this->pageDescription = $this->param['indexDescription'];
58.
59.
$this->display($this->controller . '/index.html');
}
60.
61.
62.
//动态vps
63.
function adslvm()
- /www/sites/47.119.136.110/index/webroot/protected/lib/speed.php on line 85
80.
if(!is_available_classname($__controller))_err_router("Err: Controller '$controller_name' is not correct!");
81.
if(!class_exists($controller_name, true))_err_router("Err: Controller '$controller_name' is not exists!");
82.
if(!method_exists($controller_name, $action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
83.
84.
$controller_obj = new $controller_name();
85.
86.
$controller_obj->$action_name();
87.
if($controller_obj->_auto_display){
88.
$auto_tpl_name = (empty($__module) ? '' : $__module.DS).$__controller.'_'.$__action.'.html';
89.
if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
90.
}
- /www/sites/47.119.136.110/index/webroot/index.php on line 7
2.
header("Content-Type:text/html;charset=UTF-8");
3.
date_default_timezone_set('PRC');
4.
@session_start();
5.
define('APP_DIR', realpath('./'));
6.
require_once(APP_DIR.'/protected/func.php');
7.
8.
require_once(APP_DIR.'/protected/lib/speed.php');