- Timestamp:
- Nov 11, 2011, 2:57:12 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Comments_on_Albums/include/coa_admin_comments.php
r11874 r12601 46 46 else 47 47 { 48 include_once(COA_PATH.'include/functions_comment.inc.php'); 48 49 check_input_parameter('comments', $_POST, true, PATTERN_ID); 49 50 50 51 if (isset($_POST['validate_albums'])) 51 52 { 52 $query = ' 53 UPDATE '.COA_TABLE.' 54 SET validated = \'true\', 55 validation_date = NOW() 56 WHERE id IN ('.implode(',', $_POST['comments']).') 57 ;'; 58 pwg_query($query); 53 validate_user_comment_albums($_POST['comments']); 59 54 60 55 array_push( … … 69 64 if (isset($_POST['reject_albums'])) 70 65 { 71 $query = ' 72 DELETE 73 FROM '.COA_TABLE.' 74 WHERE id IN ('.implode(',', $_POST['comments']).') 75 ;'; 76 pwg_query($query); 66 delete_user_comment_albums($_POST['comments']); 77 67 78 68 array_push(
Note: See TracChangeset
for help on using the changeset viewer.