NOTICE: Array to string conversion in /home/www/bw_website/protected/compile/21/10021/b4340bbb1cec2429b8148599b32b56b23c757dbe_0.file.dimgs.tpl.php on line 70
- /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/21/10021/b4340bbb1cec2429b8148599b32b56b23c757dbe_0.file.dimgs.tpl.php on line 70
65.
<?php
66.
}
67.
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
68.
<?php } else { ?>
69.
<?php
70.
71.
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, ((string)$_smarty_tpl->tpl_vars['dlist']->value), 'item');
$_smarty_tpl->tpl_vars['item']->do_else = true;
72.
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) {
73.
$_smarty_tpl->tpl_vars['item']->do_else = false;
74.
?>
75.
<div class="col-6 col-lg-4">
- /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/21/10021/f1cc575a381edfa0ef6f2d3a5defe503ce69feb2_0.file.layout.tpl.php on line 58
53.
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['tag'][0], array( array('name'=>'cBanner','no_parent_div'=>1),$_smarty_tpl ) );?>
54.
55.
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['tag'][0], array( array('name'=>'navigation','no_parent_div'=>1),$_smarty_tpl ) );?>
56.
57.
<div class="main_body_box">
58.
59.
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['main_body'][0], array( array(),$_smarty_tpl ) );?>
60.
</div>
61.
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['tag'][0], array( array('name'=>'footer','no_parent_div'=>1),$_smarty_tpl ) );?>
62.
63.
<?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');