Added update_year.sh (still not fully flexible) and updated all years with it.
[mailer.git] / inc / extensions / autopurge / 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 : Automatical purging of outdated mail links       *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Auto-Loeschung von veralteten Mail-Links         *
12  * -------------------------------------------------------------------- *
13  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
14  * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
15  * For more information visit: http://mxchange.org                      *
16  *                                                                      *
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.                                  *
21  *                                                                      *
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.                         *
26  *                                                                      *
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,               *
30  * MA  02110-1301  USA                                                  *
31  ************************************************************************/
32
33 // Some security stuff...
34 if (!defined('__SECURITY')) {
35         die();
36 } // END - if
37
38 // @TODO Remove double tabs from all lines
39                 switch (getCurrentExtensionVersion()) {
40                         case '0.1.0': // SQL queries for v0.1.0
41                                 // Add dependency to 'user'
42                                 addExtensionDependency('user');
43
44                                 // SQL queries
45                                 addConfigAddSql('autopurge_inactive', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
46                                 addConfigAddSql('autopurge_unconfirmed', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
47                                 addConfigAddSql('ap_inactive_since', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 2592000');
48                                 addConfigAddSql('ap_inactive_time', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 25200');
49                                 addConfigAddSql('ap_unconfirmed_time', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 432000');
50                                 addAdminMenuSql('setup', 'config_autopurge', 'Auto-L&ouml;schung', 'Automatisch inaktive oder nicht best&auml;tigte Accounts l&ouml;schen.', 12);
51                                 addAdminMenuSql('user', 'list_autopurge', 'Inaktive finden', 'Lassen Sie sich vor dem t&auml;glichen Reset anzeigen, welche Mitglieder als inaktiv erkannt werden und welche gel&ouml;scht werden.', 10);
52                                 addExtensionAddTableColumnSql('user_data', 'ap_notified', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
53
54                                 // Update notes (these will be set as task text!)
55                                 setExtensionUpdateNotes("Automatisches L&ouml;schen von inaktiven bzw. nicht best&auml;tigten Accounts hinzugef&uuml;gt.");
56                                 break;
57
58                         case '0.1.2': // SQL queries for v0.1.2
59                                 // Update notes (these will be set as task text!)
60                                 setExtensionUpdateNotes("Automatisches L&ouml;schen von als zu l&ouml;schen markierte Tasks hinzugef&uuml;gt.");
61                                 break;
62
63                         case '0.1.3': // SQL queries for v0.1.3
64                                 // Update notes (these will be set as task text!)
65                                 setExtensionUpdateNotes("Nicht mehr verwendetes Update.");
66                                 break;
67
68                         case '0.1.4': // SQL queries for v0.1.4
69                                 // Update notes (these will be set as task text!)
70                                 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.");
71                                 break;
72
73                         case '0.1.5': // SQL queries for v0.1.5
74                                 // Update notes (these will be set as task text!)
75                                 setExtensionUpdateNotes("Anstelle von <strong>ref_depth</strong> wurde <strong>level</strong> programmiert.");
76                                 break;
77
78                         case '0.1.6': // SQL queries for v0.1.6
79                                 // Update notes (these will be set as task text!)
80                                 setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
81                                 break;
82
83                         case '0.1.7': // SQL queries for v0.1.7
84                                 // Update notes (these will be set as task text!)
85                                 setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
86                                 break;
87
88                         case '0.1.8': // SQL queries for v0.1.8
89                                 // Update notes (these will be set as task text!)
90                                 setExtensionUpdateNotes("Problem mit Speicherung der Einstellungen beseitigt.");
91                                 break;
92
93                         case '0.1.9': // SQL queries for v0.1.9
94                                 addConfigAddSql('autopurge_tasks', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
95                                 addConfigAddSql('ap_tasks_time', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (getOneDay() * 7));
96
97                                 // Update notes (these will be set as task text!)
98                                 setExtensionUpdateNotes("Bereinigung von zu l&ouml;schenden Aufgaben klappt wieder. Zeitlimit f&uuml;r genanntes kann eingestellt werden (Default = 7 Tage).<br /><br /><u>Bitte aktualisieren Sie auch die Admin-Templates!</u>");
99                                 break;
100
101                         case '0.2.0': // SQL queries for v0.2.0
102                                 addConfigAddSql('ap_in_notify', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
103                                 addConfigAddSql('ap_un_notify', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
104                                 addConfigAddSql('ap_tasks_notify', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
105
106                                 // Update notes (these will be set as task text!)
107                                 setExtensionUpdateNotes("Mail wird bei L&ouml;schung von Aufgaben ausgesendet.<br /><br /><u>Bitte aktualisieren Sie auch die Admin-Templates!</u>");
108                                 break;
109
110                         case '0.2.1': // SQL queries for v0.2.1
111                                 // Update notes (these will be set as task text!)
112                                 setExtensionUpdateNotes("Diverse angebundene Erweiterungen gefixt.");
113                                 break;
114
115                         case '0.2.2': // SQL queries for v0.2.2
116                                 // Update notes (these will be set as task text!)
117                                 setExtensionUpdateNotes("Betreffzeile f&uuml;r gel&ouml;schte Aufgaben korregiert.");
118                                 break;
119
120                         case '0.2.3': // SQL queries for v0.2.3
121                                 // Update notes (these will be set as task text!)
122                                 setExtensionUpdateNotes("Erweiterung bleibt wegen integrierten Schalters immer aktiv.");
123                                 break;
124
125                         case '0.2.4': // SQL queries for v0.2.4
126                                 // Update notes (these will be set as task text!)
127                                 setExtensionUpdateNotes("Auto-L&ouml;schung von Best&auml;tigungslinks kann unter &quot;Sonstige Einstellungen&quot; abgeschaltet werden (0 setzen!)");
128                                 break;
129
130                         case '0.2.5': // SQL queries for v0.2.5
131                                 // Update notes (these will be set as task text!)
132                                 setExtensionUpdateNotes("Seit <strong>Patch 340</strong> &uuml;berfl&uuml;ssige HTML-Tags entfernt.");
133                                 break;
134
135                         case '0.2.6': // SQL queries for v0.2.6
136                                 // Update notes (these will be set as task text!)
137                                 setExtensionUpdateNotes("Problem mit Jackpot beseitigt ({?POINTS?} wurden nicht gutgeschrieben.)");
138                                 break;
139
140                         case '0.2.7': // SQL queries for v0.2.7
141                                 // Update notes (these will be set as task text!)
142                                 setExtensionUpdateNotes("Link zum Mitgliedsprofil in Funktion <u>generateUserProfileLink()</u> ausgelagert.");
143                                 break;
144
145                         case '0.2.8': // SQL queries for v0.2.8
146                                 // Update notes (these will be set as task text!)
147                                 setExtensionUpdateNotes("Link zum Mitgliedsprofil in Funktion <u>generateUserProfileLink()</u> ausgelagert.");
148                                 break;
149
150                         case '0.2.9': // SQL queries for v0.2.9
151                                 // Update notes (these will be set as task text!)
152                                 setExtensionUpdateNotes("Mailbetreffs korregiert.");
153                                 break;
154
155                         case '0.3.0': // SQL queries for v0.3.0
156                                 // Update notes (these will be set as task text!)
157                                 setExtensionUpdateNotes("Template <u>admin_config_autopurge.tpl</u> ist &uuml;berfl&uuml;ssig geworden. Bitte l&ouml;schen Sie dies!");
158                                 break;
159
160                         case '0.3.1': // SQL queries for v0.3.1
161                                 // Update notes (these will be set as task text!)
162                                 setExtensionUpdateNotes("Datumsformat festgelegt auf ausf&uuml;hrlich.");
163                                 break;
164
165                         case '0.3.2': // SQL queries for v0.3.2
166                                 // Update notes (these will be set as task text!)
167                                 setExtensionUpdateNotes("W&ouml;rter <strong>{?mt_word?}</strong>, <strong>{?mt_word2?}</strong> und <strong>{?mt_word3?}</strong> sind austauschbar.");
168                                 break;
169
170                         case '0.3.3': // SQL queries for v0.3.3
171                                 addConfigAddSql('ap_del_mails', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
172                                 addConfigAddSql('ap_dm_notify', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
173                                 addConfigAddSql('ap_dm_timeout', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT {?ONE_DAY?}');
174
175                                 // Update notes (these will be set as task text!)
176                                 setExtensionUpdateNotes("Von bereits gel&ouml;schten Mitgliedern die Mails l&ouml;schen integriert.");
177                                 break;
178
179                         case '0.3.4': // SQL queries for v0.3.4
180                                 // Update notes (these will be set as task text!)
181                                 setExtensionUpdateNotes("Fehler mit <strong>timestamp_send</strong> (Zeile 308) beseitigt.");
182                                 break;
183
184                         case '0.3.5': // SQL queries for v0.3.5
185                                 // Update notes (these will be set as task text!)
186                                 setExtensionUpdateNotes("Fehler mit <strong>ap_del_emails</strong> (Einstellungen im Admin-Bereich) beseitigt.");
187                                 break;
188
189                         case '0.3.6': // SQL queries for v0.3.6
190                                 // Update notes (these will be set as task text!)
191                                 setExtensionUpdateNotes("Die Accounts der Standard-Referral-Id, der Bonus-Id, Bettellink-Id und der Verdoppler-Id werden nun nicht mehr gel&ouml;scht und tauchen auch unterhalb der Inaktiven-Liste nicht mehr auf.");
192                                 break;
193
194                         case '0.3.7': // SQL queries for v0.3.7
195                                 // Update notes (these will be set as task text!)
196                                 setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
197                                 break;
198
199                         case '0.3.8': // SQL queries for v0.3.8
200                                 // Update notes (these will be set as task text!)
201                                 setExtensionUpdateNotes("Vorbereitung auf die neue Mediendaten v0.0.4.");
202                                 break;
203
204                         case '0.3.9': // SQL queries for v0.3.9
205                                 // Update notes (these will be set as task text!)
206                                 setExtensionUpdateNotes("if-Anweisungen auf Funktion <strong>empty()</strong> umgestellt. Unter <strong>Auto-L&ouml;schung</strong> finden Sie nun auch die Einstellungen zu Mailbest&auml;tigungs wieder. Zudem werden keine Urlauber (neue Urlaubsschaltung beachtet) mehr als inaktiv erkannt.");
207                                 break;
208
209                         case '0.4.0': // SQL queries for v0.4.0
210                                 // Update notes (these will be set as task text!)
211                                 setExtensionUpdateNotes("Template-Problem beseitigt. Dies verhinderte das Abspeichern der Einstellungen.");
212                                 break;
213
214                         case '0.4.1': // SQL queries for v0.4.1
215                                 // Register with points data system
216                                 registerExtensionPointsData('autopurge_add', 'points', 'LOCKED', 'DIRECT');
217
218                                 // Update notes
219                                 setExtensionUpdateNotes("R&uuml;ckschriften bei Auto-L&ouml;schungen werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
220                                 break;
221
222                         case '0.4.2': // SQL queries for v0.4.2
223                                 addConfigAddSql('auto_purge', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (getOneDay()*14));
224                                 addConfigAddSql('auto_purge_active', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
225
226                                 // Update notes
227                                 setExtensionUpdateNotes("Konfiguration in diese Erweiterung verschoben.");
228                                 break;
229                 } // END - switch
230
231 // [EOF]
232 ?>