} else { $is_login = $user->is_login(); } if ($is_login) { $world = $user->get_question(); } if ($is_login) { if (isset($_POST['ans'])) { // yo the answer is true? $str = mysql_real_escape_string($_POST['ans']); $str = str_replace(" ", "", $str); $str = strtolower($str); $user->update_log($str); if ($str == $world['answer']) { $_SESSION['level'] = $_SESSION['level'] + 1; $user->update_level(); include 'troll.php'; die; } else { $mystring = $str; $findme = 'f**k'; $pos = strpos($mystring, $findme); if ($pos === false) { include 'trolled.php'; die; } else { include 'fyea.php'; die; } } }