Revision 317
Added by stefan over 18 years ago
delete_group.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['group_id']) OR !is_numeric($_GET['group_id'])) { |
30 | 30 |
header("Location: ".ADMIN_URL."/pages/index.php"); |
... | ... | |
37 | 37 |
$update_when_modified = true; // Tells script to update when this page was last updated |
38 | 38 |
require(WB_PATH.'/modules/admin.php'); |
39 | 39 |
|
40 |
// Update row
|
|
41 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_groups WHERE group_id = '$group_id'");
|
|
40 |
// Update row |
|
41 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_groups WHERE group_id = '$group_id'"); |
|
42 | 42 |
|
43 | 43 |
// Check if there is a db error, otherwise say successful |
44 | 44 |
if($database->is_error()) { |
Also available in: Unified diff
Changed all line endings to Unix stlye