2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 06/25/2013 *
4 * =================== Last change: 06/25/2013 *
6 * -------------------------------------------------------------------- *
7 * File : mode-setup.php *
8 * -------------------------------------------------------------------- *
9 * Short description : Other administrative settings *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Weitere administrative Einstellungen *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
17 * -------------------------------------------------------------------- *
18 * Copyright (c) 2003 - 2009 by Roland Haeder *
19 * Copyright (c) 2009 - 2013 by Mailer Developer Team *
20 * For more information visit: http://mxchange.org *
22 * This program is free software; you can redistribute it and/or modify *
23 * it under the terms of the GNU General Public License as published by *
24 * the Free Software Foundation; either version 2 of the License, or *
25 * (at your option) any later version. *
27 * This program is distributed in the hope that it will be useful, *
28 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
30 * GNU General Public License for more details. *
32 * You should have received a copy of the GNU General Public License *
33 * along with this program; if not, write to the Free Software *
34 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
36 ************************************************************************/
38 // Some security stuff...
39 if (!defined('__SECURITY')) {
43 // @TODO Remove double tabs from all lines
44 switch (getCurrentExtensionVersion()) {
45 case '0.0.1': // SQL queries for v0.0.1
46 // Update notes (these will be set as task text!)
47 setExtensionUpdateNotes("Fehler <div class=\"notice\">Warning: Missing argument 2 for create_timestamp_from_selections() in {?PATH?}inc/libs/pro_functions.php on line 227</div> behoben.");
50 case '0.0.2': // SQL queries for v0.0.2
51 // Update notes (these will be set as task text!)
52 setExtensionUpdateNotes("Speichern der Einstellungen vereinfacht. Es wird dazu die Funktion adminSaveSettings() verwendet.");
55 case '0.0.3': // SQL queries for v0.0.3
56 // Update notes (these will be set as task text!)
57 setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
60 case '0.0.4': // SQL queries for v0.0.4
61 addConfigAddSql('max_comma', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 3');
63 // Update notes (these will be set as task text!)
64 setExtensionUpdateNotes("Angezeigte Kommastellen können zwischen 0 und 5 eingestellt werden.");
67 case '0.0.5': // SQL queries for v0.0.5
68 // Update notes (these will be set as task text!)
69 setExtensionUpdateNotes("Problem mit Speicherung der Einstellungen beseitigt.");
72 case '0.0.6': // SQL queries for v0.0.6
73 // Update notes (these will be set as task text!)
74 setExtensionUpdateNotes("Problem mit Speicherung der Einstellungen endlich beseitigt.");
77 case '0.0.7': // SQL queries for v0.0.7
78 // Update notes (these will be set as task text!)
79 setExtensionUpdateNotes("Ausgabemodus der CSS-Dateien hinzugefügt. Bitte auch das Admin-Template aktualisieren!");
82 case '0.0.8': // SQL queries for v0.0.8
83 // Update notes (these will be set as task text!)
84 setExtensionUpdateNotes("Erweiterung bleibt wegen integrierten Schalters immer aktiv.");
87 case '0.0.9': // SQL queries for v0.0.9
88 // Update notes (these will be set as task text!)
89 setExtensionUpdateNotes("Abspeichern der Einstellungen repariert.");
92 case '0.1.0': // SQL queries for v0.2.1
93 // Update notes (these will be set as task text!)
94 setExtensionUpdateNotes("Folgende Einstellungen können auf 0 gesetzt werden:
96 <li>Selbe beworbene URL nicht mehr bewerbar (0 = URL kann sofort wieder gebucht werden)</li>
97 <li>Gültigkeitsdauer der Bestätigungslinks (0 = Bestätigungslinks laufen nie ab)</li>
98 <li>Sperrzeit des Mitgliedprofiles nach Änderung (0 = Mitglied kann sein Account immer und sofort ändern)</li>
99 <li>Profilaktualisierungsinterval (0 = Es wird keine Mail zum Profilaktualisierunng durch das Mitglied ausgesendet(</li>
100 <li>Erneute Aussendung der Mail (0 = Siehe oben)</li>
104 case '0.1.1': // SQL queries for v0.1.1
105 // Update notes (these will be set as task text!)
106 setExtensionUpdateNotes("Gast- und Mitgliedsmenüs lassen sich voneinander getrentt ein- und auschalten.");
109 case '0.1.2': // SQL queries for v0.1.2
110 // Update notes (these will be set as task text!)
111 setExtensionUpdateNotes("Wörter <strong>{?mt_word?}</strong>, <strong>{?mt_word2?}</strong> und <strong>{?mt_word3?}</strong> sind austauschbar.");
114 case '0.1.3': // SQL queries for v0.1.3
115 // Update notes (these will be set as task text!)
116 setExtensionUpdateNotes("Wort "Baustelle" vom Auto-Versand entfernt, da dieser nun klappt.");
119 case '0.1.4': // SQL queries for v0.1.4
120 // Update notes (these will be set as task text!)
121 setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
124 case '0.1.5': // SQL queries for v0.1.5
125 // Update notes (these will be set as task text!)
126 setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
129 case '0.1.6': // SQL queries for v0.1.6
130 addConfigAddSql('reject_url', "VARCHAR(255) NOT NULL DEFAULT '{?URL?}'");
132 // Update notes (these will be set as task text!)
133 setExtensionUpdateNotes("Bei Ablehnung der URL wird jetzt endlich eine Standard-URL eingesetzt, die konfigurierbar ist. Fehler beim Laden der Konfiguration gefunden.");
136 case '0.1.7': // SQL queries for v0.1.7
137 addConfigAddSql('currency', "VARCHAR(255) NOT NULL DEFAULT '€'");
139 // Update notes (these will be set as task text!)
140 setExtensionUpdateNotes("Standard-Währung der Gebühren für alle Erweiterungen geltend hinzugefügt.");
143 case '0.1.8': // SQL queries for v0.1.8
144 // Update notes (these will be set as task text!)
145 setExtensionUpdateNotes("Die sonstigen Einstellungen lassen sich nun nur noch ändern, wenn die Erweiterung <strong>other</strong> auch installiert ist. Anderfalls gibt es einen SQL-Fehler beim Speichern und GROSS_GESCHRIEBENE Worte im Formular.");
148 case '0.1.9': // SQL queries for v0.1.9
149 addConfigAddSql('mailid_error_redirect', "ENUM('INDEX','REJECT') NOT NULL DEFAULT 'INDEX'");
151 // Update notes (these will be set as task text!)
152 setExtensionUpdateNotes("Bei fehlerhafter Mail während der Bestätigung kann wahlweise zur Hauptseite weitergeleitet oder auf die eingestellte Ablehnungsseite umgeleitet werden.");
155 case '0.2.0': // SQL queries for v0.2.0
156 addConfigChangeSql('mailid_error_redirect', 'mailid_error_redirect', "ENUM('INDEX','REJECT') NOT NULL DEFAULT 'INDEX'");
158 // Update notes (these will be set as task text!)
159 setExtensionUpdateNotes("Bei fehlerhafter Mail während der Bestätigung kann wahlweise zur Hauptseite weitergeleitet oder auf die eingestellte Ablehnungsseite umgeleitet werden.");
162 case '0.2.1': // SQL queries for v0.2.1
163 addConfigAddSql('min_age', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 16');
165 // Update notes (these will be set as task text!)
166 setExtensionUpdateNotes("Minimumalter ist nun konfigurierbar.");
169 case '0.2.2': // SQL queries for v0.2.2
170 addConfigAddSql('display_debug_sqls', "ENUM('N','Y') NOT NULL DEFAULT 'N'");
172 // Update notes (these will be set as task text!)
173 setExtensionUpdateNotes("(Fast) alle SQL-Abfragen lassen sich nun zu Debugging-Zwecken (!) einschalten. Nur der Administrator sieht diese unten am Ende der Seite.");
176 case '0.2.3': // SQL queries for v0.2.3
177 addConfigAddSql('max_send', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 10');
179 // Update notes (these will be set as task text!)
180 setExtensionUpdateNotes("Fehlende Konfiguration hinzugefügt.");
183 case '0.2.4': // SQL queries for v0.2.4
185 registerFilter(__FILE__, __LINE__, 'page_footer', 'DISPLAY_DEBUG_SQL', FALSE, TRUE, isExtensionDryRun());
187 // Update notes (these will be set as task text!)
188 setExtensionUpdateNotes("Filter zum Anzeigen (Debug) von ausgeführten SQL-Anweisungen hinzugefügt.");
191 case '0.2.5': // SQL queries for v0.2.5
192 addConfigAddSql('code_length', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 5');
194 // Update notes (these will be set as task text!)
195 setExtensionUpdateNotes("Codelänge aus tables.sql rausgeholt.");
198 case '0.2.6': // SQL queries for v0.2.6
199 addConfigAddSql('internal_stats', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
201 // Update notes (these will be set as task text!)
202 setExtensionUpdateNotes("Interne Statistiken sind nun abschaltbar (kann Performance bringen).");
205 case '0.2.7': // SQL queries for v0.2.7
206 addConfigChangeSql('stats_enabled', 'internal_stats', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
208 // Update notes (these will be set as task text!)
209 setExtensionUpdateNotes("Der Suffix <strong>_enabled</strong> in Konfigurationseinträgen ist deprecated und sollte nicht mehr verwendet werden. Da sonst Wrapper-Funktionsnamen wie z.B. <strong>isStatsEnabledEnabled()</strong> nach streng genommender Namenskonvention entstehen.");
212 case '0.2.8': // SQL queries for v0.2.8
213 addConfigChangeSql('mailid_error_redirect', 'mailid_error_redirect', "ENUM('INDEX','REJECT') NOT NULL DEFAULT 'INDEX'");
215 // Update notes (these will be set as task text!)
216 setExtensionUpdateNotes("<strong>mailid_error_redirect</strong> bzw. alle ENUMs haben gross geschriebene Werte.");
219 case '0.2.9': // SQL queries for v0.2.9
220 addConfigAddSql('word_wrap', 'TINYINT(3) NOT NULL DEFAULT 15');
222 // Update notes (these will be set as task text!)
223 setExtensionUpdateNotes("Anzahl Zeichen für <strong>wordwrap()</strong>-Aufruf hinzugefügt.");
226 case '0.3.0': // SQL queries for v0.3.0
227 addConfigAddSql('check_double_email', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
228 addConfigAddSql('admin_notify', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
229 addConfigAddSql('activate_xchange', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 100');
231 // Update notes (these will be set as task text!)
232 setExtensionUpdateNotes("Konfiguration aus allgemeiner <strong>tables.sql</strong> zu dieser Erweiterung verschoben.");