<?php require_once 'lib/user_session.php'; $user = new UserSession(); $is_login = false; if (isset($_GET['action'])) { if ($_GET['action'] == 'logout') { $user->logout(); } } 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);