Файл: 2/3020.ru/modules/files/plugins/file/comments_delete_get.php
Строк: 12
<?php
IF ($account['ID'] == $user['ID'] || MANAGEMENT == 1 || ACCESS('files_comments_edit_and_delete', NULL, 1)){
IF (GET('comment_delete') && DB::GET_COLUMN("SELECT COUNT(*) FROM `FILES_COMMENTS` WHERE `ID` = '".INTVAL(GET('comment_delete'))."' LIMIT 1") == 1){
DB_FILTER();
CSRF::GET_CHECK_VALID(GET('comment_delete'));
DB::GET_SET("DELETE FROM `FILES_COMMENTS_LIKES` WHERE `COMMENT_ID` = '".INTVAL(GET('comment_delete'))."'");
DB::GET_SET("DELETE FROM `FILES_COMMENTS` WHERE `ID` = '".INTVAL(GET('comment_delete'))."' LIMIT 1");
DB::GET_SET("DELETE FROM `ATTACHMENTS` WHERE `ID_POST` = '".INTVAL(GET('comment_delete'))."' AND `TYPE_POST` = 'files_comments'");
REDIRECT('/modules/?path=files§ion=show&id='.$files['ID'].'&page='.$page);
}
}
?>