- Timestamp:
- Aug 14, 2006, 10:56:10 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_6/comments.php
r1092 r1535 149 149 // +-----------------------------------------------------------------------+ 150 150 // comments deletion 151 if (isset($_POST['delete']) and count($_POST['comment_id']) > 0) 152 { 151 if (isset($_POST['delete']) and count($_POST['comment_id']) > 0 and is_admin()) 152 { 153 $_POST['comment_id'] = array_map('intval', $_POST['comment_id']); 153 154 $query = ' 154 155 DELETE FROM '.COMMENTS_TABLE.' … … 158 159 } 159 160 // comments validation 160 if (isset($_POST['validate']) and count($_POST['comment_id']) > 0) 161 { 161 if (isset($_POST['validate']) and count($_POST['comment_id']) > 0 162 and is_admin()) 163 { 164 $_POST['comment_id'] = array_map('intval', $_POST['comment_id']); 162 165 $query = ' 163 166 UPDATE '.COMMENTS_TABLE.'
Note: See TracChangeset
for help on using the changeset viewer.