32 lines
879 B
PHP
32 lines
879 B
PHP
|
<?php
|
||
|
/* This file is free software: you can redistribute it and/or modify
|
||
|
it under the terms of version 3 of the GNU Affero General Public
|
||
|
License as published by the Free Software Foundation.
|
||
|
|
||
|
This file is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
GNU Affero General Public License for more details. */
|
||
|
|
||
|
$title = "Delete Post";
|
||
|
$mark = "p_oust_index";
|
||
|
$depth = "../../";
|
||
|
include "../../res/lib/load.php";
|
||
|
|
||
|
$id = scrub($_GET['id']);
|
||
|
|
||
|
// --------------------------------------
|
||
|
|
||
|
auth_enforce(user_logged_in(),
|
||
|
array("wizard", "archmage"), "liquify posts");
|
||
|
|
||
|
input_enforce(array($id),
|
||
|
array("id"),
|
||
|
array("post_id"));
|
||
|
|
||
|
// -------------------------------------
|
||
|
|
||
|
display_page($mark, $depth, $title, array('post_id' => $id));
|
||
|
|
||
|
?>
|