<?php 
require_once __DIR__ . "/functions.php";
middlewareAuthorized("admin");
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Admin Page</title>

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
    <style>
        .btn-toolbar > * {
            margin-right: 20px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Admin Page</h1>
        <div class="d-flex">
            <div class="btn-toolbar">
                <div class="btn-group mr-2">
                    <a href="new_photo.php" class="btn btn-primary" role="button">New Photo</a>
                </div>
                <div class="btn-group">
                    <a href="logout.php" class="btn btn-danger" role="button">Logout</a>
                </div>
            </div>
        </div>
    </div>
</body>
</html>