2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 06/25/2013 *
4 * =================== Last change: 06/25/2013 *
6 * -------------------------------------------------------------------- *
7 * File : mode-update.php *
8 * -------------------------------------------------------------------- *
9 * Short description : Double points *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Punkte verdoppeln *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
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 *
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. *
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. *
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, *
36 ************************************************************************/
38 // Some security stuff...
39 if (!defined('__SECURITY')) {
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.");
50 case '0.0.2': // SQL queries for v0.0.2
52 addConfigAddSql('doubler_user', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
54 // Update notes (these will be set as task text!)
55 setExtensionUpdateNotes("Gebühr wird vom Verdoppler-Pott abgezogen.");
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.");
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'");
67 // Update notes (these will be set as task text!)
68 setExtensionUpdateNotes("{?POINTS?}-Guthaben des Verdopplers kann optional nicht mit einbezogen werden.");
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 übrige {?POINTS?} in Templates eingebunden. Auflistung in Admin-Bereich komplettiert.");
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'");
81 // Update notes (these will be set as task text!)
82 setExtensionUpdateNotes("Gebü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 überflüssig geworden. Bitte löschen Sie dies!");
85 case '0.0.7': // SQL queries for v0.0.7
86 // Update notes (these will be set as task text!)
87 setExtensionUpdateNotes("Wö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.");
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!");
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.");
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.");
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.");
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ür die Include-Befehle.");
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üpften Modules eingebunden.");
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");
123 // Update notes (these will be set as task text!)
124 setExtensionUpdateNotes("Mitgliedsmenü komplett umgebaut.");
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.");
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.");
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');
141 // Update notes (these will be set as task text!)
142 setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
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');
151 setExtensionUpdateNotes("Doppler-Gutschriften werden nun über die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
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');
159 setExtensionUpdateNotes("Fehlender Konfigurationseintrag <strong>doubler_used</strong> hinzgefügt.");
162 case '0.2.0': // SQL queries for v0.2.0
164 registerFilter(__FILE__, __LINE__, 'config_userid_exclusion_sql', 'EXLCUDE_DOUBLER_USERID', FALSE, TRUE, isExtensionDryRun());
166 // Update notes (these will be set as task text!)
167 setExtensionUpdateNotes("Filter zum Ausschließen des konfigurierten Mitgliedaccounts.");