function force_unlogged_user() { if (isNormalUser() || isAdministrativeUser()) { header("Location: /index.php"); } }
if ($_POST['formatting'] == 'aa') { $_POST['message'] = '[aa]' . $_POST['message'] . '[/aa]'; } if (isset($_POST['rememberformatting'])) { setcookie('kuformatting', urldecode($_POST['formatting']), time() + 31556926, '/', KU_DOMAIN); } } $results = $tc_db->GetAll("SELECT id FROM `" . KU_DBPREFIX . "posts` WHERE `boardid` = " . $board_class->board['id'] . " ORDER BY id DESC LIMIT 1"); if (count($results) > 0) { $nextid = $results[0]['id'] + 1; } else { $nextid = 1; } $parse_class->id = $nextid; // If they are just a normal user, or vip... if (isNormalUser($user_authority)) { // If the thread is locked if ($thread_locked == 1) { // Don't let the user post exitWithErrorPage(_gettext('Sorry, this thread is locked and can not be replied to.')); } $post_message = $parse_class->ParsePost($_POST['message'], $board_class->board['name'], $board_class->board['type'], $thread_replyto, $board_class->board['id']); // Or, if they are a moderator/administrator... } else { // If they checked the D checkbox, set the variable to tell the script to display their staff status (Admin/Mod) on the post during insertion if (isset($_POST['displaystaffstatus'])) { $post_displaystaffstatus = true; } // If they checked the RH checkbox, set the variable to tell the script to insert the post as-is... if (isset($_POST['rawhtml'])) { $post_message = $_POST['message'];