feature postponed

This commit is contained in:
thies 2021-01-10 17:24:12 +01:00
parent 1c51d5b7a8
commit c696b93c5a

View File

@ -14,9 +14,13 @@ if($_SESSION['isadmin'] == 0) {
echo '<div class="alert alert-danger" role="alert">heres the admin world</div>'; echo '<div class="alert alert-danger" role="alert">heres the admin world</div>';
echo '<a href="adminarea_admins_give.php"><button class="btn btn-success">GIVE</button></a>'; echo '<a href="adminarea_admins_give.php"><button class="btn btn-success">GIVE</button></a>';
echo '<a href="adminarea_admins_take.php"><button class="btn btn-danger">TAKE</button></a>'; echo '<a href="adminarea_admins_take.php"><button class="btn btn-danger">TAKE</button></a>';
echo "<br />";
echo $output;
echo "<br />";
echo "//implement a user search here.";
echo '<br />'; echo '<br />';
$showForm = true; $showForm = false;
if(isset($_GET['user']) ) { if(isset($_GET['user']) ) {
if(!isset($_POST['username']) || empty($_POST['username'])) { if(!isset($_POST['username']) || empty($_POST['username'])) {
@ -29,8 +33,9 @@ if(isset($_GET['user']) ) {
if($user === false) { if($user === false) {
$error = "<b>no user found</b>"; $error = "<b>no user found</b>";
} else { } else {
echo $user['isadmin'];
$showForm = false; $showForm = false;
echo "<h1>adminrights y/n</h1>";
} }
} }
} }