Project

General

Profile

« Previous | Next » 

Revision 317

Added by stefan over 18 years ago

Changed all line endings to Unix stlye

View differences:

delete_comment.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['comment_id']) OR !is_numeric($_GET['comment_id'])) {
30 30
	header("Location: ".ADMIN_URL."/pages/index.php");
......
45 45
$update_when_modified = true; // Tells script to update when this page was last updated
46 46
require(WB_PATH.'/modules/admin.php');
47 47

  
48
// Update row

49
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_comments  WHERE comment_id = '$comment_id'");

48
// Update row
49
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_comments  WHERE comment_id = '$comment_id'");
50 50

  
51 51
// Check if there is a db error, otherwise say successful
52 52
if($database->is_error()) {

Also available in: Unified diff