-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_home.php
34 lines (30 loc) · 1.01 KB
/
mod_home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!-- Homepage for logged in moderators -->
<?php
session_start();
// Check if the user has mod powers. If no, then redirect them to login home
if (!(isset($_SESSION["user_is_mod"]) && $_SESSION["user_is_mod"] === TRUE)) {
header("location: login_home.php");
exit;
}
?>
<html>
<head>
<title>Mod Login Home</title>
<link rel="stylesheet" type="text/css" href="home.css">
</head>
<body>
<div class="navigationBar">
<a href="mod_home.php">Home</a>
<a href="view_ads.php">View Public Ads</a>
<a href="new_advertisement.php">Create Ad</a>
<a href="manage_ads.php">Manage Ads</a>
<a href="logout.php">Logout</a>
</div>
<div style = "padding-left: 16px">
<h2>Welcome to your Moderator Homepage!</h2>
<h4>Use the navigation bar above to access various pages.</h4>
<h4><u>Home</u> will take you... Home!</h4>
<h4><u>Create Ad</u> will take you to a login page so that you can create an ad!</h4>
<h4><u>View Public Ads</u> will take you to a page listing all ads!</h4>
</body>
</html>