} else { do_redirect(KU_WEBPATH); } } else { // A board being supplied is required for this script to function do_redirect(KU_WEBPATH); } // {{{ Expired ban removal, and then existing ban check on the current user $bans_class->BanCheck($_SERVER['REMOTE_ADDR'], $board_class->board['name']); // }}} $oekaki = $posting_class->CheckOekaki(); $is_oekaki = empty($oekaki) ? false : true; /* Ensure that UTF-8 is used on some of the post variables */ $posting_class->UTF8Strings(); /* Check if the user sent a valid post (image for thread, image/message for reply, etc) */ if ($posting_class->CheckValidPost($is_oekaki)) { $tc_db->Execute("START TRANSACTION"); $posting_class->CheckReplyTime(); $posting_class->CheckNewThreadTime(); $posting_class->CheckMessageLength(); $posting_class->CheckCaptcha(); $posting_class->CheckBannedHash(); $posting_class->CheckBlacklistedText(); $post_isreply = $posting_class->CheckIsReply(); $imagefile_name = isset($_FILES['imagefile']) ? $_FILES['imagefile']['name'] : ''; if ($post_isreply) { list($thread_replies, $thread_locked, $thread_replyto) = $posting_class->GetThreadInfo($_POST['replythread']); } else { if ($board_class->board['type'] != 1 && (($board_class->board['uploadtype'] == '1' || $board_class->board['uploadtype'] == '2') && $board_class->board['embeds_allowed'] != '')) { if (isset($_POST['embed'])) { if ($_POST['embed'] == '') {