// Current SVN revision
//define('CURR_SVN_REVISION', getActualVersion(0));
-define('CURR_SVN_REVISION', "819");
+define('CURR_SVN_REVISION', "820");
define('CURR_SVN_DATE' , getActualVersion(1));
define('CURR_SVN_VERSION' , getActualVersion(2));
access_mode ENUM('deny','allow') NOT NULL DEFAULT 'deny',
KEY (admin_id),
PRIMARY KEY (id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// Update notes (these will be set as task text!)
EXT_SET_UPDATE_NOTES("Sogn. ACLs werden hinzugefügt: <strong>A</strong>ccess <strong>C</strong>ontrol <strong>L</strong>ines sind zu deutsch Zugriffkontrollzeilen, mit denen Sie einstellen können, was welcher Admin machen darf oder nicht.");
mail_template VARCHAR(255) NOT NULL,
KEY (admin_id),
PRIMARY KEY (id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('admins','admins_mails','Admin-Mails','Stellen Sie hier ein, welcher Admin welche Mail erhalten soll. Sie können dies (derzeit) jedoch erst, wenn einmal die Mail versendet wurde!','5')");
// Update notes (these will be set as task text!)
INDEX (account_created),
INDEX (account_locked),
INDEX (last_tan_stamp)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
ADD_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_bank_transfers`");
ADD_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}_bank_transfers` (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
PRIMARY KEY (id),
INDEX (to_account_id, from_account_id),
INDEX (day_bookkeeping, day_available)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
ADD_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_bank_packages`");
ADD_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}_bank_packages` (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
free_account_stuff TINYTEXT null,
tan_lock TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// free_account_stuff will be a list of columns of the table _bank_packages
// what the member shall get for the specified income. output_system_mode
// must be extended with the mode you get for free: output_system_mode:LOGIN
used ENUM('Y','N') NOT NULL DEFAULT 'N',
PRIMARY KEY (id),
UNIQUE (account_id, tan)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// Admin menu queries
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('bank', NULL, 'Bank-Accounts','Verwalten Sie hier alle Bank-Accounts Ihrer Mitglieder, sowie Angebotspakete und Überweisungen.', 6)");
timeout VARCHAR(10) NOT NULL DEFAULT '',
KEY (userid),
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
break;
case "remove": // Do stuff when removing extension
chk_value VARCHAR(255) NOT NULL DEFAULT '',
KEY(userid),
PRIMARY KEY(id)
-) Type=MyISAM");
+) Type={!_TABLE_TYPE!}");
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_birthday','Geburtstagsmails','Stellen Sie hier ein, ob die Mitglieder {!POINTS!} (nicht automatisch) gutgeschrieben kommen sollen oder nicht.', 9)");
// Update notes (these will be set as task text!)
mails_sent BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
KEY(cat_id),
PRIMARY KEY (id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_links` MODIFY link_type ENUM('NORMAL','BONUS') NOT NULL DEFAULT 'NORMAL'");
ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_links` ADD bonus_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_links` ADD INDEX (bonus_id)");
KEY mail_id (mail_id),
KEY bonus_id (bonus_id),
KEY userid (userid)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// Update notes (these will be set as task text!)
EXT_SET_UPDATE_NOTES("Turbo-Bonus wird in Tabelle gezählt für Anzeige, wer alles bereits geklickt hat und welchen Platz er gemacht hat.");
`points` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.0000,
INDEX (`userid`),
PRIMARY KEY(`id`)
-) TYPE=MyISAM COMMENT='Member points booking table'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Member points booking table'");
// Admin menu
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_booking','Kontoauszug','Einstellungen am Kontoauszug für Mitglieder vornehmen.', 14)");
is_active ENUM('Y','N') NOT NULL DEFAULT 'N',
KEY(code),
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_countries` (code, descr, is_active) VALUES ('DE','Deutschland','Y')");
// Admin menu
`inserted` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
INDEX (`sender_id`),
PRIMARY KEY (`id`)
-) TYPE=MyISAM COMMENT='Debug log data'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Debug log data'");
// Table against debug log abuse
ADD_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_debug_log_abuse`");
`inserted` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
INDEX (`client_id`),
PRIMARY KEY (`id`)
-) TYPE=MyISAM COMMENT='Debug log abuse'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Debug log abuse'");
// Table on relay/server for client exchanges
ADD_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_debug_client`");
UNIQUE (`key`),
UNIQUE (`url`),
PRIMARY KEY (`id`)
-) TYPE=MyISAM COMMENT='Debug clients'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Debug clients'");
// Add this exchange as first client
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_debug_client` (`url`,`title`,`webmaster`,`status`) VALUES ('{!URL!}','{!MAIN_TITLE!}','{!WEBMASTER!}','ACTIVE')");
INDEX `client_log` (`client_id`,`log_id`),
UNIQUE (`log_id`),
PRIMARY KEY (`id`)
-) TYPE=MyISAM COMMENT='Debug client <-> log connection'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Debug client <-> log connection'");
// Guest menus
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_guest_menu` (`action`,`what`,`title`,`visible`,`locked`,`sort`) VALUES ('debug',NULL,'Debug-System','Y','Y',2)");
comments LONGBLOB NOT NULL,
KEY (userid),
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// Add default values to config
ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD holiday_max BIGINT(20) UNSIGNED NOT NULL DEFAULT '30'");
media_key VARCHAR(255) NOT NULL DEFAULT '',
media_value VARCHAR(255) NOT NULL DEFAULT '',
PRIMARY KEY(media_key)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// Update notes (these will be set as task text!)
EXT_SET_UPDATE_NOTES("Teile der Mediendaten werden in seperater Tabelle gesichert. Bitte beachten Sie, dass dieses Update nur Daten des <strong>aktuellen</strong> Zustandes berücksichtigen kann und <strong>nicht</strong> bereits gelöschter Mitglieder.");
INDEX userid (userid),
INDEX (last_used DESC),
PRIMARY KEY(id)
-) TYPE=MyISAM COMMENT='History of used nicknames'");
+) TYPE={!_TABLE_TYPE!} COMMENT='History of used nicknames'");
// Update notes (these will be set as task text!)
EXT_SET_UPDATE_NOTES("Historie eingegebener Nicknames hinzugefügt. Mitglied kann auf bereits verwendeter zurückgreifen und Liste selbst löschen.");
PRIMARY KEY(id),
KEY(userid),
KEY(refid)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('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;
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
gain decimal(10,3) NOT NULL DEFAULT '0.000',
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('misc','optimize','DB optimieren','Führen Sie dies ab und an aus, damit überflüssige Daten aus der Datenbank entfernt werden.','5')");
break;
KEY(userid),
KEY(payout_id),
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
ADD_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_payout_types`");
ADD_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}_payout_types` (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
rate FLOAT(22,3) UNSIGNED NOT NULL DEFAULT '0.000',
min_points BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_payouts','Auszahlungen','Auszahlungsarten einstellen, neu anlegen oder löschen.','15')");
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('payouts','list_payouts','Anfragen auflisten','Listet alle Auszahlungsanfragen Ihrer Mitglieder auf.','16')");
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_member_menu` (`action`,`what`,`title`,`visible`,`locked`,`sort`) VALUES ('main','payout','Auszahlungen','N','N','11')");
primera_api_status VARCHAR(255) NULL DEFAULT NULL,
KEY(userid),
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// Confiuration
ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD primera_min_payout BIGINT(20) UNSIGNED NOT NULL DEFAULT 40000");
notified ENUM('Y','N') NOT NULL DEFAULT 'N',
KEY (admin_id),
PRIMARY KEY (id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
ADD_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}_rallye_prices` (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
rallye_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
info LONGBLOB NOT NULL,
KEY (rallye_id),
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
ADD_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}_rallye_users` (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
rallye_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
KEY (rallye_id),
KEY (userid),
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// Admin menu
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('rallye', NULL, 'Rallye-Management','Richten Sie neue Ref-Rallyes ein, die zeitgesteuert anfangen und aufhöhren. Dabei wird alles weitere automatisch geregelt.','9')");
UNIQUE `user_refid` (`userid`,`level`,`refid`),
KEY (`level`),
KEY (`refid`)
-) ENGINE=MyISAM COMMENT='User Referals With Refback'");
+) ENGINE={!_TABLE_TYPE!} COMMENT='User Referals With Refback'");
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','refback','Ref-Back einstellen',4,'N','N')");
break;
field_name VARCHAR(255) NOT NULL DEFAULT '',
field_required ENUM('Y','N') NOT NULL DEFAULT 'Y',
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// Add all entries as required (DO NOT DELETE THEM FROM DATABASE!)
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_must_register` (field_name, field_required) VALUES ('surname','Y')");
KEY(refid),
KEY(email),
PRIMARY KEY(id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
//
// Sponsor orders
//
KEY (aid),
KEY (sponsorid),
PRIMARY KEY(id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
//
// Pay-types
//
pay_min_count BIGINT(20) UNSIGNED NOT NULL DEFAULT 1,
pay_currency VARCHAR(255) NOT NULL DEFAULT '€',
PRIMARY KEY(id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
//
// Points-to-action converting
//
conv_name VARCHAR(255) NOT NULL DEFAULT 'Mails',
KEY (ext_name),
PRIMARY KEY(id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
//
// Sponsor menu system (default)
//
KEY (action),
UNIQUE KEY (what),
PRIMARY KEY(id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
//
// Registry for performable actions by your sponsors
//
KEY(ext_name),
KEY(aid),
PRIMARY KEY(id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
//
// URLs from the sponsors
//
status ENUM('PENDING','ACTIVE','LOCKED') NOT NULL DEFAULT 'PENDING',
KEY(sponsorid),
PRIMARY KEY(id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
//
// Banners of any size from the sponsors
//
status ENUM('PENDING','ACTIVE','LOCKED') NOT NULL DEFAULT 'PENDING',
KEY(sponsorid),
PRIMARY KEY(id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
//
// Campaigns
//
KEY(aid),
KEY(sponsorid),
PRIMARY KEY(id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
//
// Campaigns + URLs + Banner
//
KEY(urlid),
KEY(campaignid),
PRIMARY KEY(id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
//
// Allowed data to display (administrative)
//
data_row VARCHAR(255) NOT NULL DEFAULT '',
display ENUM('Y','N') NOT NULL DEFAULT 'N',
PRIMARY KEY(id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
//
// Allowed data to display (sponsor-side)
//
display ENUM('Y','N') NOT NULL DEFAULT 'N',
KEY(sponsorid),
PRIMARY KEY(id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
//
// Default allowed data to display
//
INDEX (la_action),
INDEX (la_what),
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// All "logical areas" together
ADD_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_admin_menu_las`_data");
ADD_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}_admin_menu_las`_data (
INDEX (la_posx),
INDEX (la_posy),
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// Which menu do you like?
ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD admin_menu ENUM('NEW','OLD') NOT NULL DEFAULT 'OLD'");
clicks BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
INDEX (aid),
PRIMARY KEY (id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// Update notes (these will be set as task text!)
EXT_SET_UPDATE_NOTES("Admin-abhängig werden nun Klicks im Admin-Menü gezählt, die zur automatischen Anpassung des Menüs in den logischen Bereichen diennen. Dieses "intelligente Unbauen" können Sie auch ganz abschalten.");
PRIMARY KEY(`id`),
INDEX (`userid`),
INDEX (`stats_type`)
-) TYPE=MyISAM COMMENT='Member statistics data'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Member statistics data'");
// Update notes (these will be set as task text!)
EXT_SET_UPDATE_NOTES("Mitglieder könnnen nun z.B. in den Mail-Details zu jeder Mail sehen, wann sie diese bestätigt haben. Die neue Statistik-Tabelle ist aber universell einsetzbar.");
`filter_function` VARCHAR(255) NOT NULL DEFAULT '',
`filter_active` ENUM('N','Y') NOT NULL DEFAULT 'Y',
PRIMARY KEY (`filter_id`)
-) TYPE=MyISAM COMMENT='Filter system'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Filter system'");
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','list_filter','Filter-Management', 'Zeigt alle im System registrierten Filter an und lässt diese de- bzw. wieder aktivieren.', 17)");
// Update notes (these will be set as task text!)
PRIMARY KEY(`id`),
UNIQUE KEY `userid_url` (`userid`,`url`),
INDEX `status_userid` (`status`,`userid`)
-) TYPE=MyISAM COMMENT='Surfbar URLs'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Surfbar URLs'");
// Reload locks
ADD_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_surfbar_locks`");
PRIMARY KEY(`id`),
UNIQUE KEY `userid_url` (`userid`,`url_id`),
INDEX (`url_id`)
-) TYPE=MyISAM COMMENT='Surfbar reload locks'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Surfbar reload locks'");
// Surfbar salts
ADD_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_surfbar_salts`");
PRIMARY KEY(`id`),
UNIQUE KEY `userid_url` (`userid`,`url_id`),
INDEX (`url_id`)
-) TYPE=MyISAM COMMENT='Surfbar last used salts'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Surfbar last used salts'");
// Statistics
ADD_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_surfbar_stats`");
PRIMARY KEY (`id`),
UNIQUE KEY `userid_url` (`userid`,`url_id`),
INDEX (`url_id`)
-) TYPE=MyISAM COMMENT='Surfbar Statistics'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Surfbar Statistics'");
// Member actions pending on status
ADD_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_surfbar_actions`");
`new_status` ENUM('PENDING','ACTIVE','LOCKED','STOPPED','REJECTED','DELETED','MIGRATED','DEPLETED') NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `status_action` (`status`,`action`)
-) TYPE=MyISAM COMMENT='Surfbar Member Actions'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Surfbar Member Actions'");
// Member actions
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_surfbar_actions` (`status`,`action`,`new_status`) VALUES ('PENDING','RETREAT','DELETED')");
PRIMARY KEY (`id`),
UNIQUE KEY (`theme_path`),
INDEX (`theme_active`)
-) TYPE=MyISAM COMMENT='Themes'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Themes'");
// Admin menu
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('theme', NULL, 'Themes','Verwalten Sie hier alle Designs (Themes) Ihres Mailtausch-Scriptes.', 8)");
KEY (userid),
KEY (from_uid),
PRIMARY KEY(id)
-) Type=MyISAM");
+) Type={!_TABLE_TYPE!}");
// Transfers to a member
ADD_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}_user_transfers_out` (
KEY (userid),
KEY (to_uid),
PRIMARY KEY(id)
-) Type=MyISAM");
+) Type={!_TABLE_TYPE!}");
// Admin menu
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('transfer', NULL, '{!POINTS!}-Transfer','Verwalten Sie hier die {!POINTS!}-Transaktionen zwischen Ihren Mitgliedern.', 7)");
`del_reason` TINYTEXT,
INDEX (`userid`),
PRIMARY KEY(`id`)
-) TYPE=MyISAM COMMENT='List of deleted users'");
+) TYPE={!_TABLE_TYPE!} COMMENT='List of deleted users'");
// Update notes (these will be set as task text!)
EXT_SET_UPDATE_NOTES("Der Sperrgrund wird nun mit abgespeichert und beim Löschen des Users mit ausgesendet.");
wernis_api_status VARCHAR(255) NULL DEFAULT NULL,
KEY(userid),
PRIMARY KEY(id)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
// Confiuration
ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD wernis_min_payout BIGINT(20) UNSIGNED NOT NULL DEFAULT '40000'");
`inserted` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE `y_type` (`type`,`y_id`)
-) TYPE=MyISAM COMMENT='Reload lock reminder for Yoo!Media campaigns'");
+) TYPE={!_TABLE_TYPE!} COMMENT='Reload lock reminder for Yoo!Media campaigns'");
break;
case "remove": // Do stuff when removing extension
if (empty($mysql['login'])) $mysql['login'] = "your_login";
if (empty($mysql['host'])) $mysql['host'] = "localhost";
if (empty($mysql['prefix'])) $mysql['prefix'] = "mxchange_";
+ if (empty($mysql['type'])) $mysql['type'] = "MyISAM";
if (getTotalFatalErrors() > 0) {
OUTPUT_HTML("<span class=\"install_fatal\">");
foreach (getFatalArray() as $key => $err) {
define('__MYSQL_HOST' , $mysql['host']);
define('__MYSQL_DBASE' , $mysql['dbase']);
define('__MYSQL_PREFIX', $mysql['prefix']);
+ define('__TABLE_TYPE' , $mysql['type']);
define('__MYSQL_LOGIN' , $mysql['login']);
define('__SPATH_VALUE' , REQUEST_POST('spath'));
define('__BURL_VALUE' , REQUEST_POST('burl'));
define('__MYSQL_HOST' , $mysql['host']);
define('__MYSQL_DBASE' , $mysql['dbase']);
define('__MYSQL_PREFIX' , $mysql['prefix']);
+ define('__TABLE_TYPE' , $mysql['type']);
define('__MYSQL_LOGIN' , $mysql['login']);
define('__MYSQL_PASS1' , $mysql['pass1']);
define('__MYSQL_PASS2' , $mysql['pass2']);
define('__MYSQL_HOST' , $mysql['host']);
define('__MYSQL_DBASE' , $mysql['dbase']);
define('__MYSQL_PREFIX' , $mysql['prefix']);
+ define('__TABLE_TYPE' , $mysql['type']);
define('__MYSQL_LOGIN' , $mysql['login']);
// SMTP settings
<tr>
<td colspan=\"2\" align=\"center\">");
foreach ($mysql as $key => $value) {
- OUTPUT_HTML(" <input type=\"hidden\" name=\"mysql[".$key."]\" value=\"".$value."\">");
+ OUTPUT_HTML(" <input type=\"hidden\" name=\"mysql[".$key."]\" value=\"".$value."\" />");
}
- OUTPUT_HTML(" <input type=\"hidden\" name=\"spath\" value=\"{!__SPATH_VALUE!}\">
+ OUTPUT_HTML(" <input type=\"hidden\" name=\"spath\" value=\"{!__SPATH_VALUE!}\" />
<input type=\"hidden\" name=\"burl\" value=\"{!__BURL_VALUE!}\" />
<input type=\"hidden\" name=\"title\" value=\"{!__TITLE_VALUE!}\" />
<input type=\"hidden\" name=\"slogan\" value=\"{!__SLOGAN_VALUE!}\" />
$fileContent = str_replace("{!prefix!}", $mysql['prefix'], $fileContent);
} // END - while
+ // Replace the {!type!} with actual one
+ while (strpos($fileContent, "{!type!}") !== false) {
+ $fileContent = str_replace("{!type!}", $mysql['type'], $fileContent);
+ } // END - while
+
// And split it up against ;\n ...
SET_SQLS(merge_array(GET_SQLS(), explode(";\n", $fileContent)));
} else {
changeDataInFile(REQUEST_POST('spath')."inc/config.php", "MYSQL-LOGIN", " 'login' => \"", "\",", $mysql['login'], 0);
changeDataInFile(REQUEST_POST('spath')."inc/config.php", "MYSQL-PASSWORD", " 'password' => \"", "\",", $mysql['pass1'], 0);
changeDataInFile(REQUEST_POST('spath')."inc/config.php", "MYSQL-PREFIX", "define('_MYSQL_PREFIX', \"", "\");", $mysql['prefix'], 0);
+ changeDataInFile(REQUEST_POST('spath')."inc/config.php", "TABLE-TYPE", "define('_TABLE_TYPE', \"", "\");", $mysql['type'], 0);
changeDataInFile(REQUEST_POST('spath')."inc/config.php", "SMTP-HOSTNAME", "define('SMTP_HOSTNAME', \"", "\");", REQUEST_POST('smtp_host'), 0);
changeDataInFile(REQUEST_POST('spath')."inc/config.php", "SMTP-USER", "define('SMTP_USER', \"", "\");", REQUEST_POST('smtp_user'), 0);
changeDataInFile(REQUEST_POST('spath')."inc/config.php", "SMTP-PASSWORD", "define('SMTP_PASSWORD', \"", "\");", REQUEST_POST('smtp_pass1'), 0);
define('MYSQL_HOST', "Server-Hostname");
define('MYSQL_DBASE', "Datenbank");
define('MYSQL_PREFIX', "Präfix für alle Tabellen");
+define('MYSQL_TABLE_TYPE', "Tabellentyp: (MyISAM ist meistens ausreichend)");
+define('TABLE_TYPE_MYISAM', "MyISAM (langsamer, da Tabelle gelockt wird)");
+define('TABLE_TYPE_INNODB', "InnoDB (schneller, da zweilenweis gelockt wird)");
define('MYSQL_LOGIN', "Ihr Loginname");
define('MYSQL_PASS1', "Ihr Passwort");
define('MYSQL_PASS2', "Passwortwiederholung");
`sort` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`descr` BLOB NOT NULL,
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}admins`;
CREATE TABLE `{!prefix!}admins` (
`login` VARCHAR(100) NOT NULL DEFAULT '',
`password` VARCHAR(40) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}cats`;
CREATE TABLE `{!prefix!}cats` (
`visible` ENUM('Y','N') NOT NULL DEFAULT 'Y',
`sort` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}config`;
CREATE TABLE `{!prefix!}config` (
`test_subj` ENUM('Y','N') NOT NULL DEFAULT 'Y',
`autosend_active` ENUM('Y','N') NOT NULL DEFAULT 'N',
PRIMARY KEY (`config`)
-) TYPE=MyISAM;
+) TYPE={!type!};
INSERT INTO `{!prefix!}config` VALUES (0,5,2000,200,5,'Y','N','Y',86400,'Y',1000,'Y','N');
`locked` ENUM('Y','N') NOT NULL DEFAULT 'Y',
`counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}max_receive`;
CREATE TABLE `{!prefix!}max_receive` (
`value` MEDIUMINT(9) NOT NULL DEFAULT 0,
`comment` VARCHAR(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}member_menu`;
CREATE TABLE `{!prefix!}member_menu` (
`locked` ENUM('Y','N') NOT NULL DEFAULT 'Y',
`counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}mod_reg`;
CREATE TABLE `{!prefix!}mod_reg` (
`mem_only` ENUM('Y','N') NOT NULL DEFAULT 'N',
`clicks` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
INSERT INTO `{!prefix!}mod_reg` VALUES (1,'admin','N','N','Y','','N',0);
INSERT INTO `{!prefix!}mod_reg` VALUES (2,'index','N','N','N','','N',0);
`mail_title` VARCHAR(255) NOT NULL DEFAULT '',
`price` FLOAT(5,5) UNSIGNED NOT NULL DEFAULT '0.00000',
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}pool`;
CREATE TABLE `{!prefix!}pool` (
`target_send` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`cat_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}refbanner`;
CREATE TABLE `{!prefix!}refbanner` (
`visible` ENUM('Y','N') NOT NULL DEFAULT 'Y',
`counter` BIGINT(22) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}refdepths`;
CREATE TABLE `{!prefix!}refdepths` (
`level` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
`percents` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
INSERT INTO `{!prefix!}refdepths` VALUES (1,0,100);
INSERT INTO `{!prefix!}refdepths` VALUES (2,1,30);
`level` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
`counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}user_cats`;
CREATE TABLE `{!prefix!}user_cats` (
`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`cat_id` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}user_data`;
CREATE TABLE `{!prefix!}user_data` (
`used_points` FLOAT(22,3) NOT NULL DEFAULT '0.000',
`emails_sent` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`userid`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}user_points`;
CREATE TABLE `{!prefix!}user_points` (
`ref_depth` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
`points` FLOAT(22,3) NOT NULL DEFAULT '0.000',
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
ALTER TABLE `{!prefix!}config` ADD `max_send` TINYINT(3) UNSIGNED NOT NULL DEFAULT '100';
ALTER TABLE `{!prefix!}config` ADD `url_blacklist` ENUM('Y','N') NOT NULL DEFAULT 'Y';
`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`link_type` ENUM('NORMAL') NOT NULL DEFAULT 'NORMAL',
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}user_stats`;
CREATE TABLE `{!prefix!}user_stats` (
`timestamp_sstart` VARCHAR(10) NOT NULL DEFAULT '',
`timestamp_send` VARCHAR(10) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
ALTER TABLE `{!prefix!}user_data` ADD `joined` VARCHAR(10) NOT NULL DEFAULT 0;
ALTER TABLE `{!prefix!}config` ADD `last_update` VARCHAR(10) NOT NULL DEFAULT 0;
`task_created` VARCHAR(10) NOT NULL DEFAULT 0,
KEY (`assigned_admin`),
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
ALTER TABLE `{!prefix!}pool` ADD INDEX (`sender`);
ALTER TABLE `{!prefix!}pool` ADD INDEX (`payment_id`);
`ext_active` ENUM('Y','N') NOT NULL DEFAULT 'N',
`ext_version` VARCHAR(255) NOT NULL DEFAULT 'INVALID',
PRIMARY KEY (`id`)
-) TYPE=MyISAM;
+) TYPE={!type!};
DROP TABLE IF EXISTS `{!prefix!}jackpot`;
CREATE TABLE `{!prefix!}jackpot` (
`ok` CHAR(2) NOT NULL DEFAULT 'ok',
`points` FLOAT(20,3) NOT NULL DEFAULT '0.000',
PRIMARY KEY (`ok`)
-) TYPE=MyISAM;
+) TYPE={!type!};
ALTER TABLE `{!prefix!}config` ADD `activate_xchange` BIGINT(20) UNSIGNED NOT NULL DEFAULT 100;
ALTER TABLE `{!prefix!}config` ADD `order_multi_page` ENUM('Y','N') NOT NULL DEFAULT 'Y';
<tr>
<td colspan="2" height="10" class="seperator"> </td>
</tr>
+ <tr>
+ <td width="50%" align="right" class="install">{--MYSQL_TABLE_TYPE--} : </td>
+ <td width="50%">
+ <select name="mysql[type]" size="1">
+ <option value="MyISAM">{--TABLE_TYPE_MYISAM--}</option>
+ <option value="InnoDB">{--TABLE_TYPE_INNODB--}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" height="10" class="seperator"> </td>
+ </tr>
<tr>
<td width="50%" align="right" class="install">{--MYSQL_LOGIN--} : </td>
<td width="50%"><input type="text" name="mysql[login]" size="25"
<tr>
<td colspan="2" align="center">
<input type="hidden" name="spath" value="{!__SPATH_VALUE!}" />
- <input type="hidden" name="burl"value="{!__BURL_VALUE!}" />
- <input type="hidden" name="title" value="{!__TITLE_VALUE!}" />
+ <input type="hidden" name="burl" value="{!__BURL_VALUE!}" />
+ <input type="hidden" name="title" value="{!__TITLE_VALUE!}" />
<input type="hidden" name="slogan" value="{!__SLOGAN_VALUE!}" />
<input type="hidden" name="email" value="{!__EMAIL_VALUE!}" />
- <input type="hidden" name="mysql[host]" value="{!__MYSQL_HOST!}" />
- <input type="hidden" name="mysql[dbase]" value="{!__MYSQL_DBASE!}" />
- <input type="hidden" name="mysql[prefix]" value="{!__MYSQL_PREFIX!}" />
- <input type="hidden" name="mysql[login]" value="{!__MYSQL_LOGIN!}" />
- <input type="hidden" name="mysql[pass1]" value="{!__MYSQL_PASS1!}" />
- <input type="hidden" name="mysql[pass2]" value="{!__MYSQL_PASS2!}" />
+ <input type="hidden" name="mysql[host]" value="{!__MYSQL_HOST!}" />
+ <input type="hidden" name="mysql[dbase]" value="{!__MYSQL_DBASE!}" />
+ <input type="hidden" name="mysql[prefix]" value="{!__MYSQL_PREFIX!}" />
+ <input type="hidden" name="mysql[type]" value="{!__TABLE_TYPE!}" />
+ <input type="hidden" name="mysql[login]" value="{!__MYSQL_LOGIN!}" />
+ <input type="hidden" name="mysql[pass1]" value="{!__MYSQL_PASS1!}" />
+ <input type="hidden" name="mysql[pass2]" value="{!__MYSQL_PASS2!}" />
<input type="submit" class="admin_submit submit" value="{--NEXT_PAGE--}" class="install_submit" />
</td>
</tr>