]> git.mxchange.org Git - mailer.git/blobdiff - doubler.php
Extension ext-theme doesn't need to be activated in admin area
[mailer.git] / doubler.php
index a9ab0c8ac952287c985acd9c704b3cb9571408de..04fb0d6a93596483fef630d8c6a0075c552dfda8 100644 (file)
@@ -116,7 +116,7 @@ if (isFormSent()) {
                                incrementConfigEntry('doubler_points', $points);
 
                                // Add second line for the referral but only when userid != refid
-                               if ((isValidUserId(determineReferralId())) && (determineReferralId() != getUserData('userid'))) {
+                               if ((isValidId(determineReferralId())) && (determineReferralId() != getUserData('userid'))) {
                                        // Okay add a refid line and apply refid percents
                                        SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_doubler` (`userid`, `refid`, `points`, `remote_ip`, `timemark`, `completed`, `is_ref`) VALUES (%s,0,%s,'%s',UNIX_TIMESTAMP(),'N','Y')",
                                                array(
@@ -179,13 +179,6 @@ if (getDoublerSendMode() == 'DIRECT') {
 // Output header
 loadIncludeOnce('inc/header.php');
 
-// Banner in text
-$content['banner'] = loadTemplate('doubler_banner', TRUE);
-
-// Load header/footer templates
-$content['header'] = loadTemplate('doubler_header', TRUE);
-$content['footer'] = loadTemplate('doubler_footer', TRUE);
-
 if (isUserDataValid()) {
        // Transfer userid/nickname to constant
        $content['refid'] = getUserData('userid');