summaryrefslogtreecommitdiff
path: root/pages/page.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/page.inc')
-rw-r--r--pages/page.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/page.inc b/pages/page.inc
index d13dd2f..f3859d3 100644
--- a/pages/page.inc
+++ b/pages/page.inc
@@ -38,11 +38,13 @@ $systemID = $system === "cloudburst" ? "ynmuc" : "gdapd";
if ($member === null) {
global $_SystemName;
$_SystemName = $system;
+ $pageFile = $_SERVER['DOCUMENT_ROOT'] . '/includes/system.inc';
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/system.inc';
} else if ($member === "-" && isset($parts[2])) {
if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/includes/system/' . $parts[2] . '.inc')) {
global $_SystemPage;
$_SystemPage = $parts[2];
+ $pageFile = $_SERVER['DOCUMENT_ROOT'] . '/includes/system/' . $parts[2] . '.inc';
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/system/' . $parts[2] . '.inc';
} else {
header("Location: /?error=" . $lang["page"]["system"] . " " . $parts[2]) and die();
@@ -89,6 +91,7 @@ if ($member === null) {
if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/includes/member/' . $parts[3] . '.inc')) {
global $_MemberPage;
$_MemberPage = $parts[3];
+ $pageFile = $_SERVER['DOCUMENT_ROOT'] . '/includes/member/' . $parts[3] . '.inc';
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/member/' . $parts[3] . '.inc';
} else {
header("Location: /?error=" . $lang["page"]["system"] . " " . $parts[3]) and die();
@@ -98,6 +101,7 @@ if ($member === null) {
global $_MemberName;
$_MemberName = $member;
+ $pageFile = $_SERVER['DOCUMENT_ROOT'] . '/includes/member.inc';
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/member.inc';
}