diff options
Diffstat (limited to 'pages/actions.php')
-rw-r--r-- | pages/actions.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pages/actions.php b/pages/actions.php index 1fa998a..939ed7e 100644 --- a/pages/actions.php +++ b/pages/actions.php @@ -1,7 +1,6 @@ <?php -require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $isLoggedIn; -if (!$isLoggedIn) header("Location: /-/login") and die(); +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.php"; global $title; global $isLoggedIn; if (isset($_POST['deleteAction'])) { $data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/actions.json"), true); @@ -170,7 +169,6 @@ $data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/dat $toys = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/toys.json"), true); $selected = null; -$title = "Actions database"; if (isset($parts[1])) { $id = $parts[1]; @@ -186,7 +184,7 @@ if (isset($parts[1])) { header("Location: /-/actions/?nf&id=" . $id); die(); } else { - $title = $selected["name"] . " · Actions database"; + $title = $selected["name"] . " · " . $title; } } |