summaryrefslogtreecommitdiff
path: root/pages/rules.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-09-21 22:42:33 +0200
committerMinteck <contact@minteck.org>2022-09-21 22:42:33 +0200
commite95b208af90cc386a7d8d1bcab426727cf4f0121 (patch)
treeb293e0c644513fbeb6e9ad29be97fa6347a55e9f /pages/rules.php
parentb5f589c323f415bb42ea7069cb4d1a8a2233dd69 (diff)
downloadpluralconnect-e95b208af90cc386a7d8d1bcab426727cf4f0121.tar.gz
pluralconnect-e95b208af90cc386a7d8d1bcab426727cf4f0121.tar.bz2
pluralconnect-e95b208af90cc386a7d8d1bcab426727cf4f0121.zip
Update time
Diffstat (limited to 'pages/rules.php')
-rw-r--r--pages/rules.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/pages/rules.php b/pages/rules.php
index b1759dc..9148d89 100644
--- a/pages/rules.php
+++ b/pages/rules.php
@@ -1,7 +1,6 @@
<?php
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $isLoggedIn;
-if (!$isLoggedIn) header("Location: /-/login") and die();
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.php"; global $title; global $isLoggedIn;
if (isset($_POST["updateRules"])) {
header("Content-Type: text/plain");
@@ -35,7 +34,7 @@ if (isset($_POST["updateRules"])) {
die();
}
-$title = "Systems rules"; require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.php';
+require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.php';
?>
@@ -73,7 +72,7 @@ $title = "Systems rules"; require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/he
</summary>
<?php if (in_array(false, $rule["approved"])): ?>
<div style="margin-top:10px;" class="alert alert-warning">
- <b>This rule has not yet been approved.</b> All rules need to be approved by the protectors from both systems. This rule is still missing approval from <?php
+ <b>This rule has not yet been approved.</b> All rules need to be approved by the primary protectors from both systems. This rule is still missing approval from <?php
if ($rule["approved"][0] === false) {
if ($rule["approved"][1] === false) {