diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-11-23 21:24:06 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-11-23 21:24:06 +1100 |
| commit | a83d584255012ee072486c187720ec5849efe1a3 (patch) | |
| tree | 0953fbfba9b6f14b0bd6bffbc16f4e0dcad12d3a /post.php | |
| parent | cc8d465297b7668ac24c2be286d569d9f850776c (diff) | |
Ability to disable certain superfluous fields. ("Forced anonymous")
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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']) || |
