Project

General

Profile

« Previous | Next » 

Revision 1457

Added by Dietmar almost 13 years ago

Preparing 2.8.2 stable, last tests

View differences:

delete_post.php
18 18

  
19 19
require('../../config.php');
20 20

  
21
$admin_header = false;
22
// Tells script to update when this page was last updated
23
$update_when_modified = true;
21 24
// Include WB admin wrapper script
22
$update_when_modified = true; // Tells script to update when this page was last updated
23 25
require(WB_PATH.'/modules/admin.php');
24 26

  
25
$pid = $admin->checkIDKEY('post_id', false, 'GET');
26
if (!$pid) {
27
$post_id = ($admin->checkIDKEY('post_id', false, 'GET'));
28
if (!$post_id) {
29
	$admin->print_header();
27 30
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id);
28
	exit();
29
} else {
30
	$post_id = $pid;
31 31
}
32
$admin->print_header();
32 33

  
33 34
// Get post details
34 35
$query_details = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_news_posts WHERE post_id = '$post_id'");
......
61 62

  
62 63
// Print admin footer
63 64
$admin->print_footer();
64

  
65
?>
66 65

  

Also available in: Unified diff