Changeset 12596 for trunk/admin/comments.php
- Timestamp:
- Nov 11, 2011, 11:19:44 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/comments.php
r8728 r12596 49 49 else 50 50 { 51 include_once( PHPWG_ROOT_PATH .'include/functions_comment.inc.php' ); 51 52 check_input_parameter('comments', $_POST, true, PATTERN_ID); 52 53 53 54 if (isset($_POST['validate'])) 54 55 { 55 $query = ' 56 UPDATE '.COMMENTS_TABLE.' 57 SET validated = \'true\' 58 , validation_date = NOW() 59 WHERE id IN ('.implode(',', $_POST['comments']).') 60 ;'; 61 pwg_query($query); 56 validate_user_comment($_POST['comments']); 62 57 63 array_push(64 $page['infos'],65 l10n_dec(66 '%d user comment validated', '%d user comments validated',67 count($_POST['comments'])68 )69 );58 array_push( 59 $page['infos'], 60 l10n_dec( 61 '%d user comment validated', '%d user comments validated', 62 count($_POST['comments']) 63 ) 64 ); 70 65 } 71 66 72 67 if (isset($_POST['reject'])) 73 68 { 74 $query = ' 75 DELETE 76 FROM '.COMMENTS_TABLE.' 77 WHERE id IN ('.implode(',', $_POST['comments']).') 78 ;'; 79 pwg_query($query); 69 delete_user_comment($_POST['comments']); 80 70 81 71 array_push(
Note: See TracChangeset
for help on using the changeset viewer.