Example #1
0
						<input type='hidden' name='token' value='<?php 
    echo "{$token}";
    ?>
'/>
						<input type='submit' value='Add'/><br>
					</form>
				</div>
			</main>
		</article>
	</body>
	</html>
<?php 
} else {
    //show the admin page for admins
    //redirect if the user is not an admin
    if (!Session::getAdmin()) {
        $message = urlencode("You do not have permission to view this page.");
        header("Location: error.php?error={$message}");
        exit;
    }
    ?>
<!doctype html>
<html>
	<head>
    <meta charset="utf-8">
    <title>Arizona Notes</title>
	  
	<link rel="stylesheet" type="text/css" href="css/main.css">
	<link rel="stylesheet" type="text/css" href="css/fonts.css">

	</head>