]> git.mxchange.org Git - mailer.git/blobdiff - mailid.php
Should not be loadInclude() here, we need to rewrite EXT_LOAD_MODE and EXT_VER here
[mailer.git] / mailid.php
index 34de98562876460a958ae3dd910dc3101bda1557..dfc023c0554aa816cc4a5a4fb3b2121f859048e8 100644 (file)
@@ -148,7 +148,7 @@ if (($url_uid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErrors
                                                                $time      = getPaymentPoints($pay, 'time');
                                                                $payment   = getPaymentPoints($pay, 'payment');
                                                                $isValid   = true;
-                                                       }
+                                                       } // END - if
 
                                                        // Free memory
                                                        SQL_FREERESULT($result);
@@ -156,7 +156,7 @@ if (($url_uid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErrors
 
                                                case 'BONUS':
                                                        $result = SQL_QUERY_ESC("SELECT points, time FROM `{!_MYSQL_PREFIX!}_bonus` WHERE `id`=%s LIMIT 1",
-                                                       array($url_bid), __FILE__, __LINE__);
+                                                               array($url_bid), __FILE__, __LINE__);
                                                        if (SQL_NUMROWS($result) == 1) {
                                                                list($points, $time) = SQL_FETCHROW($result);
                                                                $payment = '0.00000';
@@ -178,15 +178,15 @@ if (($url_uid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErrors
                                        // Was that mail a valid one?
                                        if ($isValid === true) {
                                                // If time is zero seconds we have a sponsor mail. 1 Second shall be set to avoid problems
-                                               if (($time == '0') && ($payment > 0)) { $URL = constant('URL'); $time = '1'; }
+                                               if (($time == '0') && ($payment > 0)) { $URL = getConfig('URL'); $time = '1'; }
                                                if (($time > 0) && (($payment > 0) || ($points > 0))) {
-                                                       // He can confirm this mail!
                                                        // Export data into constants for the template
-                                                       // @TODO Rewrite these constants
-                                                       define('_UID_VALUE' , $url_uid);
-                                                       define('_TYPE_VALUE', $type);
-                                                       define('_DATA_VALUE', $urlId);
-                                                       define('_URL_VALUE' , DEREFERER($URL));
+                                                       $content = array(
+                                                               'uid'  => $url_uid,
+                                                               'type' => $type,
+                                                               'data' => $urlId,
+                                                               'url'  => DEREFERER($URL)
+                                                       );
 
                                                        // Load template
                                                        LOAD_TEMPLATE('mailid_frames');