Err: "/www/wwwroot/sqzhongming.com/skins/zhongming/tpl/tag_index.html" is not exists!
- /www/wwwroot/sqzhongming.com/protected/include/core.php on line 460
455.
}
456.
457.
public function compile($tempalte_name)
458.
{
459.
$file = $this->template_dir.DS.$tempalte_name;
460.
461.
if(!$file = realpath($file)) err('Err: "'.$this->template_dir.DS.$tempalte_name.'" is not exists!');
if(!is_writable($this->compile_dir) || !is_readable($this->compile_dir)) err('Err: Directory "'.$this->compile_dir.'" is not writable or readable');
462.
$complied_file = $this->compile_dir.DS.md5($file).'.'.filemtime($file).'.'.basename($tempalte_name).'.php';
463.
if(is_file($complied_file)) return $complied_file;
464.
465.
$template_data = file_get_contents($file);
- /www/wwwroot/sqzhongming.com/protected/include/core.php on line 432
427.
$this->compile_dir = $compile_dir;
428.
}
429.
430.
public function render($tempalte_name)
431.
{
432.
433.
$complied_file = $this->compile($tempalte_name);
434.
@ob_start();
435.
extract($this->template_vals, EXTR_SKIP);
436.
$_view_obj = & $this;
437.
include $complied_file;
- /www/wwwroot/sqzhongming.com/protected/include/core.php on line 190
185.
186.
public function display($tpl_name)
187.
{
188.
if(!$this->_v) $this->_v = new View(VIEW_DIR, APP_DIR.DS.'protected'.DS.'cache'.DS.'template');
189.
$this->_v->assign($this->_data);
190.
191.
echo $this->_v->render($tpl_name);
}
192.
}
193.
194.
class Model
195.
{
- /www/wwwroot/sqzhongming.com/protected/controller/general_controller.php on line 32
27.
if($GLOBALS['cfg']['wap']){
28.
if(is_mobile_device())$div = '/mobile/';
29.
}
30.
31.
$path = $GLOBALS['cfg']['enabled_theme'].$div.$tpl_name;
32.
33.
$this->display($path);
}
34.
35.
protected function prompt($type = null, $text = '', $redirect = null, $time = 3)
36.
{
37.
if(empty($type)) $type = 'default';
- /www/wwwroot/sqzhongming.com/protected/controller/tag_controller.php on line 36
31.
}
32.
}
33.
}
34.
35.
$this->title = $title;
36.
37.
$this->compiler('tag_index.html');
}
38.
39.
public function action_sitemap()
40.
{ header("Content-type: text/xml");
41.
$xml = vcache::instance()->tag_model('sitemap');
- /www/wwwroot/sqzhongming.com/protected/include/core.php on line 94
89.
$action_name = 'action_'.$__action;
90.
if(!class_exists($controller_name, true)) {header('location:/404.html');exit();}
91.
$controller_obj = new $controller_name();
92.
if(!method_exists($controller_obj, $action_name)) err("Err: Method '$action_name' of '$controller_name' is not exists!");
93.
94.
95.
$controller_obj->$action_name();
96.
function url($c = 'main', $a = 'index', $param = array())
97.
{
98.
if(is_array($c))
99.
{
- /www/wwwroot/sqzhongming.com/index.php on line 5
1.
<?php
2.
define('APP_DIR', realpath('./'));
3.
defined('DS') or define('DS', DIRECTORY_SEPARATOR);
4.
define('INCL_DIR', APP_DIR.DS.'protected'.DS.'include');
5.
require(INCL_DIR.DS.'core.php');