dff898fab5ee4fb398abae64f07ca02c9726f8f4
[mailer.git] / inc / extensions / payout / mode-update.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 06/27/2013 *
4  * ===================                          Last change: 06/27/2013 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : mode-update.php                                  *
8  * -------------------------------------------------------------------- *
9  * Short description : Payout extension                                 *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Auszahlung-Erweiterung                           *
12  * -------------------------------------------------------------------- *
13  * $Revision::                                                        $ *
14  * $Date::                                                            $ *
15  * $Tag:: 0.2.1-FINAL                                                 $ *
16  * $Author::                                                          $ *
17  * -------------------------------------------------------------------- *
18  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
19  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
20  * For more information visit: http://mxchange.org                      *
21  *                                                                      *
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.                                  *
26  *                                                                      *
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.                         *
31  *                                                                      *
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,               *
35  * MA  02110-1301  USA                                                  *
36  ************************************************************************/
37
38 // Some security stuff...
39 if (!defined('__SECURITY')) {
40         die();
41 } // END - if
42
43 // @TODO Remove double tabs from all lines
44                 switch (getCurrentExtensionVersion()) {
45                         case '0.1.2': // SQL queries for v0.1.2
46                                 addAdminMenuSql('payouts', NULL, 'Auszahlungsmanagement','Management der Auszahlungsarten.',8);
47                                 addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `action`='payouts',`title`='Einstellungen' WHERE `action`='setup' AND `what`='config_payouts' LIMIT 1");
48
49                                 // Update notes (these will be set as task text!)
50                                 setExtensionUpdateNotes("Adminmen&uuml; hinzugef&uuml;gt.");
51                                 break;
52
53                         case '0.1.3': // SQL queries for v0.1.3
54                                 addExtensionAddTableColumnSql('payout_types', 'from_account', "VARCHAR(255) NOT NULL DEFAULT ''");
55                                 addExtensionAddTableColumnSql('payout_types', 'from_pass', "VARCHAR(255) NOT NULL DEFAULT ''");
56                                 addExtensionAddTableColumnSql('payout_types', 'engine_url', "VARCHAR(255) NOT NULL DEFAULT ''");
57                                 addExtensionAddTableColumnSql('payout_types', 'engine_ret_ok', "VARCHAR(255) NOT NULL DEFAULT ''");
58                                 addExtensionAddTableColumnSql('payout_types', 'engine_ret_failed', "VARCHAR(255) NOT NULL DEFAULT ''");
59                                 addExtensionAddTableColumnSql('payout_types', 'pass_enc', "ENUM('md5','base64','none') NOT NULL DEFAULT 'md5'");
60
61                                 // Update notes (these will be set as task text!)
62                                 setExtensionUpdateNotes("Daten f&uuml;r API-Auszahlung hinzugef&uuml;gt.");
63                                 break;
64
65                         case '0.1.4': // SQL queries for v0.1.4
66                                 addExtensionAddTableColumnSql('user_payouts', 'password', "VARCHAR(255) NOT NULL DEFAULT ''");
67
68                                 // Update notes (these will be set as task text!)
69                                 setExtensionUpdateNotes("Passwort f&uuml;r Auszahlungsarten hinzugef&uuml;gt (API).");
70                                 break;
71
72                         case '0.1.5': // SQL queries for v0.1.5
73                                 addExtensionAddTableColumnSql('user_payouts', 'target_url', 'LONGTEXT NOT NULL');
74                                 addExtensionAddTableColumnSql('user_payouts', 'banner_url', 'LONGTEXT NOT NULL');
75                                 addExtensionAddTableColumnSql('user_payouts', 'link_text', "VARCHAR(30) NOT NULL DEFAULT ''");
76                                 addExtensionAddTableColumnSql('payout_types', 'allow_url', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
77
78                                 // Update notes (these will be set as task text!)
79                                 setExtensionUpdateNotes("Daten f&uuml;r Banner und Textlink hinzugef&uuml;gt (eventuell durch ext-clickbanner veraltet).");
80                                 break;
81
82                         case '0.1.6': // SQL queries for v0.1.6
83                                 addExtensionChangeTableColumnSql('payout_types', 'pass_enc', 'pass_enc', "ENUM('md5','base64','xxx') NOT NULL DEFAULT 'xxx'");
84
85                                 // Update notes (these will be set as task text!)
86                                 setExtensionUpdateNotes("Passwortverschl&uuml;sselung hinzugef&uuml;gt.");
87                                 break;
88
89                         case '0.1.8': // SQL queries for v0.1.8
90                                 // Update notes (these will be set as task text!)
91                                 setExtensionUpdateNotes("Auflistung der Auszahlungen ausgelagert in Template <span class=\"bad\">member_payout.tpl</span>.");
92                                 break;
93
94                         case '0.1.9': // SQL queries for v0.1.9
95                                 // Update notes (these will be set as task text!)
96                                 setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
97                                 break;
98
99                         case '0.2.0': // SQL queries for v0.2.0
100                                 // Update notes (these will be set as task text!)
101                                 setExtensionUpdateNotes("5 Nachkommastellen implementiert.");
102                                 break;
103
104                         case '0.2.1': // SQL queries for v0.2.1
105                                 addExtensionChangeTableColumnSql('user_payouts', 'payout_total', 'payout_total', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
106                                 addExtensionChangeTableColumnSql('payout_types', 'rate', 'rate', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
107
108                                 // Update notes (these will be set as task text!)
109                                 setExtensionUpdateNotes("Problem mit Speicherung der Einstellungen beseitigt.");
110                                 break;
111
112                         case '0.2.2': // SQL queries for v0.2.2
113                                 // Update notes (these will be set as task text!)
114                                 setExtensionUpdateNotes("Buttons aus Aufgabenauflisten ausgelagert");
115                                 break;
116
117                         case '0.2.3': // SQL queries for v0.2.3
118                                 // Update notes (these will be set as task text!)
119                                 setExtensionUpdateNotes("Men&uuml;punkte im Gast-/Mitgliedsbereich k&ouml;nnen nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist.");
120                                 break;
121
122                         case '0.2.4': // SQL queries for v0.2.4
123                                 // Update notes (these will be set as task text!)
124                                 setExtensionUpdateNotes("Ausgabe der Auszahlungsm&ouml;glichkeiten im Mitgliedsbereich repariert.");
125                                 break;
126
127                         case '0.2.5': // SQL queries for v0.2.5
128                                 // Update notes (these will be set as task text!)
129                                 setExtensionUpdateNotes("Seit <strong>Patch 340</strong> &uuml;berfl&uuml;ssige HTML-Tags entfernt.");
130                                 break;
131
132                         case '0.2.6': // SQL queries for v0.2.6
133                                 // Update notes (these will be set as task text!)
134                                 setExtensionUpdateNotes("IP-Nummer und Browserbezeichnung wird in Admin-Mails eingesetzt.");
135                                 break;
136
137                         case '0.2.7': // SQL queries for v0.2.7
138                                 // Update notes (these will be set as task text!)
139                                 setExtensionUpdateNotes("Link zum Mitgliedsprofil in Funktion <u>generateUserProfileLink()</u> ausgelagert.");
140                                 break;
141
142                         case '0.2.8': // SQL queries for v0.2.8
143                                 // Update notes (these will be set as task text!)
144                                 setExtensionUpdateNotes("Work-Arount-L&ouml;sung zu tempor&auml;ren Problemen mit der Task-Id eingebaut.");
145                                 break;
146
147                         case '0.2.9': // SQL queries for v0.2.9
148                                 // Update notes (these will be set as task text!)
149                                 setExtensionUpdateNotes("Nachricht an Admin bei Auszahlungsanfrage wird endlich versendet.");
150                                 break;
151
152                         case '0.3.0': // SQL queries for v0.3.0
153                                 // Update notes (these will be set as task text!)
154                                 setExtensionUpdateNotes("HTML-Code ausgelagert in Templates und SQL-Anweisungen abgesichert.");
155                                 break;
156
157                         case '0.3.1': // SQL queries for v0.3.1
158                                 // Update notes (these will be set as task text!)
159                                 setExtensionUpdateNotes("Fehler in Auszahlungsfunktion beseitigt, wenn Umrechnungsrate ungleich 1 eingestellt ist.");
160                                 break;
161
162                         case '0.3.2': // SQL queries for v0.3.2
163                                 // Update notes (these will be set as task text!)
164                                 setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
165                                 break;
166
167                         case '0.3.3': // SQL queries for v0.3.3
168                                 // Update notes (these will be set as task text!)
169                                 setExtensionUpdateNotes("Vorbereitung auf die neue Mediendaten v0.0.4.");
170                                 break;
171
172                         case '0.3.4': // SQL queries for v0.3.4
173                                 // Update notes (these will be set as task text!)
174                                 setExtensionUpdateNotes("Anzahl zu &uuml;berweisende {?POINTS?} m&uuml;ssen immer gr&ouml;sser 0 sein, ansonsten bricht das Script mit einer Fehlermeldung an das Mitglied ab.");
175                                 break;
176
177                         case '0.3.5': // SQL queries for v0.3.5
178                                 // Update notes (these will be set as task text!)
179                                 setExtensionUpdateNotes("Sicherheitsupdate f&uuml;r die Include-Befehle.");
180                                 break;
181
182                         case '0.3.6': // SQL queries for v0.3.6
183                                 // Update notes (these will be set as task text!)
184                                 setExtensionUpdateNotes("Hash-Erstellung von <strong>md5()</strong> auf bessere Funktion <strong>generateHash()</strong> umgestellt.");
185                                 break;
186
187                         case '0.3.7': // SQL queries for v0.3.7
188                                 addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `title`='Auszahlungsmanagement' WHERE `action`='payouts' AND (`what`='' OR `what` IS NULL) LIMIT 1");
189
190                                 // Update notes (these will be set as task text!)
191                                 setExtensionUpdateNotes("Verwaltung nach Management umgestellt.");
192                                 break;
193
194                         case '0.3.8': // SQL queries for v0.3.8
195                                 // Update notes (these will be set as task text!)
196                                 setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
197                                 break;
198                 } // END - switch
199
200 // [EOF]
201 ?>