www is out-dated
[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  * -------------------------------------------------------------------- *
18  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
19  * Copyright (c) 2009 - 2011 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 // Version number
44 setThisExtensionVersion('0.3.4');
45
46 // Version history array (add more with , '0.0.1' and so on)
47 setExtensionVersionHistory(array('0.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', '0.3.4'));
48
49 switch (getExtensionMode()) {
50         case 'register': // Do stuff when installation is running
51                 // SQL commands to run
52                 addExtensionSql('');
53                 break;
54
55         case 'remove': // Do stuff when removing extension
56                 // SQL commands to run
57                 addExtensionSql('');
58                 break;
59
60         case 'activate': // Do stuff when admin activates this extension
61                 // SQL commands to run
62                 addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='mailid' LIMIT 1");
63                 break;
64
65         case 'deactivate': // Do stuff when admin deactivates this extension
66                 // SQL commands to run
67                 addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y' WHERE `module`='mailid' LIMIT 1");
68                 break;
69
70         case 'update': // Update an extension
71                 switch (getCurrentExtensionVersion()) {
72                         case '0.0.1': // SQL queries for v0.0.1
73                                 // Update notes (these will be set as task text!)
74                                 setExtensionUpdateNotes("Veraltetes Update.");
75                                 break;
76
77                         case '0.0.2': // SQL queries for v0.0.2
78                                 // Update notes (these will be set as task text!)
79                                 setExtensionUpdateNotes("Turbo-Bonus interegiert, nur wenn bonus-Erweiterung v0.2.2 oder h&ouml;her ist.");
80                                 break;
81
82                         case '0.0.4': // SQL queries for v0.0.4
83                                 // Update notes (these will be set as task text!)
84                                 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>.");
85                                 break;
86
87                         case '0.0.5': // SQL queries for v0.0.5
88                                 // Update notes (these will be set as task text!)
89                                 setExtensionUpdateNotes("Weisse Seite im Mozilla bzw. <em>Seite nicht gefunden</em> unter dem IE behoben.");
90                                 break;
91
92                         case '0.0.6': // SQL queries for v0.0.6
93                                 // Update notes (these will be set as task text!)
94                                 setExtensionUpdateNotes("register_globals-Problem behoben");
95                                 break;
96
97                         case '0.0.7': // SQL queries for v0.0.7
98                                 // Update notes (these will be set as task text!)
99                                 setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
100                                 break;
101
102                         case '0.0.8': // SQL queries for v0.0.8
103                                 // Update notes (these will be set as task text!)
104                                 setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
105                                 break;
106
107                         case '0.0.9': // SQL queries for v0.0.9
108                                 // Update notes (these will be set as task text!)
109                                 setExtensionUpdateNotes("Mailbest&auml;tigung klappt wieder.");
110                                 break;
111
112                         case '0.1.0': // SQL queries for v0.2.1
113                                 // Update notes (these will be set as task text!)
114                                 setExtensionUpdateNotes("5 Nachkommastellen implementiert");
115                                 break;
116
117                         case '0.1.1': // SQL queries for v0.1.1
118                                 // Update notes (these will be set as task text!)
119                                 setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
120                                 break;
121
122                         case '0.1.2': // SQL queries for v0.1.2
123                                 // Update notes (these will be set as task text!)
124                                 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!");
125                                 break;
126
127                         case '0.1.3': // SQL queries for v0.1.3
128                                 // Update notes (these will be set as task text!)
129                                 setExtensionUpdateNotes("Men&uuml;punkte im Gast-/Mitgliedsbereich k&ouml;nnen nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist.");
130                                 break;
131
132                         case '0.1.4': // SQL queries for v0.1.4
133                                 // Update notes (these will be set as task text!)
134                                 setExtensionUpdateNotes("Sicherheitsupdate an den Scripten <u>mailid.php</u> und <strong>mailid_top.php</strong> durchgef&uuml;hrt.");
135                                 break;
136
137                         case '0.1.5': // SQL queries for v0.1.5
138                                 // Update notes (these will be set as task text!)
139                                 setExtensionUpdateNotes("Sende-Pool wird nicht mehr ben&ouml;tigt, um die Best&auml;tigung durchzuf&uuml;hren.");
140                                 break;
141
142                         case '0.1.6': // SQL queries for v0.1.6
143                                 // Update notes (these will be set as task text!)
144                                 setExtensionUpdateNotes("Template <u>mailid_frameset.tpl</u> nach <u>mailid_frames.tpl</u> umbenannt.");
145                                 break;
146
147                         case '0.1.7': // SQL queries for v0.1.7
148                                 // Update notes (these will be set as task text!)
149                                 setExtensionUpdateNotes("Ausgabe des generierten HTML-Codes nach <u>inc/footer.php</u> verlagert.");
150                                 break;
151
152                         case '0.1.8': // SQL queries for v0.1.8
153                                 // Update notes (these will be set as task text!)
154                                 setExtensionUpdateNotes("Fehlende Variablen gefixt.");
155                                 break;
156
157                         case '0.1.9': // SQL queries for v0.1.9
158                                 // Update notes (these will be set as task text!)
159                                 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> !");
160                                 break;
161
162                         case '0.2.0': // SQL queries for v0.2.0
163                                 // Update notes (these will be set as task text!)
164                                 setExtensionUpdateNotes("Variablen abgesichert (Diverse Warnhinweise des Webservers sind damit unterbunden).");
165                                 break;
166
167                         case '0.2.1': // SQL queries for v0.2.1
168                                 // Update notes (these will be set as task text!)
169                                 setExtensionUpdateNotes("Parser-Fehler beseitigt.");
170                                 break;
171
172                         case '0.2.2': // SQL queries for v0.2.2
173                                 // Update notes (these will be set as task text!)
174                                 setExtensionUpdateNotes("Fehler wegen fehlende Datenfeldelementen behoben.");
175                                 break;
176
177                         case '0.2.3': // SQL queries for v0.2.3
178                                 // Update notes (these will be set as task text!)
179                                 setExtensionUpdateNotes("Modul <strong>mailid</strong> war nicht gesetzt. Dadurch wurden die URLs (loader z.B.) umgeschrieben und f&uuml;hrten somit zu Fehlern.");
180                                 break;
181
182                         case '0.2.4': // SQL queries for v0.2.4
183                                 // Update notes (these will be set as task text!)
184                                 setExtensionUpdateNotes("Vorbereitung auf die neue Mediendaten v0.0.4.");
185                                 break;
186
187                         case '0.2.5': // SQL queries for v0.2.5
188                                 // Update notes (these will be set as task text!)
189                                 setExtensionUpdateNotes("Den Punkt in der Gesamt-{?POINTS?}-Anzahl in ein Komma umgewandelt.");
190                                 break;
191
192                         case '0.2.6': // SQL queries for v0.2.6
193                                 // Update notes (these will be set as task text!)
194                                 setExtensionUpdateNotes("De-/Aktivieren des mit dieser Erweiterung verkn&uuml;pften Modules eingebunden.");
195                                 break;
196
197                         case '0.2.7': // SQL queries for v0.2.7
198                                 // Update notes (these will be set as task text!)
199                                 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!)");
200                                 break;
201
202                         case '0.2.8': // SQL queries for v0.2.8
203                                 // Update notes (these will be set as task text!)
204                                 setExtensionUpdateNotes("Bonus- und Standard-Referal-Id ausblendbar aus Aktiv-Rallye und bekommt kein Aktiv-Guthaben.");
205                                 break;
206
207                         case '0.2.9': // SQL queries for v0.2.9
208                                 // Update notes (these will be set as task text!)
209                                 setExtensionUpdateNotes("<strong>Code wiederholen</strong> nach <strong>Code eingeben</strong> hin ge&auml;ndert.");
210                                 break;
211
212                         case '0.3.0': // SQL queries for v0.3.0
213                                 // Update notes (these will be set as task text!)
214                                 setExtensionUpdateNotes("Fehlende Templates hinzugef&uuml;gt.");
215                                 break;
216
217                         case '0.3.1': // SQL queries for v0.3.1
218                                 // Update notes (these will be set as task text!)
219                                 setExtensionUpdateNotes("mailid.php und mailid_top.php k&ouml;nnen erst bei aktivierter Erweiterung <strong>mailid</strong> benutzt werden. Solange gibt es fatale Fehlermeldungen.");
220                                 break;
221
222                         case '0.3.2': // SQL queries for v0.3.2
223                                 // Update notes (these will be set as task text!)
224                                 setExtensionUpdateNotes("Bitte das Template <em><strong>{?PATH?}/templates/de/html/mailid/mailid_points_lcoked2.tpl</strong></em> l&ouml;schen. Noices fixed.");
225                                 break;
226
227                         case '0.3.3': // SQL queries for v0.3.3
228                                 // Update notes (these will be set as task text!)
229                                 setExtensionUpdateNotes("Variablen-Handling scripteweitge&auml;ndert.");
230                                 break;
231
232                         case '0.3.4': // SQL queries for v0.3.4
233                                 // This update depends on latest sql_patches version
234                                 addExtensionDependency('sql_patches');
235
236                                 // Insert data in points_data
237                                 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('mailid_payback','points','LOCKED','DIRECT')");
238                                 break;
239                 } // END - switch
240                 break;
241
242         case 'modify': // When the extension got modified
243                 break;
244
245         case 'test': // For testing purposes
246                 break;
247
248         case 'init': // Do stuff when extension is initialized
249                 break;
250
251         default: // Unknown extension mode
252                 logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
253                 break;
254 } // END - switch
255
256 // [EOF]
257 ?>