diff --git a/index.php b/index.php
index 91e4f94..1c190ee 100644
--- a/index.php
+++ b/index.php
@@ -105,6 +105,8 @@ session_start();
function login($uname)
{
+ global $database;
+
if ($uname != null)
{
$_SESSION["username"] = $uname;
@@ -113,7 +115,7 @@ session_start();
$uname = $_SESSION["username"];
}
- echo "";
+ if (($database -> query("SELECT username FROM user WHERE BINARY username=\"" . $uname . "\"")) -> num_rows == 1) echo "";
}
?>