NOTICE: Undefined offset: 1 in /www/wwwroot/shuhuawang/protected/lib/vcache.php on line 63
- /www/wwwroot/shuhuawang/protected/include/core.php on line 566
561.
case E_NOTICE: $msg = "NOTICE"; break;
562.
case E_STRICT: $msg = "STRICT"; break;
563.
case 8192: $msg = "DEPRECATED"; break;
564.
default : $msg = "Unknown Error Type";
565.
}
566.
567.
err("$msg: $errstr in $errfile on line $errline");
}
568.
569.
function err($msg)
570.
{
571.
$traces = debug_backtrace();
- /www/wwwroot/shuhuawang/protected/lib/vcache.php on line 63
58.
59.
$cache = $this->_filename($key);
60.
if(is_readable($cache))
61.
{
62.
$data = explode(',', file_get_contents($cache));
63.
64.
$expires = (int)$data[1];
if($expires === 0 || $expires - $_SERVER['REQUEST_TIME'] > 0) return unserialize(base64_decode($data[2]));
65.
$this->delete($key);
66.
}
67.
return FALSE;
68.
}
- /www/wwwroot/shuhuawang/protected/lib/vcache.php on line 36
31.
{
32.
$key = $outer . $args[0] . serialize($args[1]);
33.
}
34.
if(!isset($args[2])) $args[2] = 0;
35.
if($args[2] == -1) return $this->delete($key);
36.
37.
$cache = $this->get($key);
if(FALSE === $cache)
38.
{
39.
$obj = new $outer();
40.
$data = call_user_func_array(array($obj, $args[0]), $args[1]);
41.
$this->set($key, $data, $args[2]);
- /www/wwwroot/shuhuawang/protected/controller/goods_controller.php on line 37
32.
//$this->related = $goods_model->get_related($id, $GLOBALS['cfg']['goods_related_num']);
33.
34.
//同店商品
35.
$this->mygoods = $goods_model->find_goods(array('shop_id'=>$goods['shop_id']),5);
36.
//热销商品
37.
38.
$this->bestseller = vcache::instance()->goods_model('get_bestseller', null, 10, $GLOBALS['cfg']['data_cache_lifetime']);
//保存浏览历史
39.
$goods_model->set_history($id);
40.
// dump($this->mygoods);
41.
$this->compiler('goods.html');
42.
}
- /www/wwwroot/shuhuawang/protected/controller/goods_controller.php on line 37
32.
//$this->related = $goods_model->get_related($id, $GLOBALS['cfg']['goods_related_num']);
33.
34.
//同店商品
35.
$this->mygoods = $goods_model->find_goods(array('shop_id'=>$goods['shop_id']),5);
36.
//热销商品
37.
38.
$this->bestseller = vcache::instance()->goods_model('get_bestseller', null, 10, $GLOBALS['cfg']['data_cache_lifetime']);
//保存浏览历史
39.
$goods_model->set_history($id);
40.
// dump($this->mygoods);
41.
$this->compiler('goods.html');
42.
}
- /www/wwwroot/shuhuawang/protected/include/core.php on line 92
87.
$action_name = 'action_'.$__action;
88.
if(!class_exists($controller_name, true)) err("Err: Controller '$controller_name' is not exists!");
89.
$controller_obj = new $controller_name();
90.
if(!method_exists($controller_obj, $action_name)) err("Err: Method '$action_name' of '$controller_name' is not exists!");
91.
92.
93.
$controller_obj->$action_name();
94.
function url($c = 'main', $a = 'index', $param = array())
95.
{
96.
if(is_array($c))
97.
{
- /www/wwwroot/shuhuawang/index.php on line 6
1.
<?php
2.
header('Content-type: text/html; charset=UTF8');
3.
define('APP_DIR', realpath('./'));
4.
defined('DS') or define('DS', DIRECTORY_SEPARATOR);
5.
define('INCL_DIR', APP_DIR.DS.'protected'.DS.'include');
6.
require(INCL_DIR.DS.'core.php');