You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
321 B
17 lines
321 B
<?php
|
|
require_once './config.php';
|
|
|
|
use nzedb\Forum;
|
|
|
|
$page = new AdminPage();
|
|
|
|
if (isset($_GET['id'])) {
|
|
(new Forum(['Settings' => $page->settings]))->deletePost($_GET['id']);
|
|
}
|
|
|
|
if (isset($_GET['from'])) {
|
|
$referrer = $_GET['from'];
|
|
} else {
|
|
$referrer = $_SERVER['HTTP_REFERER'];
|
|
}
|
|
header("Location: " . $referrer);
|
|
|