帝国CMS根据自定义页面ID获取自定义页面路径
2019-11-26 站长 站长日志
//根据自定义页面ID获取自定义页面路径
function CustomizePage($value){
global $empire,$dbtbpre;
$value = (int)$value;
if (!$value) {
return false;
}
$r = $empire -> fetch1("select path from {$dbtbpre}enewspage where id='{$value}'");
$path = str_replace('../../','/', $r['path']);
return $path;
}
function CustomizePage($value){
global $empire,$dbtbpre;
$value = (int)$value;
if (!$value) {
return false;
}
$r = $empire -> fetch1("select path from {$dbtbpre}enewspage where id='{$value}'");
$path = str_replace('../../','/', $r['path']);
return $path;
}