NOTICE: Undefined index: thier_cats in /home/www/bw_website/protected/compile/98/10098/281bf78af689440be0eb7b52d38e0d66f5a8da12_0.file.goodsCat_tree.tpl.php on line 24
- /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/compile/98/10098/281bf78af689440be0eb7b52d38e0d66f5a8da12_0.file.goodsCat_tree.tpl.php on line 24
19.
'includes' =>
20.
array (
21.
),
22.
),false)) {
23.
function content_69ba249f578e46_30730551 (Smarty_Internal_Template $_smarty_tpl) {
24.
25.
if ($_smarty_tpl->tpl_vars['thier_cats']->value) {?>
<div id="crt_cats" class="tit-16 col-999 pb-4">
26.
<?php
27.
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['thier_cats']->value, 'item', true);
28.
$_smarty_tpl->tpl_vars['item']->iteration = 0;
29.
$_smarty_tpl->tpl_vars['item']->do_else = true;
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_template_resource_base.php on line 123
118.
if ($_template->startRenderCallbacks) {
119.
foreach ($_template->startRenderCallbacks as $callback) {
120.
call_user_func($callback, $_template);
121.
}
122.
}
123.
124.
$unifunc($_template);
foreach ($_template->endRenderCallbacks as $callback) {
125.
call_user_func($callback, $_template);
126.
}
127.
$_template->isRenderingCache = false;
128.
} catch (Exception $e) {
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_template_compiled.php on line 114
109.
array_merge($_template->cached->file_dependency, $this->file_dependency);
110.
}
111.
if ($_template->source->handler->uncompiled) {
112.
$_template->source->handler->renderUncompiled($_template->source, $_template);
113.
} else {
114.
115.
$this->getRenderedTemplateCode($_template);
}
116.
if ($_template->caching && $this->has_nocache_code) {
117.
$_template->cached->hashes[ $this->nocache_hash ] = true;
118.
}
119.
if ($_template->smarty->debugging) {
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_internal_template.php on line 216
211.
$this->cached->render($this, $no_output_filter);
212.
} else {
213.
if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) {
214.
$this->loadCompiled(true);
215.
}
216.
217.
$this->compiled->render($this);
}
218.
// display or fetch
219.
if ($display) {
220.
if ($this->caching && $this->smarty->cache_modified_check) {
221.
$this->smarty->ext->_cacheModify->cacheModifiedCheck(
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_internal_templatebase.php on line 232
227.
ob_start();
228.
$template->_mergeVars();
229.
if (!empty(Smarty::$global_tpl_vars)) {
230.
$template->tpl_vars = array_merge(Smarty::$global_tpl_vars, $template->tpl_vars);
231.
}
232.
233.
$result = $template->render(false, $function);
$template->_cleanUp();
234.
if ($saveVars) {
235.
$template->tpl_vars = $savedTplVars;
236.
$template->config_vars = $savedConfigVars;
237.
} else {
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_internal_templatebase.php on line 116
111.
* @throws SmartyException
112.
* @return string rendered template output
113.
*/
114.
public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null)
115.
{
116.
117.
$result = $this->_execute($template, $cache_id, $compile_id, $parent, 0);
return $result === null ? ob_get_clean() : $result;
118.
}
119.
120.
/**
121.
* displays a Smarty template
- /home/www/bw_website/protected/include/_smarty_fun.php on line 175
170.
if ( !$hasParentDiv) {
171.
$html .= <<<EFO
172.
<div id="{$params['name']}{$count}" class="mod{$class}">
173.
EFO;
174.
}
175.
176.
$html .= $smartyTpl->fetch($_template);
if ( !$hasParentDiv) {
177.
$html .= <<<EFO
178.
</div>
179.
EFO;
180.
}
- /home/www/bw_website/protected/compile/98/10098/61ceda9f2680abb6fcf0589b7a1459b77fe69167_0.file.goods.tpl.php on line 26
21.
),
22.
),false)) {
23.
function content_69ba249f543ef4_97723049 (Smarty_Internal_Template $_smarty_tpl) {
24.
?><div class="imgList 570e5b74">
25.
<div class="container-box">
26.
27.
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['tag'][0], array( array('name'=>'goodsCat','tpl'=>'tree','cid'=>$_smarty_tpl->tpl_vars['cid']->value,'no_parent_div'=>1),$_smarty_tpl ) );?>
28.
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-2 g-lg-3">
29.
<?php
30.
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['list_produre']->value, 'item');
31.
$_smarty_tpl->tpl_vars['item']->do_else = true;
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_template_resource_base.php on line 123
118.
if ($_template->startRenderCallbacks) {
119.
foreach ($_template->startRenderCallbacks as $callback) {
120.
call_user_func($callback, $_template);
121.
}
122.
}
123.
124.
$unifunc($_template);
foreach ($_template->endRenderCallbacks as $callback) {
125.
call_user_func($callback, $_template);
126.
}
127.
$_template->isRenderingCache = false;
128.
} catch (Exception $e) {
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_template_compiled.php on line 114
109.
array_merge($_template->cached->file_dependency, $this->file_dependency);
110.
}
111.
if ($_template->source->handler->uncompiled) {
112.
$_template->source->handler->renderUncompiled($_template->source, $_template);
113.
} else {
114.
115.
$this->getRenderedTemplateCode($_template);
}
116.
if ($_template->caching && $this->has_nocache_code) {
117.
$_template->cached->hashes[ $this->nocache_hash ] = true;
118.
}
119.
if ($_template->smarty->debugging) {
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_internal_template.php on line 216
211.
$this->cached->render($this, $no_output_filter);
212.
} else {
213.
if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) {
214.
$this->loadCompiled(true);
215.
}
216.
217.
$this->compiled->render($this);
}
218.
// display or fetch
219.
if ($display) {
220.
if ($this->caching && $this->smarty->cache_modified_check) {
221.
$this->smarty->ext->_cacheModify->cacheModifiedCheck(
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_internal_templatebase.php on line 232
227.
ob_start();
228.
$template->_mergeVars();
229.
if (!empty(Smarty::$global_tpl_vars)) {
230.
$template->tpl_vars = array_merge(Smarty::$global_tpl_vars, $template->tpl_vars);
231.
}
232.
233.
$result = $template->render(false, $function);
$template->_cleanUp();
234.
if ($saveVars) {
235.
$template->tpl_vars = $savedTplVars;
236.
$template->config_vars = $savedConfigVars;
237.
} else {
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_internal_templatebase.php on line 116
111.
* @throws SmartyException
112.
* @return string rendered template output
113.
*/
114.
public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null)
115.
{
116.
117.
$result = $this->_execute($template, $cache_id, $compile_id, $parent, 0);
return $result === null ? ob_get_clean() : $result;
118.
}
119.
120.
/**
121.
* displays a Smarty template
- /home/www/bw_website/protected/include/_smarty_fun.php on line 245
240.
if ( !$hasParentDiv) {
241.
$html .= <<<EFO
242.
<div id="{$main_name}_body" class="main_body {$class}">
243.
EFO;
244.
}
245.
246.
$html .= $smartyTpl->fetch($_template);
if (isset($GLOBALS['pager'][$__action])) {
247.
$html .= call_user_func('bootstrap_page', ['pager' => $GLOBALS['pager'][$__action]]);
248.
}
249.
if ( !$hasParentDiv) {
250.
$html .= <<<EFO
- /home/www/bw_website/protected/compile/98/10098/981c5bc0414d8b1515dcfca0f7570718bbbba9ea_0.file.layout.tpl.php on line 68
63.
64.
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['tag'][0], array( array('name'=>'banner','no_parent_div'=>1),$_smarty_tpl ) );?>
65.
66.
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['tag'][0], array( array('name'=>'menu','tpl'=>'layout','type'=>'s','no_parent_div'=>1),$_smarty_tpl ) );?>
67.
68.
69.
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['main_body'][0], array( array(),$_smarty_tpl ) );?>
70.
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['tag'][0], array( array('name'=>'foot','no_parent_div'=>1),$_smarty_tpl ) );?>
71.
72.
<?php echo '<script'; ?>
73.
type="text/javascript" src="/template/users/98/10098/static/js/layout.js"><?php echo '</script'; ?>
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_template_resource_base.php on line 123
118.
if ($_template->startRenderCallbacks) {
119.
foreach ($_template->startRenderCallbacks as $callback) {
120.
call_user_func($callback, $_template);
121.
}
122.
}
123.
124.
$unifunc($_template);
foreach ($_template->endRenderCallbacks as $callback) {
125.
call_user_func($callback, $_template);
126.
}
127.
$_template->isRenderingCache = false;
128.
} catch (Exception $e) {
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_template_compiled.php on line 114
109.
array_merge($_template->cached->file_dependency, $this->file_dependency);
110.
}
111.
if ($_template->source->handler->uncompiled) {
112.
$_template->source->handler->renderUncompiled($_template->source, $_template);
113.
} else {
114.
115.
$this->getRenderedTemplateCode($_template);
}
116.
if ($_template->caching && $this->has_nocache_code) {
117.
$_template->cached->hashes[ $this->nocache_hash ] = true;
118.
}
119.
if ($_template->smarty->debugging) {
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_internal_template.php on line 216
211.
$this->cached->render($this, $no_output_filter);
212.
} else {
213.
if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) {
214.
$this->loadCompiled(true);
215.
}
216.
217.
$this->compiled->render($this);
}
218.
// display or fetch
219.
if ($display) {
220.
if ($this->caching && $this->smarty->cache_modified_check) {
221.
$this->smarty->ext->_cacheModify->cacheModifiedCheck(
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_internal_templatebase.php on line 232
227.
ob_start();
228.
$template->_mergeVars();
229.
if (!empty(Smarty::$global_tpl_vars)) {
230.
$template->tpl_vars = array_merge(Smarty::$global_tpl_vars, $template->tpl_vars);
231.
}
232.
233.
$result = $template->render(false, $function);
$template->_cleanUp();
234.
if ($saveVars) {
235.
$template->tpl_vars = $savedTplVars;
236.
$template->config_vars = $savedConfigVars;
237.
} else {
- /home/www/bw_website/protected/include/smarty/sysplugins/smarty_internal_templatebase.php on line 134
129.
* @throws \SmartyException
130.
*/
131.
public function display($template = null, $cache_id = null, $compile_id = null, $parent = null)
132.
{
133.
// display template
134.
135.
$this->_execute($template, $cache_id, $compile_id, $parent, 1);
}
136.
137.
/**
138.
* test if cache is valid
139.
*
- /home/www/bw_website/protected/controller/MainController.php on line 597
592.
];
593.
if ( !in_array($method, $allowedActions)) {
594.
return $this->err404();
595.
}
596.
// 3. 統一執行模板渲染(核心邏輯:替代所有冗餘的 display 調用)
597.
598.
$this->_v->display($this->tpl);
}
599.
600.
function request_get($url = '', $param = [])
601.
{
602.
if (empty($url) || empty($param)) {
- /home/www/bw_website/protected/lib/speed.php on line 891
886.
// 步驟4:檢查當前控製器是否存在 __call() 方法
887.
if (method_exists($controllerInstance, '__call')) {
888.
// 步驟5:觸發 __call() 方法,傳遞 方法名 和 空參數數組(符合 __call() 格式要求)
889.
$args = arg(NULL, NULL, true, 'get');
890.
unset($args['m'], $args['c'], $args['a']);
891.
892.
$controllerInstance->__call($actionMethod, $args);
// 觸發 __call() 後終止執行,防止後續 404 邏輯重複執行
893.
exit();
894.
}
895.
}
896.
if ( !method_exists('BaseController', 'err404')) {
- /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');