WARNING: Invalid argument supplied for foreach() in /www/wwwroot/sqzhongming.cn/protected/model/tag_model.php on line 20
- /www/wwwroot/sqzhongming.cn/protected/include/core.php on line 648
643.
case E_NOTICE: $msg = "NOTICE"; break;
644.
case E_STRICT: $msg = "STRICT"; break;
645.
case 8192: $msg = "DEPRECATED"; break;
646.
default : $msg = "Unknown Error Type";
647.
}
648.
649.
err("$msg: $errstr in $errfile on line $errline");
}
650.
651.
function err($msg)
652.
{
653.
$traces = debug_backtrace();
- /www/wwwroot/sqzhongming.cn/protected/model/tag_model.php on line 20
15.
}
16.
public function tags_id()
17.
{
18.
$tag_id = array();
19.
$tag = $this->find_all();
20.
21.
foreach($tag as $k=>$v){
$tag_id[$v['tag_name']] = $v['id'];
22.
}
23.
return $tag_id;
24.
25.
}
- /www/wwwroot/sqzhongming.cn/protected/lib/vcache.php on line 40
35.
if($args[2] == -1) return $this->delete($key);
36.
$cache = $this->get($key);
37.
if(FALSE === $cache)
38.
{
39.
$obj = new $outer();
40.
41.
$data = call_user_func_array(array($obj, $args[0]), $args[1]);
$this->set($key, $data, $args[2]);
42.
return $data;
43.
}
44.
return $cache;
45.
}
- /www/wwwroot/sqzhongming.cn/protected/controller/news_controller.php on line 42
37.
if($v['cate_id']==$news['cate_id']) $this->cate = $v;
38.
}
39.
40.
if(!empty($news['link'])) jump($news['link']);
41.
$news['tag'] = explode(",",$news['meta_keywords']);
42.
43.
$this->tags_id = vcache::instance()->tag_model('tags_id');
/*添加关键词链接*/
44.
//$key_model = new key_model();
45.
46.
/*$ks = vcache::instance()->key_model('key_list');
47.
foreach($ks as $k=>$v){
- /www/wwwroot/sqzhongming.cn/protected/include/core.php on line 177
172.
$action_name = 'action_'.$__action;
173.
if(!class_exists($controller_name, true)) {header('location:/404.html');exit();}
174.
$controller_obj = new $controller_name();
175.
if(!method_exists($controller_obj, $action_name)) err("Err: Method '$action_name' of '$controller_name' is not exists!");
176.
177.
178.
$controller_obj->$action_name();
179.
function url($c = 'main', $a = 'index', $param = array())
180.
{
181.
if(is_array($c))
182.
{
- /www/wwwroot/sqzhongming.cn/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');