This commit is contained in:
Savetheinternet 2011-02-22 17:43:42 +11:00
parent a1f300cc8f
commit 3defed1c0b

View File

@ -221,7 +221,8 @@
$query->execute() or error(db_error($query));
header('Location: ?/', true, $config['redirect_http']);
} elseif(isset($_POST['title']) && isset($_POST['subtitle'])) {
} else {
if(isset($_POST['title']) && isset($_POST['subtitle'])) {
$query = prepare("UPDATE `boards` SET `title` = :title, `subtitle` = :subtitle WHERE `id` = :id");
$query->bindValue(':title', utf8tohtml($_POST['title'], true));
@ -272,6 +273,7 @@
'body'=>$body,
'mod'=>true
));
}
} elseif(preg_match('/^\/bans$/', $query)) {
if($mod['type'] < $config['mod']['view_banlist']) error($config['error']['noaccess']);
@ -493,7 +495,9 @@
// Build the board
buildIndex();
}
header('Location: ?/board/' . $board['uri'], true, $config['redirect_http']);
} else {
$body .= form_newBoard();
@ -506,6 +510,7 @@
'mod'=>true
)
);
}
} elseif(preg_match('/^\/' . $regex['board'] . '(' . $regex['index'] . '|' . $regex['page'] . ')?$/', $query, $matches)) {
// Board index