function kboard_comments_list() { kboard_comments_system_update(); $commentList = new KBCommentList(); $action = $_POST['action']; $action2 = $_POST['action2']; if (($action == 'remove' || $action2 == 'remove') && $_POST['comment_uid']) { foreach ($_POST['comment_uid'] as $key => $value) { $commentList->delete($value); } } $commentList->order = 'DESC'; $commentList->init(); include_once 'pages/comments_list.php'; }