* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
case 'register': // Do stuff when installation is running
// SQL commands to run
addDropTableSql('online');
- addCreateTableSql('online', "(
+ addCreateTableSql('online', "
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`sid` VARCHAR(32) NOT NULL DEFAULT '',
`ip` VARCHAR(15) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
INDEX (`userid`),
INDEX (`refid`),
-INDEX `admin_member` (`is_admin`, `is_member`)
-) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT = 'Who-is-where data'");
+INDEX `admin_member` (`is_admin`,`is_member`)",
+ 'Who-is-where data');
addAdminMenuSql('misc','usr_online','Online-Statistik','Eine Liste von derzeit "Online" Usern. Doppelte Einträge könnte auf mangelnden Cookie-Support des Browsers oder auf einen Spider hindeuten.', 1);
break;
case '0.0.5': // SQL queries for v0.0.5
// Add guest menu
- addGuestMenuSql('online', NULL, 'Jetzt Online', 'Y', 'N', 2);
+ addGuestMenuSql('online', NULL, 'Jetzt Online', 2);
// Register filter
registerFilter('init', 'UPDATE_ONLINE_LIST', false, true, isExtensionDryRun());
break;
case '0.0.6': // SQL queries for v0.0.6
- addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_online` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL,
-CHANGE `refid` `refid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL');
+ addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_online` CHANGE `userid` `userid` BIGINT(20) UNSIGNED NULL DEFAULT NULL');
+ addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_online` CHANGE `refid` `refid` BIGINT(20) UNSIGNED NULL DEFAULT NULL');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Spalten userid und refid erlauben nun <stron>null</strong>.");