summaryrefslogtreecommitdiff
path: root/pages/page.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/page.inc')
-rw-r--r--pages/page.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/pages/page.inc b/pages/page.inc
index 22291e2..d13dd2f 100644
--- a/pages/page.inc
+++ b/pages/page.inc
@@ -1,5 +1,7 @@
<?php
+global $lang; global $pages;
+
$travelling = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/travelling/travelling.json"), true);
if (!isset($_GET['_']) || trim($_GET['_']) === "") header("Location: /?error=Invalid request") and die();
@@ -29,7 +31,7 @@ if (($parts[0] !== "cloudburst" && $parts[0] !== "raindrops") && (!(count($parts
$system = $parts[0];
$member = (isset($parts[1]) ? $parts[1] : null) === "" ? null : (isset($parts[1]) ? $parts[1] : null);
-if ($system !== "cloudburst" && $system !== "raindrops") header("Location: /?error=Invalid system ID") and die();
+if ($system !== "cloudburst" && $system !== "raindrops") header("Location: /?error=" . $lang["page"]["system"]) and die();
$systemCommonName = $system === "cloudburst" ? "Cloudburst System" : "Raindrops System";
$systemID = $system === "cloudburst" ? "ynmuc" : "gdapd";
@@ -43,7 +45,7 @@ if ($member === null) {
$_SystemPage = $parts[2];
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/system/' . $parts[2] . '.inc';
} else {
- header("Location: /?error=Page not found: " . $parts[2]) and die();
+ header("Location: /?error=" . $lang["page"]["system"] . " " . $parts[2]) and die();
}
} else {
$memberFoundInAnotherSystem = false;
@@ -89,7 +91,7 @@ if ($member === null) {
$_MemberPage = $parts[3];
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/member/' . $parts[3] . '.inc';
} else {
- header("Location: /?error=Page not found: " . $parts[3]) and die();
+ header("Location: /?error=" . $lang["page"]["system"] . " " . $parts[3]) and die();
}
die();
}