]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-bank.php
Also update copyright in these files
[mailer.git] / inc / extensions / ext-bank.php
index 1dd49d1585524c28e6de416511d4b235f9185cb3..81247027031eefa0babb3a88f081cd74644466d3 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -47,10 +47,10 @@ 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
+       case 'setup': // Do stuff when installation is running
                // SQL commands to run
                addDropTableSql('bank_accounts');
                addCreateTableSql('bank_accounts', "
@@ -74,7 +74,7 @@ switch (getExtensionMode()) {
 `overdraft_credit` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
 PRIMARY KEY (`id`),
 UNIQUE INDEX (`pin`),
-INDEX `userid_type` (`userid`,`account_type`),
+INDEX `userid_type` (`userid`, `account_type`),
 INDEX (`account_created`),
 INDEX (`account_locked`),
 INDEX (`last_tan_stamp`)",
@@ -90,8 +90,8 @@ INDEX (`last_tan_stamp`)",
 `day_available` CHAR(4) NOT NULL DEFAULT '0000',
 `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');
@@ -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 INDEX (`account_id`,`tan`)",
+UNIQUE INDEX (`account_id`, `tan`)",
                        'Bank TAN lists per user');
 
                // Admin menu queries
@@ -198,7 +198,7 @@ UNIQUE INDEX (`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