summaryrefslogtreecommitdiff
path: root/pages/edit.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-08-21 17:31:56 +0200
committerMinteck <contact@minteck.org>2022-08-21 17:31:56 +0200
commita2df9a69dcc14cb70118cda2ded499055e7ee358 (patch)
tree6dd283e4e9452d38bce81ddaaae49b5335755842 /pages/edit.php
parent84dd0735820b16b60f600284d35183d76547a71f (diff)
downloadpluralconnect-a2df9a69dcc14cb70118cda2ded499055e7ee358.tar.gz
pluralconnect-a2df9a69dcc14cb70118cda2ded499055e7ee358.tar.bz2
pluralconnect-a2df9a69dcc14cb70118cda2ded499055e7ee358.zip
m. update
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();
}
}