Changeset 1617 for trunk/comments.php
- Timestamp:
- Nov 22, 2006, 5:41:25 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comments.php
r1598 r1617 156 156 // | comments management | 157 157 // +-----------------------------------------------------------------------+ 158 if (is _admin() and !is_adviser())159 { 160 if (isset($_GET['delete']) and is_numeric($_GET['delete']) ) 161 {// comments deletion162 158 if (isset($_GET['delete']) and is_numeric($_GET['delete']) 159 and !is_adviser() ) 160 {// comments deletion 161 check_status(ACCESS_ADMINISTRATOR); 162 $query = ' 163 163 DELETE FROM '.COMMENTS_TABLE.' 164 164 WHERE id='.$_GET['delete'].' 165 165 ;'; 166 pwg_query($query); 167 } 168 169 if (isset($_GET['validate']) and is_numeric($_GET['validate']) ) 170 { // comments validation 171 $query = ' 166 pwg_query($query); 167 } 168 169 if (isset($_GET['validate']) and is_numeric($_GET['validate']) 170 and !is_adviser() ) 171 { // comments validation 172 check_status(ACCESS_ADMINISTRATOR); 173 $query = ' 172 174 UPDATE '.COMMENTS_TABLE.' 173 175 SET validated = \'true\' 174 176 , validation_date = NOW() 175 177 WHERE id='.$_GET['validate'].' 176 178 ;'; 177 178 179 } 179 pwg_query($query); 180 } 181 180 182 // +-----------------------------------------------------------------------+ 181 183 // | page header and options |
Note: See TracChangeset
for help on using the changeset viewer.