faff53f35a67f50768680e03e875a6a3841a4cf3
[mailer.git] / 0.2.1 / inc / extensions / ext-mailid.php
1 <?php\r
2 /************************************************************************\r
3  * MXChange v0.2.1                                    Start: 03/22/2004 *\r
4  * ================                             Last change: 07/08/2007 *\r
5  *                                                                      *\r
6  * -------------------------------------------------------------------- *\r
7  * File              : ext-mailid.php                                   *\r
8  * -------------------------------------------------------------------- *\r
9  * Short description : Mail confirmation link                           *\r
10  * -------------------------------------------------------------------- *\r
11  * Kurzbeschreibung  : Mailbestaetigungslink                            *\r
12  * -------------------------------------------------------------------- *\r
13  *                                                                      *\r
14  * -------------------------------------------------------------------- *\r
15  * Copyright (c) 2003 - 2007 by Roland Haeder                           *\r
16  * For more information visit: http://www.mxchange.org                  *\r
17  *                                                                      *\r
18  * This program is free software; you can redistribute it and/or modify *\r
19  * it under the terms of the GNU General Public License as published by *\r
20  * the Free Software Foundation; either version 2 of the License, or    *\r
21  * (at your option) any later version.                                  *\r
22  *                                                                      *\r
23  * This program is distributed in the hope that it will be useful,      *\r
24  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *\r
25  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *\r
26  * GNU General Public License for more details.                         *\r
27  *                                                                      *\r
28  * You should have received a copy of the GNU General Public License    *\r
29  * along with this program; if not, write to the Free Software          *\r
30  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *\r
31  * MA  02110-1301  USA                                                  *\r
32  ************************************************************************/\r
33 \r
34 // Some security stuff...\r
35 if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])))\r
36 {\r
37         $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";\r
38         require($INC);\r
39 }\r
40 \r
41 // Version number\r
42 $EXT_VERSION = "0.3.3";\r
43 \r
44 // Auto-set extension version\r
45 if (empty($EXT_VER)) $EXT_VER = $EXT_VERSION;\r
46 \r
47 // Version history array (add more with , "0.1" and so on)\r
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");\r
49 \r
50 switch ($EXT_LOAD_MODE)\r
51 {\r
52 case "register": // Do stuff when installtion is running (modules.php?module=admin&action=login is called)\r
53         // SQL commands to run\r
54         $SQLs[] = "";\r
55         break;\r
56 \r
57 case "remove": // Do stuff when removing extension\r
58         // SQL commands to run\r
59         $SQLs[] = "";\r
60         break;\r
61 \r
62 case "activate": // Do stuff when admin activates this extension\r
63         // SQL commands to run\r
64         $SQLs[] = "UPDATE "._MYSQL_PREFIX."_mod_reg SET locked='N', hidden='N', admin_only='N', mem_only='N' WHERE module='mailid' LIMIT 1";\r
65         break;\r
66 \r
67 case "deactivate": // Do stuff when admin deactivates this extension\r
68         // SQL commands to run\r
69         $SQLs[] = "UPDATE "._MYSQL_PREFIX."_mod_reg SET locked='Y' WHERE module='mailid' LIMIT 1";\r
70         break;\r
71 \r
72 case "update": // Update an extension\r
73         switch ($EXT_VER)\r
74         {\r
75         case "0.0.1": // SQL queries for v0.0.1\r
76                 $SQLs[] = "UPDATE "._MYSQL_PREFIX."_extensions SET ext_lang_file='mailid' WHERE ext_name='mailid' AND ext_lang_file != 'mailid' LIMIT 1";\r
77 \r
78                 // Update notes (these will be set as task text!)\r
79                 $UPDATE_NOTES = "Sprachdatei auf mailid gesetzt.";\r
80                 break;\r
81 \r
82         case "0.0.2": // SQL queries for v0.0.2\r
83                 // Update notes (these will be set as task text!)\r
84                 $UPDATE_NOTES = "Turbo-Bonus interegiert, nur wenn bonus-Erweiterung v0.2.2 oder h&ouml;her ist.";\r
85                 break;\r
86 \r
87         case "0.0.4": // SQL queries for v0.0.4\r
88                 // Update notes (these will be set as task text!)\r
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>.";\r
90                 break;\r
91 \r
92         case "0.0.5": // SQL queries for v0.0.5\r
93                 // Update notes (these will be set as task text!)\r
94                 $UPDATE_NOTES = "Weisse Seite im Mozilla bzw. <I>Seite nicht gefunden</I> unter dem IE behoben.";\r
95                 break;\r
96 \r
97         case "0.0.6": // SQL queries for v0.0.6\r
98                 // Update notes (these will be set as task text!)\r
99                 $UPDATE_NOTES = "register_globals-Problem behoben";\r
100                 break;\r
101 \r
102         case "0.0.7": // SQL queries for v0.0.7\r
103                 // Update notes (these will be set as task text!)\r
104                 $UPDATE_NOTES = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";\r
105                 break;\r
106 \r
107         case "0.0.8": // SQL queries for v0.0.8\r
108                 // Update notes (these will be set as task text!)\r
109                 $UPDATE_NOTES = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";\r
110                 break;\r
111 \r
112         case "0.0.9": // SQL queries for v0.0.9\r
113                 // Update notes (these will be set as task text!)\r
114                 $UPDATE_NOTES = "Mailbest&auml;tigung klappt wieder.";\r
115                 break;\r
116 \r
117         case "0.1.0": // SQL queries for v0.1.0\r
118                 // Update notes (these will be set as task text!)\r
119                 $UPDATE_NOTES = "5 Nachkommastellen implementiert";\r
120                 break;\r
121 \r
122         case "0.1.1": // SQL queries for v0.1.1\r
123                 // Update notes (these will be set as task text!)\r
124                 $UPDATE_NOTES = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";\r
125                 break;\r
126 \r
127         case "0.1.2": // SQL queries for v0.1.2\r
128                 // Update notes (these will be set as task text!)\r
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!";\r
130                 break;\r
131 \r
132         case "0.1.3": // SQL queries for v0.1.3\r
133                 // Update notes (these will be set as task text!)\r
134                 $UPDATE_NOTES = "Men&uuml;punkte im Gast-/Mitgliedsbereich k&ouml;nnen nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist.";\r
135                 break;\r
136 \r
137         case "0.1.4": // SQL queries for v0.1.4\r
138                 // Update notes (these will be set as task text!)\r
139                 $UPDATE_NOTES = "Sicherheitsupdate an den Scripten <U>mailid.php</U> und <STRONG>mailid_top.php</STRONG> durchgef&uuml;hrt.";\r
140                 break;\r
141 \r
142         case "0.1.5": // SQL queries for v0.1.5\r
143                 // Update notes (these will be set as task text!)\r
144                 $UPDATE_NOTES = "Sende-Pool wird nicht mehr ben&ouml;tigt, um die Best&auml;tigung durchzuf&uuml;hren.";\r
145                 break;\r
146 \r
147         case "0.1.6": // SQL queries for v0.1.6\r
148                 // Update notes (these will be set as task text!)\r
149                 $UPDATE_NOTES = "Template <U>mailid_frameset.tpl</U> nach <U>mailid_frames.tpl</U> umbenannt.";\r
150                 break;\r
151 \r
152         case "0.1.7": // SQL queries for v0.1.7\r
153                 // Update notes (these will be set as task text!)\r
154                 $UPDATE_NOTES = "Ausgabe des generierten HTML-Codes nach <U>inc/footer.php</U> verlagert.";\r
155                 break;\r
156 \r
157         case "0.1.8": // SQL queries for v0.1.8\r
158                 // Update notes (these will be set as task text!)\r
159                 $UPDATE_NOTES = "Fehlende Variablen gefixt.";\r
160                 break;\r
161 \r
162         case "0.1.9": // SQL queries for v0.1.9\r
163                 // Update notes (these will be set as task text!)\r
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> !";\r
165                 break;\r
166 \r
167         case "0.2.0": // SQL queries for v0.2.0\r
168                 // Update notes (these will be set as task text!)\r
169                 $UPDATE_NOTES = "Variablen abgesichert (Diverse Warnhinweise des Webservers sind damit unterbunden).";\r
170                 break;\r
171 \r
172         case "0.2.1": // SQL queries for v0.2.1\r
173                 // Update notes (these will be set as task text!)\r
174                 $UPDATE_NOTES = "Parser-Fehler beseitigt.";\r
175                 break;\r
176 \r
177         case "0.2.2": // SQL queries for v0.2.2\r
178                 // Update notes (these will be set as task text!)\r
179                 $UPDATE_NOTES = "Fehler wegen fehlende Datenfeldelementen behoben.";\r
180                 break;\r
181 \r
182         case "0.2.3": // SQL queries for v0.2.3\r
183                 // Update notes (these will be set as task text!)\r
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.";\r
185                 break;\r
186 \r
187         case "0.2.4": // SQL queries for v0.2.4\r
188                 // Update notes (these will be set as task text!)\r
189                 $UPDATE_NOTES = "Vorbereitung auf die neue Mediendaten v0.0.4.";\r
190                 break;\r
191 \r
192         case "0.2.5": // SQL queries for v0.2.5\r
193                 // Update notes (these will be set as task text!)\r
194                 $UPDATE_NOTES = "Den Punkte in der Gesamt-{!POINTS!}-Anzahl in ein Komma umgewandelt.";\r
195                 break;\r
196 \r
197         case "0.2.6": // SQL queries for v0.2.6\r
198                 // Update notes (these will be set as task text!)\r
199                 $UPDATE_NOTES = "De-/Aktivieren des mit dieser Erweiterung verkn&uuml;pften Modules eingebunden.";\r
200                 break;\r
201 \r
202         case "0.2.7": // SQL queries for v0.2.7\r
203                 // Update notes (these will be set as task text!)\r
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!)";\r
205                 break;\r
206 \r
207         case "0.2.8": // SQL queries for v0.2.8\r
208                 // Update notes (these will be set as task text!)\r
209                 $UPDATE_NOTES = "Bonus- und Standart-Referral-ID ausblendbar aus Aktiv-Rallye und bekommt kein Aktiv-Guthaben.";\r
210                 break;\r
211 \r
212         case "0.2.9": // SQL queries for v0.2.9\r
213                 // Update notes (these will be set as task text!)\r
214                 $UPDATE_NOTES = "<STRONG>Code wiederholen</STRONG> nach <STRONG>Code eingeben</STRONG> hin ge&auml;ndert.";\r
215                 break;\r
216 \r
217         case "0.3.0": // SQL queries for v0.3.0\r
218                 // Update notes (these will be set as task text!)\r
219                 $UPDATE_NOTES = "Fehlende Templates hinzugef&uuml;gt.";\r
220                 break;\r
221 \r
222         case "0.3.1": // SQL queries for v0.3.1\r
223                 // Update notes (these will be set as task text!)\r
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.";\r
225                 break;\r
226 \r
227         case "0.3.2": // SQL queries for v0.3.2\r
228                 // Update notes (these will be set as task text!)\r
229                 $UPDATE_NOTES = "Bitte das Template <em><strong>".PATH."/templates/de/html/mailid/mailid_points_lcoked2.tpl</strong></em> l&ouml;schen. Noices fixed.";\r
230                 break;\r
231 \r
232         case "0.3.3": // SQL queries for v0.3.3\r
233                 // Update notes (these will be set as task text!)\r
234                 $UPDATE_NOTES = "Variablen-Handling skriptglobal ge&auml;ndert.";\r
235                 break;\r
236         }\r
237         break;\r
238 \r
239 default: // Do stuff when extension is loaded\r
240         break;\r
241 }\r
242 \r
243 // Language file prefix\r
244 $EXT_LANG_PREFIX = "mailid";\r
245 \r
246 // Extension is always active?\r
247 $EXT_ALWAYS_ACTIVE = "N";\r
248 \r
249 //\r
250 ?>\r