mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-01-22 23:36:50 +08:00
更新至V1.76,更新内容在笔记中查看
This commit is contained in:
@@ -189,21 +189,6 @@ function getinvite()
|
||||
return $result;
|
||||
}
|
||||
|
||||
function replacesitevar($string, $replaces = array())
|
||||
{
|
||||
global $_G;
|
||||
$sitevars = array(
|
||||
'{sitename}' => $_G['setting']['sitename'],
|
||||
|
||||
'{time}' => dgmdate(TIMESTAMP, 'Y-n-j H:i'),
|
||||
'{adminemail}' => $_G['setting']['adminemail'],
|
||||
'{username}' => $_G['member']['username'],
|
||||
'{myname}' => $_G['member']['username']
|
||||
);
|
||||
$replaces = array_merge($sitevars, $replaces);
|
||||
return str_replace(array_keys($replaces), array_values($replaces), $string);
|
||||
}
|
||||
|
||||
function clearcookies()
|
||||
{
|
||||
global $_G;
|
||||
|
||||
Reference in New Issue
Block a user