aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/cms-special/admin/$resources
diff options
context:
space:
mode:
Diffstat (limited to 'Neutron-trunk/cms-special/admin/$resources')
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin/$resources/admin.js0
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin/$resources/common.css0
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin/$resources/header.php0
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin/$resources/index-auto.css0
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin/$resources/index-dark.css0
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin/$resources/index.css0
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin/$resources/postcontent.php2
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin/$resources/precontent.php44
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin/$resources/responsive.css0
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin/$resources/spotlight-test.php2
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin/$resources/spotlight.php2
11 files changed, 27 insertions, 23 deletions
diff --git a/Neutron-trunk/cms-special/admin/$resources/admin.js b/Neutron-trunk/cms-special/admin/$resources/admin.js
index bca683b..bca683b 100755..100644
--- a/Neutron-trunk/cms-special/admin/$resources/admin.js
+++ b/Neutron-trunk/cms-special/admin/$resources/admin.js
diff --git a/Neutron-trunk/cms-special/admin/$resources/common.css b/Neutron-trunk/cms-special/admin/$resources/common.css
index 3826747..3826747 100755..100644
--- a/Neutron-trunk/cms-special/admin/$resources/common.css
+++ b/Neutron-trunk/cms-special/admin/$resources/common.css
diff --git a/Neutron-trunk/cms-special/admin/$resources/header.php b/Neutron-trunk/cms-special/admin/$resources/header.php
index e69de29..e69de29 100755..100644
--- a/Neutron-trunk/cms-special/admin/$resources/header.php
+++ b/Neutron-trunk/cms-special/admin/$resources/header.php
diff --git a/Neutron-trunk/cms-special/admin/$resources/index-auto.css b/Neutron-trunk/cms-special/admin/$resources/index-auto.css
index 773eab9..773eab9 100755..100644
--- a/Neutron-trunk/cms-special/admin/$resources/index-auto.css
+++ b/Neutron-trunk/cms-special/admin/$resources/index-auto.css
diff --git a/Neutron-trunk/cms-special/admin/$resources/index-dark.css b/Neutron-trunk/cms-special/admin/$resources/index-dark.css
index 1683192..1683192 100755..100644
--- a/Neutron-trunk/cms-special/admin/$resources/index-dark.css
+++ b/Neutron-trunk/cms-special/admin/$resources/index-dark.css
diff --git a/Neutron-trunk/cms-special/admin/$resources/index.css b/Neutron-trunk/cms-special/admin/$resources/index.css
index 57dd995..57dd995 100755..100644
--- a/Neutron-trunk/cms-special/admin/$resources/index.css
+++ b/Neutron-trunk/cms-special/admin/$resources/index.css
diff --git a/Neutron-trunk/cms-special/admin/$resources/postcontent.php b/Neutron-trunk/cms-special/admin/$resources/postcontent.php
index 573a1d9..cface57 100755..100644
--- a/Neutron-trunk/cms-special/admin/$resources/postcontent.php
+++ b/Neutron-trunk/cms-special/admin/$resources/postcontent.php
@@ -3,4 +3,4 @@
</body>
</html>
-<script src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/$resources/admin.js" charset="utf-8"></script> \ No newline at end of file
+<script src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/$resources/admin.js" charset="utf-8"></script> \ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin/$resources/precontent.php b/Neutron-trunk/cms-special/admin/$resources/precontent.php
index b133975..e32c599 100755..100644
--- a/Neutron-trunk/cms-special/admin/$resources/precontent.php
+++ b/Neutron-trunk/cms-special/admin/$resources/precontent.php
@@ -47,19 +47,19 @@ if (isset($lang["admin-titles"][$pageid])) {
$invalid = false;
-if (isset($_COOKIE['_NEUTRON_ADMIN_TOKEN']) && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != ".." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "/") {
+if (isset($_COOKIE['_NEUTRON_ADMIN_TOKEN']) && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != ".." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "/" && strpos($_COOKIE['_NEUTRON_ADMIN_TOKEN'], "/") === false) {
if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $_COOKIE['_NEUTRON_ADMIN_TOKEN'])) {
} else {
- require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("<script>location.href = '" . $GLOBALS["SYSTEM_ROOT"] . "/cms-special/admin/?pr=" . str_replace("/index.php", "", $_SERVER['SCRIPT_NAME']) . "&pa=" . urlencode("?" . explode("?", $_SERVER['REQUEST_URI'])[1]) . "'</script>");
+ require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("<script>location.href = '" . $GLOBALS["SYSTEM_ROOT"] . "/cms-special/admin-v2/?pr=" . str_replace("/index.php", "", $_SERVER['SCRIPT_NAME']) . "&pa=" . urlencode("?" . explode("?", $_SERVER['REQUEST_URI'])[1]) . "'</script>");
}
} else {
- require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("<script>location.href = '" . $GLOBALS["SYSTEM_ROOT"] . "/cms-special/admin/?pr=" . str_replace("/index.php", "", $_SERVER['SCRIPT_NAME']) . "&pa=" . urlencode("?" . explode("?", $_SERVER['REQUEST_URI'])[1]) . "'</script>");
+ require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("<script>location.href = '" . $GLOBALS["SYSTEM_ROOT"] . "/cms-special/admin-v2/?pr=" . str_replace("/index.php", "", $_SERVER['SCRIPT_NAME']) . "&pa=" . urlencode("?" . explode("?", $_SERVER['REQUEST_URI'])[1]) . "'</script>");
}
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("<script>location.href = '" . $GLOBALS["SYSTEM_ROOT"] . "/cms-special/admin/home';</script>");
+ require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("<script>location.href = '" . $GLOBALS["SYSTEM_ROOT"] . "/cms-special/admin-v2/home';</script>");
return;
} else {
$invalid = true;
@@ -127,19 +127,19 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/preprocesso
<link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/ui.css">
<link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/codename.css">
<link rel="icon" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/siteicon.png">
- <script src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/$resources/admin.js"></script>
+ <script src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/$resources/admin.js"></script>
<link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/fonts-import.css" as="style">
<link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/alerts.css" as="style">
<link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/admin.css" as="style">
<link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/ui.css" as="style">
- <link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/$resources/common.css" as="style">
- <link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/$resources/index.css" as="style">
- <link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/$resources/responsive.css" as="style">
- <link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/$resources/index-dark.css" as="style">
+ <link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/$resources/common.css" as="style">
+ <link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/$resources/index.css" as="style">
+ <link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/$resources/responsive.css" as="style">
+ <link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/$resources/index-dark.css" as="style">
<link rel="preload" href="<?= $_MD_INCLUDES ?>/material-components-web.min.css" as="style">
<link rel="preload" href="<?= $_MDI_PATH ?>" as="style">
<link rel="preload" href="<?= $_MD_INCLUDES ?>/material-components-web.min.js" as="script">
- <link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/$resources/admin.js" as="script">
+ <link rel="preload" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/$resources/admin.js" as="script">
<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/documenthead.php"; ?>
<?php
@@ -149,17 +149,17 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/preprocesso
}
if ($loadEditor) {
- echo('<script src="' . $GLOBALS["SYSTEM_ROOT"] . '/resources/js/ckeditor5/ckeditor.js"></script><script src="' . $GLOBALS["SYSTEM_ROOT"] . '/resources/js/ckeditor5/translations/fr.js"></script><script src="' . $GLOBALS["SYSTEM_ROOT"] . '/resources/js/ckeditor5/translations/en.js"></script>');
+ echo('<script src="' . $GLOBALS["SYSTEM_ROOT"] . '/resources/js/ckeditor5/ckeditor.js"></script><script src="' . $GLOBALS["SYSTEM_ROOT"] . '/resources/js/ckeditor5/translations/fr.js"></script>');
}
?>
<?php
if (file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/theme") == "dark") {
- echo('<link rel="stylesheet" href="' . $GLOBALS["SYSTEM_ROOT"] . '/cms-special/admin/$resources/index-dark.css">');
+ echo('<link rel="stylesheet" href="' . $GLOBALS["SYSTEM_ROOT"] . '/cms-special/admin-v2/$resources/index-dark.css">');
} elseif (file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/theme") == "auto") {
- echo('<link rel="stylesheet" href="' . $GLOBALS["SYSTEM_ROOT"] . '/cms-special/admin/$resources/index-auto.css">');
+ echo('<link rel="stylesheet" href="' . $GLOBALS["SYSTEM_ROOT"] . '/cms-special/admin-v2/$resources/index-auto.css">');
} else {
- echo('<link rel="stylesheet" href="' . $GLOBALS["SYSTEM_ROOT"] . '/cms-special/admin/$resources/index.css">');
+ echo('<link rel="stylesheet" href="' . $GLOBALS["SYSTEM_ROOT"] . '/cms-special/admin-v2/$resources/index.css">');
}
?>
<link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/lib/pushbar.js/library.css">
@@ -199,8 +199,13 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/preprocesso
?>
</head>
-<body id="settings" style="overflow-x:hidden;background-color: transparent !important;">
- <?php require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/spotlight.php"; ?>
+<body id="settings" style="display:none;overflow-x:hidden;background-color: transparent !important;">
+ <script>
+ window.addEventListener("load", () => {
+ $("#settings").fadeIn(75)
+ })
+ </script>
+ <?php require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/spotlight.php"; ?>
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/documentbody.php";
@@ -209,15 +214,14 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/preprocesso
$name = $pageConfig['headerName'];
?>
- <div id="admin" style="background-color: transparent !important;">
+ <div id="admin" style="margin-bottom:50px;margin-top:20px;background-color: transparent !important;">
<?php
if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/updates")) {
- echo("<div id=\"updates-available\">" . $lang["admin-home"]["updates"][0] . " — <a href=\"/cms-special/admin/updates\">" . $lang["admin-home"]["updates"][1] . "</a></div>");
+ echo("<div id=\"updates-available\">" . $lang["admin-home"]["updates"][0] . " — <a href=\"/cms-special/admin-v2/updates\">" . $lang["admin-home"]["updates"][1] . "</a></div>");
$updatable = true;
} else {
$updatable = false;
}
- ?>
- <?php require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/header.php"; ?> \ No newline at end of file
+ ?> \ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin/$resources/responsive.css b/Neutron-trunk/cms-special/admin/$resources/responsive.css
index 75810b1..75810b1 100755..100644
--- a/Neutron-trunk/cms-special/admin/$resources/responsive.css
+++ b/Neutron-trunk/cms-special/admin/$resources/responsive.css
diff --git a/Neutron-trunk/cms-special/admin/$resources/spotlight-test.php b/Neutron-trunk/cms-special/admin/$resources/spotlight-test.php
index bffaa87..625f734 100755..100644
--- a/Neutron-trunk/cms-special/admin/$resources/spotlight-test.php
+++ b/Neutron-trunk/cms-special/admin/$resources/spotlight-test.php
@@ -9,6 +9,6 @@
<link rel="stylesheet" href="/resources/lib/material/iconfont.css">
</head>
<body>
- <?php require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/spotlight.php"; ?>
+ <?php require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/spotlight.php"; ?>
</body>
</html> \ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin/$resources/spotlight.php b/Neutron-trunk/cms-special/admin/$resources/spotlight.php
index f803f52..2a09ed3 100755..100644
--- a/Neutron-trunk/cms-special/admin/$resources/spotlight.php
+++ b/Neutron-trunk/cms-special/admin/$resources/spotlight.php
@@ -4,7 +4,7 @@
<?php
-$data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/home/all/db.json"));
+$data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/home/all/db.json"));
?>
<ul class="spotlight-elements">