X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fextensions%2Fext-bank.php;h=5b3d46f9dab8d7cbeab4cefbb3071331603bdc1a;hb=dcef6adecbcb4da06de4118258e67308b341e47f;hp=eaaa1a8b76cb8e9774c8ff2eccb1e6be3e8ab99f;hpb=0f3a135204757cc8750262871c8e62c42300acb4;p=mailer.git diff --git a/inc/extensions/ext-bank.php b/inc/extensions/ext-bank.php index eaaa1a8b76..5b3d46f9da 100644 --- a/inc/extensions/ext-bank.php +++ b/inc/extensions/ext-bank.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -47,7 +47,7 @@ setThisExtensionVersion('0.0.0'); setExtensionVersionHistory(array('0.0.0')); // This extension is in development (non-productive) -enableExtensionProductive(false); +enableExtensionProductive(FALSE); switch (getExtensionMode()) { case 'register': // Do stuff when installation is running @@ -58,7 +58,7 @@ switch (getExtensionMode()) { `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `account_created` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `account_locked` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, -`locked_reason` TINYTEXT, +`locked_reason` TINYTEXT NOT NULL, `status` ENUM('NEW','ACTIVE','LOCKED') NOT NULL DEFAULT 'NEW', `account_balance` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000, `output_mode` ENUM('LOGIN','EMAIL','DISABLED'), @@ -69,12 +69,12 @@ switch (getExtensionMode()) { `month_transfered` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `last_tan` VARCHAR(5) NOT NULL DEFAULT '00000', `last_tan_stamp` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, -`last_tan_purpose` TINYTEXT, +`last_tan_purpose` TINYTEXT NOT NULL, `account_type` ENUM('CHECK','SAVING') NOT NULL DEFAULT 'CHECK', `overdraft_credit` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000, PRIMARY KEY (`id`), -UNIQUE (`pin`), -INDEX `userid_type` (`userid`,`account_type`), +UNIQUE INDEX (`pin`), +INDEX `userid_type` (`userid`, `account_type`), INDEX (`account_created`), INDEX (`account_locked`), INDEX (`last_tan_stamp`)", @@ -88,17 +88,17 @@ INDEX (`last_tan_stamp`)", `points_amount` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000, `day_bookkeeping` CHAR(4) NOT NULL DEFAULT '0000', `day_available` CHAR(4) NOT NULL DEFAULT '0000', -`transfer_purpose` TINYTEXT, +`transfer_purpose` TINYTEXT NOT NULL, PRIMARY KEY (`id`), -INDEX (`to_account_id`,`from_account_id`), -INDEX (`day_bookkeeping`,`day_available`)", +INDEX (`to_account_id`, `from_account_id`), +INDEX (`day_bookkeeping`, `day_available`)", 'Bank user->user transfers'); addDropTableSql('bank_packages'); addCreateTableSql('bank_packages', " `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `title` VARCHAR(255) NOT NULL DEFAULT '', -`description` TINYTEXT, +`description` TINYTEXT NOT NULL, `account_fee` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000, `free_transfers` INT(7) UNSIGNED NOT NULL DEFAULT 0, `transfer_fee` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000, @@ -127,7 +127,7 @@ PRIMARY KEY (`id`)", `tan` VARCHAR(50) NOT NULL DEFAULT '', `used` ENUM('Y','N') NOT NULL DEFAULT 'N', PRIMARY KEY (`id`), -UNIQUE (`account_id`,`tan`)", +UNIQUE INDEX (`account_id`, `tan`)", 'Bank TAN lists per user'); // Admin menu queries @@ -169,12 +169,12 @@ UNIQUE (`account_id`,`tan`)", case 'activate': // Do stuff when admin activates this extension // SQL commands to run - addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y', `locked`='N' WHERE `action`='bank' LIMIT 8"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y',`locked`='N' WHERE `action`='bank' LIMIT 8"); break; case 'deactivate': // Do stuff when admin deactivates this extension // SQL commands to run - addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='N', `locked`='Y' WHERE `action`='bank' LIMIT 8"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='N',`locked`='Y' WHERE `action`='bank' LIMIT 8"); break; case 'update': // Update an extension @@ -198,7 +198,7 @@ UNIQUE (`account_id`,`tan`)", break; default: // Unknown extension mode - logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); + reportBug(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); break; } // END - switch