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