NOTICE: Undefined index: cate in /www/wwwroot/shouli315.com/protected/include/core.php on line 183
- /www/wwwroot/shouli315.com/protected/include/core.php on line 565
560.
case E_NOTICE: $msg = "NOTICE"; break;
561.
case E_STRICT: $msg = "STRICT"; break;
562.
case 8192: $msg = "DEPRECATED"; break;
563.
default : $msg = "Unknown Error Type";
564.
}
565.
566.
err("$msg: $errstr in $errfile on line $errline");
}
567.
568.
function err($msg)
569.
{
570.
$traces = debug_backtrace();
- /www/wwwroot/shouli315.com/protected/include/core.php on line 183
178.
private $_v;
179.
private $_data = array();
180.
181.
public function init(){}
182.
public function __construct(){$this->init();}
183.
184.
public function __get($name){return $this->_data[$name];}
public function __set($name, $value){$this->_data[$name] = $value;}
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');
- /www/wwwroot/shouli315.com/protected/controller/news_controller.php on line 56
51.
$this->news = $news;
52.
53.
54.
$article_model->query("update {$article_model->table_name} set hits=hits+1 where id=$id");
55.
56.
57.
$this->compiler($this->cate['con_tpl']);
}
58.
else
59.
{
60.
jump(url('main', '404'));
61.
}
- /www/wwwroot/shouli315.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/shouli315.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');