2 /************************************************************************
3 * Mailer v0.2.1-FINAL 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 : Mailbestaetigungslink *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
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 *
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. *
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. *
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, *
36 ************************************************************************/
38 // Some security stuff...
39 if (!defined('__SECURITY')) {
44 setThisExtensionVersion('0.3.4');
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'));
49 switch (getExtensionMode()) {
50 case 'register': // Do stuff when installation is running
51 // SQL commands to run
55 case 'remove': // Do stuff when removing extension
56 // SQL commands to run
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");
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");
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.");
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öher ist.");
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 <span class=\"bad\">userid</span>, <span class=\"bad\">mailid</span> und <span class=\"bad\">bonusid</span> durch die eigene Funktion <span class=\"bad\">bigintval()</span> in den beiden Dateien <span class=\"bad\">mailid.php</span> und <span class=\"bad\">mailid_top.php</span>.");
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. <span class=\"bad\">Seite nicht gefunden</span> unter dem IE behoben.");
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");
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.");
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.");
107 case '0.0.9': // SQL queries for v0.0.9
108 // Update notes (these will be set as task text!)
109 setExtensionUpdateNotes("Mailbestätigung klappt wieder.");
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");
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.");
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ä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!");
127 case '0.1.3': // SQL queries for v0.1.3
128 // Update notes (these will be set as task text!)
129 setExtensionUpdateNotes("Menüpunkte im Gast-/Mitgliedsbereich können nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist.");
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ührt.");
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ötigt, um die Bestätigung durchzuführen.");
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.");
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.");
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.");
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ä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> !");
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).");
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.");
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.");
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ührten somit zu Fehlern.");
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.");
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.");
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üpften Modules eingebunden.");
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!)");
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-Referral-Id ausblendbar aus Aktiv-Rallye und bekommt kein Aktiv-Guthaben.");
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ändert.");
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ügt.");
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önnen erst bei aktivierter Erweiterung <strong>mailid</strong> benutzt werden. Solange gibt es fatale Fehlermeldungen.");
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 <span class=\"bad\"><strong>{?PATH?}/templates/de/html/mailid/mailid_points_lcoked2.tpl</strong></span> löschen. Noices fixed.");
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ändert.");
232 case '0.3.4': // SQL queries for v0.3.4
233 // This update depends on latest sql_patches version
234 addExtensionDependency('sql_patches');
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')");
242 case 'modify': // When the extension got modified
245 case 'test': // For testing purposes
248 case 'init': // Do stuff when extension is initialized
251 default: // Unknown extension mode
252 logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));