- case "0.1.9": // SQL queries for v0.1.9
- // Update notes (these will be set as task text!)
- EXT_SET_UPDATE_NOTES("De-/Aktivieren des mit dieser Erweiterung verknüpften Modules eingebunden.");
- break;
-
- case "0.2.0": // SQL queries for v0.2.0
- // Update notes (these will be set as task text!)
- EXT_SET_UPDATE_NOTES("Bei {!POINTS!}-Gleichstand wird als nächstes nach wer als letztes Online war umsortiert.");
- break;
-
- case "0.2.1": // SQL queries for v0.2.1
- // Update notes (these will be set as task text!)
- EXT_SET_UPDATE_NOTES("Fehler <strong>unknown column 'uid'</strong> beseitigt.");
- break;
-
- case "0.2.2": // SQL queries for v0.2.2
- ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD beg_include_own ENUM('Y','N') NOT NULL DEFAULT 'N'");
-
- // Update notes (these will be set as task text!)
- EXT_SET_UPDATE_NOTES("Eigene User-ID von Bettel-Rallye ausschliessbar.");
- break;
-
- case "0.2.3": // SQL queries for v0.2.3
- // Update notes (these will be set as task text!)
- EXT_SET_UPDATE_NOTES("Abfrage des Account-Status eingebaut. Es können nur bestätigte Accounts betteln.");
- break;
-
- case "0.2.4": // SQL queries for v0.2.4
- ADD_SQL("UPDATE `{!_MYSQL_PREFIX!}_member_menu` SET `action`='extras', `sort`='1' WHERE `what`='beg' LIMIT 1");
- ADD_SQL("UPDATE `{!_MYSQL_PREFIX!}_member_menu` SET `action`='rals', `sort`='3', `title`='Bettel-Rallye' WHERE `what`='beg2' LIMIT 1");
-
- // Update notes (these will be set as task text!)
- EXT_SET_UPDATE_NOTES("Mitgliedsmenü komplett umgebaut.");
- break;
-
- case "0.2.5": // SQL queries for v0.2.5
- // Update notes (these will be set as task text!)
- EXT_SET_UPDATE_NOTES("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
- break;
-
- case "0.2.6": // SQL queries for v0.2.6
- ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_beg_ips` ADD sid VARCHAR(255) NOT NULL DEFAULT ''");
- ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD `beg_pay_mode` ENUM('IMG','JS','BOTH','NONE') DEFAULT 'NONE' NOT NULL ;");
-
- // Update notes (these will be set as task text!)
- EXT_SET_UPDATE_NOTES("IP-Lock mit Session-ID erweitert. Tracker-Script eingefügt, dass das Einbinden des Bettel-Links als Bild/Script/CSS verhindern soll.");
- break;
- }
- break;
-
-case "modify": // When the extension got modified
- break;
-
-case "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
- break;
-
-default: // Do stuff when extension is loaded
- // Remove old entries
- $OLD = getConfig('beg_timeout');
- if (getConfig('beg_uid_timeout') > $OLD) $OLD = getConfig('beg_uid_timeout');
- $result_ext = SQL_QUERY("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_beg_ips` WHERE timeout < (UNIX_TIMESTAMP() -".($OLD + 60*60).")", __FILE__, __LINE__);
-
- // Check for beg rallye is active and send mails out
- if ((getConfig('beg_rallye') == "Y") && (getConfig('beg_new_mem_notify') == "Y")) {
- // Include file for sending out mails
- $INC_POOL[] = sprintf("%sinc/mails/beg_mails.php", constant('PATH'));
- } // END - if
- break;
-}
-
-//