X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=mailid_top.php;h=0c54c6fc9bf20312f3244cb02962932e897da64e;hp=23e76732ad2c49c9fdb77cdcc9bfa2eeab01e4d9;hb=d7b48983fc0e628c38b3f4b98349060405261047;hpb=43885129ac24cee5545a8a5ad51e90aa182fdf46 diff --git a/mailid_top.php b/mailid_top.php index 23e76732ad..0c54c6fc9b 100644 --- a/mailid_top.php +++ b/mailid_top.php @@ -39,7 +39,7 @@ global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; // Tell everyone we are in this module -$GLOBALS['module'] = "mailid"; $CSS = "0"; +$GLOBALS['module'] = "mailid"; $CSS = 0; // Load the required file(s) require ("inc/config.php"); @@ -53,7 +53,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install } // Secure all data - $url_uid = "0"; $url_bid = "0"; $url_mid = "0"; $code = "0"; $mode = ""; + $url_uid = 0; $url_bid = 0; $url_mid = 0; $code = 0; $mode = ""; if (!empty($_GET['uid'])) $url_uid = bigintval($_GET['uid']); if (!empty($_GET['mailid'])) $url_mid = bigintval($_GET['mailid']); if (!empty($_GET['bonusid'])) $url_bid = bigintval($_GET['bonusid']); @@ -81,7 +81,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install if (SQL_NUMROWS($result) == 1) { // Is the stats ID valid? - list($link_id, $ltype) = SQL_FETCHROW($result); + list($lid, $ltype) = SQL_FETCHROW($result); SQL_FREERESULT($result); switch ($ltype) { @@ -109,12 +109,12 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install if ($ltype == "BONUS") $sender = 0; // Is the user's ID unlocked? - $result = SQL_QUERY_ESC("SELECT status, sex, surname, family, ref_payout FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", + $result = SQL_QUERY_ESC("SELECT status, gender, surname, family, ref_payout FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", array($url_uid), __FILE__, __LINE__); if (SQL_NUMROWS($result) == 1) { // Load data - list($status, $sex, $sname, $fname, $ref_pay) = SQL_FETCHROW($result); + list($status, $gender, $sname, $fname, $ref_pay) = SQL_FETCHROW($result); SQL_FREERESULT($result); if ($status == "CONFIRMED") @@ -257,7 +257,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install // Remove link from table $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_user_links WHERE id=%s LIMIT 1", - array(bigintval($link_id)), __FILE__, __LINE__); + array(bigintval($lid)), __FILE__, __LINE__); // Load total points define('__TOTAL_POINTS', TRANSLATE_COMMA( @@ -276,7 +276,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install // Remove link from table $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_user_links WHERE id=%s LIMIT 1", - array(bigintval($link_id)), __FILE__, __LINE__); + array(bigintval($lid)), __FILE__, __LINE__); // Load template LOAD_TEMPLATE("mailid_points_failed");