以下为引用的内容: <?php if(!defined('DEDEINC')) exit('Request Error!'); function lib_adminname(&$ctag, &$refObj) { global $dsql; if(empty($refObj->Fields['dutyadmin'])) { $dutyadmin = $GLOBALS['cfg_df_dutyadmin']; } else { $row = $dsql->GetOne("Select dutyadmin From `dede_archives` where id='{$refObj->Fields['dutyadmin']}' "); $dutyadmin = isset($row['uname']) ? $row['uname'] : $GLOBALS['cfg_df_dutyadmin']; } return $dutyadmin; } ?> |