diff --git a/include/cleanup.php b/include/cleanup.php index 83529948..8e37bc43 100644 --- a/include/cleanup.php +++ b/include/cleanup.php @@ -884,6 +884,24 @@ function docleanup($forceAll = 0, $printProgress = false) { printProgress($log); } + //delete old cheaters + $until = date("Y-m-d H:i:s",(TIMENOW - $length)); + sql_query("DELETE FROM cheaters WHERE added < ".sqlesc($until)) or sqlerr(__FILE__, __LINE__); + $log = "delete old cheaters"; + do_log($log); + if ($printProgress) { + printProgress($log); + } + + //delete old shoutbox + $until = TIMENOW - $length; + sql_query("DELETE FROM shoutbox WHERE `date` < ".sqlesc($until)) or sqlerr(__FILE__, __LINE__); + $log = "delete old shoutbox"; + do_log($log); + if ($printProgress) { + printProgress($log); + } + //delete old ip log $length = 365*86400; //a year $until = date("Y-m-d H:i:s",(TIMENOW - $length)); @@ -895,7 +913,6 @@ function docleanup($forceAll = 0, $printProgress = false) { } //delete old general log - $secs = 365*86400; //a year $until = date("Y-m-d H:i:s",(TIMENOW - $length)); sql_query("DELETE FROM sitelog WHERE added < ".sqlesc($until)) or sqlerr(__FILE__, __LINE__); $log = "delete old general log"; diff --git a/include/functions.php b/include/functions.php index 153b14bd..325df660 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2266,8 +2266,10 @@ function menu ($selected = "home") { $selected = "rules"; }elseif (preg_match("/faq/i", $script_name)) { $selected = "faq"; - }elseif (preg_match("/staff/i", $script_name)) { - $selected = "staff"; + }elseif (preg_match("/contactstaff/i", $script_name)) { + $selected = "contactstaff"; + }elseif (preg_match("/staff/i", $script_name)) { + $selected = "staff"; }else $selected = ""; print ("
"); if ($CURUSER){ diff --git a/lang/chs/lang_functions.php b/lang/chs/lang_functions.php index b1481d43..c020dde3 100644 --- a/lang/chs/lang_functions.php +++ b/lang/chs/lang_functions.php @@ -318,6 +318,7 @@ $lang_functions = array 'spoiler_default_title' => '折叠内容', 'menu_claim' => '认领: ', 'text_complains' => '有%s%u个待处理的申诉%s', + 'text_contactstaff' => '联系管理组', ); ?> diff --git a/lang/cht/lang_functions.php b/lang/cht/lang_functions.php index 2841098d..71d6c396 100644 --- a/lang/cht/lang_functions.php +++ b/lang/cht/lang_functions.php @@ -325,6 +325,7 @@ $lang_functions = array 'spoiler_default_title' => '折疊內容', 'menu_claim' => '認領: ', 'text_complains' => '有%s%u個待處理的申诉%s', + 'text_contactstaff' => '聯系管理組', ); ?> diff --git a/lang/en/lang_functions.php b/lang/en/lang_functions.php index 3b4dad73..bc345744 100644 --- a/lang/en/lang_functions.php +++ b/lang/en/lang_functions.php @@ -326,6 +326,7 @@ $lang_functions = array 'spoiler_default_title' => 'Collapse content', 'menu_claim' => 'Claim: ', 'text_complains' => 'There %s %u pending complaint%s.', + 'text_contactstaff' => 'Contact staff', ); ?>