Revision 1457
Added by Dietmar almost 13 years ago
delete_group.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 |
$gid = $admin->checkIDKEY('group_id', false, 'GET'); |
|
26 |
if (!$gid) { |
|
27 |
$group_id = intval($admin->checkIDKEY('group_id', false, 'GET')); |
|
28 |
if (!$group_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 |
$group_id = $gid; |
|
31 | 31 |
} |
32 |
$admin->print_header(); |
|
32 | 33 |
|
33 | 34 |
$database->query("UPDATE ".TABLE_PREFIX."mod_news_posts SET group_id = '0' where group_id='$group_id'"); |
34 | 35 |
// Update row |
35 | 36 |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests