From 3e5c281d9e8168656a76f27d980e3f6d2e1ac6a3 Mon Sep 17 00:00:00 2001
From: Jesse Morgan
Date: Thu, 13 Oct 2011 15:48:29 -0700
Subject: Starting work on the Add Exception form
---
htdocs/moderate/schedule/editor.php | 45 +++++++++++++------------------------
1 file changed, 15 insertions(+), 30 deletions(-)
(limited to 'htdocs/moderate')
diff --git a/htdocs/moderate/schedule/editor.php b/htdocs/moderate/schedule/editor.php
index fe715f7..69dabe1 100644
--- a/htdocs/moderate/schedule/editor.php
+++ b/htdocs/moderate/schedule/editor.php
@@ -11,7 +11,7 @@
require_once('../../src/base.inc.php');
// Verify User is admin
-if (!isset($_SESSION['currentUser']) or !$_SESSION['currentUser']->isAdmin()) {
+if (!isset($_SESSION['currentUser'])) {
header('Location: ' . buildUrl('moderate/'));
exit;
}
@@ -77,7 +77,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
require_once('../src/header.inc.php');
-echo "Edit User
";
+echo "Add Exception
";
if ($error != '') {
echo "$error
";
@@ -85,30 +85,12 @@ if ($error != '') {
$url = "editor.php";
-if (isset($_GET['id'])) {
- $url .= '?id=' . $_GET['id'];
-}
-
echo "
";
- }
-?>
+
+
@@ -120,18 +102,21 @@ Notify of posts
";
-
- foreach(Source::getSources() as $source) {
- if ($source->getId() == $select) {
- echo "";
+ . $user->getName() ."";
} else {
- echo "";
+ echo "";
}
}
--
cgit v1.2.3