summaryrefslogtreecommitdiff
path: root/pages/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/edit.php')
-rw-r--r--pages/edit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/pages/edit.php b/pages/edit.php
index c031c22..74105e2 100644
--- a/pages/edit.php
+++ b/pages/edit.php
@@ -20,10 +20,11 @@ if (!isset($_GET['_']) || trim($_GET['_']) === "") header("Location: /?error=Inv
$parts = explode("/", $_GET['_']);
array_shift($parts);
+array_shift($parts);
$system = $parts[0];
$member = ($parts[1] ?? null) === "" ? null : $parts[1];
-if ($system !== "cloudburst" && $system !== "raindrops") header("Location: /?error=Invalid system name") and die();
+if ($system !== "cloudburst" && $system !== "raindrops") header("Location: /?error=Invalid system name: " . $system) and die();
$systemCommonName = $system === "cloudburst" ? "Cloudburst System" : "Raindrops System";
$systemID = $system === "cloudburst" ? "ynmuc" : "gdapd";
@@ -58,7 +59,7 @@ if ($member === null) {
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/subsysedit.php';
} else {
- header("Location: /?error=System member or subsystem not found") and die();
+ header("Location: /?error=System member or subsystem not found: " . $subsystemID) and die();
}
}