Added update_year.sh (still not fully flexible) and updated all years with it.
[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  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
14  * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
15  * For more information visit: http://mxchange.org                      *
16  *                                                                      *
17  * This program is free software; you can redistribute it and/or modify *
18  * it under the terms of the GNU General Public License as published by *
19  * the Free Software Foundation; either version 2 of the License, or    *
20  * (at your option) any later version.                                  *
21  *                                                                      *
22  * This program is distributed in the hope that it will be useful,      *
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
25  * GNU General Public License for more details.                         *
26  *                                                                      *
27  * You should have received a copy of the GNU General Public License    *
28  * along with this program; if not, write to the Free Software          *
29  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
30  * MA  02110-1301  USA                                                  *
31  ************************************************************************/
32
33 // Some security stuff...
34 if (!defined('__SECURITY')) {
35         die();
36 } // END - if
37
38 // @TODO Remove double tabs from all lines
39                 switch (getCurrentExtensionVersion()) {
40                         case '0.0.1': // SQL queries for v0.0.1
41                                 // Update notes (these will be set as task text!)
42                                 setExtensionUpdateNotes("Problem mit Mitglieds-Id behoben.");
43                                 break;
44
45                         case '0.0.2': // SQL queries for v0.0.2
46                                 // Total used points
47                                 addConfigAddSql('doubler_user', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
48
49                                 // Update notes (these will be set as task text!)
50                                 setExtensionUpdateNotes("Geb&uuml;hr wird vom Verdoppler-Pott abgezogen.");
51                                 break;
52
53                         case '0.0.3': // SQL queries for v0.0.3
54                                 // Update notes (these will be set as task text!)
55                                 setExtensionUpdateNotes("Drei SQL-Fehler beseitigt.");
56                                 break;
57
58                         case '0.0.4': // SQL queries for v0.0.4
59                                 // Shall I use the doubler's account to take points from? (Y/N, default=Y)
60                                 addConfigAddSql('doubler_own', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
61
62                                 // Update notes (these will be set as task text!)
63                                 setExtensionUpdateNotes("{?POINTS?}-Guthaben des Verdopplers kann optional nicht mit einbezogen werden.");
64                                 break;
65
66                         case '0.0.5': // SQL queries for v0.0.5
67                                 // Update notes (these will be set as task text!)
68                                 setExtensionUpdateNotes("Counter-Stand und noch zum Verdoppeln &uuml;brige {?POINTS?} in Templates eingebunden. Auflistung in Admin-Bereich komplettiert.");
69                                 break;
70
71                         case '0.0.6': // SQL queries for v0.0.6
72                                 addConfigAddSql('doubler_max_sent', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 1');
73                                 addConfigAddSql('doubler_group_sent', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 1');
74                                 addConfigAddSql('doubler_sent_all', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
75
76                                 // Update notes (these will be set as task text!)
77                                 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!");
78                                 break;
79
80                         case '0.0.7': // SQL queries for v0.0.7
81                                 // Update notes (these will be set as task text!)
82                                 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.");
83                                 break;
84
85                         case '0.0.8': // SQL queries for v0.0.8
86                                 // Update notes (these will be set as task text!)
87                                 setExtensionUpdateNotes("Bitte verschieben Sie die doubler-Templates (Ordner: {?PATH?}/templates/".getLanguage()."/html/) in den neuen Order doubler!");
88                                 break;
89
90                         case '0.0.9': // SQL queries for v0.0.9
91                                 // Update notes (these will be set as task text!)
92                                 setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
93                                 break;
94
95                         case '0.1.0': // SQL queries for v0.2.1
96                                 // Update notes (these will be set as task text!)
97                                 setExtensionUpdateNotes("Vorbereitung auf die neue Mediendaten v0.0.4.");
98                                 break;
99
100                         case '0.1.1': // SQL queries for v0.1.1
101                                 // Update notes (these will be set as task text!)
102                                 setExtensionUpdateNotes("Zwei SQL-Fehler in <strong>inc/doubler_send.php</strong> beseitigt.");
103                                 break;
104
105                         case '0.1.2': // SQL queries for v0.1.2
106                                 // Update notes (these will be set as task text!)
107                                 setExtensionUpdateNotes("Sicherheitsupdate f&uuml;r die Include-Befehle.");
108                                 break;
109
110                         case '0.1.3': // SQL queries for v0.1.3
111                                 // Update notes (these will be set as task text!)
112                                 setExtensionUpdateNotes("De-/Aktivieren des mit dieser Erweiterung verkn&uuml;pften Modules eingebunden.");
113                                 break;
114
115                         case '0.1.4': // SQL queries for v0.1.4
116                                 addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras',`sort`=4 WHERE `what`='doubler' LIMIT 1");
117
118                                 // Update notes (these will be set as task text!)
119                                 setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
120                                 break;
121
122                         case '0.1.5': // SQL queries for v0.1.5
123                                 // Update notes (these will be set as task text!)
124                                 setExtensionUpdateNotes("Hash-Erstellung von <strong>md5()</strong> auf bessere Funktion <strong>generateHash()</strong> umgestellt.");
125                                 break;
126
127                         case '0.1.6': // SQL queries for v0.1.6
128                                 // Update notes (these will be set as task text!)
129                                 setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
130                                 break;
131
132                         case '0.1.7': // SQL queries for v0.1.7
133                                 addExtensionSql('UPDATE `{?_MYSQL_PREFIX?}_config` SET `doubler_charge`=`doubler_charge`*100 WHERE `config`=0 LIMIT 1');
134                                 addExtensionSql('UPDATE `{?_MYSQL_PREFIX?}_config` SET `doubler_ref`=`doubler_ref`*100 WHERE `config`=0 LIMIT 1');
135
136                                 // Update notes (these will be set as task text!)
137                                 setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
138                                 break;
139
140                         case '0.1.8': // SQL queries for v0.1.8
141                                 // Register points data
142                                 registerExtensionPointsData('doubler_direct', 'points', 'LOCKED', 'DIRECT');
143                                 registerExtensionPointsData('doubler_reset' , 'points', 'LOCKED', 'DIRECT');
144
145                                 // Update notes
146                                 setExtensionUpdateNotes("Doppler-Gutschriften werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
147                                 break;
148
149                         case '0.1.9': // SQL queries for v0.1.9
150                                 // Total payed out points from your doublers
151                                 addConfigAddSql('doubler_used', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
152
153                                 // Update notes
154                                 setExtensionUpdateNotes("Fehlender Konfigurationseintrag <strong>doubler_used</strong> hinzgef&uuml;gt.");
155                                 break;
156
157                         case '0.2.0': // SQL queries for v0.2.0
158                                 // Register filter
159                                 registerFilter(__FILE__, __LINE__, 'config_userid_exclusion_sql', 'EXLCUDE_DOUBLER_USERID', FALSE, TRUE, isExtensionDryRun());
160
161                                 // Update notes (these will be set as task text!)
162                                 setExtensionUpdateNotes("Filter zum Ausschlie&szlig;en des konfigurierten Mitgliedaccounts.");
163                                 break;
164                 } // END - switch
165
166 // [EOF]
167 ?>