Файл: modules/videos/plugins/comments_delete.php
Строк: 11
<?php
IF (GET('comment_delete') && DB::GET_COLUMN("SELECT COUNT(*) FROM `VIDEOS_COMMENTS` WHERE `ID` = '".INTVAL(GET('comment_delete'))."' LIMIT 1") == 1){
DB::GET_SET("DELETE FROM `VIDEOS_COMMENTS_LIKES` WHERE `COMMENT_ID` = '".INTVAL(GET('comment_delete'))."'");
DB::GET_SET("DELETE FROM `VIDEOS_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` = 'videos_comments'");
REDIRECT('/modules/?path=videos§ion=show&video_id='.$video['ID'].'&page='.$page.'');
}
ECHO "<a href='/modules/?path=videos§ion=show&video_id=".$video['ID']."&page=".$page."&comment_delete=".$list['ID']."' class='btn-o'>".ICONS('trash', 12, 'fa-fw')." ".LG('Удл.')."</a>";
?>