Mailer used in many places, we still need a good 'selling' title
[mailer.git] / inc / extensions / ext-mailid.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 03/22/2004 *
4  * ================                             Last change: 07/08/2007 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : ext-mailid.php                                   *
8  * -------------------------------------------------------------------- *
9  * Short description : Mail confirmation link                           *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Mailbest&auml;tigungslink                            *
12  * -------------------------------------------------------------------- *
13  * $Revision::                                                        $ *
14  * $Date::                                                            $ *
15  * $Tag:: 0.2.1-FINAL                                                 $ *
16  * $Author::                                                          $ *
17  * Needs to be in all Files and every File needs "svn propset           *
18  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
19  * -------------------------------------------------------------------- *
20  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
21  * For more information visit: http://www.mxchange.org                  *
22  *                                                                      *
23  * This program is free software; you can redistribute it and/or modify *
24  * it under the terms of the GNU General Public License as published by *
25  * the Free Software Foundation; either version 2 of the License, or    *
26  * (at your option) any later version.                                  *
27  *                                                                      *
28  * This program is distributed in the hope that it will be useful,      *
29  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
30  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
31  * GNU General Public License for more details.                         *
32  *                                                                      *
33  * You should have received a copy of the GNU General Public License    *
34  * along with this program; if not, write to the Free Software          *
35  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
36  * MA  02110-1301  USA                                                  *
37  ************************************************************************/
38
39 // Some security stuff...
40 if (!defined('__SECURITY')) {
41         die();
42 }
43
44 // Version number
45 setThisExtensionVersion('0.3.3');
46
47 // Version history array (add more with , '0.1.0' and so on)
48 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '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'));
49
50 switch (getExtensionMode()) {
51         case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
52                 // SQL commands to run
53                 addExtensionSql('');
54                 break;
55
56         case 'remove': // Do stuff when removing extension
57                 // SQL commands to run
58                 addExtensionSql('');
59                 break;
60
61         case 'activate': // Do stuff when admin activates this extension
62                 // SQL commands to run
63                 addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='mailid' LIMIT 1");
64                 break;
65
66         case 'deactivate': // Do stuff when admin deactivates this extension
67                 // SQL commands to run
68                 addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y' WHERE `module`='mailid' LIMIT 1");
69                 break;
70
71         case 'update': // Update an extension
72                 switch (getCurrentExtensionVersion()) {
73                         case '0.0.1': // SQL queries for v0.0.1
74                                 // Update notes (these will be set as task text!)
75                                 setExtensionUpdateNotes("Veraltetes Update.");
76                                 break;
77
78                         case '0.0.2': // SQL queries for v0.0.2
79                                 // Update notes (these will be set as task text!)
80                                 setExtensionUpdateNotes("Turbo-Bonus interegiert, nur wenn bonus-Erweiterung v0.2.2 oder h&ouml;her ist.");
81                                 break;
82
83                         case '0.0.4': // SQL queries for v0.0.4
84                                 // Update notes (these will be set as task text!)
85                                 setExtensionUpdateNotes("Absicherung der Variablen <em>userid</em>, <em>mailid</em> und <em>bonusid</em> durch die eigene Funktion <em>bigintval()</em> in den beiden Dateien <em>mailid.php</em> und <em>mailid_top.php</em>.");
86                                 break;
87
88                         case '0.0.5': // SQL queries for v0.0.5
89                                 // Update notes (these will be set as task text!)
90                                 setExtensionUpdateNotes("Weisse Seite im Mozilla bzw. <em>Seite nicht gefunden</em> unter dem IE behoben.");
91                                 break;
92
93                         case '0.0.6': // SQL queries for v0.0.6
94                                 // Update notes (these will be set as task text!)
95                                 setExtensionUpdateNotes("register_globals-Problem behoben");
96                                 break;
97
98                         case '0.0.7': // SQL queries for v0.0.7
99                                 // Update notes (these will be set as task text!)
100                                 setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
101                                 break;
102
103                         case '0.0.8': // SQL queries for v0.0.8
104                                 // Update notes (these will be set as task text!)
105                                 setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
106                                 break;
107
108                         case '0.0.9': // SQL queries for v0.0.9
109                                 // Update notes (these will be set as task text!)
110                                 setExtensionUpdateNotes("Mailbest&auml;tigung klappt wieder.");
111                                 break;
112
113                         case '0.1.0': // SQL queries for v0.2.1
114                                 // Update notes (these will be set as task text!)
115                                 setExtensionUpdateNotes("5 Nachkommastellen implementiert");
116                                 break;
117
118                         case '0.1.1': // SQL queries for v0.1.1
119                                 // Update notes (these will be set as task text!)
120                                 setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
121                                 break;
122
123                         case '0.1.2': // SQL queries for v0.1.2
124                                 // Update notes (these will be set as task text!)
125                                 setExtensionUpdateNotes("Probe-Fix wegen falschen Best&auml;tigungcodes bei Druck auf Return-Taste. Bitte aktualisieren Sie auch das Template <u>mailid_confirm_buttom.tpl</u>, damit die Best&auml;tigung ohne Code auch klappt!");
126                                 break;
127
128                         case '0.1.3': // SQL queries for v0.1.3
129                                 // Update notes (these will be set as task text!)
130                                 setExtensionUpdateNotes("Men&uuml;punkte im Gast-/Mitgliedsbereich k&ouml;nnen nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist.");
131                                 break;
132
133                         case '0.1.4': // SQL queries for v0.1.4
134                                 // Update notes (these will be set as task text!)
135                                 setExtensionUpdateNotes("Sicherheitsupdate an den Scripten <u>mailid.php</u> und <strong>mailid_top.php</strong> durchgef&uuml;hrt.");
136                                 break;
137
138                         case '0.1.5': // SQL queries for v0.1.5
139                                 // Update notes (these will be set as task text!)
140                                 setExtensionUpdateNotes("Sende-Pool wird nicht mehr ben&ouml;tigt, um die Best&auml;tigung durchzuf&uuml;hren.");
141                                 break;
142
143                         case '0.1.6': // SQL queries for v0.1.6
144                                 // Update notes (these will be set as task text!)
145                                 setExtensionUpdateNotes("Template <u>mailid_frameset.tpl</u> nach <u>mailid_frames.tpl</u> umbenannt.");
146                                 break;
147
148                         case '0.1.7': // SQL queries for v0.1.7
149                                 // Update notes (these will be set as task text!)
150                                 setExtensionUpdateNotes("Ausgabe des generierten HTML-Codes nach <u>inc/footer.php</u> verlagert.");
151                                 break;
152
153                         case '0.1.8': // SQL queries for v0.1.8
154                                 // Update notes (these will be set as task text!)
155                                 setExtensionUpdateNotes("Fehlende Variablen gefixt.");
156                                 break;
157
158                         case '0.1.9': // SQL queries for v0.1.9
159                                 // Update notes (these will be set as task text!)
160                                 setExtensionUpdateNotes("Gesamt-{?POINTS?} werden nun nach Best&auml;tigung angezeigt. Bitte aktualisieren Sie die Templates <u>mailid_points_done.tpl</u>, <u>mailid_points_done2.tpl</u> und <u>mailid_frames.tpl</u> !");
161                                 break;
162
163                         case '0.2.0': // SQL queries for v0.2.0
164                                 // Update notes (these will be set as task text!)
165                                 setExtensionUpdateNotes("Variablen abgesichert (Diverse Warnhinweise des Webservers sind damit unterbunden).");
166                                 break;
167
168                         case '0.2.1': // SQL queries for v0.2.1
169                                 // Update notes (these will be set as task text!)
170                                 setExtensionUpdateNotes("Parser-Fehler beseitigt.");
171                                 break;
172
173                         case '0.2.2': // SQL queries for v0.2.2
174                                 // Update notes (these will be set as task text!)
175                                 setExtensionUpdateNotes("Fehler wegen fehlende Datenfeldelementen behoben.");
176                                 break;
177
178                         case '0.2.3': // SQL queries for v0.2.3
179                                 // Update notes (these will be set as task text!)
180                                 setExtensionUpdateNotes("Modul <strong>mailid</strong> war nicht gesetzt. Dadurch wurden die URLs (loader z.B.) umgeschrieben und f&uuml;hrten somit zu Fehlern.");
181                                 break;
182
183                         case '0.2.4': // SQL queries for v0.2.4
184                                 // Update notes (these will be set as task text!)
185                                 setExtensionUpdateNotes("Vorbereitung auf die neue Mediendaten v0.0.4.");
186                                 break;
187
188                         case '0.2.5': // SQL queries for v0.2.5
189                                 // Update notes (these will be set as task text!)
190                                 setExtensionUpdateNotes("Den Punkte in der Gesamt-{?POINTS?}-Anzahl in ein Komma umgewandelt.");
191                                 break;
192
193                         case '0.2.6': // SQL queries for v0.2.6
194                                 // Update notes (these will be set as task text!)
195                                 setExtensionUpdateNotes("De-/Aktivieren des mit dieser Erweiterung verkn&uuml;pften Modules eingebunden.");
196                                 break;
197
198                         case '0.2.7': // SQL queries for v0.2.7
199                                 // Update notes (these will be set as task text!)
200                                 setExtensionUpdateNotes("Wenn die {?POINTS?} dem <strong>noch auf Auszahlung wartendem Guthaben</strong> aufaddiert wird, wird eine entsprechende Nachricht ausgegeben (neue Templates <strong>mailid_points_locked</strong> und <strong>mailid_points_locked2</strong> sind hinzugekommen!)");
201                                 break;
202
203                         case '0.2.8': // SQL queries for v0.2.8
204                                 // Update notes (these will be set as task text!)
205                                 setExtensionUpdateNotes("Bonus- und Standart-Referal-Id ausblendbar aus Aktiv-Rallye und bekommt kein Aktiv-Guthaben.");
206                                 break;
207
208                         case '0.2.9': // SQL queries for v0.2.9
209                                 // Update notes (these will be set as task text!)
210                                 setExtensionUpdateNotes("<strong>Code wiederholen</strong> nach <strong>Code eingeben</strong> hin ge&auml;ndert.");
211                                 break;
212
213                         case '0.3.0': // SQL queries for v0.3.0
214                                 // Update notes (these will be set as task text!)
215                                 setExtensionUpdateNotes("Fehlende Templates hinzugef&uuml;gt.");
216                                 break;
217
218                         case '0.3.1': // SQL queries for v0.3.1
219                                 // Update notes (these will be set as task text!)
220                                 setExtensionUpdateNotes("mailid.php und mailid_top.php k&ouml;nnen erst bei aktivierter Erweiterung <strong>mailid</strong> benutzt werden. Solange gibt es fatale Fehlermeldungen.");
221                                 break;
222
223                         case '0.3.2': // SQL queries for v0.3.2
224                                 // Update notes (these will be set as task text!)
225                                 setExtensionUpdateNotes("Bitte das Template <em><strong>{?PATH?}/templates/de/html/mailid/mailid_points_lcoked2.tpl</strong></em> l&ouml;schen. Noices fixed.");
226                                 break;
227
228                         case '0.3.3': // SQL queries for v0.3.3
229                                 // Update notes (these will be set as task text!)
230                                 setExtensionUpdateNotes("Variablen-Handling scripteweitge&auml;ndert.");
231                                 break;
232                 }
233                 break;
234
235         case 'modify': // When the extension got modified
236                 break;
237
238         case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
239                 break;
240
241         case 'init': // Do stuff when extension is initialized
242                 break;
243
244         default: // Unknown extension mode
245                 DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown extension mode %s detected.", getExtensionMode()));
246                 break;
247 }
248
249 // [EOF]
250 ?>