summaryrefslogtreecommitdiff
path: root/includes/titlebar.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/titlebar.inc')
-rw-r--r--includes/titlebar.inc65
1 files changed, 2 insertions, 63 deletions
diff --git a/includes/titlebar.inc b/includes/titlebar.inc
index e3e6c0c..a6ccd67 100644
--- a/includes/titlebar.inc
+++ b/includes/titlebar.inc
@@ -42,12 +42,7 @@ if (isset($pages[$name])) {
if (isset($parts[2])) {
$part2 = "<a class='title-bar-backlink' href='/cloudburst'>Cloudburst System</a>";
- if ($parts[2] === "subsystem") {
- $actionsProfile = "subsystem";
- $part1 = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/subsystems/ynmuc-$parts[3].json"), true)["name"];
- } else {
- $part1 = $pages["s:" . $parts[2]]['name'][$lang["_name"]] ?? $parts[2];
- }
+ $part1 = $pages["s:" . $parts[2]]['name'][$lang["_name"]] ?? $parts[2];
} else {
$actionsProfile = "system";
$part1 = "Cloudburst System";
@@ -56,12 +51,7 @@ if (isset($pages[$name])) {
if (isset($parts[2])) {
$part2 = "<a class='title-bar-backlink' href='/raindrops'>Raindrops System</a>";
- if ($parts[2] === "subsystem") {
- $actionsProfile = "subsystem";
- $part1 = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/subsystems/gdapd-$parts[3].json"), true)["name"];
- } else {
- $part1 = $pages["s:" . $parts[2]]['name'][$lang["_name"]] ?? $parts[2];
- }
+ $part1 = $pages["s:" . $parts[2]]['name'][$lang["_name"]] ?? $parts[2];
} else {
$actionsProfile = "system";
$part1 = "Raindrops System";
@@ -128,7 +118,6 @@ if ($actionsProfile === "default") {
case "edit-private":
if (count($parts) === 3) $actionsProfile = "editor-system";
if (count($parts) > 3 && in_array($parts[3], $membersNames)) $actionsProfile = "editor-member";
- if (count($parts) > 3 && !in_array($parts[3], $membersNames)) $actionsProfile = "editor-subsystem";
break;
case "debug":
@@ -260,26 +249,6 @@ $links = [
"invert" => true
]
],
- "editor-subsystem" => [
- [
- "name" => "View page",
- "link" => [
- "type" => "url",
- "text" => "/" . ($parts[2] ?? null) . "/-/subsystem" . ($parts[3] ?? null)
- ],
- "icon" => "/assets/icons/view.svg",
- "invert" => true
- ],
- [
- "name" => $lang["titlebar"]["top"],
- "link" => [
- "type" => "js",
- "text" => "document.body.scrollTop = 0; document.documentElement.scrollTop = 0;"
- ],
- "icon" => "/assets/icons/up.svg",
- "invert" => true
- ]
- ],
"member" => [
[
"name" => $lang["titlebar"]["member"],
@@ -350,36 +319,6 @@ $links = [
"invert" => true
]
],
- "subsystem" => [
- [
- "name" => $lang["titlebar"]["subsystem"],
- "link" => [
- "type" => "url",
- "text" => "/$parts[0]"
- ],
- "icon" => "/assets/icons/parent.svg",
- "invert" => true
- ],
- [
- "name" => $pages["edit"]["name"][$lang["_name"]],
- "link" => [
- "type" => "url",
- "text" => "/-/edit/$system/" . ($parts[3] ?? null)
- ],
- "icon" => "/assets/icons/edit.svg",
- "invert" => true,
- "show" => $isLoggedIn
- ],
- [
- "name" => $lang["titlebar"]["top"],
- "link" => [
- "type" => "js",
- "text" => "document.body.scrollTop = 0; document.documentElement.scrollTop = 0;"
- ],
- "icon" => "/assets/icons/up.svg",
- "invert" => true
- ]
- ],
"home" => [
[
"name" => "Raindrops System",