-<?php\r
-/************************************************************************\r
- * MXChange v0.2.1 Start: 04/29/2004 *\r
- * ================ Last change: 10/29/2004 *\r
- * *\r
- * -------------------------------------------------------------------- *\r
- * File : ext-user.php *\r
- * -------------------------------------------------------------------- *\r
- * Short description : Swapped out user management *\r
- * -------------------------------------------------------------------- *\r
- * Kurzbeschreibung : Ausgelagertes Mitglieder-Management *\r
- * -------------------------------------------------------------------- *\r
- * *\r
- * -------------------------------------------------------------------- *\r
- * Copyright (c) 2003 - 2008 by Roland Haeder *\r
- * For more information visit: http://www.mxchange.org *\r
- * *\r
- * This program is free software; you can redistribute it and/or modify *\r
- * it under the terms of the GNU General Public License as published by *\r
- * the Free Software Foundation; either version 2 of the License, or *\r
- * (at your option) any later version. *\r
- * *\r
- * This program is distributed in the hope that it will be useful, *\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *\r
- * GNU General Public License for more details. *\r
- * *\r
- * You should have received a copy of the GNU General Public License *\r
- * along with this program; if not, write to the Free Software *\r
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *\r
- * MA 02110-1301 USA *\r
- ************************************************************************/\r
-\r
-// Some security stuff...\r
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])))\r
-{\r
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";\r
- require($INC);\r
-}\r
-\r
-// Version number\r
-$EXT_VERSION = "0.3.3";\r
-\r
-// Version history array (add more with , "0.1" and so on)\r
-$EXT_VER_HISTORY = array("0.0", "0.1", "0.1.1", "0.1.2", "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");\r
-\r
-switch ($EXT_LOAD_MODE)\r
-{\r
-case "register": // Do stuff when installtion is running (modules.php?module=admin&action=login is called)\r
- // SQL commands to run\r
- $SQLs[] = "";\r
-\r
- // Load CSS-File?\r
- $EXT_CSS = "Y";\r
- break;\r
-\r
-case "remove": // Do stuff when removing extension\r
- // SQL commands to run\r
- $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE what='config_user' OR what='user_contct' LIMIT 2";\r
- break;\r
-\r
-case "activate": // Do stuff when admin activates this extension\r
- // SQL commands to run\r
- $SQLs[] = "";\r
- break;\r
-\r
-case "deactivate": // Do stuff when admin deactivates this extension\r
- // SQL commands to run\r
- $SQLs[] = "";\r
- break;\r
-\r
-case "update": // Update an extension\r
- switch ($EXT_VER)\r
- {\r
- case "0.1": // SQL queries for v0.1\r
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD user_limit int(7) not null default '20'";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Seitenweises Anzeigen der User-Liste ist nun möglich.";\r
- break;\r
-\r
- case "0.1.1": // SQL queries for v0.1.1\r
- $SQLs[] = "UPDATE "._MYSQL_PREFIX."_extensions SET ext_has_css='Y' WHERE ext_name='user' AND ext_has_css='N' LIMIT 1";\r
-\r
- // This update depends on sql_patches update!\r
- $EXT_UPDATE_DEPENDS = "sql_patches";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "CSS-Datei kann per Admin-Bereich ein- und ausgeschaltet werden.";\r
-\r
- case "0.1.2": // SQL queries for v0.1.2\r
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD mails_confirmed bigint(20) not null default '0'";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Dem Mitglied wird nun angezeigt, wie viele Mails er bestätigt hat. Alle vor dieser Version best. Mails werden leider nicht mehr berücksichtigt! Bitte teilen Sie dies Ihren Mitgliedern mit.";\r
- break;\r
-\r
- case "0.1.3": // SQL queries for v0.1.3\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Den Pfad <I>Sie sind hier</I> im Menüpunkt <U>Online-Liste</U> erweitert.";\r
- break;\r
-\r
- case "0.1.4": // SQL queries for v0.1.4\r
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD emails_received bigint(20) not null default '0'";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Anzahl empfangener Mails wird angezeigt. <BIG>Diese Anzeige kann fehlerhaft sein, wenn Sie bereits Mitglieder in Ihrem {!MT_WORD!} haben sollen!</BIG>";\r
- break;\r
-\r
- case "0.1.5": // SQL queries for v0.1.5\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";\r
- break;\r
-\r
- case "0.1.6": // SQL queries for v0.1.6\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";\r
- break;\r
-\r
- case "0.1.7": // SQL queries for v0.1.7\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Erweiterung bleibt wegen integrierten Schalters immer aktiv.";\r
- break;\r
-\r
- case "0.1.8": // SQL queries for v0.1.8\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Seit <A href=\"".SERVER_URL."/patches/340-Gast_Mitgliedsmenue_Deaktivieren.zip\">Patch 340</A> überflüssige HTML-Tags entfernt.";\r
- break;\r
-\r
- case "0.1.9": // SQL queries for v0.1.9\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Link zum Mitgliedsprofil in Funktion <U>ADMIN_USER_PROFILE_LINK()</U> ausgelagert.";\r
- break;\r
-\r
- case "0.2.0": // SQL queries for v0.2.0\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "User-Liste ausgelagert in Templates und überbreite Zeile in 2er-Zeile umgewandelt.";\r
- break;\r
-\r
- case "0.2.1": // SQL queries for v0.2.1\r
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD user_alpha tinyint(4) not null default '10'";\r
- $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES('setup', 'config_user', 'Mitgliederliste', 'Anzahl Mitglieder pro Seite, Anzahl Buchstaben pro Zeile usw.', 8)";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "User-Liste ist konfigurierbar: Anzahl Mitglieder pro Seite und Anzahl Buchstaben pro Zeile; Template-Fehler beseitigt.";\r
- break;\r
-\r
- case "0.2.2": // SQL queries for v0.2.2\r
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE sex sex enum('M', 'F', 'C') not null default 'M'";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Anrede "Firma" hinzugefügt.";\r
- break;\r
-\r
- case "0.2.3": // SQL queries for v0.2.3\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Datumsformat festgelegt auf ausführlich.";\r
- break;\r
-\r
- case "0.2.4": // SQL queries for v0.2.4\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Wörter <STRONG>Mailtausch</STRONG>, <STRONG>Mailtausches</STRONG> und <STRONG>Mailtauscher</STRONG> sind austauschbar.";\r
- break;\r
-\r
- case "0.2.5": // SQL queries for v0.2.5\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "SQL-Anweisungen abgesichert.";\r
- break;\r
-\r
- case "0.2.6": // SQL queries for v0.2.6\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Abspeichern von Einstellungen repariert.";\r
- break;\r
-\r
- case "0.2.7": // SQL queries for v0.2.7\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Sicherheitsupdate für die Include-Befehle.";\r
- break;\r
-\r
- case "0.2.8": // SQL queries for v0.2.8\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "if-Anweisungen auf Funktion <STRONG>empty()</STRONG> umgestellt.";\r
- break;\r
-\r
- case "0.2.9": // SQL queries for v0.2.9\r
- $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES('user', 'user_contct', 'Mitglied kontaktieren', 'Kontaktieren Sie hier Ihre Mitglieder ganz direkt über ein Webformular. Sie brauchen somit kein EMail-Programm mehr starten!', 8)";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Admin-Kontaktformular hinzugefügt.";\r
- break;\r
-\r
- case "0.3.0": // SQL queries for v0.3.0\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Hash-Erstellung von <STRONG>md5()</STRONG> auf bessere Funktion <STRONG>generateHash()</STRONG> umgestellt.<br />Diverse Fixes für <em>0.2.1-Beta1</em> Release.";\r
- break;\r
-\r
- case "0.3.1": // SQL queries for v0.3.1\r
- $SQLs[] = "UPDATE "._MYSQL_PREFIX."_admin_menu SET title = 'Mitglieder-Management' WHERE action = 'user' AND what='' LIMIT 1";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Verwaltung auf Management umgestellt";\r
- break;\r
-\r
- case "0.3.2": // SQL queries for v0.3.2\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "PHP-Hinweis in Userauflistung gefixt (trat bei fehlender nickname-Erweiterung auf) und Darstellungsfehler von <strong>0.00000</strong> unbestätigten Mails gefixt.";\r
- break;\r
+<?php
+/************************************************************************
+ * MXChange v0.2.1 Start: 04/29/2004 *
+ * ================ Last change: 10/29/2004 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : ext-user.php *
+ * -------------------------------------------------------------------- *
+ * Short description : Swapped out user management *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Ausgelagertes Mitglieder-Management *
+ * -------------------------------------------------------------------- *
+ * *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder *
+ * For more information visit: http://www.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 *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
+ * MA 02110-1301 USA *
+ ************************************************************************/
+
+// Some security stuff...
+if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])))
+{
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ require($INC);
+}
+
+// Version number
+$EXT_VERSION = "0.3.3";
+
+// Version history array (add more with , "0.1" and so on)
+$EXT_VER_HISTORY = array("0.0", "0.1", "0.1.1", "0.1.2", "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");
+
+switch ($EXT_LOAD_MODE)
+{
+case "register": // Do stuff when installtion is running (modules.php?module=admin&action=login is called)
+ // SQL commands to run
+ $SQLs[] = "";
+
+ // Load CSS-File?
+ $EXT_CSS = "Y";
+ break;
+
+case "remove": // Do stuff when removing extension
+ // SQL commands to run
+ $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE what='config_user' OR what='user_contct' LIMIT 2";
+ break;
+
+case "activate": // Do stuff when admin activates this extension
+ // SQL commands to run
+ $SQLs[] = "";
+ break;
+
+case "deactivate": // Do stuff when admin deactivates this extension
+ // SQL commands to run
+ $SQLs[] = "";
+ break;
+
+case "update": // Update an extension
+ switch ($EXT_VER)
+ {
+ case "0.1": // SQL queries for v0.1
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD user_limit int(7) not null default '20'";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Seitenweises Anzeigen der User-Liste ist nun möglich.";
+ break;
+
+ case "0.1.1": // SQL queries for v0.1.1
+ $SQLs[] = "UPDATE "._MYSQL_PREFIX."_extensions SET ext_has_css='Y' WHERE ext_name='user' AND ext_has_css='N' LIMIT 1";
+
+ // This update depends on sql_patches update!
+ $EXT_UPDATE_DEPENDS = "sql_patches";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "CSS-Datei kann per Admin-Bereich ein- und ausgeschaltet werden.";
+
+ case "0.1.2": // SQL queries for v0.1.2
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD mails_confirmed bigint(20) not null default '0'";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Dem Mitglied wird nun angezeigt, wie viele Mails er bestätigt hat. Alle vor dieser Version best. Mails werden leider nicht mehr berücksichtigt! Bitte teilen Sie dies Ihren Mitgliedern mit.";
+ break;
+
+ case "0.1.3": // SQL queries for v0.1.3
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Den Pfad <I>Sie sind hier</I> im Menüpunkt <U>Online-Liste</U> erweitert.";
+ break;
+
+ case "0.1.4": // SQL queries for v0.1.4
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD emails_received bigint(20) not null default '0'";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Anzahl empfangener Mails wird angezeigt. <BIG>Diese Anzeige kann fehlerhaft sein, wenn Sie bereits Mitglieder in Ihrem {!MT_WORD!} haben sollen!</BIG>";
+ break;
+
+ case "0.1.5": // SQL queries for v0.1.5
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";
+ break;
+
+ case "0.1.6": // SQL queries for v0.1.6
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";
+ break;
+
+ case "0.1.7": // SQL queries for v0.1.7
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Erweiterung bleibt wegen integrierten Schalters immer aktiv.";
+ break;
+
+ case "0.1.8": // SQL queries for v0.1.8
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Seit <A href=\"".SERVER_URL."/patches/340-Gast_Mitgliedsmenue_Deaktivieren.zip\">Patch 340</A> überflüssige HTML-Tags entfernt.";
+ break;
+
+ case "0.1.9": // SQL queries for v0.1.9
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Link zum Mitgliedsprofil in Funktion <U>ADMIN_USER_PROFILE_LINK()</U> ausgelagert.";
+ break;
+
+ case "0.2.0": // SQL queries for v0.2.0
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "User-Liste ausgelagert in Templates und überbreite Zeile in 2er-Zeile umgewandelt.";
+ break;
+
+ case "0.2.1": // SQL queries for v0.2.1
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD user_alpha tinyint(4) not null default '10'";
+ $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES('setup', 'config_user', 'Mitgliederliste', 'Anzahl Mitglieder pro Seite, Anzahl Buchstaben pro Zeile usw.', 8)";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "User-Liste ist konfigurierbar: Anzahl Mitglieder pro Seite und Anzahl Buchstaben pro Zeile; Template-Fehler beseitigt.";
+ break;
+
+ case "0.2.2": // SQL queries for v0.2.2
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE sex sex enum('M', 'F', 'C') not null default 'M'";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Anrede "Firma" hinzugefügt.";
+ break;
+
+ case "0.2.3": // SQL queries for v0.2.3
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Datumsformat festgelegt auf ausführlich.";
+ break;
+
+ case "0.2.4": // SQL queries for v0.2.4
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Wörter <STRONG>Mailtausch</STRONG>, <STRONG>Mailtausches</STRONG> und <STRONG>Mailtauscher</STRONG> sind austauschbar.";
+ break;
+
+ case "0.2.5": // SQL queries for v0.2.5
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "SQL-Anweisungen abgesichert.";
+ break;
+
+ case "0.2.6": // SQL queries for v0.2.6
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Abspeichern von Einstellungen repariert.";
+ break;
+
+ case "0.2.7": // SQL queries for v0.2.7
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Sicherheitsupdate für die Include-Befehle.";
+ break;
+
+ case "0.2.8": // SQL queries for v0.2.8
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "if-Anweisungen auf Funktion <STRONG>empty()</STRONG> umgestellt.";
+ break;
+
+ case "0.2.9": // SQL queries for v0.2.9
+ $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES('user', 'user_contct', 'Mitglied kontaktieren', 'Kontaktieren Sie hier Ihre Mitglieder ganz direkt über ein Webformular. Sie brauchen somit kein EMail-Programm mehr starten!', 8)";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Admin-Kontaktformular hinzugefügt.";
+ break;
+
+ case "0.3.0": // SQL queries for v0.3.0
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Hash-Erstellung von <STRONG>md5()</STRONG> auf bessere Funktion <STRONG>generateHash()</STRONG> umgestellt.<br />Diverse Fixes für <em>0.2.1-Beta1</em> Release.";
+ break;
+
+ case "0.3.1": // SQL queries for v0.3.1
+ $SQLs[] = "UPDATE "._MYSQL_PREFIX."_admin_menu SET title = 'Mitglieder-Management' WHERE action = 'user' AND what='' LIMIT 1";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Verwaltung auf Management umgestellt";
+ break;
+
+ case "0.3.2": // SQL queries for v0.3.2
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "PHP-Hinweis in Userauflistung gefixt (trat bei fehlender nickname-Erweiterung auf) und Darstellungsfehler von <strong>0.00000</strong> unbestätigten Mails gefixt.";
+ break;
case "0.3.3": // SQL queries for v0.3.3
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Mitglieder sind nun per Formular kontaktierbar (es wird eine EMail versendet), gesperrte und bestätigte Mitglieder-Accounts sind seperat oder gemeinsam auflistbar (seperat nur mit der Erweiterung <em>task</em>!)";
break;
- }\r
- break;\r
-\r
-default: // Do stuff when extension is loaded\r
- $DUMMY = LOAD_CONFIG("0");\r
- $CONFIG['user_limit'] = $DUMMY['user_limit'];\r
- $CONFIG['user_alpha'] = $DUMMY['user_alpha'];\r
- unset($DUMMY);\r
- break;\r
-}\r
-// Language file prefix\r
-$EXT_LANG_PREFIX = "user";\r
-\r
-// Extension is always active?\r
-$EXT_ALWAYS_ACTIVE = "Y";\r
-\r
-//\r
-?>\r
+ }
+ break;
+
+default: // Do stuff when extension is loaded
+ $DUMMY = LOAD_CONFIG("0");
+ $CONFIG['user_limit'] = $DUMMY['user_limit'];
+ $CONFIG['user_alpha'] = $DUMMY['user_alpha'];
+ unset($DUMMY);
+ break;
+}
+// Language file prefix
+$EXT_LANG_PREFIX = "user";
+
+// Extension is always active?
+$EXT_ALWAYS_ACTIVE = "Y";
+
+//
+?>