From a83d584255012ee072486c187720ec5849efe1a3 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 23 Nov 2011 21:24:06 +1100 Subject: Ability to disable certain superfluous fields. ("Forced anonymous") --- post.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'post.php') diff --git a/post.php b/post.php index 3993ef5a..5dcc9424 100644 --- a/post.php +++ b/post.php @@ -131,6 +131,16 @@ header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']); } elseif(isset($_POST['post'])) { + + if($config['field_disable_name']) + $_POST['name'] = $config['anonymous']; // "forced anonymous" + + if($config['field_disable_email']) + $_POST['email'] = ''; + + if($config['field_disable_password']) + $_POST['password'] = ''; + if( !isset($_POST['name']) || !isset($_POST['email']) || !isset($_POST['subject']) || -- cgit v1.3