2 /************************************************************************
3 * MXChange v0.2.1 Start: 03/22/2004 *
4 * ================ Last change: 07/08/2007 *
6 * -------------------------------------------------------------------- *
7 * File : ext-mailid.php *
8 * -------------------------------------------------------------------- *
9 * Short description : Mail confirmation link *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Mailbestätigungslink *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
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 *
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. *
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. *
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, *
37 ************************************************************************/
39 // Some security stuff...
40 if (!defined('__SECURITY')) {
45 setThisExtensionVersion('0.3.3');
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'));
50 switch (getExtensionMode()) {
51 case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
52 // SQL commands to run
56 case 'remove': // Do stuff when removing extension
57 // SQL commands to run
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");
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");
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.");
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öher ist.");
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>.");
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.");
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");
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.");
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.");
108 case '0.0.9': // SQL queries for v0.0.9
109 // Update notes (these will be set as task text!)
110 setExtensionUpdateNotes("Mailbestätigung klappt wieder.");
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");
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.");
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ätigungcodes bei Druck auf Return-Taste. Bitte aktualisieren Sie auch das Template <u>mailid_confirm_buttom.tpl</u>, damit die Bestätigung ohne Code auch klappt!");
128 case '0.1.3': // SQL queries for v0.1.3
129 // Update notes (these will be set as task text!)
130 setExtensionUpdateNotes("Menüpunkte im Gast-/Mitgliedsbereich können nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist.");
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ührt.");
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ötigt, um die Bestätigung durchzuführen.");
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.");
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.");
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.");
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ä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> !");
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).");
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.");
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.");
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ührten somit zu Fehlern.");
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.");
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.");
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üpften Modules eingebunden.");
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!)");
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.");
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ändert.");
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ügt.");
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önnen erst bei aktivierter Erweiterung <strong>mailid</strong> benutzt werden. Solange gibt es fatale Fehlermeldungen.");
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öschen. Noices fixed.");
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ändert.");
235 case 'modify': // When the extension got modified
238 case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
241 case 'init': // Do stuff when extension is initialized
244 default: // Unknown extension mode
245 DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown extension mode %s detected.", getExtensionMode()));