]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-doubler.php
This TODOs.txt thing...
[mailer.git] / inc / extensions / ext-doubler.php
index 8181c9e06fa060ce051b8f0aa73710ce5f46293c..687eb03739b26a38dfb5502b6c9ed7ef60c882b1 100644 (file)
@@ -14,8 +14,6 @@
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
@@ -58,13 +56,13 @@ switch (getExtensionMode()) {
 `refid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `points` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
 `remote_ip` VARCHAR(15) NOT NULL DEFAULT '0.0.0.0',
-`timemark` VARCHAR(10) NOT NULL DEFAULT '',
+`timemark` BIGINT(10) NOT NULL DEFAULT 0,
 `completed` ENUM('Y','N') NOT NULL DEFAULT 'N',
 `is_ref` ENUM('Y','N') NOT NULL DEFAULT 'N',
 KEY (`refid`),
 KEY (`userid`),
 PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
 
                //
                // --- SETTINGS ---
@@ -89,7 +87,7 @@ PRIMARY KEY (`id`)
                // --> This also means who fast the doubled points will be payed out!
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD doubler_send_mode ENUM('DIRECT','RESET') NOT NULL DEFAULT 'DIRECT'");
                // Timeout for entries to be purged (default: one week)
-               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `doubler_timeout` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getConfig('ONE_DAY')*7)."");
+               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `doubler_timeout` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getOneDay()*7)."");
                // Number of newest entries to display
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `doubler_display_new` TINYINT(3) UNSIGNED NOT NULL DEFAULT 10");
                // Number of entries which will be payed out soon