From 529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 24 Aug 2021 15:38:16 +0200 Subject: Update --- .../cms-special/admin-v2/$resources/precontent.php | 223 +++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/precontent.php (limited to 'Neutron-trunk/cms-special/admin-v2/$resources/precontent.php') diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/precontent.php b/Neutron-trunk/cms-special/admin-v2/$resources/precontent.php new file mode 100644 index 0000000..af8d999 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/$resources/precontent.php @@ -0,0 +1,223 @@ + $subpageel[$subpageid]['dom'] . " — " . $lang["admin-titles"][$pageid]['dom'], "headerName" => $subpageel[$subpageid]['header'] ]; + } else { + $pageConfig = [ "domName" => $lang["admin-titles"]["fallback-subpages"] . " — " . $lang["admin-titles"][$pageid]['dom'], "headerName" => $lang["admin-titles"]["fallback-subpages"] ]; + } + } else { + $pageConfig = [ "domName" => $lang["admin-titles"][$pageid]['dom'], "headerName" => $lang["admin-titles"][$pageid]['header'] ]; + } + } else { + $pageConfig = [ "domName" => $lang["admin-titles"][$pageid]['dom'], "headerName" => $lang["admin-titles"][$pageid]['header'] ]; + } + } else { + $pageConfig = [ "domName" => $lang["admin-titles"][$pageid]['dom'], "headerName" => $lang["admin-titles"][$pageid]['header'] ]; + } + } else { + $pageConfig = [ "domName" => $lang["admin-titles"]["fallback"]['dom'], "headerName" => $lang["admin-titles"]["fallback"]['header'] ]; + } +} else { + $pageConfig = [ "domName" => $lang["admin-titles"]["fallback"], "headerName" => $lang["admin-titles"]["fallback"] ]; +} + +$invalid = false; + +if (isset($_COOKIE['_NEUTRON_ADMIN_TOKEN']) && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != ".." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "/") { + if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $_COOKIE['_NEUTRON_ADMIN_TOKEN'])) { + + } else { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); + } +} else { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); +} + +if (isset($_POST['password'])) { + if (password_verify($_POST['password'], file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/password"))) { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); + return; + } else { + $invalid = true; + } +} + +?> + +") ?> + + + + + + + + + /resources/css/fonts-import.css"> + /resources/css/alerts.css"> + + + + /resources/css/spotlight.css"> + /resources/css/admin.css"> + /resources/css/ui.css"> + /resources/css/codename.css"> + /resources/image/siteicon.png"> + + /resources/css/fonts-import.css" as="style"> + /resources/css/alerts.css" as="style"> + /resources/css/admin.css" as="style"> + /resources/css/ui.css" as="style"> + /cms-special/admin/$resources/common.css" as="style"> + /cms-special/admin/$resources/index.css" as="style"> + /cms-special/admin/$resources/responsive.css" as="style"> + /cms-special/admin/$resources/index-dark.css" as="style"> + + + + /cms-special/admin/$resources/admin.js" as="script"> + + + '); + } + + ?> + '); + } elseif (file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/theme") == "auto") { + echo(''); + } else { + echo(''); + } + ?> + /resources/lib/pushbar.js/library.css"> + + <?php + + if ($ready) { + echo("{$lang["admin-titles"]["suffix"]} — " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename")); + } else { + echo("{$lang["admin-titles"]["suffix"]} — Neutron"); + } + + ?> + location.href = '" . $GLOBALS["SYSTEM_ROOT"] . "/cms-special/setup';"); + } + ?> + 1024) { + if ($size > 1048576) { + if ($size > 1073741824) { + $sizestr = round($size / 1073741824, 2) . " " . $lang["sizes"]["gib"]; + } else { + $sizestr = round($size / 1048576, 2) . " " . $lang["sizes"]["mib"]; + } + } else { + $sizestr = round($size / 1024, 2) . " " . $lang["sizes"]["kib"]; + } + } else { + $sizestr = $size . " " . $lang["sizes"]["bytes"]; + } + $sizestr = str_replace(".", $lang["sizes"]["separator"], $sizestr); + + ?> + + + + +
+ " . $lang["admin-home"]["updates"][0] . " — " . $lang["admin-home"]["updates"][1] . "
"); + $updatable = true; + } else { + $updatable = false; + } + + ?> + \ No newline at end of file -- cgit