forked from leftypol/leftypol
Ability to disable certain superfluous fields. ("Forced anonymous")
This commit is contained in:
parent
cc8d465297
commit
a83d584255
3 changed files with 26 additions and 6 deletions
10
post.php
10
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']) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue