increase character limit on board URI, title and subtitle

This commit is contained in:
Michael Save
2012-04-09 21:13:44 +10:00
parent 874b8cbf00
commit 033491f84f
6 changed files with 20 additions and 30 deletions

View File

@@ -18,9 +18,7 @@
if(isset($_POST['delete'])) {
// Delete
if( !isset($_POST['board']) ||
!isset($_POST['password'])
)
if(!isset($_POST['board'], $_POST['password']))
error($config['error']['bot']);
$password = &$_POST['password'];
@@ -82,10 +80,7 @@
header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']);
} elseif(isset($_POST['report'])) {
if( !isset($_POST['board']) ||
!isset($_POST['password']) ||
!isset($_POST['reason'])
)
if(!isset($_POST['board'], $_POST['password'], $_POST['reason']))
error($config['error']['bot']);
$report = Array();
@@ -142,10 +137,8 @@
header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']);
} elseif(isset($_POST['post'])) {
if( !isset($_POST['subject']) ||
!isset($_POST['body']) ||
!isset($_POST['board'])
) error($config['error']['bot']);
if(!isset($_POST['subject'], $_POST['body'], $_POST['board']))
error($config['error']['bot']);
if(!isset($_POST['name']))
$_POST['name'] = $config['anonymous'];