X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_beg.php;h=65a445250150c5d9535f60a9f62ee8cca80bdd12;hb=77cdaff2afb97ed32985ced906a3a95ee078c2ef;hp=4340ef0a9f175a25ae2459b2aca5766cffd8e0ad;hpb=56156f6c4392510cdbe0eb4f2ccefc23b43e2672;p=mailer.git
diff --git a/inc/modules/admin/what-list_beg.php b/inc/modules/admin/what-list_beg.php
index 4340ef0a9f..65a4452501 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,15 +59,15 @@ 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
-WHERE status='CONFIRMED' AND beg_points > 0".$LAST."
+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__);
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')) {
@@ -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', "