]> git.mxchange.org Git - mailer.git/blobdiff - mailid.php
New template helper function doTemplateExtensionRegistrationLink() introduced
[mailer.git] / mailid.php
index d0c4dbf7d7483c0516780422793a2734eb05d4a9..b7d50bf0b4c0c6fa23916fea16f0917480952b39 100644 (file)
@@ -77,12 +77,14 @@ if ((isValidUserId($url_userid)) && (($url_mid > 0) || ($url_bid > 0)) && (!ifFa
                // Normal-Mails
                $result_link = SQL_QUERY_ESC("SELECT `link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `stats_id`=%s AND `userid`=%s LIMIT 1",
                        array($url_mid, $url_userid), __FILE__, __LINE__);
-               $type = 'mailid'; $urlId = $url_mid;
+               $type = 'mailid';
+               $urlId = $url_mid;
        } elseif ($url_bid > 0) {
                // Bonus-Mail
                $result_link = SQL_QUERY_ESC("SELECT `link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `bonus_id`=%s AND `userid`=%s LIMIT 1",
                        array($url_bid, $url_userid), __FILE__, __LINE__);
-               $type = 'bonusid'; $urlId = $url_bid;
+               $type = 'bonusid';
+               $urlId = $url_bid;
        } else {
                // Problem: No id entered
                redirectToUrl('modules.php?module=index');
@@ -175,7 +177,11 @@ if ((isValidUserId($url_userid)) && (($url_mid > 0) || ($url_bid > 0)) && (!ifFa
                                        // 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 = getUrl(); $time = 1; }
+                                               if (($time == '0') && ($payment > 0)) { 
+                                                       $URL = getUrl();
+                                                       $time = 1; 
+                                               } // END - if
+
                                                if (($time > 0) && (($payment > 0) || ($points > 0))) {
                                                        // Export data into constants for the template
                                                        $content = array(