NOTICE: Undefined offset: 1 in D:\wwwroot\a2_g7w4hp\web\protected\lib\vcache.php on line 63
- D:\wwwroot\a2_g7w4hp\web\protected\include\core.php on line 563
558.
case E_NOTICE: $msg = "NOTICE"; break;
559.
case E_STRICT: $msg = "STRICT"; break;
560.
case 8192: $msg = "DEPRECATED"; break;
561.
default : $msg = "Unknown Error Type";
562.
}
563.
564.
err("$msg: $errstr in $errfile on line $errline");
}
565.
566.
function err($msg)
567.
{
568.
$traces = debug_backtrace();
- D:\wwwroot\a2_g7w4hp\web\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.
}
- D:\wwwroot\a2_g7w4hp\web\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]);
- D:\wwwroot\a2_g7w4hp\web\protected\controller\goods_controller.php on line 30
25.
$attr_model = new goods_attr_model();
26.
$this->specs = $attr_model->get_goods_specs($id);
27.
//关联商品
28.
$this->related = $goods_model->get_related($id, $GLOBALS['cfg']['goods_related_num']);
29.
//热销商品
30.
31.
$this->bestseller = vcache::instance()->goods_model('get_bestseller', null, 10, $GLOBALS['cfg']['data_cache_lifetime']);
//保存浏览历史
32.
$goods_model->set_history($id);
33.
34.
$this->compiler('goods.html');
35.
}
- D:\wwwroot\a2_g7w4hp\web\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.
{
- D:\wwwroot\a2_g7w4hp\web\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');