diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-02-21 10:26:52 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-02-21 10:26:52 -0500 |
commit | 98be190dd56ff7fa422311f910e700069568db4c (patch) | |
tree | 621fb6cd794772bfaecff735883114731a3ef8d6 /includes/comments.php | |
parent | 4f1cb78e3c3c1ecf568c275fad139fed94b24c35 (diff) | |
download | fourisland-98be190dd56ff7fa422311f910e700069568db4c.tar.gz fourisland-98be190dd56ff7fa422311f910e700069568db4c.tar.bz2 fourisland-98be190dd56ff7fa422311f910e700069568db4c.zip |
Added comment editing and deleting
Diffstat (limited to 'includes/comments.php')
-rwxr-xr-x | includes/comments.php | 8 |
1 files changed, 8 insertions, 0 deletions
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)) | |||
73 | 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getcomments3[$i]['posttime'])), | 73 | 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getcomments3[$i]['posttime'])), |
74 | 'ID' => $getcomments3[$i]['id'], | 74 | 'ID' => $getcomments3[$i]['id'], |
75 | 'TEXT' => parseText($getcomments3[$i]['comment']))); | 75 | 'TEXT' => parseText($getcomments3[$i]['comment']))); |
76 | |||
77 | if (isLoggedIn()) | ||
78 | { | ||
79 | if ((isAdmin()) || (($getcomments3[$i]['is_anon'] == 0) && (getSessionUserID() === $getcomments3[$i]['user_id']))) | ||
80 | { | ||
81 | $template->adds_ref_sub($curID, 'EDITOR', array('BEFORE' => $getcomments3[$i]['comment'])); | ||
82 | } | ||
83 | } | ||
76 | } | 84 | } |
77 | $i++; | 85 | $i++; |
78 | } | 86 | } |