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 : Mailbestaetigungslink *
12 * -------------------------------------------------------------------- *
14 * -------------------------------------------------------------------- *
15 * Copyright (c) 2003 - 2008 by Roland Haeder *
16 * For more information visit: http://www.mxchange.org *
18 * This program is free software; you can redistribute it and/or modify *
19 * it under the terms of the GNU General Public License as published by *
20 * the Free Software Foundation; either version 2 of the License, or *
21 * (at your option) any later version. *
23 * This program is distributed in the hope that it will be useful, *
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
26 * GNU General Public License for more details. *
28 * You should have received a copy of the GNU General Public License *
29 * along with this program; if not, write to the Free Software *
30 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
32 ************************************************************************/
34 // Some security stuff...
35 if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])))
37 $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
42 $EXT_VERSION = "0.3.3";
44 // Auto-set extension version
45 if (empty($EXT_VER)) $EXT_VER = $EXT_VERSION;
47 // Version history array (add more with , "0.1" and so on)
48 $EXT_VER_HISTORY = 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 ($EXT_LOAD_MODE)
52 case "register": // Do stuff when installtion is running (modules.php?module=admin&action=login is called)
53 // SQL commands to run
57 case "remove": // Do stuff when removing extension
58 // SQL commands to run
62 case "activate": // Do stuff when admin activates this extension
63 // SQL commands to run
64 $SQLs[] = "UPDATE "._MYSQL_PREFIX."_mod_reg SET locked='N', hidden='N', admin_only='N', mem_only='N' WHERE module='mailid' LIMIT 1";
67 case "deactivate": // Do stuff when admin deactivates this extension
68 // SQL commands to run
69 $SQLs[] = "UPDATE "._MYSQL_PREFIX."_mod_reg SET locked='Y' WHERE module='mailid' LIMIT 1";
72 case "update": // Update an extension
75 case "0.0.1": // SQL queries for v0.0.1
76 $SQLs[] = "UPDATE "._MYSQL_PREFIX."_extensions SET ext_lang_file='mailid' WHERE ext_name='mailid' AND ext_lang_file != 'mailid' LIMIT 1";
78 // Update notes (these will be set as task text!)
79 $UPDATE_NOTES = "Sprachdatei auf mailid gesetzt.";
82 case "0.0.2": // SQL queries for v0.0.2
83 // Update notes (these will be set as task text!)
84 $UPDATE_NOTES = "Turbo-Bonus interegiert, nur wenn bonus-Erweiterung v0.2.2 oder höher ist.";
87 case "0.0.4": // SQL queries for v0.0.4
88 // Update notes (these will be set as task text!)
89 $UPDATE_NOTES = "Absicherung der Variablen <I>uid</I>, <I>mailid</I> und <I>bonusid</I> durch die eigene Funktion <I>bigintval()</I> in den beiden Dateien <I>mailid.php</I> und <I>mailid_top.php</I>.";
92 case "0.0.5": // SQL queries for v0.0.5
93 // Update notes (these will be set as task text!)
94 $UPDATE_NOTES = "Weisse Seite im Mozilla bzw. <I>Seite nicht gefunden</I> unter dem IE behoben.";
97 case "0.0.6": // SQL queries for v0.0.6
98 // Update notes (these will be set as task text!)
99 $UPDATE_NOTES = "register_globals-Problem behoben";
102 case "0.0.7": // SQL queries for v0.0.7
103 // Update notes (these will be set as task text!)
104 $UPDATE_NOTES = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";
107 case "0.0.8": // SQL queries for v0.0.8
108 // Update notes (these will be set as task text!)
109 $UPDATE_NOTES = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";
112 case "0.0.9": // SQL queries for v0.0.9
113 // Update notes (these will be set as task text!)
114 $UPDATE_NOTES = "Mailbestätigung klappt wieder.";
117 case "0.1.0": // SQL queries for v0.1.0
118 // Update notes (these will be set as task text!)
119 $UPDATE_NOTES = "5 Nachkommastellen implementiert";
122 case "0.1.1": // SQL queries for v0.1.1
123 // Update notes (these will be set as task text!)
124 $UPDATE_NOTES = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";
127 case "0.1.2": // SQL queries for v0.1.2
128 // Update notes (these will be set as task text!)
129 $UPDATE_NOTES = "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!";
132 case "0.1.3": // SQL queries for v0.1.3
133 // Update notes (these will be set as task text!)
134 $UPDATE_NOTES = "Menüpunkte im Gast-/Mitgliedsbereich können nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist.";
137 case "0.1.4": // SQL queries for v0.1.4
138 // Update notes (these will be set as task text!)
139 $UPDATE_NOTES = "Sicherheitsupdate an den Scripten <U>mailid.php</U> und <STRONG>mailid_top.php</STRONG> durchgeführt.";
142 case "0.1.5": // SQL queries for v0.1.5
143 // Update notes (these will be set as task text!)
144 $UPDATE_NOTES = "Sende-Pool wird nicht mehr benötigt, um die Bestätigung durchzuführen.";
147 case "0.1.6": // SQL queries for v0.1.6
148 // Update notes (these will be set as task text!)
149 $UPDATE_NOTES = "Template <U>mailid_frameset.tpl</U> nach <U>mailid_frames.tpl</U> umbenannt.";
152 case "0.1.7": // SQL queries for v0.1.7
153 // Update notes (these will be set as task text!)
154 $UPDATE_NOTES = "Ausgabe des generierten HTML-Codes nach <U>inc/footer.php</U> verlagert.";
157 case "0.1.8": // SQL queries for v0.1.8
158 // Update notes (these will be set as task text!)
159 $UPDATE_NOTES = "Fehlende Variablen gefixt.";
162 case "0.1.9": // SQL queries for v0.1.9
163 // Update notes (these will be set as task text!)
164 $UPDATE_NOTES = "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> !";
167 case "0.2.0": // SQL queries for v0.2.0
168 // Update notes (these will be set as task text!)
169 $UPDATE_NOTES = "Variablen abgesichert (Diverse Warnhinweise des Webservers sind damit unterbunden).";
172 case "0.2.1": // SQL queries for v0.2.1
173 // Update notes (these will be set as task text!)
174 $UPDATE_NOTES = "Parser-Fehler beseitigt.";
177 case "0.2.2": // SQL queries for v0.2.2
178 // Update notes (these will be set as task text!)
179 $UPDATE_NOTES = "Fehler wegen fehlende Datenfeldelementen behoben.";
182 case "0.2.3": // SQL queries for v0.2.3
183 // Update notes (these will be set as task text!)
184 $UPDATE_NOTES = "Modul <STRONG>mailid</STRONG> war nicht gesetzt. Dadurch wurden die URLs (loader z.B.) umgeschrieben und führten somit zu Fehlern.";
187 case "0.2.4": // SQL queries for v0.2.4
188 // Update notes (these will be set as task text!)
189 $UPDATE_NOTES = "Vorbereitung auf die neue Mediendaten v0.0.4.";
192 case "0.2.5": // SQL queries for v0.2.5
193 // Update notes (these will be set as task text!)
194 $UPDATE_NOTES = "Den Punkte in der Gesamt-{!POINTS!}-Anzahl in ein Komma umgewandelt.";
197 case "0.2.6": // SQL queries for v0.2.6
198 // Update notes (these will be set as task text!)
199 $UPDATE_NOTES = "De-/Aktivieren des mit dieser Erweiterung verknüpften Modules eingebunden.";
202 case "0.2.7": // SQL queries for v0.2.7
203 // Update notes (these will be set as task text!)
204 $UPDATE_NOTES = "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!)";
207 case "0.2.8": // SQL queries for v0.2.8
208 // Update notes (these will be set as task text!)
209 $UPDATE_NOTES = "Bonus- und Standart-Referral-ID ausblendbar aus Aktiv-Rallye und bekommt kein Aktiv-Guthaben.";
212 case "0.2.9": // SQL queries for v0.2.9
213 // Update notes (these will be set as task text!)
214 $UPDATE_NOTES = "<STRONG>Code wiederholen</STRONG> nach <STRONG>Code eingeben</STRONG> hin geändert.";
217 case "0.3.0": // SQL queries for v0.3.0
218 // Update notes (these will be set as task text!)
219 $UPDATE_NOTES = "Fehlende Templates hinzugefügt.";
222 case "0.3.1": // SQL queries for v0.3.1
223 // Update notes (these will be set as task text!)
224 $UPDATE_NOTES = "mailid.php und mailid_top.php können erst bei aktivierter Erweiterung <strong>mailid</strong> benutzt werden. Solange gibt es fatale Fehlermeldungen.";
227 case "0.3.2": // SQL queries for v0.3.2
228 // Update notes (these will be set as task text!)
229 $UPDATE_NOTES = "Bitte das Template <em><strong>".PATH."/templates/de/html/mailid/mailid_points_lcoked2.tpl</strong></em> löschen. Noices fixed.";
232 case "0.3.3": // SQL queries for v0.3.3
233 // Update notes (these will be set as task text!)
234 $UPDATE_NOTES = "Variablen-Handling skriptglobal geändert.";
239 default: // Do stuff when extension is loaded
243 // Language file prefix
244 $EXT_LANG_PREFIX = "mailid";
246 // Extension is always active?
247 $EXT_ALWAYS_ACTIVE = "N";