You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php
|
|
// Initialize the session
|
|
session_start();
|
|
|
|
// Check if the user is already logged in, if yes then redirect him to welcome page
|
|
if(isset($_SESSION["loggedinAdmin"]) && $_SESSION["loggedinAdmin"] === true){
|
|
echo "";
|
|
}else header("location: ../index.php");
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Choose what to insert:</title>
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
<style>
|
|
body{ font: 14px sans-serif; }
|
|
.wrapper{ width: 360px; padding: 20px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="wrapper">
|
|
<select name="forma" onchange="location = this.value;">
|
|
<option value="">Choose ...</option>
|
|
<option value="insertBeer.php">Insert Beer</option>
|
|
<option value="insertBrewery.php">Insert Brewery</option>
|
|
<option value="insertArticle.php">Insert Article</option>
|
|
<option value="../logout.php">Logout Admin</option>
|
|
</select>
|
|
</div>
|
|
</body>
|
|
</html>
|