7e634b4dcb77d277838b5f5133f028d376e98e7d
[mailer.git] / 0.2.1 / inc / extensions / ext-task.php
1 <?php\r
2 /************************************************************************\r
3  * MXChange v0.2.1                                    Start: 07/10/2004 *\r
4  * ================                             Last change: 09/29/2004 *\r
5  *                                                                      *\r
6  * -------------------------------------------------------------------- *\r
7  * File              : ext-task.php                                     *\r
8  * -------------------------------------------------------------------- *\r
9  * Short description : Task management                                  *\r
10  * -------------------------------------------------------------------- *\r
11  * Kurzbeschreibung  : Aufgabenverwaltung                               *\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.1";\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");\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[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, sort, descr) VALUES ('task', '', 'Aufgaben-Management', '1', 'Erweitertes Aufgaben-Management zur leichten verwaltung der vom System erzeugten Aufgaben.')";\r
55         $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, sort, descr) VALUES ('task', 'list_task', 'Aufgaben auflisten', '1', 'Alle Ihnen zugewiesenen Aufgaben auflisten (keine Updates).')";\r
56         $SQLs[] = "UPDATE "._MYSQL_PREFIX."_task_system SET status='SOLVED' WHERE status='CLOSED'";\r
57 \r
58         // Enable CSS file?\r
59         $EXT_CSS = "Y";\r
60         break;\r
61 \r
62 case "remove": // Do stuff when removing extension\r
63         // SQL commands to run\r
64         $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE action='task' LIMIT 2";\r
65         break;\r
66 \r
67 case "activate": // Do stuff when admin activates this extension\r
68         // SQL commands to run\r
69         $SQLs[] = "";\r
70         break;\r
71 \r
72 case "deactivate": // Do stuff when admin deactivates this extension\r
73         // SQL commands to run\r
74         $SQLs[] = "";\r
75         break;\r
76 \r
77 case "update": // Update an extension\r
78         switch ($EXT_VER)\r
79         {\r
80         case "0.0.1": // SQL queries for v0.0.1\r
81                 $SQLs[] = "UPDATE "._MYSQL_PREFIX."_extensions SET ext_has_css='Y' WHERE ext_name='task' AND ext_has_css='N' LIMIT 1";\r
82 \r
83                 // This update depends on sql_patches update!\r
84                 $EXT_UPDATE_DEPENDS = "sql_patches";\r
85 \r
86                 // Update notes (these will be set as task text!)\r
87                 $UPDATE_NOTES = "CSS-Datei kann per Admin-Bereich ein- und ausgeschaltet werden.";\r
88                 break;\r
89 \r
90         case "0.0.1": // SQL queries for v0.0.1\r
91                 // Update notes (these will be set as task text!)\r
92                 $UPDATE_NOTES = "Unn&ouml;tige Script-Teile aus what-list_tasks.php herausgel&ouml;scht; beim Anzeigen einer Extension-Update, oder -Register Aufgabe werden bei eingeschaltetem Verbose-Modus alle SQL-Anweisungen aufgelistet.";\r
93                 break;\r
94 \r
95         case "0.0.4": // SQL queries for v0.0.4\r
96                 // Update notes (these will be set as task text!)\r
97                 $UPDATE_NOTES = "Fehler <FONT class=\"admin_failed\">Warning: Missing argument 2 for create_timestamp_from_selections() in ".PATH."inc/libs/pro_functions.php on line 227</FONT> behoben.";\r
98                 break;\r
99 \r
100         case "0.0.5": // SQL queries for v0.0.5\r
101                 // Update notes (these will be set as task text!)\r
102                 $UPDATE_NOTES = "&amp;admin= in &amp;amp;admin= umgewandelt.";\r
103                 break;\r
104 \r
105         case "0.0.6": // SQL queries for v0.0.6\r
106                 // Update notes (these will be set as task text!)\r
107                 $UPDATE_NOTES = "Wegen des Theme-Supportes hat sich die URL zur CSS-Datei ge&auml;ndert.";\r
108                 break;\r
109 \r
110         case "0.0.7": // SQL queries for v0.0.7\r
111                 // Update notes (these will be set as task text!)\r
112                 $UPDATE_NOTES = "Erstellung der Extra-&Uuml;bersichten verbessert.";\r
113                 break;\r
114 \r
115         case "0.0.8": // SQL queries for v0.0.8\r
116                 // Update notes (these will be set as task text!)\r
117                 $UPDATE_NOTES = "Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.";\r
118                 break;\r
119 \r
120         case "0.0.9": // SQL queries for v0.0.9\r
121                 // Update notes (these will be set as task text!)\r
122                 $UPDATE_NOTES = "Fehler bei Abfrage der payout-Erweiterung beseitigt.";\r
123                 break;\r
124 \r
125         case "0.1.0": // SQL queries for v0.1.0\r
126                 // Update notes (these will be set as task text!)\r
127                 $UPDATE_NOTES = "Task-Liste ausgelagert als Template";\r
128                 break;\r
129 \r
130         case "0.1.1": // SQL queries for v0.1.1\r
131                 // Update notes (these will be set as task text!)\r
132                 $UPDATE_NOTES = "Design &quot;Solid-Business&quot; eingebaut.";\r
133                 break;\r
134 \r
135         case "0.1.2": // SQL queries for v0.1.2\r
136                 // Update notes (these will be set as task text!)\r
137                 $UPDATE_NOTES = "Seit <A href=\"".SERVER_URL."/patches/340-Gast_Mitgliedsmenue_Deaktivieren.zip\">Patch 340</A> &uuml;berfl&uuml;ssige HTML-Tags entfernt.";\r
138                 break;\r
139 \r
140         case "0.1.3": // SQL queries for v0.1.3\r
141                 // Update notes (these will be set as task text!)\r
142                 $UPDATE_NOTES = "Link zum Mitgliedsprofil in Funktion <U>ADMIN_USER_PROFILE_LINK()</U> ausgelagert.";\r
143                 break;\r
144 \r
145         case "0.1.4": // SQL queries for v0.1.4\r
146                 // Update notes (these will be set as task text!)\r
147                 $UPDATE_NOTES = "W&ouml;rter <STRONG>Mailtausch</STRONG>, <STRONG>Mailtausches</STRONG> und <STRONG>Mailtauscher</STRONG> sind austauschbar.";\r
148                 break;\r
149 \r
150         case "0.1.5": // SQL queries for v0.1.5\r
151                 // Update notes (these will be set as task text!)\r
152                 $UPDATE_NOTES = "Links wegen <STRONG>what=admins_contct</STRONG> ge&auml;ndert.";\r
153                 break;\r
154 \r
155         case "0.1.6": // SQL queries for v0.1.6\r
156                 // Update notes (these will be set as task text!)\r
157                 $UPDATE_NOTES = "Weitere Direkt-Links eingebaut:<BR>\r
158 <UL>\r
159   <LI>L&auml;ndercodes (<STRONG><A href=\"".SERVER_URL."/extensions/ext-country.zip\">ext-country.zip</A></STRONG>)</LI>\r
160   <LI>Wartende Verdopplungen (<STRONG><A href=\"".SERVER_URL."/extensions/ext-doubler.zip\">ext-doubler.zip</A></STRONG>)</LI>\r
161   <LI><STRONG>Ge&auml;ndert:</STRONG> Wartende Auszahlungen (<STRONG><A href=\"".SERVER_URL."/extensions/ext-payout.zip\">ext-payout.zip</A></STRONG>)</LI>\r
162   <LI>Teilnehmer an der Aktiv-Rallye (<STRONG><A href=\"".SERVER_URL."/extensions/ext-bonus.zip\">ext-bonus.zip</A></STRONG>; nur wenn Version neuer oder gleich 0.2.3 ist!)</LI>\r
163   <LI>Nett hinweisende Linktitel hinzugef&uuml;gt. :-)</LI>\r
164 </UL>";\r
165                 break;\r
166 \r
167         case "0.1.7": // SQL queries for v0.1.7\r
168                 // Update notes (these will be set as task text!)\r
169                 $UPDATE_NOTES = "Direkt Links zum Sponsorenbereich vorbereitend eingebaut.";\r
170                 break;\r
171 \r
172         case "0.1.8": // SQL queries for v0.1.8\r
173                 // Update notes (these will be set as task text!)\r
174                 $UPDATE_NOTES = "Es werden alle installierten und aktivierten Themes angezeigt und verlinkt.";\r
175                 break;\r
176 \r
177         case "0.1.9": // SQL queries for v0.1.9\r
178                 // Update notes (these will be set as task text!)\r
179                 $UPDATE_NOTES = "CSS-Datei in general.css verschmolzen (Patch 435!)";\r
180                 break;\r
181 \r
182         case "0.2.0": // SQL queries for v0.2.0\r
183                 // Update notes (these will be set as task text!)\r
184                 $UPDATE_NOTES = "Alle Administratoren, Referral-Banner und aktivierte Referral-Banner werden nun eingeblendet.";\r
185                 break;\r
186 \r
187         case "0.2.1": // SQL queries for v0.2.1\r
188                 // Update notes (these will be set as task text!)\r
189                 $UPDATE_NOTES = "Problem mit &uuml;berlanger Textbreite beseitigt.";\r
190                 break;\r
191 \r
192         case "0.2.2": // SQL queries for v0.2.2\r
193                 // Update notes (these will be set as task text!)\r
194                 $UPDATE_NOTES = "Link zum Freischalten von Sponoren-Accounts korregiert.";\r
195                 break;\r
196 \r
197         case "0.2.3": // SQL queries for v0.2.3\r
198                 // Update notes (these will be set as task text!)\r
199                 $UPDATE_NOTES = "Sortierungsreihenfolge grundlegend ge&auml;ndert: Es wird jetzt nach Mitglieder-ID, Aufgabenbereich, Infos und nach dem Erstellunsdatum sortiert.";\r
200                 break;\r
201 \r
202         case "0.2.4": // SQL queries for v0.2.4\r
203                 // Update notes (these will be set as task text!)\r
204                 $UPDATE_NOTES = "Abspeichern von Einstellungen repariert.";\r
205                 break;\r
206 \r
207         case "0.2.5": // SQL queries for v0.2.5\r
208                 // Update notes (these will be set as task text!)\r
209                 $UPDATE_NOTES = "<STRONG>Nur mit bonus v0.6.9 oder h&ouml;her:</STRONG> Zuschaltbare Bonis werden auch bei der Ermittlung Anzahl teilnehmender Mitglieder mit ber&uumk;cksichtigt.";\r
210                 break;\r
211 \r
212         case "0.2.6": // SQL queries for v0.2.6\r
213                 // Update notes (these will be set as task text!)\r
214                 $UPDATE_NOTES = "Teilnehmer der Bettel-Rallye werden angezeigt.";\r
215                 break;\r
216 \r
217         case "0.2.7": // SQL queries for v0.2.7\r
218                 // Update notes (these will be set as task text!)\r
219                 $UPDATE_NOTES = "Link zum direkten Aufheben einer Urlaubsschaltung eines Mitgliedes korregiert.";\r
220                 break;\r
221 \r
222         case "0.2.8": // SQL queries for v0.2.8\r
223                 // Update notes (these will be set as task text!)\r
224                 $UPDATE_NOTES = "Sicherheitsupdate f&uuml;r die Include-Befehle.";\r
225                 break;\r
226 \r
227         case "0.2.9": // SQL queries for v0.2.9\r
228                 // Update notes (these will be set as task text!)\r
229                 $UPDATE_NOTES = "if-Anweisungen auf Funktion <STRONG>empty()</STRONG> umgestellt. Update-Aufgaben werden nach &quot;Bearbeitung&quot; nicht mehr als <STRONG>Erledigt</STRONG> gesetzt. Dies hatte sonst den Anschein, die Update-Aufgaben m&uuml;ssten erledigt werden, um die Erweiterungs-Updates einzuspielen, was aber automatisch geschieht.";\r
230                 break;\r
231 \r
232         case "0.3.0": // SQL queries for v0.3.0\r
233                 // Update notes (these will be set as task text!)\r
234                 $UPDATE_NOTES = "Export-Accounts werden in Task-&Uuml;bersicht aufgelistet.";\r
235                 break;\r
236 \r
237         case "0.3.1": // SQL queries for v0.3.1\r
238                 // Update notes (these will be set as task text!)\r
239                 $UPDATE_NOTES = "Diverse Fixes an den Templates (Notice-Hinweise vom PHP-Interpreter entfernt).";\r
240                 break;\r
241         }\r
242         break;\r
243 \r
244 default: // Do stuff when extension is loaded\r
245         break;\r
246 }\r
247 \r
248 // Language file prefix\r
249 $EXT_LANG_PREFIX = "task";\r
250 \r
251 // Extension is always active?\r
252 $EXT_ALWAYS_ACTIVE = "N";\r
253 \r
254 //\r
255 ?>\r