From aa02cffb93fecaa871528ab88d25b03c6715fab2 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 27 Aug 2011 12:11:34 +1000 Subject: [PATCH] increased subject max length to 100 characters --- install.php | 8 +++++++- install.sql | 2 +- post.php | 2 +- templates/index.html | 2 +- templates/posts.sql | 2 +- templates/thread.html | 2 +- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/install.php b/install.php index 2877d498..baac2cc4 100644 --- a/install.php +++ b/install.php @@ -1,6 +1,6 @@ 50) error(sprintf($config['error']['toolong'], 'name')); if(strlen($post['email']) > 40) error(sprintf($config['error']['toolong'], 'email')); - if(strlen($post['subject']) > 40) error(sprintf($config['error']['toolong'], 'subject')); + if(strlen($post['subject']) > 100) error(sprintf($config['error']['toolong'], 'subject')); if(!$mod && strlen($post['body']) > $config['max_body']) error($config['error']['toolong_body']); if(!(!$OP && $post['has_file']) && strlen($post['body']) < 1) error($config['error']['tooshort_body']); if(strlen($post['password']) > 20) error(sprintf($config['error']['toolong'], 'password')); diff --git a/templates/index.html b/templates/index.html index 30ca3303..1f917945 100644 --- a/templates/index.html +++ b/templates/index.html @@ -60,7 +60,7 @@ Subject - + diff --git a/templates/posts.sql b/templates/posts.sql index cf8718d2..c3250e51 100644 --- a/templates/posts.sql +++ b/templates/posts.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS `posts_{board}` ( `id` int(11) NOT NULL AUTO_INCREMENT, `thread` int(11) DEFAULT NULL, - `subject` varchar(50) NOT NULL, + `subject` varchar(100) NOT NULL, `email` varchar(30) NOT NULL, `name` varchar(35) NOT NULL, `trip` varchar(15) DEFAULT NULL, diff --git a/templates/thread.html b/templates/thread.html index adf8579c..4dbe7de3 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -59,7 +59,7 @@ Subject - +