ÿØÿà JFIFÿØÿà JFIF ÿØÿà JFIFÿØÿà JFIF ÿþ$
<?php
session_start();
// SECURITY: PREVENT ACCESS WITHOUT LOGIN
if (!isset($_SESSION['admin_logged_in']) || $_SESSION['admin_logged_in'] !== true) {
header("Location: login.php");
exit;
}
// SECURITY: PREVENT BROWSER CACHING AFTER LOGOUT
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Pragma: no-cache");
header("Expires: 0");
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link rel="stylesheet" href="css/css/materialize.css">
<link rel="icon" href="img/LOGO TRANSPARENT.png">
<style type="text/css">
h5 { font-weight: bold; color:white !important; }
label { color:white !important; }
.bg { background-color:#886018; }
div { text-align:center; }
</style>
<title>Admin Menu</title>
</head>
<body class="bg">
<div class="center container">
<h3 class="center white-text">Welcome to the Admin Panel</h3>
</div>
<div class="row container">
<!-- Edit Votes -->
<div class="col l6 m6 s12">
<br>
<h5>Edit Contestant Votes</h5>
<label>*Note: This action cannot be undone</label>
<div class="center">
<a class="btn" href="add_votes.php">Add Votes</a>
<a class="btn" href="deduct_votes.php">Deduct Votes</a>
</div>
</div>
<!-- Delete Contestant -->
<div class="col l6 m6 s12">
<br>
<h5>Delete a Contestant</h5>
<label>*Note: This action cannot be undone</label>
<div class="center">
<a class="btn" href="delete.php">DELETE CONTESTANT</a>
</div>
</div>
<!-- Download Data -->
<div class="col l6 m6 s12">
<br>
<h5>Get Contestant Data</h5>
<label>*File will download as Excel</label>
<form action="excel.php" method="POST">
<button class="btn" type="submit">Download Contestant Data</button>
</form>
</div>
<!-- Edit Name -->
<div class="col l6 m6 s12">
<br>
<h5>Edit Contestant Name</h5>
<label>Change a contestant's name</label>
<div class="center">
<a class="btn" href="edit.php">ENTER CONTESTANT ID</a>
</div>
</div>
</div>
<!-- Register -->
<div class="row l12 m12 s12">
<br>
<h5>Register Contestants</h5>
<label>*This adds a new contestant</label>
<form action="admin__register.php" method="POST">
<button class="btn" type="submit">Register</button>
</form>
</div>
<!-- View Contestants -->
<div class="row l12 m12 s12">
<br>
<h5>View Contestants</h5>
<form action="view_contestants.php" method="POST">
<button class="btn" type="submit">View Contestants</button>
</form>
</div>
<div class="center row l12 m12 s12">
<br>
<a href="logout.php" class="btn white-text" style="margin-top:50px">Logout</a>
</div>
<?php include 'bottombar.php'; ?>
</body>
</html>
ÿØÿà JFIF ÿþ$
ÿØÿà JFIF ÿþ$
ÿÂ