diff --git a/forum.php b/forum.php index ee817ef..03aabf4 100644 --- a/forum.php +++ b/forum.php @@ -1,12 +1,21 @@ query("SELECT username FROM user WHERE BINARY username=\"" . $_SESSION["username"] . "\""); + +if ($out -> num_rows != 1) { - header("Location: ./index.php"); - return; + fail: + echo "nope"; + header("Location: ./index.php"); + return; } ?> +