CREATE TABLE `bx_antispam_ip_table` ( `ID` int(11) NOT NULL auto_increment, `From` int(10) unsigned NOT NULL, `To` int(10) unsigned NOT NULL, `Type` enum('allow','deny') NOT NULL default 'deny', `LastDT` int(11) unsigned NOT NULL, `Desc` varchar(128) NOT NULL, PRIMARY KEY (`ID`), KEY `From` (`From`), KEY `To` (`To`) ); CREATE TABLE `bx_antispam_dnsbl_rules` ( `id` int(11) NOT NULL AUTO_INCREMENT, `chain` enum('spammers','whitelist','uridns') NOT NULL, `zonedomain` varchar(255) NOT NULL, `postvresp` varchar(32) NOT NULL, `url` varchar(255) NOT NULL, `recheck` varchar(255) NOT NULL, `comment` varchar(255) NOT NULL, `added` int(11) NOT NULL, `active` tinyint(4) NOT NULL, PRIMARY KEY (`id`) ); INSERT INTO `bx_antispam_dnsbl_rules` (`chain`, `zonedomain`, `postvresp`, `url`, `recheck`, `comment`, `added`, `active`) VALUES ('spammers', 'sbl.spamhaus.org.', 'any', 'http://www.spamhaus.org/sbl/', 'http://www.spamhaus.org/query/bl?ip=%s', '_bx_antispam_rule_note_spamhaus_org', 0, 1), ('spammers', 'dnsbl.tornevall.org.', '230', 'http://dnsbl.tornevall.org/', '', '_bx_antispam_rule_note_dnsbl_tornevall_org', 0, 0), ('uridns', 'multi.surbl.org.', 'any', 'http://www.surbl.org/', 'http://george.surbl.org/lookup.html', '_bx_antispam_rule_note_surbl_org', 0, 1), ('spammers', 'zomgbl.spameatingmonkey.net.', 'any', 'http://spameatingmonkey.com/index.html', '', '_bx_antispam_rule_note_zomgbl_spameatingmonkey_net', 0, 0); CREATE TABLE `bx_antispam_dnsbluri_zones` ( `level` tinyint(4) NOT NULL, `zone` varchar(64) NOT NULL ); CREATE TABLE IF NOT EXISTS `bx_antispam_disposable_email_domains` ( `id` int(11) NOT NULL AUTO_INCREMENT, `domain` varchar(255) NOT NULL, `list` enum('blacklist','custom_blacklist','whitelist','custom_whitelist') NOT NULL DEFAULT 'custom_blacklist', PRIMARY KEY (`id`), UNIQUE KEY `domain` (`domain`(191)) ); CREATE TABLE `bx_antispam_block_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ip` int(10) unsigned NOT NULL, `profile_id` int(10) unsigned NOT NULL, `type` varchar(32) NOT NULL, `extra` text NOT NULL, `added` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `ip` (`ip`), KEY `profile_id` (`profile_id`) ); -- Studio page and widget INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES (3, 'bx_antispam', '_bx_antispam', '_bx_antispam', 'bx_antispam@modules/boonex/antispam/|std-icon.svg'); SET @iPageId = LAST_INSERT_ID(); SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name` = 'home'); SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id` = @iParentPageId); INSERT INTO `sys_std_widgets` (`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES (@iPageId, 'bx_antispam', 'extensions', '{url_studio}module.php?name=bx_antispam', '', 'bx_antispam@modules/boonex/antispam/|std-icon.svg', '_bx_antispam', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}'); INSERT INTO `sys_std_pages_widgets` (`page_id`, `widget_id`, `order`) VALUES (@iParentPageId, LAST_INSERT_ID(), IF(ISNULL(@iParentPageOrder), 1, @iParentPageOrder + 1));