NOTICE: Undefined index: siteInfo in /home/www/bw_website/protected/controller/MainController.php on line 255
- /home/www/bw_website/protected/lib/speed.php on line 915
910.
$msg = "NOTICE";
911.
if ($errno == E_STRICT)
912.
$msg = "STRICT";
913.
if ($errno == 8192)
914.
$msg = "DEPRECATED";
915.
916.
err("$msg: $errstr in $errfile on line $errline");
}
917.
function err($msg){
918.
$msg = htmlspecialchars($msg);
919.
$traces = debug_backtrace();
920.
if(!empty($GLOBALS['_CNF']['err_handler'])){
- /home/www/bw_website/protected/controller/MainController.php on line 255
250.
return '';
251.
}
252.
$qqHtml = '';
253.
$pattern = '/[| \/.,-]/';
254.
$qqList = preg_split($pattern, $qq);
255.
256.
$company = $this->siteConfig['siteInfo']['company'];
foreach ($qqList as $v) {
257.
if ( !empty(trim($v))) {
258.
$qqHtml .= ' <a target="blank" style="display: inline-block;font-size: 0;line-height: 1;vertical-align: middle;" href="tencent://message/?uin=' . $v . '&Site=' . $company . '&Menu=yes"><img src="https://pub.idqqimg.com/wpa/images/counseling_style_52.png" alt="QQ"></a>';
259.
}
260.
}
- /home/www/bw_website/protected/controller/MainController.php on line 231
226.
unset($about['content']);
227.
// 合并站點(diǎn)信息
228.
$siteInfo = array_merge($about, $contact, $siteUp);
229.
unset($siteInfo['id'], $siteInfo['shop_id']);
230.
// 處理QQ聯(lián)系方式
231.
232.
$siteInfo['QQ'] = $this->buildQqHtml($siteInfo['qq'] ?? '');
// 處理備案信息
233.
$siteInfo = $this->buildRecordInfo($siteInfo);
234.
// 處理版權(quán)信息
235.
$siteInfo = $this->buildCopyrightInfo($siteInfo);
236.
// 清理空值并轉(zhuǎn)義
- /home/www/bw_website/protected/controller/MainController.php on line 56
51.
// 按順序執(zhí)行初始化步驟
52.
$this->initBasicVars();
53.
$this->initSiteConfig();
54.
$this->initTemplateDir();
55.
$this->initPageSize($this->siteConfig['dir']);
56.
57.
$this->initSiteBasicInfo();
$this->initSeoAndMenu();
58.
$this->assignTemplateVars();
59.
} catch (\Exception $e) {
60.
// 統(tǒng)一異常處理(可根據(jù)框架擴(kuò)展日志記錄、友好提示等)
61.
die($e->getMessage());
- /home/www/bw_website/protected/lib/speed.php on line 496
491.
protected $_v;
492.
private $_data = [];
493.
494.
public function init() { }
495.
496.
497.
public function __construct() { $this->init(); }
498.
public function &__get($name) { return $this->_data[$name]; }
499.
500.
public function __set($name, $value) { $this->_data[$name] = $value; }
501.
- /home/www/bw_website/protected/lib/speed.php on line 885
880.
// 步驟2:判斷控制器是否存在,且可實(shí)例化
881.
$actionMethod = 'action' . ucfirst($__action); // 構(gòu)造對應(yīng)的 actionXXX 方法名
882.
$hasController = class_exists($controllerClassName);
883.
if ($hasController) {
884.
// 步驟3:實(shí)例化當(dāng)前控制器(框架原有邏輯中應(yīng)該已有實(shí)例化,這里重新實(shí)例化保證獨(dú)立,無侵入性)
885.
886.
$controllerInstance = new $controllerClassName();
// 步驟4:檢查當(dāng)前控制器是否存在 __call() 方法
887.
if (method_exists($controllerInstance, '__call')) {
888.
// 步驟5:觸發(fā) __call() 方法,傳遞 方法名 和 空參數(shù)數(shù)組(符合 __call() 格式要求)
889.
$args = arg(NULL, NULL, true, 'get');
890.
unset($args['m'], $args['c'], $args['a']);
- /home/www/bw_website/protected/lib/speed.php on line 86
81.
if ( !is_available_classname($__controller))
82.
_err_router("Err: Controller '$controller_name' is not correct!");
83.
if ( !class_exists($controller_name, true))
84.
_err_router("Err: Controller '$controller_name' is not exists!");
85.
if ( !method_exists($controller_name, $action_name))
86.
87.
_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
88.
$controller_obj = new $controller_name();
89.
$controller_obj->$action_name();
90.
91.
if ($controller_obj->_auto_display) {
- /home/www/bw_website/index.php on line 7
2.
const DS = DIRECTORY_SEPARATOR;
3.
define('APP_DIR', realpath('.' . DS));
4.
const ROOT_DIR = APP_DIR;
5.
const PROTECTED_DIR = ROOT_DIR . DS . 'protected';
6.
const VIEW_DIR = ROOT_DIR . DS . 'template';
7.
8.
require(ROOT_DIR . DS . 'protected' . DS . 'lib' . DS . 'speed.php');
require(PROTECTED_DIR . DS . 'include' . DS . 'HtmlPurifierHelper.php');