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 * -------------------------------------------------------------------- *
13 * Copyright (c) 2003 - 2009 by Roland Haeder *
14 * Copyright (c) 2009 - 2013 by Mailer Developer Team *
15 * For more information visit: http://mxchange.org *
17 * This program is free software; you can redistribute it and/or modify *
18 * it under the terms of the GNU General Public License as published by *
19 * the Free Software Foundation; either version 2 of the License, or *
20 * (at your option) any later version. *
22 * This program is distributed in the hope that it will be useful, *
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
25 * GNU General Public License for more details. *
27 * You should have received a copy of the GNU General Public License *
28 * along with this program; if not, write to the Free Software *
29 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
31 ************************************************************************/
33 // Some security stuff...
34 if (!defined('__SECURITY')) {
38 // @TODO Remove double tabs from all lines
39 switch (getCurrentExtensionVersion()) {
40 case '0.0.1': // SQL queries for v0.0.1
41 // Update notes (these will be set as task text!)
42 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.");
45 case '0.0.2': // SQL queries for v0.0.2
46 // Update notes (these will be set as task text!)
47 setExtensionUpdateNotes("Speichern der Einstellungen vereinfacht. Es wird dazu die Funktion adminSaveSettings() verwendet.");
50 case '0.0.3': // SQL queries for v0.0.3
51 // Update notes (these will be set as task text!)
52 setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
55 case '0.0.4': // SQL queries for v0.0.4
56 addConfigAddSql('max_comma', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 3');
58 // Update notes (these will be set as task text!)
59 setExtensionUpdateNotes("Angezeigte Kommastellen können zwischen 0 und 5 eingestellt werden.");
62 case '0.0.5': // SQL queries for v0.0.5
63 // Update notes (these will be set as task text!)
64 setExtensionUpdateNotes("Problem mit Speicherung der Einstellungen beseitigt.");
67 case '0.0.6': // SQL queries for v0.0.6
68 // Update notes (these will be set as task text!)
69 setExtensionUpdateNotes("Problem mit Speicherung der Einstellungen endlich beseitigt.");
72 case '0.0.7': // SQL queries for v0.0.7
73 // Update notes (these will be set as task text!)
74 setExtensionUpdateNotes("Ausgabemodus der CSS-Dateien hinzugefügt. Bitte auch das Admin-Template aktualisieren!");
77 case '0.0.8': // SQL queries for v0.0.8
78 // Update notes (these will be set as task text!)
79 setExtensionUpdateNotes("Erweiterung bleibt wegen integrierten Schalters immer aktiv.");
82 case '0.0.9': // SQL queries for v0.0.9
83 // Update notes (these will be set as task text!)
84 setExtensionUpdateNotes("Abspeichern der Einstellungen repariert.");
87 case '0.1.0': // SQL queries for v0.2.1
88 // Update notes (these will be set as task text!)
89 setExtensionUpdateNotes("Folgende Einstellungen können auf 0 gesetzt werden:
91 <li>Selbe beworbene URL nicht mehr bewerbar (0 = URL kann sofort wieder gebucht werden)</li>
92 <li>Gültigkeitsdauer der Bestätigungslinks (0 = Bestätigungslinks laufen nie ab)</li>
93 <li>Sperrzeit des Mitgliedprofiles nach Änderung (0 = Mitglied kann sein Account immer und sofort ändern)</li>
94 <li>Profilaktualisierungsinterval (0 = Es wird keine Mail zum Profilaktualisierunng durch das Mitglied ausgesendet(</li>
95 <li>Erneute Aussendung der Mail (0 = Siehe oben)</li>
99 case '0.1.1': // SQL queries for v0.1.1
100 // Update notes (these will be set as task text!)
101 setExtensionUpdateNotes("Gast- und Mitgliedsmenüs lassen sich voneinander getrentt ein- und auschalten.");
104 case '0.1.2': // SQL queries for v0.1.2
105 // Update notes (these will be set as task text!)
106 setExtensionUpdateNotes("Wörter <strong>{?mt_word?}</strong>, <strong>{?mt_word2?}</strong> und <strong>{?mt_word3?}</strong> sind austauschbar.");
109 case '0.1.3': // SQL queries for v0.1.3
110 // Update notes (these will be set as task text!)
111 setExtensionUpdateNotes("Wort "Baustelle" vom Auto-Versand entfernt, da dieser nun klappt.");
114 case '0.1.4': // SQL queries for v0.1.4
115 // Update notes (these will be set as task text!)
116 setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
119 case '0.1.5': // SQL queries for v0.1.5
120 // Update notes (these will be set as task text!)
121 setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
124 case '0.1.6': // SQL queries for v0.1.6
125 addConfigAddSql('reject_url', "VARCHAR(255) NOT NULL DEFAULT '{?URL?}'");
127 // Update notes (these will be set as task text!)
128 setExtensionUpdateNotes("Bei Ablehnung der URL wird jetzt endlich eine Standard-URL eingesetzt, die konfigurierbar ist. Fehler beim Laden der Konfiguration gefunden.");
131 case '0.1.7': // SQL queries for v0.1.7
132 addConfigAddSql('currency', "VARCHAR(255) NOT NULL DEFAULT '€'");
134 // Update notes (these will be set as task text!)
135 setExtensionUpdateNotes("Standard-Währung der Gebühren für alle Erweiterungen geltend hinzugefügt.");
138 case '0.1.8': // SQL queries for v0.1.8
139 // Update notes (these will be set as task text!)
140 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.");
143 case '0.1.9': // SQL queries for v0.1.9
144 addConfigAddSql('mailid_error_redirect', "ENUM('INDEX','REJECT') NOT NULL DEFAULT 'INDEX'");
146 // Update notes (these will be set as task text!)
147 setExtensionUpdateNotes("Bei fehlerhafter Mail während der Bestätigung kann wahlweise zur Hauptseite weitergeleitet oder auf die eingestellte Ablehnungsseite umgeleitet werden.");
150 case '0.2.0': // SQL queries for v0.2.0
151 addConfigChangeSql('mailid_error_redirect', 'mailid_error_redirect', "ENUM('INDEX','REJECT') NOT NULL DEFAULT 'INDEX'");
153 // Update notes (these will be set as task text!)
154 setExtensionUpdateNotes("Bei fehlerhafter Mail während der Bestätigung kann wahlweise zur Hauptseite weitergeleitet oder auf die eingestellte Ablehnungsseite umgeleitet werden.");
157 case '0.2.1': // SQL queries for v0.2.1
158 addConfigAddSql('min_age', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 16');
160 // Update notes (these will be set as task text!)
161 setExtensionUpdateNotes("Minimumalter ist nun konfigurierbar.");
164 case '0.2.2': // SQL queries for v0.2.2
165 addConfigAddSql('display_debug_sqls', "ENUM('N','Y') NOT NULL DEFAULT 'N'");
167 // Update notes (these will be set as task text!)
168 setExtensionUpdateNotes("(Fast) alle SQL-Abfragen lassen sich nun zu Debugging-Zwecken (!) einschalten. Nur der Administrator sieht diese unten am Ende der Seite.");
171 case '0.2.3': // SQL queries for v0.2.3
172 addConfigAddSql('max_send', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 10');
174 // Update notes (these will be set as task text!)
175 setExtensionUpdateNotes("Fehlende Konfiguration hinzugefügt.");
178 case '0.2.4': // SQL queries for v0.2.4
180 registerFilter(__FILE__, __LINE__, 'page_footer', 'DISPLAY_DEBUG_SQL', FALSE, TRUE, isExtensionDryRun());
182 // Update notes (these will be set as task text!)
183 setExtensionUpdateNotes("Filter zum Anzeigen (Debug) von ausgeführten SQL-Anweisungen hinzugefügt.");
186 case '0.2.5': // SQL queries for v0.2.5
187 addConfigAddSql('code_length', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 5');
189 // Update notes (these will be set as task text!)
190 setExtensionUpdateNotes("Codelänge aus tables.sql rausgeholt.");
193 case '0.2.6': // SQL queries for v0.2.6
194 addConfigAddSql('internal_stats', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
196 // Update notes (these will be set as task text!)
197 setExtensionUpdateNotes("Interne Statistiken sind nun abschaltbar (kann Performance bringen).");
200 case '0.2.7': // SQL queries for v0.2.7
201 addConfigChangeSql('stats_enabled', 'internal_stats', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
203 // Update notes (these will be set as task text!)
204 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.");
207 case '0.2.8': // SQL queries for v0.2.8
208 addConfigChangeSql('mailid_error_redirect', 'mailid_error_redirect', "ENUM('INDEX','REJECT') NOT NULL DEFAULT 'INDEX'");
210 // Update notes (these will be set as task text!)
211 setExtensionUpdateNotes("<strong>mailid_error_redirect</strong> bzw. alle ENUMs haben gross geschriebene Werte.");
214 case '0.2.9': // SQL queries for v0.2.9
215 addConfigAddSql('word_wrap', 'TINYINT(3) NOT NULL DEFAULT 15');
217 // Update notes (these will be set as task text!)
218 setExtensionUpdateNotes("Anzahl Zeichen für <strong>wordwrap()</strong>-Aufruf hinzugefügt.");
221 case '0.3.0': // SQL queries for v0.3.0
222 addConfigAddSql('check_double_email', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
223 addConfigAddSql('admin_notify', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
224 addConfigAddSql('activate_xchange', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 100');
226 // Update notes (these will be set as task text!)
227 setExtensionUpdateNotes("Konfiguration aus allgemeiner <strong>tables.sql</strong> zu dieser Erweiterung verschoben.");