abd1d31ad73db7db335b797b29b98b6a32ba4089
[mailer.git] / inc / extensions / doubler / mode-update.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 06/25/2013 *
4  * ===================                          Last change: 06/25/2013 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : mode-update.php                                  *
8  * -------------------------------------------------------------------- *
9  * Short description : Double points                                    *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Punkte verdoppeln                                *
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.0.1': // SQL queries for v0.0.1
46                                 // Update notes (these will be set as task text!)
47                                 setExtensionUpdateNotes("Problem mit Mitglieds-Id behoben.");
48                                 break;
49
50                         case '0.0.2': // SQL queries for v0.0.2
51                                 // Total used points
52                                 addConfigAddSql('doubler_user', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
53
54                                 // Update notes (these will be set as task text!)
55                                 setExtensionUpdateNotes("Geb&uuml;hr wird vom Verdoppler-Pott abgezogen.");
56                                 break;
57
58                         case '0.0.3': // SQL queries for v0.0.3
59                                 // Update notes (these will be set as task text!)
60                                 setExtensionUpdateNotes("Drei SQL-Fehler beseitigt.");
61                                 break;
62
63                         case '0.0.4': // SQL queries for v0.0.4
64                                 // Shall I use the doubler's account to take points from? (Y/N, default=Y)
65                                 addConfigAddSql('doubler_own', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
66
67                                 // Update notes (these will be set as task text!)
68                                 setExtensionUpdateNotes("{?POINTS?}-Guthaben des Verdopplers kann optional nicht mit einbezogen werden.");
69                                 break;
70
71                         case '0.0.5': // SQL queries for v0.0.5
72                                 // Update notes (these will be set as task text!)
73                                 setExtensionUpdateNotes("Counter-Stand und noch zum Verdoppeln &uuml;brige {?POINTS?} in Templates eingebunden. Auflistung in Admin-Bereich komplettiert.");
74                                 break;
75
76                         case '0.0.6': // SQL queries for v0.0.6
77                                 addConfigAddSql('doubler_max_sent', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 1');
78                                 addConfigAddSql('doubler_group_sent', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 1');
79                                 addConfigAddSql('doubler_sent_all', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
80
81                                 // Update notes (these will be set as task text!)
82                                 setExtensionUpdateNotes("Geb&uuml;hrenabzug wird beim Einzahlen abgezogen (wurde von Auszahlung abgezogen) und maximal bei Auszahlung zu kontrollierende Accounts einstellbar.<br />Template <u>admin_config_doubler.tpl</u> ist &uuml;berfl&uuml;ssig geworden. Bitte l&ouml;schen Sie dies!");
83                                 break;
84
85                         case '0.0.7': // SQL queries for v0.0.7
86                                 // Update notes (these will be set as task text!)
87                                 setExtensionUpdateNotes("W&ouml;rter <strong>{?mt_word?}</strong>, <strong>{?mt_word2?}</strong> und <strong>{?mt_word3?}</strong> sind austauschbar.<br /><br />Minus-Guthaben des Verdoppler-Accounts repariert und Mitgliedsmail erweitert mit Transaktionsummer und IP-Nummer.");
88                                 break;
89
90                         case '0.0.8': // SQL queries for v0.0.8
91                                 // Update notes (these will be set as task text!)
92                                 setExtensionUpdateNotes("Bitte verschieben Sie die doubler-Templates (Ordner: {?PATH?}/templates/".getLanguage()."/html/) in den neuen Order doubler!");
93                                 break;
94
95                         case '0.0.9': // SQL queries for v0.0.9
96                                 // Update notes (these will be set as task text!)
97                                 setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
98                                 break;
99
100                         case '0.1.0': // SQL queries for v0.2.1
101                                 // Update notes (these will be set as task text!)
102                                 setExtensionUpdateNotes("Vorbereitung auf die neue Mediendaten v0.0.4.");
103                                 break;
104
105                         case '0.1.1': // SQL queries for v0.1.1
106                                 // Update notes (these will be set as task text!)
107                                 setExtensionUpdateNotes("Zwei SQL-Fehler in <strong>inc/doubler_send.php</strong> beseitigt.");
108                                 break;
109
110                         case '0.1.2': // SQL queries for v0.1.2
111                                 // Update notes (these will be set as task text!)
112                                 setExtensionUpdateNotes("Sicherheitsupdate f&uuml;r die Include-Befehle.");
113                                 break;
114
115                         case '0.1.3': // SQL queries for v0.1.3
116                                 // Update notes (these will be set as task text!)
117                                 setExtensionUpdateNotes("De-/Aktivieren des mit dieser Erweiterung verkn&uuml;pften Modules eingebunden.");
118                                 break;
119
120                         case '0.1.4': // SQL queries for v0.1.4
121                                 addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras',`sort`=4 WHERE `what`='doubler' LIMIT 1");
122
123                                 // Update notes (these will be set as task text!)
124                                 setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
125                                 break;
126
127                         case '0.1.5': // SQL queries for v0.1.5
128                                 // Update notes (these will be set as task text!)
129                                 setExtensionUpdateNotes("Hash-Erstellung von <strong>md5()</strong> auf bessere Funktion <strong>generateHash()</strong> umgestellt.");
130                                 break;
131
132                         case '0.1.6': // SQL queries for v0.1.6
133                                 // Update notes (these will be set as task text!)
134                                 setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
135                                 break;
136
137                         case '0.1.7': // SQL queries for v0.1.7
138                                 addExtensionSql('UPDATE `{?_MYSQL_PREFIX?}_config` SET `doubler_charge`=`doubler_charge`*100 WHERE `config`=0 LIMIT 1');
139                                 addExtensionSql('UPDATE `{?_MYSQL_PREFIX?}_config` SET `doubler_ref`=`doubler_ref`*100 WHERE `config`=0 LIMIT 1');
140
141                                 // Update notes (these will be set as task text!)
142                                 setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
143                                 break;
144
145                         case '0.1.8': // SQL queries for v0.1.8
146                                 // Register points data
147                                 registerExtensionPointsData('doubler_direct', 'points', 'LOCKED', 'DIRECT');
148                                 registerExtensionPointsData('doubler_reset' , 'points', 'LOCKED', 'DIRECT');
149
150                                 // Update notes
151                                 setExtensionUpdateNotes("Doppler-Gutschriften werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
152                                 break;
153
154                         case '0.1.9': // SQL queries for v0.1.9
155                                 // Total payed out points from your doublers
156                                 addConfigAddSql('doubler_used', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
157
158                                 // Update notes
159                                 setExtensionUpdateNotes("Fehlender Konfigurationseintrag <strong>doubler_used</strong> hinzgef&uuml;gt.");
160                                 break;
161
162                         case '0.2.0': // SQL queries for v0.2.0
163                                 // Register filter
164                                 registerFilter(__FILE__, __LINE__, 'config_userid_exclusion_sql', 'EXLCUDE_DOUBLER_USERID', FALSE, TRUE, isExtensionDryRun());
165
166                                 // Update notes (these will be set as task text!)
167                                 setExtensionUpdateNotes("Filter zum Ausschlie&szlig;en des konfigurierten Mitgliedaccounts.");
168                                 break;
169                 } // END - switch
170
171 // [EOF]
172 ?>