2 /************************************************************************
3 * MXChange v0.2.1 Start: 04/29/2004 *
4 * ================ Last change: 10/29/2004 *
6 * -------------------------------------------------------------------- *
7 * File : ext-user.php *
8 * -------------------------------------------------------------------- *
9 * Short description : Swapped out user management *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Ausgelagertes Mitglieder-Management *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
17 * Needs to be in all Files and every File needs "svn propset *
18 * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
19 * -------------------------------------------------------------------- *
20 * Copyright (c) 2003 - 2008 by Roland Haeder *
21 * For more information visit: http://www.mxchange.org *
23 * This program is free software; you can redistribute it and/or modify *
24 * it under the terms of the GNU General Public License as published by *
25 * the Free Software Foundation; either version 2 of the License, or *
26 * (at your option) any later version. *
28 * This program is distributed in the hope that it will be useful, *
29 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
31 * GNU General Public License for more details. *
33 * You should have received a copy of the GNU General Public License *
34 * along with this program; if not, write to the Free Software *
35 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
37 ************************************************************************/
39 // Some security stuff...
40 if (!defined('__SECURITY')) {
41 $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
46 EXT_SET_VERSION("0.3.5");
48 // Version history array (add more with , "0.1" and so on)
49 EXT_SET_VER_HISTORY(array("0.0", "0.1", "0.1.1", "0.1.2", "0.1.2", "0.1.3", "0.1.4", "0.1.5", "0.1.6", "0.1.7", "0.1.8", "0.1.9", "0.2.0", "0.2.1", "0.2.2", "0.2.3", "0.2.4", "0.2.5", "0.2.6", "0.2.7", "0.2.8", "0.2.9", "0.3.0", "0.3.1", "0.3.2", "0.3.3", "0.3.4", "0.3.5"));
51 switch ($EXT_LOAD_MODE)
53 case "register": // Do stuff when installation is running (modules.php?module=admin&action=login is called)
54 ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}user_cats`");
55 ADD_EXT_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}user_cats` (
56 `id` BIGINT(22) NOT NULL AUTO_INCREMENT,
57 `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
58 `cat_id` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
64 ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}user_data`");
65 ADD_EXT_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}user_data` (
66 `userid` BIGINT(22) NOT NULL AUTO_INCREMENT,
67 `surname` VARCHAR(255) NOT NULL DEFAULT '',
68 `family` VARCHAR(255) NOT NULL DEFAULT '',
69 `street_nr` VARCHAR(255) NOT NULL DEFAULT '',
70 `country` VARCHAR(4) NOT NULL DEFAULT '',
71 `zip` VARCHAR(6) NOT NULL DEFAULT '',
72 `city` VARCHAR(255) NOT NULL DEFAULT '',
73 `email` VARCHAR(255) NOT NULL DEFAULT '',
74 `birth_day` CHAR(2) NOT NULL DEFAULT '01',
75 `birth_month` CHAR(2) NOT NULL DEFAULT '01',
76 `birth_year` VARCHAR(4) NOT NULL DEFAULT '1970',
77 `password` VARCHAR(32) NOT NULL DEFAULT '',
78 `max_mails` INT(7) NOT NULL DEFAULT 0,
79 `receive_mails` INT(7) NOT NULL DEFAULT 0,
80 `refid` BIGINT(22) NOT NULL DEFAULT 0,
81 `status` ENUM('UNCONFIRMED','CONFIRMED','LOCKED') NOT NULL DEFAULT 'UNCONFIRMED',
82 `user_hash` VARCHAR(32) NOT NULL DEFAULT '',
83 `REMOTE_ADDR` VARCHAR(15) NOT NULL DEFAULT '0.0.0.0',
84 `last_online` VARCHAR(10) NOT NULL DEFAULT 0,
85 `last_module` VARCHAR(255) NOT NULL DEFAULT '',
86 `ref_clicks` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
87 `total_logins` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
88 `gender` ENUM('M','F') NOT NULL DEFAULT 'M',
89 `used_points` FLOAT(22,3) NOT NULL DEFAULT '0.000',
90 `emails_sent` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
91 `joined` VARCHAR(10) NOT NULL DEFAULT 0,
92 `last_update` VARCHAR(10) NOT NULL DEFAULT 0,
93 `last_profile_sent` VARCHAR(10) NOT NULL DEFAULT 0,
94 `notified` ENUM('Y','N') NOT NULL DEFAULT 'N',
95 `ref_payout` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
96 PRIMARY KEY (`userid`),
100 ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}user_points`");
101 ADD_EXT_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}user_points` (
102 `id` BIGINT(22) NOT NULL AUTO_INCREMENT,
103 `userid` BIGINT(22) NOT NULL DEFAULT 0,
104 `ref_depth` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
105 `points` FLOAT(22,3) NOT NULL DEFAULT '0.000',
106 `locked_points` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
111 ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}user_links`");
112 ADD_EXT_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}user_links` (
113 `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
114 `stats_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
115 `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
116 `link_type` ENUM('NORMAL') NOT NULL DEFAULT 'NORMAL',
122 ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}user_stats`");
123 ADD_EXT_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}user_stats` (
124 `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
125 `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
126 `cat_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
127 `payment_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
128 `subject` VARCHAR(200) NOT NULL DEFAULT '',
129 `url` TINYBLOB NOT NULL,
130 `max_rec` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
131 `timestamp_ordered` VARCHAR(10) NOT NULL DEFAULT '',
132 `pool_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
133 `timestamp_sstart` VARCHAR(10) NOT NULL DEFAULT '',
134 `timestamp_send` VARCHAR(10) NOT NULL DEFAULT '',
135 BIGINT(20) UNSIGNED NOT NULL,
139 INDEX (`payment_id`),
144 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user',NULL,'Mitglieder-Management','Mitglieder freischalten, sperren, Accounts editieren, Neuanmeldungen verwalten, {!POINTS!} gutschreiben und abziehen und und und...',3)");
145 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','del_user','Mitglied löschen','Löschen Sie hier Mitglied, die gegen die AGBs mehrmals verstossen haben. Bitte seien Sie nett zu Ihren Mitgliedern und löschen Sie nicht gleich.',1)");
146 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','chk_regs','Anmeldungen prüfen','Prüfen Sie hier neue Anmeldungen zu Ihrem System. Hier können Sie im Falle einer Fehler-Mail den Mitglied gleich wieder löschen!',2)");
147 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','lock_user','Mitglied sperren / entsperren','Sperren Sie Mitglied, die zu viele unbestätigte Mails haben oder gegen Ihre AGBs verstossen haben über diesen Menüpunkt.',3)");
148 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','list_user','Mitglied auflisten','Listen Sie alle Mitglied oder eingeschränkt nach Suchkritieren Ihre Userdatenbank auf. Sie könen per Klick auf die Usernummer sich Details zum Mitglied ansehen.',4)");
149 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','add_points','{!POINTS!} gutschreiben','Buchen Sie einem Mitglied direkt {!POINTS!} auf. Sie können dazu auch einen Kommentar mitsenden.',5)");
150 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','edit_user','Account editieren','Daten eines Mitglieder-Accountes ändern.',6)");
151 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','list_refs','Referals anzeigen','Mit diesem Menüpunkt können Sie die generierten Referals eines Mitgliedes auflisten.',7)");
152 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','list_links','Unbestätigte Mails','Mit diesem Menüpunkt können Sie die vom Mitglied nicht bestätigten Mails anzeigen.',8)");
153 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','list_cats','Kategorien anzeigen','Listet die ausgewählten Kategorien eines Mitgliedes auf.',9)");
156 case "remove": // Do stuff when removing extension
157 // SQL commands to run
158 ADD_EXT_SQL("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_admin_menu` WHERE `what` IN('config_user','user_contct','list_user_del') OR `action`='user'");
159 ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_user_del`");
160 ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}user_cats`");
161 ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}user_data`");
162 ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}user_points`");
163 ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}user_links`");
164 ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}user_stats`");
167 case "activate": // Do stuff when admin activates this extension
168 // SQL commands to run
172 case "deactivate": // Do stuff when admin deactivates this extension
173 // SQL commands to run
177 case "update": // Update an extension
180 case "0.1": // SQL queries for v0.1
181 ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD `user_limit` INT(7) UNSIGNED NOT NULL DEFAULT 20");
183 // Update notes (these will be set as task text!)
184 EXT_SET_UPDATE_NOTES("Seitenweises Anzeigen der User-Liste ist nun möglich.");
187 case "0.1.1": // SQL queries for v0.1.1
188 ADD_EXT_SQL("UPDATE `{!_MYSQL_PREFIX!}_extensions` SET `ext_has_css`='Y' WHERE `ext_name`='user' AND `ext_has_css`='N' LIMIT 1");
190 // This update depends on sql_patches update!
191 EXT_ADD_UPDATE_DEPENDS("sql_patches");
193 // Update notes (these will be set as task text!)
194 EXT_SET_UPDATE_NOTES("CSS-Datei kann per Admin-Bereich ein- und ausgeschaltet werden.");
196 case "0.1.2": // SQL queries for v0.1.2
197 ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_data` ADD `mails_confirmed` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
199 // Update notes (these will be set as task text!)
200 EXT_SET_UPDATE_NOTES("Dem Mitglied wird nun angezeigt, wie viele Mails er bestätigt hat. Alle vor dieser Version best. Mails werden leider nicht mehr berücksichtigt! Bitte teilen Sie dies Ihren Mitgliedern mit.");
203 case "0.1.3": // SQL queries for v0.1.3
204 // Update notes (these will be set as task text!)
205 EXT_SET_UPDATE_NOTES("Den Pfad <em>Sie sind hier</em> im Menüpunkt <u>Online-Liste</u> erweitert.");
208 case "0.1.4": // SQL queries for v0.1.4
209 ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_data` ADD `emails_received` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
211 // Update notes (these will be set as task text!)
212 EXT_SET_UPDATE_NOTES("Anzahl empfangener Mails wird angezeigt. <big>Diese Anzeige kann fehlerhaft sein, wenn Sie bereits Mitglieder in Ihrem {!MT_WORD!} haben sollen!</big>");
215 case "0.1.5": // SQL queries for v0.1.5
216 // Update notes (these will be set as task text!)
217 EXT_SET_UPDATE_NOTES("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
220 case "0.1.6": // SQL queries for v0.1.6
221 // Update notes (these will be set as task text!)
222 EXT_SET_UPDATE_NOTES("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
225 case "0.1.7": // SQL queries for v0.1.7
226 // Update notes (these will be set as task text!)
227 EXT_SET_UPDATE_NOTES("Erweiterung bleibt wegen integrierten Schalters immer aktiv.");
230 case "0.1.8": // SQL queries for v0.1.8
231 // Update notes (these will be set as task text!)
232 EXT_SET_UPDATE_NOTES("Seit <a href=\"#\">Patch 340</a> überflüssige HTML-Tags entfernt.");
235 case "0.1.9": // SQL queries for v0.1.9
236 // Update notes (these will be set as task text!)
237 EXT_SET_UPDATE_NOTES("Link zum Mitgliedsprofil in Funktion <u>ADMIN_USER_PROFILE_LINK()</u> ausgelagert.");
240 case "0.2.0": // SQL queries for v0.2.0
241 // Update notes (these will be set as task text!)
242 EXT_SET_UPDATE_NOTES("User-Liste ausgelagert in Templates und überbreite Zeile in 2er-Zeile umgewandelt.");
245 case "0.2.1": // SQL queries for v0.2.1
246 ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD `user_alpha` TINYINT(3) UNSIGNED NOT NULL DEFAULT 10");
247 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_user','Mitgliederliste','Anzahl Mitglieder pro Seite, Anzahl Buchstaben pro Zeile usw.', 8)");
249 // Update notes (these will be set as task text!)
250 EXT_SET_UPDATE_NOTES("User-Liste ist konfigurierbar: Anzahl Mitglieder pro Seite und Anzahl Buchstaben pro Zeile; Template-Fehler beseitigt.");
253 case "0.2.2": // SQL queries for v0.2.2
254 ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_data` CHANGE `gender` `gender` ENUM('M','F','C') NOT NULL DEFAULT 'M'");
256 // Update notes (these will be set as task text!)
257 EXT_SET_UPDATE_NOTES("Anrede "Firma" hinzugefügt.");
260 case "0.2.3": // SQL queries for v0.2.3
261 // Update notes (these will be set as task text!)
262 EXT_SET_UPDATE_NOTES("Datumsformat festgelegt auf ausführlich.");
265 case "0.2.4": // SQL queries for v0.2.4
266 // Update notes (these will be set as task text!)
267 EXT_SET_UPDATE_NOTES("Wörter <strong>Mailtausch</strong>, <strong>Mailtausches</strong> und <strong>Mailtauscher</strong> sind austauschbar.");
270 case "0.2.5": // SQL queries for v0.2.5
271 // Update notes (these will be set as task text!)
272 EXT_SET_UPDATE_NOTES("SQL-Anweisungen abgesichert.");
275 case "0.2.6": // SQL queries for v0.2.6
276 // Update notes (these will be set as task text!)
277 EXT_SET_UPDATE_NOTES("Abspeichern von Einstellungen repariert.");
280 case "0.2.7": // SQL queries for v0.2.7
281 // Update notes (these will be set as task text!)
282 EXT_SET_UPDATE_NOTES("Sicherheitsupdate für die Include-Befehle.");
285 case "0.2.8": // SQL queries for v0.2.8
286 // Update notes (these will be set as task text!)
287 EXT_SET_UPDATE_NOTES("if-Anweisungen auf Funktion <strong>empty()</strong> umgestellt.");
290 case "0.2.9": // SQL queries for v0.2.9
291 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','user_contct','Mitglied kontaktieren','Kontaktieren Sie hier Ihre Mitglieder ganz direkt über ein Webformular. Sie brauchen somit kein EMail-Programm mehr starten!', 8)");
293 // Update notes (these will be set as task text!)
294 EXT_SET_UPDATE_NOTES("Admin-Kontaktformular hinzugefügt.");
297 case "0.3.0": // SQL queries for v0.3.0
298 // Update notes (these will be set as task text!)
299 EXT_SET_UPDATE_NOTES("Hash-Erstellung von <strong>md5()</strong> auf bessere Funktion <strong>generateHash()</strong> umgestellt.<br />Diverse Fixes für <em>0.2.1-Beta1</em> Release.");
302 case "0.3.1": // SQL queries for v0.3.1
303 ADD_EXT_SQL("UPDATE `{!_MYSQL_PREFIX!}_admin_menu` SET `title` = 'Mitglieder-Management' WHERE `action`='user' AND (`what`='' OR `what` IS NULL) LIMIT 1");
305 // Update notes (these will be set as task text!)
306 EXT_SET_UPDATE_NOTES("Verwaltung auf Management umgestellt");
309 case "0.3.2": // SQL queries for v0.3.2
310 // Update notes (these will be set as task text!)
311 EXT_SET_UPDATE_NOTES("PHP-Hinweis in Userauflistung gefixt (trat bei fehlender nickname-Erweiterung auf) und Darstellungsfehler von <strong>0.00000</strong> unbestätigten Mails gefixt.");
314 case "0.3.3": // SQL queries for v0.3.3
315 // Update notes (these will be set as task text!)
316 EXT_SET_UPDATE_NOTES("Mitglieder sind nun per Formular kontaktierbar (es wird eine EMail versendet), gesperrte und bestätigte Mitglieder-Accounts sind seperat oder gemeinsam auflistbar (seperat nur mit der Erweiterung <em>task</em>!)");
319 case "0.3.4": // SQL queries for v0.3.4
320 ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD `select_user_zero_refid` ENUM('Y','N') NOT NULL DEFAULT 'Y'");
321 ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD `user_min_confirmed` SMALLINT(5) UNSIGNED NOT NULL DEFAULT 10");
322 ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_data` ADD `rand_confirmed` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
324 // Update notes (these will be set as task text!)
325 EXT_SET_UPDATE_NOTES("Mitglieder werden per Zufall als Referal-ID ausgewählt, die eine Mindestanzahl an bestätigten Mails haben, wenn die Ref-Id 0 ist.");
328 case "0.3.5": // SQL queries for v0.3.5
329 ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_data` ADD `lock_reason` TINYTEXT");
330 ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_data` ADD `lock_timestamp` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00'");
331 ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD `user_delete_purge` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getConfig('one_day') * 30)."");
332 ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','list_user_del','Löschungen auflisten','Listet die Löschungen von Usern auf.', 9)");
333 ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_user_del`");
334 ADD_EXT_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}_user_del` (
335 `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
336 `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
337 `email` VARCHAR(255) NOT NULL DEFAULT '',
338 `surname` VARCHAR(255) NOT NULL DEFAULT '',
339 `family` VARCHAR(255) NOT NULL DEFAULT '',
340 `joined` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
341 `last_online` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
342 `del_timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
343 `del_reason` TINYTEXT,
346 ) TYPE={!_TABLE_TYPE!} COMMENT='List of deleted users'");
348 // Update notes (these will be set as task text!)
349 EXT_SET_UPDATE_NOTES("Der Sperrgrund wird nun mit abgespeichert und beim Löschen des Users mit ausgesendet.");
354 case "modify": // When the extension got modified
357 case "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
360 default: // Do stuff when extension is loaded
364 // Keep this extension always active!
365 EXT_SET_ALWAYS_ACTIVE("Y");