Obsolete direct links to my server removed, patch support deactivated in what-updates.php
[mailer.git] / inc / extensions / ext-mailid.php
1 <?php
2 /************************************************************************
3  * MXChange v0.2.1                                    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  : Mailbestaetigungslink                            *
12  * -------------------------------------------------------------------- *
13  *                                                                      *
14  * -------------------------------------------------------------------- *
15  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
16  * For more information visit: http://www.mxchange.org                  *
17  *                                                                      *
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.                                  *
22  *                                                                      *
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.                         *
27  *                                                                      *
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,               *
31  * MA  02110-1301  USA                                                  *
32  ************************************************************************/
33
34 // Some security stuff...
35 if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])))
36 {
37         $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
38         require($INC);
39 }
40
41 // Version number
42 $EXT_VERSION = "0.3.3";
43
44 // Auto-set extension version
45 if (empty($EXT_VER)) $EXT_VER = $EXT_VERSION;
46
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");
49
50 switch ($EXT_LOAD_MODE)
51 {
52 case "register": // Do stuff when installtion is running (modules.php?module=admin&action=login is called)
53         // SQL commands to run
54         $SQLs[] = "";
55         break;
56
57 case "remove": // Do stuff when removing extension
58         // SQL commands to run
59         $SQLs[] = "";
60         break;
61
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";
65         break;
66
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";
70         break;
71
72 case "update": // Update an extension
73         switch ($EXT_VER)
74         {
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";
77
78                 // Update notes (these will be set as task text!)
79                 $UPDATE_NOTES = "Sprachdatei auf mailid gesetzt.";
80                 break;
81
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&ouml;her ist.";
85                 break;
86
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>.";
90                 break;
91
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.";
95                 break;
96
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";
100                 break;
101
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.";
105                 break;
106
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.";
110                 break;
111
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&auml;tigung klappt wieder.";
115                 break;
116
117         case "0.1.0": // SQL queries for v0.2.1
118                 // Update notes (these will be set as task text!)
119                 $UPDATE_NOTES = "5 Nachkommastellen implementiert";
120                 break;
121
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.";
125                 break;
126
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&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!";
130                 break;
131
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&uuml;punkte im Gast-/Mitgliedsbereich k&ouml;nnen nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist.";
135                 break;
136
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&uuml;hrt.";
140                 break;
141
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&ouml;tigt, um die Best&auml;tigung durchzuf&uuml;hren.";
145                 break;
146
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.";
150                 break;
151
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.";
155                 break;
156
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.";
160                 break;
161
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&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> !";
165                 break;
166
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).";
170                 break;
171
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.";
175                 break;
176
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.";
180                 break;
181
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&uuml;hrten somit zu Fehlern.";
185                 break;
186
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.";
190                 break;
191
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.";
195                 break;
196
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&uuml;pften Modules eingebunden.";
200                 break;
201
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!)";
205                 break;
206
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.";
210                 break;
211
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&auml;ndert.";
215                 break;
216
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&uuml;gt.";
220                 break;
221
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&ouml;nnen erst bei aktivierter Erweiterung <strong>mailid</strong> benutzt werden. Solange gibt es fatale Fehlermeldungen.";
225                 break;
226
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&ouml;schen. Noices fixed.";
230                 break;
231
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&auml;ndert.";
235                 break;
236         }
237         break;
238
239 default: // Do stuff when extension is loaded
240         break;
241 }
242
243 // Language file prefix
244 $EXT_LANG_PREFIX = "mailid";
245
246 // Extension is always active?
247 $EXT_ALWAYS_ACTIVE = "N";
248
249 //
250 ?>