if (!empty($board_name)) { $board_class = new Board($board_name); if (!empty($board_class->board['locale'])) { changeLocale($board_class->board['locale']); } } 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) {