Browse Source

redirect after posting IP address note so they cannot repost with F5

pull/40/head
Savetheinternet 13 years ago
parent
commit
fb4f0672d7
  1. 4
      mod.php

4
mod.php

@ -2110,8 +2110,9 @@
markup($_POST['note']); markup($_POST['note']);
$query->bindValue(':body', $_POST['note']); $query->bindValue(':body', $_POST['note']);
$query->execute() or error(db_error($query)); $query->execute() or error(db_error($query));
}
header('Location: ?/IP/' . $ip, true, $config['redirect_http']);
} else {
$body = ''; $body = '';
$boards = listBoards(); $boards = listBoards();
foreach($boards as &$_board) { foreach($boards as &$_board) {
@ -2287,6 +2288,7 @@
'mod'=>true 'mod'=>true
) )
); );
}
} else { } else {
error($config['error']['404']); error($config['error']['404']);
} }

Loading…
Cancel
Save