X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-list_beg.php;h=8619711604e6cafba1ebd79332a98b1ccc4ff1a8;hb=5bdeaf8b452206598b6c6cd4f941145b11a0eccc;hp=61ef7cfb557426d8e52a25afbe86a84d158098c5;hpb=f9a9c09e1ae257449bfd98f8854e321efba1dc3c;p=mailer.git diff --git a/inc/modules/admin/what-list_beg.php b/inc/modules/admin/what-list_beg.php index 61ef7cfb55..8619711604 100644 --- a/inc/modules/admin/what-list_beg.php +++ b/inc/modules/admin/what-list_beg.php @@ -46,8 +46,7 @@ if (getConfig('beg_rallye') == "Y") { $curr = date("m", time()) - 1; if (strlen($curr) == 1) $curr = "0".$curr; UPDATE_CONFIG("last_month", $curr); - LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_BEG_WITHDRAW_PREPARED); - OUTPUT_HTML("
"); + LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_BEG_WITHDRAW_PREPARED')); } // END - if // Autopurge installed? @@ -60,7 +59,7 @@ if (getConfig('beg_rallye') == "Y") { // Check if at least one is in the active rallye $result = SQL_QUERY_ESC("SELECT userid, email, gender, surname, family, beg_points, last_online -FROM "._MYSQL_PREFIX."_user_data +FROM `{!_MYSQL_PREFIX!}_user_data` WHERE status='CONFIRMED' AND beg_points > 0".$LAST." ORDER BY beg_points DESC, last_online DESC, userid", array($ONLINE), __FILE__, __LINE__); @@ -68,13 +67,13 @@ ORDER BY beg_points DESC, last_online DESC, userid", if (SQL_NUMROWS($result) > 0) { // List users $OUT = "";$SW = 2; $cnt = 1; $total = 0; - while(list($uid, $email, $gender, $sname, $fname, $turbo, $last) = SQL_FETCHROW($result)) { + while (list($uid, $email, $gender, $sname, $fname, $turbo, $last) = SQL_FETCHROW($result)) { // Init variables $WIN1 = ""; $WIN2 = ""; if ($cnt <= getConfig('beg_ranks')) { // Maybe he can win his active beg? - $WIN1 = ""; - $WIN2 = ""; + $WIN1 = ""; + $WIN2 = ""; } // END - if // Prepare content @@ -105,7 +104,7 @@ ORDER BY beg_points DESC, last_online DESC, userid", define('__BEG_WITHDRAW_FORM', LOAD_TEMPLATE("admin_list_beg_form", true)); } else { // Display message "no manual withdraw possible" - define('__BEG_WITHDRAW_FORM', "".ADMIN_BEG_ALREADY_WITHDRAW.""); + define('__BEG_WITHDRAW_FORM', "
{!ADMIN_BEG_ALREADY_WITHDRAW!}
"); } // Prepare constant for timemark @@ -119,11 +118,11 @@ ORDER BY beg_points DESC, last_online DESC, userid", LOAD_TEMPLATE("admin_list_beg"); } else { // No one has joined the begging rallye... - LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_BEG_NO_RALLYE); + LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_BEG_NO_RALLYE')); } } else { // Rallye deactivated - LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_BEG_RALLYE_DEACTIVATED); + LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_BEG_RALLYE_DEACTIVATED')); } //