ecshop首頁(yè)全部都是代碼了,怎么解決,著(zhù)急啊,求大神幫忙
??打開(kāi)includes下cls_template。php這個(gè)文件
找到這段代碼:
function fetch_str($source)
if (!defined('ECS_ADMIN'))
$source = $this->smarty_prefilter_preCompile($source);
if(preg_match_all('~(|languages*=s*["']?php["']?)~is', $source, $sp_match))
$sp_match[1] = array_unique($sp_match[1]);
for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp '。
??"n", $source);
return preg_replace("/{([^}{n]*)}/e", "$this->select('1');", $source);
替換為以下代碼:
function fetch_str($source)
if (!defined('ECS_ADMIN'))
$source = $this->smarty_prefilter_preCompile($source);
/* if(preg_match_all('~(|languages*=s*["']?php["']?)~is', $source, $sp_match))
$sp_match[1] = array_unique($sp_match[1]);
for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp '。
??"n", $source);
return preg_replace("/{([^}{n]*)}/e", "$this->select('1');", $source);
替換完成后臺在后臺右上角點(diǎn)擊清楚緩存刷新頁(yè)面即可。