]> git.mxchange.org Git - mailer.git/commitdiff
Updated more parts to latest API
authorRoland Häder <roland@mxchange.org>
Thu, 4 Oct 2012 18:11:22 +0000 (18:11 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 4 Oct 2012 18:11:22 +0000 (18:11 +0000)
inc/extensions/ext-signup.php
inc/extensions/ext-sponsor.php

index 2a5abca7bde08ec9e43581a7fa6ae36261eef58b..211697fd60f202792858998303317edbb17efaec 100644 (file)
@@ -112,7 +112,7 @@ PRIMARY KEY (`id`)",
                addMemberMenuSql('main', 'signup', 'SignUp-Aktionen', 7);
 
                // Add entry to sponsor registry
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_registry` (`ext_name`, `is_active`, `admin_id`, `stamp_added`) VALUES ('signup', 'N', '".GET_ADMIN_ID($_COOKIE['admin_login'])."', '".time()."')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_registry` (`ext_name`, `is_active`, `admin_id`, `stamp_added`) VALUES ('signup', 'N', {%%pipe,getCurrentAdminId%%}, NOW())");
 
                // Sponsor menu
                addSponsorMenuSql('actions', 'signup', 'SignUp-Aktion', 'N', 2);
index 2a4d15c8dbb8a7c18cc491dd3c1497896f55263a..98eb105a8930027ab47b9d319187c2f0744bf8a3 100644 (file)
@@ -298,7 +298,7 @@ INDEX (`sponsor_id`)",
                //
                // Add default entries
                //
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_registry` (`ext_name`,`is_active`,`admin_id`,`stamp_added`) VALUES ('sponsor','N',".getCurrentAdminId().",NOW())");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_registry` (`ext_name`,`is_active`,`admin_id`,`stamp_added`) VALUES ('sponsor', 'N', {%%pipe,getCurrentAdminId%%}, NOW())");
                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_action_convert` (`ext_name`,`conv_rate`,`conv_name`) VALUES ('sponsor',10,'Mails')");
                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`,`pay_min_count`,`pay_rate`,`pay_currency`) VALUES ('Standard-Paket', 5, 1000.00000, '&euro;')");
                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`,`pay_min_count`,`pay_rate`,`pay_currency`) VALUES ('Spar-Paket', 1, 200.00000, '&euro;')");