]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-sponsor.php
Major fixes in filters/extensions, other improvements:
[mailer.git] / inc / extensions / ext-sponsor.php
index 84746d4e1eba1dda7b6eadfd89dd9286873cf653..8bc5cf8fc959d791b3c48d852b838ff2ea974ce1 100644 (file)
@@ -83,7 +83,7 @@ last_online VARCHAR(10) NOT NULL DEFAULT 0,
 last_change VARCHAR(10) NOT NULL DEFAULT 0,
 status ENUM('UNCONFIRMED','PENDING','CONFIRMED','LOCKED') NOT NULL DEFAULT 'UNCONFIRMED',
 receive_warnings ENUM('Y','N') NOT NULL DEFAULT 'Y',
-warning_interval BIGINT(20) UNSIGNED NOT NULL DEFAULT '".($_CONFIG['one_day']*7)."',
+warning_interval BIGINT(20) UNSIGNED NOT NULL DEFAULT '".(getConfig('one_day')*7)."',
 points_amount FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
 points_used FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
 refid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
@@ -295,7 +295,7 @@ PRIMARY KEY(id)
        //
        // Add default entries
        //
-       $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_registry (ext_name, is_active, aid, stamp_added) VALUES ('sponsor','N','".GET_ADMIN_ID(get_session('admin_login'))."','UNIX_TIMESTAMP()')";
+       $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_registry (ext_name, is_active, aid, stamp_added) VALUES ('sponsor','N',".GET_CURRENT_ADMIN_ID().",UNIX_TIMESTAMP())";
        $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_action_convert (ext_name, conv_rate, conv_name) VALUES ('sponsor','10','Mails')";
        $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_paytypes (pay_name, pay_min_count, pay_rate, pay_currency) VALUES ('Standart-Paket', 5, 1000.00000, '€')";
        $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_paytypes (pay_name, pay_min_count, pay_rate, pay_currency) VALUES ('Spar-Paket', 1, 200.00000, '€')";
@@ -417,6 +417,9 @@ case "update": // Update an extension
        }
        break;
 
+case "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
+       break;
+
 default: // Do stuff when extension is loaded
        break;
 }