Heacy rewrite/cleanup:
[mailer.git] / inc / extensions / other / mode-update.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 06/25/2013 *
4  * ===================                          Last change: 06/25/2013 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : mode-setup.php                                   *
8  * -------------------------------------------------------------------- *
9  * Short description : Other administrative settings                    *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Weitere administrative Einstellungen             *
12  * -------------------------------------------------------------------- *
13  * $Revision::                                                        $ *
14  * $Date::                                                            $ *
15  * $Tag:: 0.2.1-FINAL                                                 $ *
16  * $Author::                                                          $ *
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                      *
21  *                                                                      *
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.                                  *
26  *                                                                      *
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.                         *
31  *                                                                      *
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,               *
35  * MA  02110-1301  USA                                                  *
36  ************************************************************************/
37
38 // Some security stuff...
39 if (!defined('__SECURITY')) {
40         die();
41 } // END - if
42
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.");
48                                 break;
49
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.");
53                                 break;
54
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.");
58                                 break;
59
60                         case '0.0.4': // SQL queries for v0.0.4
61                                 addConfigAddSql('max_comma', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 3');
62
63                                 // Update notes (these will be set as task text!)
64                                 setExtensionUpdateNotes("Angezeigte Kommastellen k&ouml;nnen zwischen 0 und 5 eingestellt werden.");
65                                 break;
66
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.");
70                                 break;
71
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.");
75                                 break;
76
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&uuml;gt. Bitte auch das Admin-Template aktualisieren!");
80                                 break;
81
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.");
85                                 break;
86
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.");
90                                 break;
91
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&ouml;nnen auf 0 gesetzt werden:
95 <ol>
96 <li>Selbe beworbene URL nicht mehr bewerbar (0 = URL kann sofort wieder gebucht werden)</li>
97 <li>G&uuml;ltigkeitsdauer der Best&auml;tigungslinks (0 = Best&auml;tigungslinks laufen nie ab)</li>
98 <li>Sperrzeit des Mitgliedprofiles nach &Auml;nderung (0 = Mitglied kann sein Account immer und sofort &auml;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>
101 </ol>");
102                                 break;
103
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&uuml;s lassen sich voneinander getrentt ein- und auschalten.");
107                                 break;
108
109                         case '0.1.2': // SQL queries for v0.1.2
110                                 // Update notes (these will be set as task text!)
111                                 setExtensionUpdateNotes("W&ouml;rter <strong>{?mt_word?}</strong>, <strong>{?mt_word2?}</strong> und <strong>{?mt_word3?}</strong> sind austauschbar.");
112                                 break;
113
114                         case '0.1.3': // SQL queries for v0.1.3
115                                 // Update notes (these will be set as task text!)
116                                 setExtensionUpdateNotes("Wort &quot;Baustelle&quot; vom Auto-Versand entfernt, da dieser nun klappt.");
117                                 break;
118
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.");
122                                 break;
123
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.");
127                                 break;
128
129                         case '0.1.6': // SQL queries for v0.1.6
130                                 addConfigAddSql('reject_url', "VARCHAR(255) NOT NULL DEFAULT '{?URL?}'");
131
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.");
134                                 break;
135
136                         case '0.1.7': // SQL queries for v0.1.7
137                                 addConfigAddSql('currency', "VARCHAR(255) NOT NULL DEFAULT '&euro;'");
138
139                                 // Update notes (these will be set as task text!)
140                                 setExtensionUpdateNotes("Standard-W&auml;hrung der Geb&uuml;hren f&uuml;r alle Erweiterungen geltend hinzugef&uuml;gt.");
141                                 break;
142
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 &auml;ndern, wenn die Erweiterung <strong>other</strong> auch installiert ist. Anderfalls gibt es einen SQL-Fehler beim Speichern und GROSS_GESCHRIEBENE Worte im Formular.");
146                                 break;
147
148                         case '0.1.9': // SQL queries for v0.1.9
149                                 addConfigAddSql('mailid_error_redirect', "ENUM('INDEX','REJECT') NOT NULL DEFAULT 'INDEX'");
150
151                                 // Update notes (these will be set as task text!)
152                                 setExtensionUpdateNotes("Bei fehlerhafter Mail w&auml;hrend der Best&auml;tigung kann wahlweise zur Hauptseite weitergeleitet oder auf die eingestellte Ablehnungsseite umgeleitet werden.");
153                                 break;
154
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'");
157
158                                 // Update notes (these will be set as task text!)
159                                 setExtensionUpdateNotes("Bei fehlerhafter Mail w&auml;hrend der Best&auml;tigung kann wahlweise zur Hauptseite weitergeleitet oder auf die eingestellte Ablehnungsseite umgeleitet werden.");
160                                 break;
161
162                         case '0.2.1': // SQL queries for v0.2.1
163                                 addConfigAddSql('min_age', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 16');
164
165                                 // Update notes (these will be set as task text!)
166                                 setExtensionUpdateNotes("Minimumalter ist nun konfigurierbar.");
167                                 break;
168
169                         case '0.2.2': // SQL queries for v0.2.2
170                                 addConfigAddSql('display_debug_sqls', "ENUM('N','Y') NOT NULL DEFAULT 'N'");
171
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.");
174                                 break;
175
176                         case '0.2.3': // SQL queries for v0.2.3
177                                 addConfigAddSql('max_send', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 10');
178
179                                 // Update notes (these will be set as task text!)
180                                 setExtensionUpdateNotes("Fehlende Konfiguration hinzugef&uuml;gt.");
181                                 break;
182
183                         case '0.2.4': // SQL queries for v0.2.4
184                                 // Register filter
185                                 registerFilter(__FILE__, __LINE__, 'page_footer', 'DISPLAY_DEBUG_SQL', FALSE, TRUE, isExtensionDryRun());
186
187                                 // Update notes (these will be set as task text!)
188                                 setExtensionUpdateNotes("Filter zum Anzeigen (Debug) von ausgef&uuml;hrten SQL-Anweisungen hinzugef&uuml;gt.");
189                                 break;
190
191                         case '0.2.5': // SQL queries for v0.2.5
192                                 addConfigAddSql('code_length', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 5');
193
194                                 // Update notes (these will be set as task text!)
195                                 setExtensionUpdateNotes("Codel&auml;nge aus tables.sql rausgeholt.");
196                                 break;
197
198                         case '0.2.6': // SQL queries for v0.2.6
199                                 addConfigAddSql('internal_stats', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
200
201                                 // Update notes (these will be set as task text!)
202                                 setExtensionUpdateNotes("Interne Statistiken sind nun abschaltbar (kann Performance bringen).");
203                                 break;
204
205                         case '0.2.7': // SQL queries for v0.2.7
206                                 addConfigChangeSql('stats_enabled', 'internal_stats', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
207
208                                 // Update notes (these will be set as task text!)
209                                 setExtensionUpdateNotes("Der Suffix <strong>_enabled</strong> in Konfigurationseintr&auml;gen ist deprecated und sollte nicht mehr verwendet werden. Da sonst Wrapper-Funktionsnamen wie z.B. <strong>isStatsEnabledEnabled()</strong> nach streng genommender Namenskonvention entstehen.");
210                                 break;
211
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'");
214
215                                 // Update notes (these will be set as task text!)
216                                 setExtensionUpdateNotes("<strong>mailid_error_redirect</strong> bzw. alle ENUMs haben gross geschriebene Werte.");
217                                 break;
218
219                         case '0.2.9': // SQL queries for v0.2.9
220                                 addConfigAddSql('word_wrap', 'TINYINT(3) NOT NULL DEFAULT 15');
221
222                                 // Update notes (these will be set as task text!)
223                                 setExtensionUpdateNotes("Anzahl Zeichen f&uuml;r <strong>wordwrap()</strong>-Aufruf hinzugef&uuml;gt.");
224                                 break;
225
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');
230
231                                 // Update notes (these will be set as task text!)
232                                 setExtensionUpdateNotes("Konfiguration aus allgemeiner <strong>tables.sql</strong> zu dieser Erweiterung verschoben.");
233                                 break;
234                 } // END - switch
235
236 // [EOF]
237 ?>