From 98be190dd56ff7fa422311f910e700069568db4c Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 21 Feb 2009 10:26:52 -0500 Subject: Added comment editing and deleting --- includes/comments.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'includes/comments.php') diff --git a/includes/comments.php b/includes/comments.php index 3a64321..e050073 100755 --- a/includes/comments.php +++ b/includes/comments.php @@ -73,6 +73,14 @@ while ($getcomments3[$i] = mysql_fetch_array($getcomments2)) 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getcomments3[$i]['posttime'])), 'ID' => $getcomments3[$i]['id'], 'TEXT' => parseText($getcomments3[$i]['comment']))); + + if (isLoggedIn()) + { + if ((isAdmin()) || (($getcomments3[$i]['is_anon'] == 0) && (getSessionUserID() === $getcomments3[$i]['user_id']))) + { + $template->adds_ref_sub($curID, 'EDITOR', array('BEFORE' => $getcomments3[$i]['comment'])); + } + } } $i++; } -- cgit 1.4.1