使用版本:phpBB 2.0.10
\n網站位置:http://cat6318.why3s.net/portal.php
已安裝外掛:http://cat6318.why3s.net/viewtopic.php?t=4但可以確定.安裝到捲動文字時.都還是正常的
測試帳號密碼:都是"1234"
狀況描述:
想請教瀏覽有使用的代碼的文章都會出現以下訊息.
且效果出不來.請問有可能是哪裡出了問題?煩請指教.謝謝!
代碼: 選擇全部
Parse error: parse error, unexpected '<' in /home/cat6318/public_html/includes/bbcode.php(61) : eval()'d code on line 44
代碼: 選擇全部
/**
* Loads bbcode templates from the bbcode.tpl file of the current template set.
* Creates an array, keys are bbcode names like "b_open" or "url", values
* are the associated template.
* Probably pukes all over the place if there's something really screwed
* with the bbcode.tpl file.
*
* Nathan Codding, Sept 26 2001.
*/
function load_bbcode_template()
[color=#ff0033]{ (44行)[/color]
global $template;
$tpl_filename = $template->make_filename('bbcode.tpl');
$tpl = fread(fopen($tpl_filename, 'r'), filesize($tpl_filename));
// replace \ with \\\ and then ' with \'.
$tpl = str_replace('\\\', '\\\\\\\', $tpl);
$tpl = str_replace('\'', '\\\\\'', $tpl);
// strip newlines.
$tpl = str_replace("
", '', $tpl);
// Turn template blocks into PHP assignment statements for the values of $bbcode_tpls..
$tpl = preg_replace('#<!-- BEGIN (.*?) -->(.*?)<!-- END (.*?) -->#', "
" . '$bbcode_tpls[\'\\\1\'] = \'\\\2\';', $tpl);
$bbcode_tpls = array();
[color=#ff0033]eval($tpl); (61行)[/color]
return $bbcode_tpls;
}
