diff --git a/adminarea_admins.php b/adminarea_admins.php
index acda0bd..4595d0e 100644
--- a/adminarea_admins.php
+++ b/adminarea_admins.php
@@ -14,9 +14,13 @@ if($_SESSION['isadmin'] == 0) {
echo '
heres the admin world
';
echo '';
echo '';
+echo "
";
+echo $output;
+echo "
";
+echo "//implement a user search here.";
echo '
';
-$showForm = true;
+$showForm = false;
if(isset($_GET['user']) ) {
if(!isset($_POST['username']) || empty($_POST['username'])) {
@@ -29,18 +33,19 @@ if(isset($_GET['user']) ) {
if($user === false) {
$error = "no user found";
} else {
- $showForm = false;
- echo "adminrights y/n
";
+ echo $user['isadmin'];
+ $showForm = false;
+
}
}
}
-
+
if($showForm):
?>
Search for Admin Rights!
Please enter the username below.
-
+