} // END - if
// Version number
-setThisExtensionVersion('0.5.8');
+setThisExtensionVersion('0.5.9');
// 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', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8'));
+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', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9'));
switch (getExtensionMode()) {
case 'setup': // Do stuff when installation is running
} // END - if
// Version number
-setThisExtensionVersion('0.6.0');
+setThisExtensionVersion('0.6.1');
// 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', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9', '0.6.0'));
+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', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9', '0.6.0', '0.6.1'));
// Keep this extension always active!
setExtensionAlwaysActive('Y');
// Update notes
setExtensionUpdateNotes("Anmeldewillkommensgutschrift wird nun über die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
break;
+
+ case '0.5.9': // SQL queries for v0.5.9
+ // Add table for user register provider
+ addDropTableSql('user_register_provider');
+ addCreateTableSql('user_register_provider', "
+`provider_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
+`provider_name` VARCHAR(255) NOT NULL DEFAULT 'local_generic_user_register',
+`provider_extension` VARCHAR(255) NOT NULL DEFAULT 'user',
+`provider_is_active` ENUM('Y','N') NOT NULL DEFAULT 'N',
+PRIMARY KEY (`provider_id`)",
+ 'User register providers');
+
+ // Add (activated) default entry
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_user_register_provider` (`provider_is_active`) VALUES ('Y')");
+
+ // Admin menu
+ addAdminMenuSql('setup', 'list_usr_register_provider', 'MAP verwalten', 'Alle Mitgliedsanmelde-Provider (MAP) auflisten und verwalten.', 11);
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Tabelle für Mitgliedsanmelde-Provider hinzugefügt.");
+ break;
} // END - switch
// [EOF]
addDropTableSql('user_stats_data');
addDropTableSql('user_subids');
addDropTableSql('subid_log');
-addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `what` = 'config_user' OR `action`='user'");
+addDropTableSql('user_login_provider');
+
+// Remove admin/member
+addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `what` IN ('config_user','list_user_login_provider') OR `action`='user'");
addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what` IN ('subids')");
-// Register new filters for gathering points
+// Unregister filters
unregisterFilter(__FILE__, __LINE__, 'get_total_points', 'USER_POINTS', TRUE, isExtensionDryRun());
unregisterFilter(__FILE__, __LINE__, 'get_own_points', 'USER_POINTS', TRUE, isExtensionDryRun());
unregisterFilter(__FILE__, __LINE__, 'get_locked_points', 'LOCKED_USER_POINTS', TRUE, isExtensionDryRun());
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Menüpunkt umbenannt um Platz für Konflikt mit <strong>what-config_cats.php</strong> zu schaffen.");
break;
+
+ case '0.6.1': // SQL queries for v0.6.1
+ // Add table for user login provider
+ addDropTableSql('user_login_provider');
+ addCreateTableSql('user_login_provider', "
+`provider_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
+`provider_name` VARCHAR(255) NOT NULL DEFAULT 'local_generic_user_login',
+`provider_extension` VARCHAR(255) NOT NULL DEFAULT 'user',
+`provider_is_active` ENUM('Y','N') NOT NULL DEFAULT 'N',
+PRIMARY KEY (`provider_id`)",
+ 'User login providers');
+
+ // Add (activated) default entry
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_user_login_provider` (`provider_is_active`) VALUES ('Y')");
+
+ // Admin menu
+ addAdminMenuSql('setup', 'list_user_login_provider', 'MLP verwalten', 'Alle Mitgliederlogin-Provider (MLP) auflisten und verwalten.', 10);
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Tabelle für Mitgliedslogin-Provider hinzugefügt.");
+ break;
} // END - switch
// [EOF]