includes\lib_main.php on line 1329

2016-07-07 15:12 来源:www.chinab4c.com 作者:ecshop专家

会员页面中出现, 而且整个页面是考左侧 没居中


function get_dyna_libs($theme, $tmp)
{
$ext = end(explode('.', $tmp));------------1329
$tmp = basename($tmp,".$ext");
$sql = 'SELECT region, library, sort_order, id, number, type' .
' FROM ' . $GLOBALS['ecs']->table('template') .
" WHERE theme = '$theme' AND filename = '" . $tmp . "' AND type > 0 AND remarks=''".
' ORDER BY region, library, sort_order';
$res = $GLOBALS['db']->getAll($sql);

$dyna_libs = array();
foreach ($res AS $row)
{
$dyna_libs[$row['region']][$row['library']][] = array(
'id'=> $row['id'],
'number' => $row['number'],
'type'=> $row['type']
);
}

return $dyna_libs;
}

回答:
$ext = end();
$ar = explode('.', $tmp);
$ext = end($ar)




1329这一行 换成 这3行吗?




lib_base.php on line 346
求助这一句又是何解?




每次更换模版又出来1329。。。

新手看帖 学习中 礼貌顶帖