作者:sdcms 日期:2023-07-01 分类:CMS教程
01
<?php
02
if
(!defined(
'DEDEINC'
))
exit
(
'Request Error!'
);
03
04
function
lib_adminname(&$ctag, &$refObj)
05
{
06
global $dsql;
07
(empty($refObj->Fields[
'dutyadmin'
]))
08
09
$dutyadmin = $GLOBALS[
'cfg_df_dutyadmin'
];
10
}
11
else
12
13
$row = $dsql->GetOne(
"Select dutyadmin From `dede_archives` where id='{$refObj->Fields['dutyadmin']}' "
14
$dutyadmin = isset($row[
'uname'
]) ? $row[
] : $GLOBALS[
15
16
return
$dutyadmin;
17
18
19
?>