summaryrefslogtreecommitdiff
path: root/htdocs/moderate/src/header.inc.php
blob: 30910ec7132e49dde9f70792ca05e84081680c47 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php

// Require Authentication
if (!isset($_SESSION['currentUser'])) {
    header('Location: ' . $CONFIG['urlroot'].'/moderate/login.php');
    exit();
}

?><!DOCTYPE html>
<html>
<head>
    <title><?= $CONFIG['sitetitle'] ?> Moderation</title>

    <link rel="stylesheet" href="<?= $CONFIG['urlroot'] ?>/css/main.css" />
    <link rel="stylesheet" href="<?= $CONFIG['urlroot'] ?>/moderate/admin.css" />

</head>
<body>
<div id="header">
    <p><a href="<?= $CONFIG['urlroot'] ?>">
        <img src="<?= $CONFIG['urlroot'] ?>/images/logo.png" 
        alt="<?= $CONFIG['sitetitle'] ?>" /></a></p>

    <div id="about">
        Foursquare community is a place where you can find help,
        sell merchandise, list events or even post your rental.
        We want to build a help you get connected to the community of our church!
    </div>
</div>

<h1><?= $CONFIG['sitetitle'] ?> Moderation</h1>

<div id="content">

<div id="modnav">
    <ul>
        <li><a href="<?= buildUrl('moderate/') ?>">Moderate Posts</a></li>
        
        <?php
            // Admin Navigation
            if ($_SESSION['currentUser']->isAdmin()) {
                echo "<li><a href=\"". buildUrl('moderate/pages/') ."\">Pages</a></li>";
                echo "<li><a href=\"". buildUrl('moderate/users/') ."\">Users</a></li>";
            }
        ?>

        <li><a href="<?= buildUrl('moderate/account.php') ?>">
            Account Settings</a></li>
        <li><a href="">Logout</a></li>
    </ul>
</div>