-<?php\r
-/************************************************************************\r
- * MXChange v0.2.1 Start: 04/29/2004 *\r
- * ================ Last change: 11/14/2004 *\r
- * *\r
- * -------------------------------------------------------------------- *\r
- * File : ext-order.php *\r
- * -------------------------------------------------------------------- *\r
- * Short description : Swapped out order system for PRO version *\r
- * -------------------------------------------------------------------- *\r
- * Kurzbeschreibung : Ausgelagertes Buchungssytem fuer PRO-Version *\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.4.7";\r
-\r
-// Auto-set extension version\r
-if (empty($EXT_VER)) $EXT_VER = $EXT_VERSION;\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.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");\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
- break;\r
-\r
-case "remove": // Do stuff when removing extension\r
- // SQL commands to run\r
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config DROP order_max_full";\r
- $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE what='config_order' LIMIT 1";\r
- break;\r
-\r
-case "activate": // Do stuff when admin activates this extension\r
- // SQL commands to run\r
- $SQLs[] = "UPDATE "._MYSQL_PREFIX."_member_menu SET visible='Y', locked='N' WHERE what='order' LIMIT 1";\r
- $SQLs[] = "UPDATE "._MYSQL_PREFIX."_mod_reg SET locked='N', hidden='N', admin_only='N', mem_only='Y' WHERE module='order' LIMIT 1";\r
- break;\r
-\r
-case "deactivate": // Do stuff when admin deactivates this extension\r
- // SQL commands to run\r
- $SQLs[] = "UPDATE "._MYSQL_PREFIX."_member_menu SET visible='N', locked='Y' WHERE what='order' LIMIT 1";\r
- $SQLs[] = "UPDATE "._MYSQL_PREFIX."_mod_reg SET locked='Y' WHERE module='order' LIMIT 1";\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 order_max_full enum('ORDER', 'MAX') not null default 'MAX'";\r
- $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, sort, descr) VALUES ('setup', 'config_order', 'Mailbuchungsseite', '7', 'Einstellungen am Mailbuchungsformular.')";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Maximale Mailbuchungen sind nun vom maximalen Empfang abhägig.";\r
- break;\r
-\r
- case "0.1.1": // SQL queries for v0.1.1\r
- $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE what='config_order' LIMIT 1";\r
- $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, sort, descr) VALUES ('setup', 'config_order', 'Mailbuchungsseite', '7', 'Einstellungen am Mailbuchungsformular.')";\r
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD mail_orders bigint(20) not null default '0'";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Maximale Mailbuchung vervollständigt (Admin-Bereich und im Buchungsformular selber).";\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 = "Maximale Mailbuchungen repariert (werden nun hochgezählt und bei täglichem Reset auf 0 gesetzt).";\r
- break;\r
-\r
- case "0.1.4": // SQL queries for v0.1.4\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Dummy-Datenfeld wird wieder gelöscht, um Probleme zu vermeiden. Fehlende Spalte <I>mail_order</I> korregiert auf <I>mail_orders</I>.";\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 = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";\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 = "Problem mit Speicherung der Einstellungen beseitigt.";\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 = "Menüpunkte im Gast-/Mitgliedsbereich können nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist.";\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 = "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.2.1": // SQL queries for v0.2.1\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Templates <U>member_frameset-back.tpl</U> und <U>member_frameset-send.tpl</U> nach <U>member_order_back.tpl</U> und <U>member_order_send.tpl</U> umbenannt.";\r
- break;\r
-\r
- case "0.2.2": // SQL queries for v0.2.2\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Es wird nun überprüft ob auch genügend Empfänger eingegeben worden sind und ob auch genügend empfangsbereit sind.";\r
- break;\r
-\r
- case "0.2.3": // SQL queries for v0.2.3\r
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD order_min bigint(20) not null default '10'";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Minimum an Empfänger pro Mailbuchung einstellbar. Standart: 10 Empfänger";\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 = "Anzahl mindestens einszustellende Empfänger wird nun auch angezeigt.";\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 = "Speicherung der Einstellungen klappt.";\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 = "Fehler in Mailbuchung behoben: Es wurde beim Ermitteln der nötigen {!POINTS!} die maximale Anzahl von Usern in der Kategorie gewählt und\r
-nicht die vom Mitglied eingegebene. Resultat: Das Script beschwerte sich, der User hätte nicht genügend {!POINTS!} auf dem Konto. Ein Rechenbeispiel:\r
-<OL>\r
- <LI>Das Mitglied wählt eine Kategorie XYZ mit maximal 15 Empfängern aus.</LI>\r
- <LI>Es stellt die Mailart <U>"3 {!POINTS!} Kosten / Mail"</U> ein.</LI>\r
- <LI>Es hat aber nur {!POINTS!} für 10 Empfänger und gibt 10 ein.</LI>\r
- <LI>Das Script hatte bis zu dieser Version 3 {!POINTS!} * <U>15</U> = 45 {!POINTS!} gerechnet, hat das Mitglied mehr oder gleich 45 {!POINTS!}, fiehl dieser Fehler nicht\r
- auf.</LI>\r
- <LI>Hatte es aber, wie hier im Beispiel 31 {!POINTS!}, konnte es nicht mehr buchen.</LI>\r
- <LI>Jetzt ist der Fehler endlich weg! Machen Sie dies bitte Ihren Mitgliedern bekannt.</LI>\r
-</OL>";\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 = "Fehler mit <U>__MIN_VALUE</U> behoben.";\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 = "Konstantenproblem beseitigt.";\r
- break;\r
-\r
- case "0.2.9": // SQL queries for v0.2.9\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Problem mit nicht funktionierenden Mailbuchungen beseitigt.";\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 = "Basis-Modul <STRONG>order.php</STRONG> abgesichert, wenn Erweiterung nicht aktiviert ist.";\r
- break;\r
-\r
- case "0.3.1": // SQL queries for v0.3.1\r
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD order_select varchar(255) not null default 'userid'";\r
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD order_mode enum('ASC', 'DESC') not null default 'DESC'";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Beworbene URL wird nun getestet.";\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 = "Datumsformat festgelegt auf ausführlich.";\r
- break;\r
-\r
- case "0.3.3": // SQL queries for v0.3.3\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Unter <STRONG>Einstellungen - Mailbuchungsseite</STRONG> war immer die Tabellenspalte <STRONG>Mitgliedsnummer</STRONG> ausgewählt.";\r
- break;\r
-\r
- case "0.3.4": // SQL queries for v0.3.4\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Dateiamenskonflikt zwischen den Erweiterungen <STRONG>support</STRONG> und <STRONG>order</STRONG> behoben.";\r
- break;\r
-\r
- case "0.3.5": // SQL queries for v0.3.5\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Das Mitglied konnte geziehlt die Anzahl Mailbuchungen durch Abspeichern seines Profiles beeinflussen. Der Fehler war eine falsche Tabellenspalte. Dies war <STRONG>max_mails</STRONG>, die durch das Mitglieder veränderbar ist und zur Festellung der Maximalen Mailbuchungen herangezogen wurde.";\r
- break;\r
-\r
- case "0.3.6": // SQL queries for v0.3.6\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Im Modul order (<STRONG>inc/modules/order.php</STRONG>) wurde fehlerhafterweise die Erweiterung <STRONG>beg</STRONG> getestet.";\r
- break;\r
-\r
- case "0.3.7": // SQL queries for v0.3.7\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "SQL-Anweisungen mit SQL_QUERY_ESC() abgesichert.";\r
- break;\r
-\r
- case "0.3.8": // SQL queries for v0.3.8\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Mailbuchungsseite korregiert.";\r
- break;\r
-\r
- case "0.3.9": // SQL queries for v0.3.9\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Erneuten Fehler in Mailbuchungsseite behoben.";\r
- break;\r
-\r
- case "0.4.0": // SQL queries for v0.4.0\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = POINTS."-Abzug klappt wieder. Danke an Andreman!";\r
- break;\r
-\r
- case "0.4.1": // SQL queries for v0.4.1\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Abspeichern von Einstellungen repariert.";\r
- break;\r
-\r
- case "0.4.2": // SQL queries for v0.4.2\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Vorbereitung auf die neue Mediendaten v0.0.4.";\r
- break;\r
-\r
- case "0.4.3": // SQL queries for v0.4.3\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Neue Urlaubsschaltung mit integriert.";\r
- break;\r
-\r
- case "0.4.4": // SQL queries for v0.4.4\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Ein <STRONG>WHERE ext_active='Y'</STRONG> tauchte bei einigen Betreibern auf und ist mit dieser Version beseitigt.";\r
- break;\r
-\r
- case "0.4.5": // SQL queries for v0.4.5\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "De-/Aktivieren des mit dieser Erweiterung verknüpften Modules eingebunden.";\r
- break;\r
-\r
- case "0.4.6": // SQL queries for v0.4.6\r
- $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_member_menu (action, what, title, sort, visible, locked) VALUES ('order', '', 'Mailbuchungen', 3, 'Y', 'N')";\r
- $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_member_menu (action, what, title, sort, visible, locked) VALUES ('order', 'order2', 'Framekiller-Mails', 2, 'Y', 'N')";\r
- $SQLs[] = "UPDATE "._MYSQL_PREFIX."_member_menu SET action='order', sort='1', title='Klick-Mails' WHERE what='order' LIMIT 1";\r
-\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Mitgliedsmenü komplett umgebaut.";\r
- break;\r
-\r
- case "0.4.7": // SQL queries for v0.4.7\r
- // Update notes (these will be set as task text!)\r
- $UPDATE_NOTES = "Fehlerhinweis bei deaktivierter Erweiterung verbessert.";\r
- break;\r
- }\r
- break;\r
-\r
-default: // Do stuff when extension is loaded\r
- $DUMMY = LOAD_CONFIG("0");\r
- $CONFIG['order_min'] = $DUMMY['order_min']; // Order at least X mails\r
- $CONFIG['order_max'] = $DUMMY['order_max_full']; // Ordering mode: as much as possible or as much as the user want's to receive\r
- $CONFIG['order_select'] = $DUMMY['order_select']; // Sorting mode for selecting users while looking some up for mail delivery\r
- $CONFIG['order_mode'] = $DUMMY['order_mode']; // Ascending or descending sort order for above\r
- unset($DUMMY);\r
-\r
- // Do daily reset only when installed and extension version is at least 0.1.1\r
- if ((defined('__DAILY_RESET')) && (!mxchange_installing) && (mxchange_installed) && (admin_registered) && (GET_EXT_VERSION("order") >= "0.1.1"))\r
- {\r
- // Reset mail order values\r
- $result_ext = SQL_QUERY("UPDATE "._MYSQL_PREFIX."_user_data SET mail_orders='0' WHERE mail_orders > 0", __FILE__, __LINE__);\r
- }\r
- break;\r
-}\r
-// Language file prefix\r
-$EXT_LANG_PREFIX = "order";\r
-\r
-// Extension is always active?\r
-$EXT_ALWAYS_ACTIVE = "N";\r
-\r
-//\r
-?>\r
+<?php
+/************************************************************************
+ * MXChange v0.2.1 Start: 04/29/2004 *
+ * ================ Last change: 11/14/2004 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : ext-order.php *
+ * -------------------------------------------------------------------- *
+ * Short description : Swapped out order system for PRO version *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Ausgelagertes Buchungssytem fuer PRO-Version *
+ * -------------------------------------------------------------------- *
+ * *
+ * -------------------------------------------------------------------- *
+ * 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.4.7";
+
+// Auto-set extension version
+if (empty($EXT_VER)) $EXT_VER = $EXT_VERSION;
+
+// 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.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");
+
+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[] = "";
+ break;
+
+case "remove": // Do stuff when removing extension
+ // SQL commands to run
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config DROP order_max_full";
+ $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE what='config_order' LIMIT 1";
+ break;
+
+case "activate": // Do stuff when admin activates this extension
+ // SQL commands to run
+ $SQLs[] = "UPDATE "._MYSQL_PREFIX."_member_menu SET visible='Y', locked='N' WHERE what='order' LIMIT 1";
+ $SQLs[] = "UPDATE "._MYSQL_PREFIX."_mod_reg SET locked='N', hidden='N', admin_only='N', mem_only='Y' WHERE module='order' LIMIT 1";
+ break;
+
+case "deactivate": // Do stuff when admin deactivates this extension
+ // SQL commands to run
+ $SQLs[] = "UPDATE "._MYSQL_PREFIX."_member_menu SET visible='N', locked='Y' WHERE what='order' LIMIT 1";
+ $SQLs[] = "UPDATE "._MYSQL_PREFIX."_mod_reg SET locked='Y' WHERE module='order' LIMIT 1";
+ break;
+
+case "update": // Update an extension
+ switch ($EXT_VER)
+ {
+ case "0.1": // SQL queries for v0.1
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD order_max_full enum('ORDER', 'MAX') not null default 'MAX'";
+ $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, sort, descr) VALUES ('setup', 'config_order', 'Mailbuchungsseite', '7', 'Einstellungen am Mailbuchungsformular.')";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Maximale Mailbuchungen sind nun vom maximalen Empfang abhägig.";
+ break;
+
+ case "0.1.1": // SQL queries for v0.1.1
+ $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE what='config_order' LIMIT 1";
+ $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, sort, descr) VALUES ('setup', 'config_order', 'Mailbuchungsseite', '7', 'Einstellungen am Mailbuchungsformular.')";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD mail_orders bigint(20) not null default '0'";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Maximale Mailbuchung vervollständigt (Admin-Bereich und im Buchungsformular selber).";
+ break;
+
+ case "0.1.3": // SQL queries for v0.1.3
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Maximale Mailbuchungen repariert (werden nun hochgezählt und bei täglichem Reset auf 0 gesetzt).";
+ break;
+
+ case "0.1.4": // SQL queries for v0.1.4
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Dummy-Datenfeld wird wieder gelöscht, um Probleme zu vermeiden. Fehlende Spalte <I>mail_order</I> korregiert auf <I>mail_orders</I>.";
+ 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 = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";
+ break;
+
+ case "0.1.8": // SQL queries for v0.1.8
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Problem mit Speicherung der Einstellungen beseitigt.";
+ break;
+
+ case "0.1.9": // SQL queries for v0.1.9
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Menüpunkte im Gast-/Mitgliedsbereich können nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist.";
+ break;
+
+ case "0.2.0": // SQL queries for v0.2.0
+ // 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.2.1": // SQL queries for v0.2.1
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Templates <U>member_frameset-back.tpl</U> und <U>member_frameset-send.tpl</U> nach <U>member_order_back.tpl</U> und <U>member_order_send.tpl</U> umbenannt.";
+ break;
+
+ case "0.2.2": // SQL queries for v0.2.2
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Es wird nun überprüft ob auch genügend Empfänger eingegeben worden sind und ob auch genügend empfangsbereit sind.";
+ break;
+
+ case "0.2.3": // SQL queries for v0.2.3
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD order_min bigint(20) not null default '10'";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Minimum an Empfänger pro Mailbuchung einstellbar. Standart: 10 Empfänger";
+ break;
+
+ case "0.2.4": // SQL queries for v0.2.4
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Anzahl mindestens einszustellende Empfänger wird nun auch angezeigt.";
+ break;
+
+ case "0.2.5": // SQL queries for v0.2.5
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Speicherung der Einstellungen klappt.";
+ break;
+
+ case "0.2.6": // SQL queries for v0.2.6
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Fehler in Mailbuchung behoben: Es wurde beim Ermitteln der nötigen {!POINTS!} die maximale Anzahl von Usern in der Kategorie gewählt und
+nicht die vom Mitglied eingegebene. Resultat: Das Script beschwerte sich, der User hätte nicht genügend {!POINTS!} auf dem Konto. Ein Rechenbeispiel:
+<OL>
+ <LI>Das Mitglied wählt eine Kategorie XYZ mit maximal 15 Empfängern aus.</LI>
+ <LI>Es stellt die Mailart <U>"3 {!POINTS!} Kosten / Mail"</U> ein.</LI>
+ <LI>Es hat aber nur {!POINTS!} für 10 Empfänger und gibt 10 ein.</LI>
+ <LI>Das Script hatte bis zu dieser Version 3 {!POINTS!} * <U>15</U> = 45 {!POINTS!} gerechnet, hat das Mitglied mehr oder gleich 45 {!POINTS!}, fiehl dieser Fehler nicht
+ auf.</LI>
+ <LI>Hatte es aber, wie hier im Beispiel 31 {!POINTS!}, konnte es nicht mehr buchen.</LI>
+ <LI>Jetzt ist der Fehler endlich weg! Machen Sie dies bitte Ihren Mitgliedern bekannt.</LI>
+</OL>";
+ break;
+
+ case "0.2.7": // SQL queries for v0.2.7
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Fehler mit <U>__MIN_VALUE</U> behoben.";
+ break;
+
+ case "0.2.8": // SQL queries for v0.2.8
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Konstantenproblem beseitigt.";
+ break;
+
+ case "0.2.9": // SQL queries for v0.2.9
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Problem mit nicht funktionierenden Mailbuchungen beseitigt.";
+ break;
+
+ case "0.3.0": // SQL queries for v0.3.0
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Basis-Modul <STRONG>order.php</STRONG> abgesichert, wenn Erweiterung nicht aktiviert ist.";
+ break;
+
+ case "0.3.1": // SQL queries for v0.3.1
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD order_select varchar(255) not null default 'userid'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD order_mode enum('ASC', 'DESC') not null default 'DESC'";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Beworbene URL wird nun getestet.";
+ break;
+
+ case "0.3.2": // SQL queries for v0.3.2
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Datumsformat festgelegt auf ausführlich.";
+ break;
+
+ case "0.3.3": // SQL queries for v0.3.3
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Unter <STRONG>Einstellungen - Mailbuchungsseite</STRONG> war immer die Tabellenspalte <STRONG>Mitgliedsnummer</STRONG> ausgewählt.";
+ break;
+
+ case "0.3.4": // SQL queries for v0.3.4
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Dateiamenskonflikt zwischen den Erweiterungen <STRONG>support</STRONG> und <STRONG>order</STRONG> behoben.";
+ break;
+
+ case "0.3.5": // SQL queries for v0.3.5
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Das Mitglied konnte geziehlt die Anzahl Mailbuchungen durch Abspeichern seines Profiles beeinflussen. Der Fehler war eine falsche Tabellenspalte. Dies war <STRONG>max_mails</STRONG>, die durch das Mitglieder veränderbar ist und zur Festellung der Maximalen Mailbuchungen herangezogen wurde.";
+ break;
+
+ case "0.3.6": // SQL queries for v0.3.6
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Im Modul order (<STRONG>inc/modules/order.php</STRONG>) wurde fehlerhafterweise die Erweiterung <STRONG>beg</STRONG> getestet.";
+ break;
+
+ case "0.3.7": // SQL queries for v0.3.7
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "SQL-Anweisungen mit SQL_QUERY_ESC() abgesichert.";
+ break;
+
+ case "0.3.8": // SQL queries for v0.3.8
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Mailbuchungsseite korregiert.";
+ break;
+
+ case "0.3.9": // SQL queries for v0.3.9
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Erneuten Fehler in Mailbuchungsseite behoben.";
+ break;
+
+ case "0.4.0": // SQL queries for v0.4.0
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = POINTS."-Abzug klappt wieder. Danke an Andreman!";
+ break;
+
+ case "0.4.1": // SQL queries for v0.4.1
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Abspeichern von Einstellungen repariert.";
+ break;
+
+ case "0.4.2": // SQL queries for v0.4.2
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Vorbereitung auf die neue Mediendaten v0.0.4.";
+ break;
+
+ case "0.4.3": // SQL queries for v0.4.3
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Neue Urlaubsschaltung mit integriert.";
+ break;
+
+ case "0.4.4": // SQL queries for v0.4.4
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Ein <STRONG>WHERE ext_active='Y'</STRONG> tauchte bei einigen Betreibern auf und ist mit dieser Version beseitigt.";
+ break;
+
+ case "0.4.5": // SQL queries for v0.4.5
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "De-/Aktivieren des mit dieser Erweiterung verknüpften Modules eingebunden.";
+ break;
+
+ case "0.4.6": // SQL queries for v0.4.6
+ $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_member_menu (action, what, title, sort, visible, locked) VALUES ('order', '', 'Mailbuchungen', 3, 'Y', 'N')";
+ $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_member_menu (action, what, title, sort, visible, locked) VALUES ('order', 'order2', 'Framekiller-Mails', 2, 'Y', 'N')";
+ $SQLs[] = "UPDATE "._MYSQL_PREFIX."_member_menu SET action='order', sort='1', title='Klick-Mails' WHERE what='order' LIMIT 1";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Mitgliedsmenü komplett umgebaut.";
+ break;
+
+ case "0.4.7": // SQL queries for v0.4.7
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Fehlerhinweis bei deaktivierter Erweiterung verbessert.";
+ break;
+ }
+ break;
+
+default: // Do stuff when extension is loaded
+ $DUMMY = LOAD_CONFIG("0");
+ $CONFIG['order_min'] = $DUMMY['order_min']; // Order at least X mails
+ $CONFIG['order_max'] = $DUMMY['order_max_full']; // Ordering mode: as much as possible or as much as the user want's to receive
+ $CONFIG['order_select'] = $DUMMY['order_select']; // Sorting mode for selecting users while looking some up for mail delivery
+ $CONFIG['order_mode'] = $DUMMY['order_mode']; // Ascending or descending sort order for above
+ unset($DUMMY);
+
+ // Do daily reset only when installed and extension version is at least 0.1.1
+ if ((defined('__DAILY_RESET')) && (!mxchange_installing) && (mxchange_installed) && (admin_registered) && (GET_EXT_VERSION("order") >= "0.1.1"))
+ {
+ // Reset mail order values
+ $result_ext = SQL_QUERY("UPDATE "._MYSQL_PREFIX."_user_data SET mail_orders='0' WHERE mail_orders > 0", __FILE__, __LINE__);
+ }
+ break;
+}
+// Language file prefix
+$EXT_LANG_PREFIX = "order";
+
+// Extension is always active?
+$EXT_ALWAYS_ACTIVE = "N";
+
+//
+?>