From 7cd9b65e3299fb8bc6a83e65f89fcecca62f3178 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sat, 30 Oct 2004 15:42:29 +0000 Subject: - function mysql_query replaced by pwg_query : the same with debugging features - by default, DEBUG is set to 0 (off) git-svn-id: http://piwigo.org/svn/trunk@587 68402e56-0260-453c-a942-63ccdbb3a9ee --- comments.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'comments.php') diff --git a/comments.php b/comments.php index e39bb0693..100ac807b 100644 --- a/comments.php +++ b/comments.php @@ -53,7 +53,7 @@ if (isset($_POST['delete']) and count($_POST['comment_id']) > 0) DELETE FROM '.COMMENTS_TABLE.' WHERE id IN ('.implode(',', $_POST['comment_id']).') ;'; - mysql_query($query); + pwg_query($query); } // comments validation if (isset($_POST['validate']) and count($_POST['comment_id']) > 0) @@ -63,7 +63,7 @@ UPDATE '.COMMENTS_TABLE.' SET validated = \'true\' WHERE id IN ('.implode(',', $_POST['comment_id']).') ;'; - mysql_query($query); + pwg_query($query); } // +-----------------------------------------------------------------------+ // | page header and options | @@ -128,7 +128,7 @@ if ($user['status'] != 'admin') $query.= ' ORDER BY ic.image_id DESC ;'; -$result = mysql_query($query); +$result = pwg_query($query); if ($user['status'] == 'admin') { $template->assign_block_vars('validation', array()); @@ -144,7 +144,7 @@ SELECT name,file,storage_category_id as cat_id,tn_ext FROM '.IMAGES_TABLE.' WHERE id = '.$row['image_id'].' ;'; - $subresult = mysql_query($query); + $subresult = pwg_query($query); $subrow = mysql_fetch_array($subresult); if (!isset($array_cat_names[$subrow['cat_id']])) @@ -195,7 +195,7 @@ SELECT * $query.= ' ORDER BY date DESC ;'; - $handleresult = mysql_query($query); + $handleresult = pwg_query($query); while ($subrow = mysql_fetch_array($handleresult)) { $author = $subrow['author']; -- cgit v1.2.3