Revision 317
Added by stefan over 19 years ago
| delete_post.php | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 | 2 |
|
| 3 | 3 |
// $Id$ |
| 4 |
|
|
| 4 |
|
|
| 5 | 5 |
/* |
| 6 | 6 |
|
| 7 | 7 |
Website Baker Project <http://www.websitebaker.org/> |
| ... | ... | |
| 22 | 22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 23 | 23 |
|
| 24 | 24 |
*/ |
| 25 |
|
|
| 26 |
require('../../config.php');
|
|
| 27 | 25 |
|
| 26 |
require('../../config.php');
|
|
| 27 |
|
|
| 28 | 28 |
// Get id |
| 29 | 29 |
if(!isset($_GET['post_id']) OR !is_numeric($_GET['post_id'])) {
|
| 30 | 30 |
header("Location: ".ADMIN_URL."/pages/index.php");
|
| ... | ... | |
| 50 | 50 |
unlink(WB_PATH.$get_details['link'].'.php'); |
| 51 | 51 |
} |
| 52 | 52 |
|
| 53 |
// Delete post
|
|
| 54 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_posts WHERE post_id = '$post_id' LIMIT 1");
|
|
| 53 |
// Delete post |
|
| 54 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_posts WHERE post_id = '$post_id' LIMIT 1");
|
|
| 55 | 55 |
|
| 56 | 56 |
// Clean up ordering |
| 57 | 57 |
require(WB_PATH.'/framework/class.order.php'); |
Also available in: Unified diff
Changed all line endings to Unix stlye