diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-06 23:09:18 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-06 23:09:18 +1000 |
| commit | f309e4037c11197e4392e402992882358e4678c7 (patch) | |
| tree | c0b7bbc65801ba693db55b847db3bddcbcc894a4 /install.sql | |
| parent | 14ff0fbeb3fd93e94a804d647971b8a9551c327f (diff) | |
Better and faster basic flood prevention, while merging it into $config['filters'].
Diffstat (limited to 'install.sql')
| -rw-r--r-- | install.sql | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/install.sql b/install.sql index a3c03cb1..3c8cc886 100644 --- a/install.sql +++ b/install.sql @@ -245,6 +245,27 @@ CREATE TABLE IF NOT EXISTS `theme_settings` ( KEY `theme` (`theme`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; +-- -------------------------------------------------------- + +-- +-- Table structure for table `flood` +-- + +CREATE TABLE IF NOT EXISTS `flood` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `ip` varchar(39) CHARACTER SET ascii NOT NULL, + `board` varchar(58) CHARACTER SET utf8 NOT NULL, + `time` int(11) NOT NULL, + `posthash` char(32) NOT NULL, + `filehash` char(32) DEFAULT NULL, + `isreply` tinyint(1) NOT NULL, + PRIMARY KEY (`id`), + KEY `ip` (`ip`), + KEY `posthash` (`posthash`), + KEY `filehash` (`filehash`), + KEY `time` (`time`) +) ENGINE=MyISAM DEFAULT CHARSET=ascii COLLATE=ascii_bin AUTO_INCREMENT=1 ; + /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
