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 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.");
49 case '0.0.2': // SQL queries for v0.0.2
51 addConfigAddSql('doubler_user', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000');
53 // Update notes (these will be set as task text!)
54 setExtensionUpdateNotes("Gebühr wird vom Verdoppler-Pott abgezogen.");
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.");
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'");
66 // Update notes (these will be set as task text!)
67 setExtensionUpdateNotes("{?POINTS?}-Guthaben des Verdopplers kann optional nicht mit einbezogen werden.");
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 übrige {?POINTS?} in Templates eingebunden. Auflistung in Admin-Bereich komplettiert.");
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'");
80 // Update notes (these will be set as task text!)
81 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_pro.tpl</u> ist überflüssig geworden. Bitte löschen Sie dies!");
84 case '0.0.7': // SQL queries for v0.0.7
85 // Update notes (these will be set as task text!)
86 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.");
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!");
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.");
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.");
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.");
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ür die Include-Befehle.");
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üpften Modules eingebunden.");
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");
122 // Update notes (these will be set as task text!)
123 setExtensionUpdateNotes("Mitgliedsmenü komplett umgebaut.");
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.");
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.");
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');
140 // Update notes (these will be set as task text!)
141 setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
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');
150 setExtensionUpdateNotes("Doppler-Gutschriften werden nun über die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
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');
158 setExtensionUpdateNotes("Fehlender Konfigurationseintrag <strong>doubler_used</strong> hinzgefügt.");
161 case '0.2.0': // SQL queries for v0.2.0
163 registerFilter(__FILE__, __LINE__, 'config_userid_exclusion_sql', 'EXLCUDE_DOUBLER_USERID', FALSE, TRUE, isExtensionDryRun());
165 // Update notes (these will be set as task text!)
166 setExtensionUpdateNotes("Filter zum Ausschließen des konfigurierten Mitgliedaccounts.");
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');
174 // Update notes (these will be set as task text!)
175 setExtensionUpdateNotes("Verwendungszwecks für Guthabenkonten hinzugefügt.");