Menu entries moved to ext-user:
authorRoland Häder <roland@mxchange.org>
Thu, 14 Jul 2011 15:51:40 +0000 (15:51 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 14 Jul 2011 15:51:40 +0000 (15:51 +0000)
- 'add_points' and 'sub_points' are user actions and should belong into ext-user
- Some minor comment improvements

28 files changed:
inc/extensions/ext-admins.php
inc/extensions/ext-bank.php
inc/extensions/ext-birthday.php
inc/extensions/ext-cache.php
inc/extensions/ext-country.php
inc/extensions/ext-coupon.php
inc/extensions/ext-grade.php
inc/extensions/ext-holiday.php
inc/extensions/ext-menu.php
inc/extensions/ext-newsletter.php
inc/extensions/ext-nickname.php
inc/extensions/ext-primera.php
inc/extensions/ext-rallye.php
inc/extensions/ext-register.php
inc/extensions/ext-removeip.php
inc/extensions/ext-sponsor.php
inc/extensions/ext-sql_patches.php
inc/extensions/ext-surfbar.php
inc/extensions/ext-task.php
inc/extensions/ext-theme.php
inc/extensions/ext-transfer.php
inc/extensions/ext-user.php
inc/filters.php
inc/functions.php
inc/libs/register_functions.php
inc/modules/member/what-transfer.php
inc/referal-functions.php
install/tables.sql

index c70d07f972535244dbc9fbabf5b30bcc1221e6e5..441307bbb5a9a165121b2641d64290766311d943 100644 (file)
@@ -110,7 +110,7 @@ switch (getExtensionMode()) {
 `what_menu` VARCHAR(255) NOT NULL DEFAULT '',
 `access_mode` ENUM('deny','allow') NOT NULL DEFAULT 'deny',
 PRIMARY KEY (`id`),
-KEY (`admin_id`)",
+INDEX (`admin_id`)",
                                        'Access control lines (ACLs)');
 
                                // Update notes (these will be set as task text!)
@@ -291,7 +291,7 @@ INDEX (`admin_id`)",
                                break;
 
                        case '0.7.1': // SQL queries for v0.7.1
-                               // Update depends on sql_patches
+                               // Update depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
 
                                // Add filters
index 3c12856dff52b362310ba85fae9acbf7df1cb8c6..2a146ade0bfe156803a31c8e5adc0ff47e590ce1 100644 (file)
@@ -73,7 +73,7 @@ switch (getExtensionMode()) {
 `account_type` ENUM('CHECK','SAVING') NOT NULL DEFAULT 'CHECK',
 `overdraft_credit` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
 PRIMARY KEY (`id`),
-UNIQUE KEY (`pin`),
+UNIQUE (`pin`),
 INDEX `userid_type` (`userid`, `account_type`),
 INDEX (`account_created`),
 INDEX (`account_locked`),
index 223b85d70f229c38ced9f7ca40fbf2b678f38910..e2f2af4a72459c964aaf821db27ba1f765457520 100644 (file)
@@ -84,7 +84,7 @@ switch (getExtensionMode()) {
 `points` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `chk_value` VARCHAR(255) NOT NULL DEFAULT '',
 PRIMARY KEY (`id`),
-KEY (`userid`)",
+INDEX (`userid`)",
                                        'Pending birthday codes');
 
                                // Admin menu
index fe584e1459301fbc5f971a0d1907d1d268f7d4c2..b77955a9f6dd2b9497af0eb0256d1c96751d9ab2 100644 (file)
@@ -184,7 +184,7 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.2.0': // SQL queries for v0.2.0
-                               // This update depends on sql_patches
+                               // This update depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
 
                                // Update notes (these will be set as task text!)
index a8a8fe739294ff1da0fd5c1219d5d322cdb65b9e..f7a229d83ac8acac26b421bb3b5e88391554c4dc 100644 (file)
@@ -59,7 +59,7 @@ switch (getExtensionMode()) {
 `descr` VARCHAR(255) NOT NULL DEFAULT 'Deutschland',
 `is_active` ENUM('Y','N') NOT NULL DEFAULT 'N',
 PRIMARY KEY (`id`),
-UNIQUE KEY (`code`)",
+UNIQUE (`code`)",
                        'Country codes and their full-length descriptions');
 
                // Insert first (Germany) country
index 7b532b083011331531ba128adda8a6bcb4de9a03..0e0b934bd44f0c2c551e651a595f7c702ef3945e 100644 (file)
@@ -77,8 +77,8 @@ PRIMARY KEY (`id`)",
 `coupon_code` VARCHAR(30) NULL DEFAULT NULL,
 `cashed_on` TIMESTAMP NULL DEFAULT NULL,
 PRIMARY KEY (`id`),
-UNIQUE KEY `coupon_user` (`coupon_id`, `userid`),
-UNIQUE KEY (`coupon_code`)",
+UNIQUE `coupon_user` (`coupon_id`, `userid`),
+UNIQUE (`coupon_code`)",
                        'Coupon->user connection');
 
                // Configuration entries
index c09535931cf18fdb2bc6155b307e82017abeacf5..5302dc70e6b65626823dbc4e39a53bb198b70040 100644 (file)
@@ -59,7 +59,7 @@ switch (getExtensionMode()) {
 `grade_description` TINYTEXT NOT NULL,
 `grade_parent_id` BIGINT(20) UNSIGNED NULL DEFAULT NULL,
 PRIMARY KEY (`id`),
-UNIQUE KEY (`grade_name`),
+UNIQUE (`grade_name`),
 INDEX (`grade_parent_id`)",
                        'Grade general data');
 
@@ -73,7 +73,7 @@ INDEX (`grade_parent_id`)",
 `reached_mails` BIGINT(20) UNSIGNED NULL DEFAULT NULL,
 `time_valid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`id`),
-UNIQUE KEY (`grade_cash_name`)",
+UNIQUE (`grade_cash_name`)",
                        'Grade data if the grade have been "cashed"');
 
                // Connection grade<->cash data
@@ -83,7 +83,7 @@ UNIQUE KEY (`grade_cash_name`)",
 `grade_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `grade_cash_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`id`),
-UNIQUE KEY `grade_cash` (`grade_id`, `grade_cash_id`),
+UNIQUE `grade_cash` (`grade_id`, `grade_cash_id`),
 INDEX (`grade_cash_id`)",
                        'Grade<->cash data connection');
 
@@ -95,7 +95,7 @@ INDEX (`grade_cash_id`)",
 `grade_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `grade_expired` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
 PRIMARY KEY (`id`),
-UNIQUE KEY (`userid`, `grade_id`),
+UNIQUE (`userid`, `grade_id`),
 INDEX (`grade_id`)",
                        'Grade<->user connection');
 
index dedf0828dd5db95d1207ea21fc67bd6bf2603f4d..765fd276d72de362de9cdb52ffc4ab4b0ab21afb 100644 (file)
@@ -191,7 +191,7 @@ INDEX (`userid`)",
                                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('member', '', 'del_holiday')");
                                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('config', '', 'config_holiday')");
 
-                               // Depends on sql_patches (or you have to execute these both SQL statements by phpMyAdmin
+                               // Depends on ext-sql_patches (or you have to execute these both SQL statements by phpMyAdmin
                                addExtensionDependency('sql_patches');
 
                                // Update notes (these will be set as task text!)
index c7e9681b923cc7ea183eb0d7fa73986dc48ff0a9..67991a4b55a8716d1147f51ef9c27115abde864d 100644 (file)
@@ -97,14 +97,15 @@ switch (getExtensionMode()) {
                                // Change menu-string
                                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `title`='Admin-Men&uuml; editieren' WHERE `what` = 'adminedit' LIMIT 1");
 
+                               // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Men&uuml;punkt &#39;Vom Admin editieren&#39; in &#39;Admin-Men&uuml; editieren&#39; bei bereits bestehenden Installationen um&auml;ndern.");
                                break;
 
                        case '0.0.4': // SQL queries for v0.0.4
                                // Change menu-string
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_admin_menu` CHANGE `title` `title` VARCHAR(255) NOT NULL DEFAULT ''");
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `title`='{OPEN_TEMPLATE}DEFAULT_POINTS{CLOSE_TEMPLATE} gutschreiben' WHERE `what` = 'add_points' LIMIT 1");
 
+                               // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("VARCHAR(50) ist zu kurz f&uuml;r Linktitel (wegen der dynamischen Anteile).");
                                break;
                } // END - switch
index f3ee17bd03b19e4b48a44ed79a2d8b1311aa358e..a6211df68302821dc0f1f4157478d44e827269e2 100644 (file)
@@ -179,7 +179,7 @@ INDEX `newsletter_id` (`nl_id`)",
 `nl_order_placed` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
 `nl_order_accepted` ENUM('Y','N') NOT NULL DEFAULT 'N',
 PRIMARY KEY (`nl_order_id`),
-UNIQUE KEY `sponsor_nl_topic` (`nl_sponsor_id`, `nl_id`, `nl_topic_id`),
+UNIQUE `sponsor_nl_topic` (`nl_sponsor_id`, `nl_id`, `nl_topic_id`),
 INDEX `topic` (`nl_topic_id`)",
                                        'Newsletter orders');
 
index 2de44ce775ab491c4135d9e60a9072d330628624..473be774721575749a365e0cccff01e2285f3064 100644 (file)
@@ -74,7 +74,7 @@ switch (getExtensionMode()) {
        case 'update': // Update an extension
                switch (getCurrentExtensionVersion()) {
                        case '0.0.1': // SQL queries for v0.0.1
-                               // This update depends on sql_patches update!
+                               // This update depends on ext-sql_patches update!
                                addExtensionDependency('sql_patches');
 
                                // Update notes (these will be set as task text!)
index 479be17bd6544ef96d23d695df709415d85138ad..9d7373da88558fcacc7211f59d90c4a830ed2104 100644 (file)
@@ -65,7 +65,7 @@ switch (getExtensionMode()) {
 `primera_api_message` TINYTEXT,
 `primera_api_status` VARCHAR(255) NULL DEFAULT NULL,
 PRIMARY KEY (`id`),
-KEY (`userid`)",
+INDEX (`userid`)",
                        'Transfers in Primera');
 
                // Configuration
index 812197fd9e13aa2dee599335e2accc16e38ea4ca..54842a0d8d10bd9d83e961d4c97bad8408972185 100644 (file)
@@ -63,7 +63,7 @@ switch (getExtensionMode()) {
 `send_notify` ENUM('Y','N') NOT NULL DEFAULT 'Y',
 `notified` ENUM('Y','N') NOT NULL DEFAULT 'N',
 PRIMARY KEY (`id`),
-KEY (`admin_id`)",
+INDEX (`admin_id`)",
                        'Main rallye data');
 
                addDropTableSql('rallye_prices');
@@ -308,7 +308,7 @@ Zudem sollten Sie mindestens folgende Templates (in <strong>templates/".getLangu
                                break;
 
                        case '0.3.5': // SQL queries for 0.3.5
-                               // This update depends on sql_patches
+                               // This update depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
 
                                // Register filter
index 473c5195d0b677f99f49d6364a7b2b9adad69f1b..5dbc85aaa25d26d580c41aab94ed3f756831d4e5 100644 (file)
@@ -99,7 +99,7 @@ PRIMARY KEY (`id`)",
                                break;
 
                        case '0.1.1': // SQL queries for v0.1.1
-                               // This update depends on sql_patches update!
+                               // This update depends on ext-sql_patches update!
                                addExtensionDependency('sql_patches');
 
                                // Update notes (these will be set as task text!)
@@ -107,7 +107,7 @@ PRIMARY KEY (`id`)",
                                break;
 
                        case '0.1.3': // SQL queries for v0.1.3
-                               // This update depends on sql_patches update!
+                               // This update depends on ext-sql_patches update!
                                addExtensionDependency('sql_patches');
 
                                // Update notes (these will be set as task text!)
index 274655c89f01fd2b5e6ebbc95ba11c170667d201..8d6f633beb3fe7721cfb6ccee463c0905ed2a714 100644 (file)
@@ -80,7 +80,7 @@ switch (getExtensionMode()) {
        case 'update': // Update an extension
                switch (getCurrentExtensionVersion()) {
                        case '0.0.1': // SQL queries for v0.0.1
-                               // Update depends on sql_patches
+                               // Update depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
 
                                // Add filters
index ca5943df12063a786cdbbe335bc12e77521a3b74..6de2f5d4e373ca4154df0603e837bd0eab790212 100644 (file)
@@ -95,7 +95,7 @@ switch (getExtensionMode()) {
 `last_payment` FLOAT(7,2) UNSIGNED NOT NULL DEFAULT 0.00,
 `last_currency` VARCHAR(255) NOT NULL DEFAULT '&euro;',
 PRIMARY KEY (`id`),
-UNIQUE KEY (`hash`),
+UNIQUE (`hash`),
 INDEX (`refid`),
 INDEX (`email`)",
                        'Main sponsor data');
@@ -155,8 +155,8 @@ INDEX (`ext_name`)",
 `active` ENUM('Y','N') NOT NULL DEFAULT 'N',
 `sort` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`id`)
-UNIQUE KEY `action_what` (`action`, `what`),
-UNIQUE KEY (`what`),
+UNIQUE `action_what` (`action`, `what`),
+UNIQUE (`what`),
 INDEX (`action`)",
                        'Sponsor menu');
                //
index 8cc9bbc63ab938270762d7a0e3090a7317faf901..756e873e5b1c1c5fdaa15cf7f43c8447dd705b61 100644 (file)
@@ -73,7 +73,6 @@ IN (
        'list_unconfirmed',
        'config_refid',
        'config_title',
-       'sub_points',
        'config_admin',
        'config_proxy',
        'config_session',
@@ -298,10 +297,8 @@ IN (
                                break;
 
                        case '0.2.6': // SQL queries for v0.2.6
-                               addAdminMenuSql('user','sub_points','{OPEN_CONFIG}POINTS{CLOSE_CONFIG} abziehen','Allen oder einem Mitglied {OPEN_CONFIG}POINTS{CLOSE_CONFIG} abziehen.', 8);
-
                                // Update notes (these will be set as task text!)
-                               setExtensionUpdateNotes("Abzug von {?POINTS?} nun m&ouml;glich.");
+                               setExtensionUpdateNotes("Verschoben nach <strong>ext-user</strong>.");
                                break;
 
                        case '0.2.7': // SQL queries for v0.2.7
@@ -338,13 +335,13 @@ IN (
                                break;
 
                        case '0.3.1': // SQL queries for v0.3.1
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_extensions` ADD UNIQUE KEY `ext_name` (`ext_name`)");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_admins` ADD UNIQUE KEY `login` (`login`)");
+                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_extensions` ADD UNIQUE `ext_name` (`ext_name`)");
+                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_admins` ADD UNIQUE `login` (`login`)");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_refbanner` ADD INDEX `visible` (`visible`)");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_refdepths` ADD UNIQUE KEY `level` (`level`)");
+                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_refdepths` ADD UNIQUE `level` (`level`)");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` ADD INDEX `level` (`level`)");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_pool` ADD INDEX `data_type` (`data_type`)");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_mod_reg` ADD UNIQUE KEY `module` (`module`)");
+                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_mod_reg` ADD UNIQUE `module` (`module`)");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_admin_menu` ADD INDEX `action` (`action`)");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_admin_menu` ADD INDEX `what` (`what`)");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_task_system` ADD INDEX `task_type` (`task_type`)");
@@ -366,7 +363,7 @@ IN (
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_cats` ADD INDEX `sort` (`sort`)");
 
                                // Update notes (these will be set as task text!)
-                               setExtensionUpdateNotes("Eindeutige Schl&uuml;ssel (UNIQUE KEY) und normale Schl&uuml;ssel (INDEX) gesetzt.");
+                               setExtensionUpdateNotes("Eindeutige Schl&uuml;ssel (UNIQUE) und normale Schl&uuml;ssel (INDEX) gesetzt.");
                                break;
 
                        case '0.3.2': // SQL queries for v0.3.2
@@ -392,7 +389,7 @@ INDEX (`la_what`)",
 `la_posx` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `la_posy` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`id`),
-UNIQUE KEY (`la_id`),
+UNIQUE (`la_id`),
 INDEX (`la_posx`),
 INDEX (`la_posy`)",
                                        'LAS position and title data');
index e0f0156358447396a880fa032c00510119f73d8b..3c1902ebffea3a3a639aef1dac18f316f4023b1d 100644 (file)
@@ -68,7 +68,7 @@ switch (getExtensionMode()) {
 `url_reject_reason` VARCHAR(255) NOT NULL DEFAULT '',
 `url_fixed_reload` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`url_id`),
-UNIQUE KEY `userid_url` (`url_userid`, `url`),
+UNIQUE `userid_url` (`url_userid`, `url`),
 INDEX `status_userid` (`url_status`, `url_userid`)",
                        'Surfbar URLs');
 
@@ -80,7 +80,7 @@ INDEX `status_userid` (`url_status`, `url_userid`)",
 `locks_url_id` BIGINT(20) UNSIGNED  NOT NULL DEFAULT 0,
 `locks_last_surfed` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
 PRIMARY KEY (`locks_id`),
-UNIQUE KEY `userid_url` (`locks_userid`, `locks_url_id`),
+UNIQUE `userid_url` (`locks_userid`, `locks_url_id`),
 INDEX (`locks_url_id`)",
                        'Surfbar reload locks');
 
@@ -92,7 +92,7 @@ INDEX (`locks_url_id`)",
 `salts_url_id` BIGINT(20) UNSIGNED  NOT NULL DEFAULT 0,
 `salts_last_salt` VARCHAR(255) NOT NULL DEFAULT '',
 PRIMARY KEY (`salts_id`),
-UNIQUE KEY `salts_userid_url` (`salts_userid`, `salts_url_id`),
+UNIQUE `salts_userid_url` (`salts_userid`, `salts_url_id`),
 INDEX (`salts_url_id`)",
                        'Surfbar last used salts');
 
@@ -105,7 +105,7 @@ INDEX (`salts_url_id`)",
 `stats_count` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `stats_last_surfed` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
 PRIMARY KEY (`stats_id`),
-UNIQUE KEY `userid_url` (`stats_userid`, `stats_url_id`),
+UNIQUE `userid_url` (`stats_userid`, `stats_url_id`),
 INDEX (`stats_url_id`)",
                        'Surfbar Statistics');
 
@@ -117,7 +117,7 @@ INDEX (`stats_url_id`)",
 `actions_action` ENUM('EDIT','DELETE','PAUSE','UNPAUSE','FRAMETEST','RETREAT','RESUBMIT','BOOKNOW') NULL DEFAULT NULL,
 `actions_new_status` ENUM('PENDING','ACTIVE','LOCKED','STOPPED','REJECTED','DELETED','MIGRATED','DEPLETED') NULL DEFAULT NULL,
 PRIMARY KEY (`actions_id`),
-UNIQUE KEY `status_action` (`actions_status`, `actions_action`)",
+UNIQUE `status_action` (`actions_status`, `actions_action`)",
                        'Surfbar Member Actions');
 
                // Member actions
index 32be949f681c5c6f4c7932422efe5e34a639fd53..056064b9a5ea72ce666281877bf184af7a6648c1 100644 (file)
@@ -75,7 +75,7 @@ switch (getExtensionMode()) {
        case 'update': // Update an extension
                switch (getCurrentExtensionVersion()) {
                        case '0.0.1': // SQL queries for v0.0.1
-                               // This update depends on sql_patches update!
+                               // This update depends on ext-sql_patches update!
                                addExtensionDependency('sql_patches');
 
                                // Update notes (these will be set as task text!)
index bd04098d273654d006e5c631911abd209cf8a610..8a379e0e138a806940b7dfa5f60ca82c575b2a8d 100644 (file)
@@ -128,7 +128,7 @@ switch (getExtensionMode()) {
 `theme_active` ENUM('Y','N') NOT NULL DEFAULT 'N',
 `theme_ver` VARCHAR(255) NOT NULL DEFAULT '0.0.0',
 PRIMARY KEY (`id`),
-UNIQUE KEY (`theme_path`),
+UNIQUE (`theme_path`),
 INDEX (`theme_active`)", 'Themes');
 
                                // Admin menu
index 200775833acbfb4a28b79cc5764888a5eccff1af..875901f0b6e8cadf031da698467f3aa7ce142d2c 100644 (file)
@@ -59,8 +59,8 @@ switch (getExtensionMode()) {
 `time_trans` VARCHAR(14) NOT NULL DEFAULT 0,
 `trans_id` VARCHAR(12) NOT NULL DEFAULT '',
 PRIMARY KEY (`id`),
-KEY (`userid`),
-KEY (`from_userid`)",
+INDEX (`userid`),
+INDEX (`from_userid`)",
                        'Ingoing points transfers');
 
                // Transfers to a member
@@ -74,8 +74,8 @@ KEY (`from_userid`)",
 `time_trans` VARCHAR(14) NOT NULL DEFAULT 0,
 `trans_id` VARCHAR(12) NOT NULL DEFAULT '',
 PRIMARY KEY (`id`),
-KEY (`userid`),
-KEY (`to_userid`)",
+INDEX (`userid`),
+INDEX (`to_userid`)",
                        'Outgoing points transfers');
 
                // Admin menu
@@ -231,7 +231,7 @@ KEY (`to_userid`)",
                                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('member', '', 'del_transfer')");
                                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('config', '', 'config_transfer')");
 
-                               // Depends on sql_patches (or you have to execute these both SQL statements by phpMyAdmin
+                               // Depends on ext-sql_patches (or you have to execute these both SQL statements by phpMyAdmin
                                addExtensionDependency('sql_patches');
 
                                // Update notes (these will be set as task text!)
index c6c7368f36ebebdc281ad2d78257078f15343306..5fe28784b71c493656dbe54fe9e313b08b8d4206 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.4.5');
+setThisExtensionVersion('0.4.6');
 
 // Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5'));
+setExtensionVersionHistory(array('0.0.0', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6'));
 
 // Keep this extension always active!
 setExtensionAlwaysActive('Y');
@@ -207,7 +207,7 @@ INDEX (`stats_type`)",
                                break;
 
                        case '0.1.1': // SQL queries for v0.1.1
-                               // This update depends on sql_patches update!
+                               // This update depends on ext-sql_patches update!
                                addExtensionDependency('sql_patches');
 
                                // Update notes (these will be set as task text!)
@@ -483,6 +483,19 @@ INDEX (`refid`)",
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Die Spalte <strong>link_type</strong> ist nun kein ENUM mehr, um weitere Mailtypen zu erlauben.");
                                break;
+
+                       case '0.4.6': // SQL queries for v0.4.6
+                               // SQL commands to run
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `title`='{OPEN_TEMPLATE}DEFAULT_POINTS{CLOSE_TEMPLATE} gutschreiben' WHERE `what` = 'add_points' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `title`='{OPEN_TEMPLATE}DEFAULT_POINTS{CLOSE_TEMPLATE} abziehen' WHERE `what` = 'sub_points' LIMIT 1");
+                               addAdminMenuSql('user','sub_points','{OPEN_CONFIG}POINTS{CLOSE_CONFIG} abziehen','Allen oder einem Mitglied {OPEN_CONFIG}POINTS{CLOSE_CONFIG} abziehen.', 8);
+
+                               // This update depends on ext-menu update
+                               addExtensionDependency('menu');
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Abzug von {?POINTS?} sollte nun dabei sein und Hinzuf&uuml;gen gefixt (war zu kurze Spalte).");
+                               break;
                } // END - switch
                break;
 
index d03062155950a7abff44db8496477c07746d3a64..b0ed40a050b7036a77c498f571fbcfae054f491f 100644 (file)
@@ -58,7 +58,7 @@ function FILTER_FLUSH_FILTERS () {
                return false;
        } // END - if
 
-       // Is the extension sql_patches updated?
+       // Is the extension ext-sql_patches updated?
        if ((!isExtensionInstalled('sql_patches')) || (isExtensionInstalledAndOlder('sql_patches', '0.5.9'))) {
                // Abort silently here
                logDebugMessage(__FUNCTION__, __LINE__, 'Cannot flush filters, sql_patches might be missing. isExtensionInstalled()=' . isExtensionInstalled('sql_patches') . ',isExtensionInstalledAndOlder()=' . isExtensionInstalledAndOlder('sql_patches', '0.5.9'));
@@ -825,7 +825,7 @@ function FILTER_CHECK_ADMIN_ACL () {
 
 // Init random number/cache buster
 function FILTER_INIT_RANDOM_NUMBER () {
-       // Is the extension sql_patches installed and at least 0.3.6?
+       // Is the extension ext-sql_patches installed and at least 0.3.6?
        if ((isExtensionInstalledAndNewer('sql_patches', '0.3.6')) && (isExtensionInstalledAndNewer('other', '0.2.5'))) {
                // Generate random number
                setConfigEntry('RAND_NUMBER', generateRandomCode(10, mt_rand(10000, 32766), getMemberId(), ''));
index fdf4b97ecf6c66de6c01f12e98c2176e4acf7c71..7c6659502ff130f52560fa3d59769a59db561a59 100644 (file)
@@ -868,7 +868,7 @@ function generateHash ($plainText, $salt = '', $hash = true) {
        // Is the required extension 'sql_patches' there and a salt is not given?
        // 123                            4                      43    3     4     432    2                  3             32    2                             3                32    2      3     3      21
        if (((isExtensionInstalledAndOlder('sql_patches', '0.3.6')) && (empty($salt))) || (!isExtensionActive('sql_patches')) || (!isExtensionInstalledAndNewer('other', '0.2.5')) || (strlen($salt) == 32)) {
-               // Extension sql_patches is missing/outdated so we hash the plain text with MD5
+               // Extension ext-sql_patches is missing/outdated so we hash the plain text with MD5
                if ($hash === true) {
                        // Is plain password
                        return md5($plainText);
index c302d4742c3d668d84fd08f962fb8399aaba4991..87ce569f5b586235c8b07098c40a0cd969046476 100644 (file)
@@ -286,7 +286,7 @@ function doRegistration () {
        $countryRow = '`country`';
        $countryData = substr(postRequestParameter('cntry'), 0, 2);
 
-       // Add design when extension sql_patches is v0.2.7 or greater
+       // Add design when extension ext-theme is v0.0.8 or greater
        // @TODO Rewrite these all to a single filter
        $GLOBALS['register_sql_columns'] = '';
        $GLOBALS['register_sql_data'] = '';
index d00378024974bb185b481537860532d9696478e8..26abac20f4b0980321e499410c3fa4b0b330de3e 100644 (file)
@@ -353,7 +353,7 @@ switch ($mode) {
 `reason` VARCHAR(255) NOT NULL DEFAULT '',
 `time_trans` VARCHAR(10) NOT NULL DEFAULT 0,
 `trans_type` ENUM('IN','OUT') NOT NULL DEFAULT 'IN',
-KEY (`party_userid`)
+INDEX (`party_userid`)
 ) ENGINE = HEAP COMMENT = 'Temporary transfer table'", array(getMemberId()), __FILE__, __LINE__);
 
                // Let's begin with the incoming list
index 8868904eaddc30140d39e89c31f45f0dfbe77ccb..ac0299e6d950c45c8b3b342ef50a8b921f742b8b 100644 (file)
@@ -412,7 +412,7 @@ ORDER BY
 
 // Get points data for given subject
 function getPointsDataArrayFromSubject ($subject) {
-       // Extension sql_patches must be up-to-date
+       // Extension ext-sql_patches must be up-to-date
        if (isExtensionInstalledAndOlder('sql_patches', '0.8.2')) {
                // Please update ext-sql_patches
                debug_report_bug(__FUNCTION__, __LINE__, 'sql_patches is out-dated. Please update to at least 0.8.2 to continue. subject=' . $subject);
index f851b665d98560a1c32530e6ed77885aae8e37b7..52cb6ba6d1bbbc560341c984545aaf913bb255cd 100644 (file)
@@ -16,7 +16,7 @@ CREATE TABLE `{?_MYSQL_PREFIX?}_admins` (
   `password` VARCHAR(255) NOT NULL DEFAULT '',
   `email` VARCHAR(255) NOT NULL,
   PRIMARY KEY  (`id`),
-  UNIQUE KEY (`login`)
+  UNIQUE (`login`)
 ) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci;
 
 DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_cats`;