commented on some other stuff

This commit is contained in:
Thies Mueller 2021-01-12 17:45:15 +01:00
parent 70305da5fd
commit 572f3317e3
3 changed files with 5 additions and 4 deletions

View File

@ -8,9 +8,10 @@
<script src="ressources/js/bootstrap.min.js"></script>
<?php
session_start();
if($_SESSION['isadmin'] == 0) {
//just a page to list all admin functions:
if($_SESSION['isadmin'] == 0) { //but first a check if you've got admin rights. if not, destroy the session and go back to start.
die ('No rights for you! <meta http-equiv="refresh" content="0; URL=logout.php">');
}
} //this is purely a cosmetic effect. no harm could be done from here. it's merely a html page with a little check if you've got the right rights.
echo '<div class="alert alert-danger" role="alert">heres the admin world</div>';
echo '<a href="adminarea_useradmin.php"><button class="btn btn-primary">User Admin</button></a>';

View File

@ -17,7 +17,7 @@ echo '<a href="adminarea_admins_take.php"><button class="btn btn-danger">TAKE</b
echo "<br />";
echo $output;
echo "<br />";
echo "//implement a user search here.";
echo "//implement a user search here."; //yeah! Do what the comment says!
echo '<br />';
$showForm = false;

View File

@ -16,7 +16,7 @@ echo "heres the fun world";
?>
<?php
//regex to parse file extensions here:
//TODO: regex to parse file extensions here:
//function to insert url into table here:
if(isset($_GET['new'])) {