summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-04-12 21:56:01 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-04-12 21:56:01 +1000
commita564a95ab40eb1c9cc7de142db60aedb3e749176 (patch)
treeb94f1e2bdb8996ca31b75f6270930636d3f3fa39 /install.php
parentdd0f421015059247464efd5f6d2735c5ee08a400 (diff)
Improved Tinyboard anti-bot/spam filter. See large comment in inc/config.php for details.
Diffstat (limited to 'install.php')
-rw-r--r--install.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/install.php b/install.php
index 3cd8a5b7..f67d4cb0 100644
--- a/install.php
+++ b/install.php
@@ -1,7 +1,7 @@
<?php
// Installation/upgrade file
-define('VERSION', 'v0.9.6-dev-1');
+define('VERSION', 'v0.9.6-dev-2');
require 'inc/functions.php';
@@ -174,6 +174,17 @@ if(file_exists($config['has_installed'])) {
CHANGE `uri` `uri` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
CHANGE `title` `title` TINYTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
CHANGE `subtitle` `subtitle` TINYTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL") or error(db_error());
+ case 'v0.9.6-dev-1':
+ query("CREATE TABLE IF NOT EXISTS `antispam` (
+ `board` varchar(255) NOT NULL,
+ `thread` int(11) DEFAULT NULL,
+ `hash` bigint(20) NOT NULL,
+ `created` int(11) NOT NULL,
+ `expires` int(11) DEFAULT NULL,
+ `passed` smallint(6) NOT NULL,
+ PRIMARY KEY (`hash`),
+ KEY `board` (`board`,`thread`)
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8;");
case false:
// Update version number
file_write($config['has_installed'], VERSION);