]> git.mxchange.org Git - mailer.git/blobdiff - mailid_top.php
Extension 'yoomedia' now alpha status, some rewrites
[mailer.git] / mailid_top.php
index 6810f06aa3640aa10abcb69b18a1e0aed6e39249..eaa0d57c3400d1ad252112b1e0e69212bf445642 100644 (file)
@@ -44,7 +44,7 @@ $GLOBALS['module'] = "mailid";  $CSS = 0;
 // Load the required file(s)
 require ("inc/config.php");
 
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
+if (isBooleanConstantAndTrue('mxchange_installed'))
 {
        // Is the extension active
        if (!EXT_IS_ACTIVE("mailid", true)) {
@@ -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")
@@ -214,13 +214,13 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
                                                                                // Right code entered add points and remove entry
                                                                                if (($ref_pay > 0) && ($_CONFIG['allow_direct_pay'] == "N"))
                                                                                {
-                                                                                       // Don't add points over the referral system
+                                                                                       // Don't add points over the referal system
                                                                                        $locked = true;
                                                                                        $template = "mailid_points_locked";
                                                                                }
                                                                                 else
                                                                                {
-                                                                                       // Add points over referral system
+                                                                                       // Add points over referal system
                                                                                        $locked = false;
                                                                                        $template = "mailid_points_done";
                                                                                }
@@ -322,7 +322,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
                                                                        define('_UID_VALUE' , $url_uid );
                                                                        define('_TYPE_VALUE', $type);
                                                                        define('_DATA_VALUE', $DATA);
-                                                                       define('_RAND_VALUE', rand(0, 99999));
+                                                                       define('_RAND_VALUE', mt_rand(0, 99999));
                                                                        define('_TEMPLATE_BANNER', LOAD_TEMPLATE("mailid_banner", true));
 
                                                                        // Load template