Some global variables rewritten, a lot more language constants rewritten to getMessage()
[mailer.git] / mailid_top.php
index 3fa788bd4b65fbd3e3dd346b6904693d12cd70df..dda1814a29108bda32a5c04d11f5f4663cfc2c77 100644 (file)
@@ -74,11 +74,11 @@ if (isInstalled()) {
                if ($url_mid > 0) {
                        $result = SQL_QUERY_ESC("SELECT id, link_type FROM `{!_MYSQL_PREFIX!}_user_links` WHERE stats_id=%s AND userid=%s LIMIT 1",
                         array($url_mid, $url_uid), __FILE__, __LINE__);
-                       $type = "mailid"; $DATA = $url_mid;
+                       $type = "mailid"; $urlId = $url_mid;
                } elseif ($url_bid > 0)         {
                        $result = SQL_QUERY_ESC("SELECT id, link_type FROM `{!_MYSQL_PREFIX!}_user_links` WHERE bonus_id=%s AND userid=%s LIMIT 1",
                         array($url_bid, $url_uid), __FILE__, __LINE__);
-                       $type = "bonusid"; $DATA = $url_bid;
+                       $type = "bonusid"; $urlId = $url_bid;
                }
 
                if (SQL_NUMROWS($result) == 1) {
@@ -139,7 +139,7 @@ if (isInstalled()) {
                                                                list($pay) = SQL_FETCHROW($result);
                                                                $time      = GET_PAY_POINTS($pay, "time");
                                                                $payment   = GET_PAY_POINTS($pay, "payment");
-                                                               $VALID     = true;
+                                                               $isValid   = true;
                                                        } // END - if
 
                                                        // Free memory...
@@ -153,7 +153,7 @@ if (isInstalled()) {
                                                        // Entry found?
                                                        if (SQL_NUMROWS($result) == 1) {
                                                                list($time, $payment) = SQL_FETCHROW($result);
-                                                               $VALID = true;
+                                                               $isValid = true;
                                                        }
 
                                                        // Free memory...
@@ -162,12 +162,12 @@ if (isInstalled()) {
                                                }
 
                                                // Is this entry valid?
-                                               if ($VALID) {
+                                               if ($isValid) {
                                                        if (($time == "0") && ($payment > 0)) $time = "1";
                                                        if (($time > 0) && ($payment > 0)) {
                                                                if (!empty($code)) {
                                                                        // Generate code
-                                                                       $img_code = generateRandomCodde(getConfig('code_length'), $code, $url_uid, $DATA);
+                                                                       $img_code = generateRandomCodde(getConfig('code_length'), $code, $url_uid, $urlId);
                                                                } // END - if
 
                                                                switch ($mode) {
@@ -253,14 +253,14 @@ if (isInstalled()) {
                                                                                                // Shall I exclude the webmaster's own userid from the active-rallye?
                                                                                                if ((((getConfig('bonus_uid') == $url_uid) && (getConfig('bonus_include_own') == "Y")) || (getConfig('bonus_uid') != $url_uid)) && (getConfig('def_refid') != $url_uid)) {
                                                                                                        // Add points and remember ranking are done in this function....
-                                                                                                       BONUS_ADD_TURBO_POINTS($DATA, $url_uid, $type);
+                                                                                                       BONUS_ADD_TURBO_POINTS($urlId, $url_uid, $type);
 
                                                                                                        // Set template to mailid_points_done2 which contains a link to the ranking list
                                                                                                        $template = "mailid_points_done2";
                                                                                                        if ($locked) $template = "mailid_points_locked2";
                                                                                                        define('_UID_VALUE' , $url_uid);
                                                                                                        define('_TYPE_VALUE', $type);
-                                                                                                       define('_DATA_VALUE', TRANSLATE_COMMA($DATA));
+                                                                                                       define('_DATA_VALUE', TRANSLATE_COMMA($urlId));
                                                                                                } // END - if
                                                                                        } // END - if
                                                                                } // END - if
@@ -297,11 +297,11 @@ if (isInstalled()) {
                                                                                define('_CODE_VALUE', $code);
                                                                                define('_UID_VALUE' , $url_uid );
                                                                                define('_TYPE_VALUE', $type);
-                                                                               define('_DATA_VALUE', $DATA);
+                                                                               define('_DATA_VALUE', $urlId);
                                                                                define('_TEMPLATE_BANNER', LOAD_TEMPLATE("mailid_banner", true));
                                                                                if (getConfig('code_length') > 0) {
                                                                                        // Generate Code
-                                                                                       define('_IMAGE_CODE', IMG_CODE($code, $type, $DATA, $url_uid));
+                                                                                       define('_IMAGE_CODE', IMG_CODE($code, $type, $urlId, $url_uid));
                                                                                        $templ = "mailid_enter_code";
                                                                                } else {
                                                                                        // Disabled code
@@ -321,7 +321,7 @@ if (isInstalled()) {
                                                                        define('_TIM2_VALUE', strlen($time));
                                                                        define('_UID_VALUE' , $url_uid );
                                                                        define('_TYPE_VALUE', $type);
-                                                                       define('_DATA_VALUE', $DATA);
+                                                                       define('_DATA_VALUE', $urlId);
                                                                        define('_RAND_VALUE', mt_rand(0, 99999));
                                                                        define('_TEMPLATE_BANNER', LOAD_TEMPLATE("mailid_banner", true));