Redirect to referer
This commit is contained in:
parent
466d5e4832
commit
130efdf467
7
mod.php
7
mod.php
@ -194,8 +194,13 @@
|
||||
deletePost($post);
|
||||
// Rebuild board
|
||||
buildIndex();
|
||||
// Redirect to board
|
||||
|
||||
// Redirect
|
||||
if(isset($_SERVER['HTTP_REFERER']))
|
||||
header('Location: ' . $_SERVER['HTTP_REFERER'], true, REDIRECT_HTTP);
|
||||
else
|
||||
header('Location: ?/' . sprintf(BOARD_PATH, $boardName) . FILE_INDEX, true, REDIRECT_HTTP);
|
||||
|
||||
} else {
|
||||
error("Page not found.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user