Browse Source

..

pull/40/head
Savetheinternet 13 years ago
parent
commit
3defed1c0b
  1. 9
      mod.php

9
mod.php

@ -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

Loading…
Cancel
Save