X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-doubler.php;h=9d784494aab90fd522ac579b66fcd532ecdf8797;hb=3ce031a4ae807dd16a6e08e3e592fe7128de724a;hp=255966532692bcbef9b020203d5920a726b6fd83;hpb=adb34cea9c14bcac14030f8eb1e6ae2c3231c962;p=mailer.git diff --git a/inc/extensions/ext-doubler.php b/inc/extensions/ext-doubler.php index 2559665326..9d784494aa 100644 --- a/inc/extensions/ext-doubler.php +++ b/inc/extensions/ext-doubler.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -39,7 +40,7 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} +} // END - if // Version number setThisExtensionVersion('0.1.6'); @@ -52,18 +53,18 @@ switch (getExtensionMode()) { // Doubler table addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_doubler`"); addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_doubler` ( -id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, -userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, -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 '', -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=MYISAM"); +`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, +`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, +`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 '', +`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?}"); // // --- SETTINGS --- @@ -243,7 +244,7 @@ PRIMARY KEY (id) break; default: // Unknown extension mode - logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s detected.", getExtensionMode())); + logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); break; }