From 7b4af63a90a726b98a59b83e53f040a7a566a11d Mon Sep 17 00:00:00 2001
From: Gitea
Date: Wed, 10 Nov 2021 17:53:13 +0100
Subject: Update
---
.../cms-special/admin-v2/$panes/accounts.php | 64 ++++++++++
.../cms-special/admin-v2/$panes/content.php | 94 +++++++++++++++
.../cms-special/admin-v2/$panes/features.php | 81 +++++++++++++
.../cms-special/admin-v2/$panes/language.php | 68 +++++++++++
.../cms-special/admin-v2/$panes/maintenance.php | 64 ++++++++++
.../admin-v2/$panes/personalization.php | 94 +++++++++++++++
.../cms-special/admin-v2/$panes/security.php | 80 ++++++++++++
.../cms-special/admin-v2/$panes/system.php | 85 ++++++++++++-
.../cms-special/admin-v2/$resources/admin.js | 16 ---
.../cms-special/admin-v2/$resources/common.css | 11 +-
.../cms-special/admin-v2/$resources/header.php | 0
.../cms-special/admin-v2/$resources/index-auto.css | 0
.../cms-special/admin-v2/$resources/index-dark.css | 0
.../cms-special/admin-v2/$resources/index.css | 0
.../admin-v2/$resources/postcontent.php | 2 +-
.../cms-special/admin-v2/$resources/precontent.php | 56 +++++----
.../cms-special/admin-v2/$resources/responsive.css | 0
.../cms-special/admin-v2/$resources/session.php | 11 ++
.../admin-v2/$resources/spotlight-test.php | 2 +-
.../cms-special/admin-v2/$resources/spotlight.php | 2 +-
Neutron-trunk/cms-special/admin-v2/.htaccess | 8 +-
Neutron-trunk/cms-special/admin-v2/about/index.php | 134 +++++++++------------
.../cms-special/admin-v2/advanced/index.php | 6 +-
.../admin-v2/advanced/jsonconf/index.php | 6 +-
.../cms-special/admin-v2/appearance/index.php | 120 +-----------------
.../cms-special/admin-v2/calendar/add/index.php | 6 +-
.../cms-special/admin-v2/calendar/index.php | 8 +-
.../cms-special/admin-v2/calendar/manage/index.php | 14 +--
.../cms-special/admin-v2/customization/index.php | 4 +-
Neutron-trunk/cms-special/admin-v2/error/index.php | 6 +-
Neutron-trunk/cms-special/admin-v2/flags/index.php | 6 +-
.../cms-special/admin-v2/footer/index.php | 71 +++++++++++
.../admin-v2/galery/addcategory/index.php | 2 +-
.../cms-special/admin-v2/galery/index.php | 2 +-
.../cms-special/admin-v2/galery/publish/index.php | 2 +-
.../admin-v2/gallery/addcategory/index.php | 6 +-
.../cms-special/admin-v2/gallery/index.php | 10 +-
.../cms-special/admin-v2/gallery/publish/index.php | 6 +-
.../cms-special/admin-v2/home/all/db.json | 0
.../cms-special/admin-v2/home/all/index.php | 2 +-
.../cms-special/admin-v2/home/appearance/index.php | 16 +--
.../cms-special/admin-v2/home/data/index.php | 10 +-
.../admin-v2/home/housekeeping/index.php | 10 +-
Neutron-trunk/cms-special/admin-v2/home/index.php | 20 +--
.../cms-special/admin-v2/housekeeping/index.php | 2 +-
.../admin-v2/housekeeping/reset/index.php | 2 +-
Neutron-trunk/cms-special/admin-v2/index.php | 60 ++++++---
.../cms-special/admin-v2/language/index.php | 58 +--------
.../cms-special/admin-v2/login-old/index.php | 10 +-
Neutron-trunk/cms-special/admin-v2/login/index.php | 14 +--
.../cms-special/admin-v2/logout/index.php | 4 +-
Neutron-trunk/cms-special/admin-v2/logs/index.php | 4 +-
.../cms-special/admin-v2/pages/add/index.php | 6 +-
.../cms-special/admin-v2/pages/delete/index.php | 14 +--
.../cms-special/admin-v2/pages/edit/index.php | 12 +-
Neutron-trunk/cms-special/admin-v2/pages/index.php | 18 +--
.../cms-special/admin-v2/pages/rename/index.php | 10 +-
.../cms-special/admin-v2/password/index.php | 51 ++++++++
.../cms-special/admin-v2/plugins/index.php | 4 +-
Neutron-trunk/cms-special/admin-v2/reset/index.php | 8 +-
.../cms-special/admin-v2/resetted/index.php | 0
Neutron-trunk/cms-special/admin-v2/stats/index.php | 4 +-
.../cms-special/admin-v2/widgets/index.php | 2 +-
63 files changed, 1039 insertions(+), 449 deletions(-)
create mode 100644 Neutron-trunk/cms-special/admin-v2/$panes/accounts.php
create mode 100644 Neutron-trunk/cms-special/admin-v2/$panes/content.php
create mode 100644 Neutron-trunk/cms-special/admin-v2/$panes/features.php
create mode 100644 Neutron-trunk/cms-special/admin-v2/$panes/language.php
create mode 100644 Neutron-trunk/cms-special/admin-v2/$panes/maintenance.php
create mode 100644 Neutron-trunk/cms-special/admin-v2/$panes/personalization.php
create mode 100644 Neutron-trunk/cms-special/admin-v2/$panes/security.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/$panes/system.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/$resources/admin.js
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/$resources/common.css
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/$resources/header.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/$resources/index-auto.css
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/$resources/index-dark.css
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/$resources/index.css
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/$resources/postcontent.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/$resources/precontent.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/$resources/responsive.css
create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/session.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/$resources/spotlight-test.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/$resources/spotlight.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/.htaccess
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/about/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/advanced/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/advanced/jsonconf/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/appearance/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/calendar/add/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/calendar/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/customization/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/error/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/flags/index.php
create mode 100644 Neutron-trunk/cms-special/admin-v2/footer/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/galery/addcategory/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/galery/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/galery/publish/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/gallery/addcategory/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/gallery/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/gallery/publish/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/home/all/db.json
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/home/all/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/home/appearance/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/home/data/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/home/housekeeping/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/home/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/housekeeping/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/housekeeping/reset/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/language/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/login-old/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/login/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/logout/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/logs/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/pages/add/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/pages/delete/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/pages/edit/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/pages/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/pages/rename/index.php
create mode 100644 Neutron-trunk/cms-special/admin-v2/password/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/plugins/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/reset/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/resetted/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/stats/index.php
mode change 100755 => 100644 Neutron-trunk/cms-special/admin-v2/widgets/index.php
(limited to 'Neutron-trunk/cms-special/admin-v2')
diff --git a/Neutron-trunk/cms-special/admin-v2/$panes/accounts.php b/Neutron-trunk/cms-special/admin-v2/$panes/accounts.php
new file mode 100644
index 0000000..8ade4f5
--- /dev/null
+++ b/Neutron-trunk/cms-special/admin-v2/$panes/accounts.php
@@ -0,0 +1,64 @@
+
+
+
+
+
+ base
+
+
+ /resources/css/admin_v2/main.css">
+ /resources/css/admin_v2/inner.css">
+
+ /resources/css/admin_v2/chromium.css">
+
+
+
+
+
+
+
+
/cms-special/admin-v2/password">
+
+
/resources/image/admin2/password.png">
+
+
+
+ = $lang["admin-v2"]["accounts_items"][0] ?>
+ = $lang["admin-v2"]["accounts_descriptions"][0] ?>
+
+
+
+
/resources/image/admin2/enter.png">
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/$panes/content.php b/Neutron-trunk/cms-special/admin-v2/$panes/content.php
new file mode 100644
index 0000000..9fd564b
--- /dev/null
+++ b/Neutron-trunk/cms-special/admin-v2/$panes/content.php
@@ -0,0 +1,94 @@
+
+
+
+
+
+ base
+
+
+ /resources/css/admin_v2/main.css">
+ /resources/css/admin_v2/inner.css">
+
+ /resources/css/admin_v2/chromium.css">
+
+
+
+
+
+
+
+
/cms-special/admin-v2/pages">
+
+
/resources/image/admin2/pages.png">
+
+
+
+ = $lang["admin-v2"]["content_items"][0] ?>
+ = $lang["admin-v2"]["content_descriptions"][0] ?>
+
+
+
+
/resources/image/admin2/enter.png">
+
+
+
+
/cms-special/admin-v2/gallery">
+
+
/resources/image/admin2/gallery.png">
+
+
+
+ = $lang["admin-v2"]["content_items"][1] ?>
+ = $lang["admin-v2"]["content_descriptions"][1] ?>
+
+
+
+
/resources/image/admin2/enter.png">
+
+
+
+
/cms-special/admin-v2/calendar">
+
+
/resources/image/admin2/calendar.png">
+
+
+
+ = $lang["admin-v2"]["content_items"][2] ?>
+ = $lang["admin-v2"]["content_descriptions"][2] ?>
+
+
+
+
/resources/image/admin2/enter.png">
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/$panes/features.php b/Neutron-trunk/cms-special/admin-v2/$panes/features.php
new file mode 100644
index 0000000..8e956d3
--- /dev/null
+++ b/Neutron-trunk/cms-special/admin-v2/$panes/features.php
@@ -0,0 +1,81 @@
+
+
+
+
+
+ base
+
+
+ /resources/css/admin_v2/main.css">
+ /resources/css/admin_v2/inner.css">
+
+ /resources/css/admin_v2/chromium.css">
+
+
+
+
+
+
+
+
/cms-special/admin-v2/widgets">
+
+
/resources/image/admin2/optional.png">
+
+
+
+ = $lang["admin-v2"]["features_items"][0] ?>
+ = $lang["admin-v2"]["features_descriptions"][0] ?>
+
+
+
+
/resources/image/admin2/enter.png">
+
+
+
+
+
+
/cms-special/admin-v2/flags">
+
+
/resources/image/admin2/flag.png">
+
+
+
+ = $lang["admin-v2"]["features_items"][1] ?>
+ = $lang["admin-v2"]["features_descriptions"][1] ?>
+
+
+
+
/resources/image/admin2/enter.png">
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/$panes/language.php b/Neutron-trunk/cms-special/admin-v2/$panes/language.php
new file mode 100644
index 0000000..878bfc2
--- /dev/null
+++ b/Neutron-trunk/cms-special/admin-v2/$panes/language.php
@@ -0,0 +1,68 @@
+
+
+
+
+
+ base
+
+
+ /resources/css/admin_v2/main.css">
+ /resources/css/admin_v2/inner.css">
+
+ /resources/css/admin_v2/chromium.css">
+
+
+
+
+
+
+
+
+
/cms-special/admin-v2/language/?_== $locale ?>">
+
+
/resources/image/admin2/locale.png">
+
+
+
+ = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/resources/i18n/" . $locale . "/\$metadata.json"), true)["localized_name"]; ?>
+ = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/resources/i18n/" . $locale . "/\$metadata.json"), true)["name"]; ?>
+
+
+
+
+
/resources/image/admin2/selected.png">
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/$panes/maintenance.php b/Neutron-trunk/cms-special/admin-v2/$panes/maintenance.php
new file mode 100644
index 0000000..b49fcef
--- /dev/null
+++ b/Neutron-trunk/cms-special/admin-v2/$panes/maintenance.php
@@ -0,0 +1,64 @@
+
+
+
+
+
+ base
+
+
+ /resources/css/admin_v2/main.css">
+ /resources/css/admin_v2/inner.css">
+
+ /resources/css/admin_v2/chromium.css">
+
+
+
+
+
+
+
+
/cms-special/admin-v2/reset">
+
+
/resources/image/admin2/reset.png">
+
+
+
+ = $lang["admin-v2"]["maintenance_items"][0] ?>
+ = $lang["admin-v2"]["maintenance_descriptions"][0] ?>
+
+
+
+
/resources/image/admin2/enter.png">
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/$panes/personalization.php b/Neutron-trunk/cms-special/admin-v2/$panes/personalization.php
new file mode 100644
index 0000000..40991a8
--- /dev/null
+++ b/Neutron-trunk/cms-special/admin-v2/$panes/personalization.php
@@ -0,0 +1,94 @@
+
+
+
+
+
+ base
+
+
+ /resources/css/admin_v2/main.css">
+ /resources/css/admin_v2/inner.css">
+
+ /resources/css/admin_v2/chromium.css">
+
+
+
+
+
+
+
+
/cms-special/admin-v2/appearance">
+
+
/resources/image/admin2/branding.png">
+
+
+
+ = $lang["admin-v2"]["personalization_items"][0] ?>
+ = $lang["admin-v2"]["personalization_descriptions"][0] ?>
+
+
+
+
/resources/image/admin2/enter.png">
+
+
+
+
/cms-special/admin-v2/customization">
+
+
/resources/image/admin2/colour.png">
+
+
+
+ = $lang["admin-v2"]["personalization_items"][1] ?>
+ = $lang["admin-v2"]["personalization_descriptions"][1] ?>
+
+
+
+
/resources/image/admin2/enter.png">
+
+
+
+
/cms-special/admin-v2/footer">
+
+
/resources/image/admin2/footer.png">
+
+
+
+ = $lang["admin-v2"]["personalization_items"][2] ?>
+ = $lang["admin-v2"]["personalization_descriptions"][2] ?>
+
+
+
+
/resources/image/admin2/enter.png">
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/$panes/security.php b/Neutron-trunk/cms-special/admin-v2/$panes/security.php
new file mode 100644
index 0000000..31cdc52
--- /dev/null
+++ b/Neutron-trunk/cms-special/admin-v2/$panes/security.php
@@ -0,0 +1,80 @@
+
+
+
+
+
+ base
+
+
+ /resources/css/admin_v2/main.css">
+ /resources/css/admin_v2/inner.css">
+
+ /resources/css/admin_v2/chromium.css">
+
+
+
+
+
+
+
+
/cms-special/admin-v2/advanced/jsonconf">
+
+
/resources/image/admin2/advanced.png">
+
+
+
+ = $lang["admin-v2"]["security_items"][0] ?>
+ = $lang["admin-v2"]["security_descriptions"][0] ?>
+
+
+
+
/resources/image/admin2/enter.png">
+
+
+
+
/cms-special/admin-v2/stats">
+
+
/resources/image/admin2/stats.png">
+
+
+
+ = $lang["admin-v2"]["security_items"][1] ?>
+ = $lang["admin-v2"]["security_descriptions"][1] ?>
+
+
+
+
/resources/image/admin2/enter.png">
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/$panes/system.php b/Neutron-trunk/cms-special/admin-v2/$panes/system.php
old mode 100755
new mode 100644
index 916f798..34cbc91
--- a/Neutron-trunk/cms-special/admin-v2/$panes/system.php
+++ b/Neutron-trunk/cms-special/admin-v2/$panes/system.php
@@ -1,11 +1,33 @@
+
+ base
/resources/css/admin_v2/main.css">
/resources/css/admin_v2/inner.css">
+
+ /resources/css/admin_v2/chromium.css">
+
+
+
-
-
+
+
-
+
");
+ echo("
");
$updatable = true;
} else {
$updatable = false;
}
?>
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/responsive.css b/Neutron-trunk/cms-special/admin-v2/$resources/responsive.css
old mode 100755
new mode 100644
diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/session.php b/Neutron-trunk/cms-special/admin-v2/$resources/session.php
new file mode 100644
index 0000000..ae480ba
--- /dev/null
+++ b/Neutron-trunk/cms-special/admin-v2/$resources/session.php
@@ -0,0 +1,11 @@
+location.href = '" . $GLOBALS["SYSTEM_ROOT"] . "/cms-special/admin-v2/login'");
+ }
+} else {
+ require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("");
+}
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/spotlight-test.php b/Neutron-trunk/cms-special/admin-v2/$resources/spotlight-test.php
old mode 100755
new mode 100644
index bffaa87..625f734
--- a/Neutron-trunk/cms-special/admin-v2/$resources/spotlight-test.php
+++ b/Neutron-trunk/cms-special/admin-v2/$resources/spotlight-test.php
@@ -9,6 +9,6 @@
-
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/spotlight.php b/Neutron-trunk/cms-special/admin-v2/$resources/spotlight.php
old mode 100755
new mode 100644
index f803f52..2a09ed3
--- a/Neutron-trunk/cms-special/admin-v2/$resources/spotlight.php
+++ b/Neutron-trunk/cms-special/admin-v2/$resources/spotlight.php
@@ -4,7 +4,7 @@
diff --git a/Neutron-trunk/cms-special/admin-v2/.htaccess b/Neutron-trunk/cms-special/admin-v2/.htaccess
old mode 100755
new mode 100644
index 90f6271..d53a146
--- a/Neutron-trunk/cms-special/admin-v2/.htaccess
+++ b/Neutron-trunk/cms-special/admin-v2/.htaccess
@@ -1,4 +1,4 @@
-ErrorDocument 404 "/cms-special/admin/error"
-ErrorDocument 403 "/cms-special/admin/error"
-ErrorDocument 401 "/cms-special/admin/error"
-ErrorDocument 500 "/cms-special/admin/error"
\ No newline at end of file
+ErrorDocument 404 "/cms-special/admin-v2/error"
+ErrorDocument 403 "/cms-special/admin-v2/error"
+ErrorDocument 401 "/cms-special/admin-v2/error"
+ErrorDocument 500 "/cms-special/admin-v2/error"
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/about/index.php b/Neutron-trunk/cms-special/admin-v2/about/index.php
old mode 100755
new mode 100644
index 1551ff0..c9791a0
--- a/Neutron-trunk/cms-special/admin-v2/about/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/about/index.php
@@ -1,12 +1,12 @@
- "Mise à jour et sécurité", "headerName" => "Mise à jour et sécurité" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?>
+ "Mise à jour et sécurité", "headerName" => "Mise à jour et sécurité" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?>
- = $lang["admin-about"]["info"] ?>
+ = $lang["admin-about"]["new"]["overview"] ?>
" . $lang["admin-about"]["diskspace"][0] . " " . $sizestr . " " . $lang["admin-about"]["diskspace"][1] . " ");
+ if (!file_exists($GLOBALS["ORIGINAL_DOCUMENT_ROOT"] . "/NeutronCloud")) {
+ echo("" . $lang["admin-about"]["diskspace"][0] . " " . $sizestr . " " . $lang["admin-about"]["diskspace"][1] . " ");
+ } else {
+ $sizep = $size;
+ switch (file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Tier")) {
+ case "3":
+ $size = 104857600;
+ break;
+
+ case "5":
+ $size = 262144000;
+ break;
+
+ case "7":
+ $size = 524288000;
+ break;
+ }
+ $sizestr2 = $size . " " . $lang["sizes"]["bytes"] . "";
+ if ($size > 1024) {
+ if ($size > 1048576) {
+ if ($size > 1073741824) {
+ $sizestr2 = round($size / 1073741824, 3) . " " . $lang["sizes"]["gibibytes"] . "";
+ } else {
+ $sizestr2 = round($size / 1048576, 3) . " " . $lang["sizes"]["mebibytes"] . "";
+ }
+ } else {
+ $sizestr2 = round($size / 1024, 3) . " " . $lang["sizes"]["kibibytes"] . "";
+ }
+ } else {
+ $sizestr2 = $size . " " . $lang["sizes"]["bytes"] . "";
+ }
+
+ echo("" . $lang["admin-about"]["diskspace"][0] . " " . $sizestr . "/" . $sizestr2 . " " . $lang["admin-about"]["diskspace"][1]);
+ if (file_exists($GLOBALS["ORIGINAL_DOCUMENT_ROOT"] . "/NeutronCloud")) {
+ echo(" (" . round(($sizep / $size) * 100, 2) . "%)");
+ }
+ echo(" ");
+ }
?>
- = $lang["admin-about"]["disk"] ?>
-
-
- = $lang["admin-about"]["new"]["version"] ?>
- $size = 0;
- getData($_SERVER['DOCUMENT_ROOT'] . "/api");
- $mpcmsSize = $size;
- getData($_SERVER['DOCUMENT_ROOT'] . "/cms-special");
- $mpcmsSize = $mpcmsSize + $size;
- getData($_SERVER['DOCUMENT_ROOT'] . "/widgets");
- $mpcmsSize = $mpcmsSize + $size;
-
- getData($_SERVER['DOCUMENT_ROOT'] . "/resources/css");
- $mpcmsSize = $mpcmsSize + $size;
- getData($_SERVER['DOCUMENT_ROOT'] . "/resources/fonts");
- $mpcmsSize = $mpcmsSize + $size;
- getData($_SERVER['DOCUMENT_ROOT'] . "/resources/i18n");
- $mpcmsSize = $mpcmsSize + $size;
- getData($_SERVER['DOCUMENT_ROOT'] . "/resources/image");
- $mpcmsSize = $mpcmsSize + $size;
- getData($_SERVER['DOCUMENT_ROOT'] . "/resources/js");
- $mpcmsSize = $mpcmsSize + $size;
- getData($_SERVER['DOCUMENT_ROOT'] . "/resources/lib");
- $mpcmsSize = $mpcmsSize + $size;
- getData($_SERVER['DOCUMENT_ROOT'] . "/resources/private");
- $mpcmsSize = $mpcmsSize + $size;
+
+ Neutron = trim(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/api/prettyver")) ?> « = trim(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/api/codename")) ?> » (build = substr(trim(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/api/version")), 5) ?>)
- $size = 0;
- getData($_SERVER['DOCUMENT_ROOT'] . "/data");
- $dataSize = $size;
+ = $lang["admin-about"]["new"]["types"][0] ?> = $lang["admin-about"]["new"]["types"][1] ?>
- $calSize = filesize($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/caldb.json");
- $confSize = filesize($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename") + filesize($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/system.log") + filesize($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/widgets.json") + filesize($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/password") + filesize($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/footer");
- if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/widget-notes-data")) {
- $confSize = $confSize + filesize($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/widget-notes-data");
- }
- if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/widget-contact-data")) {
- $confSize = $confSize + filesize($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/widget-contact-data");
- }
+ = $lang["admin-about"]["new"]["renderer"][0] ?> = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/cyclic_version") ?>
+ = $lang["admin-about"]["new"]["renderer"][1] ?> = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/jaw_version") ?>
+
- $size = 0;
- getData($_SERVER['DOCUMENT_ROOT'] . "/resources/upload");
- $resSize = $size;
+= $lang["admin-about"]["new"]["system"] ?>
- $globalSize = $resSize + $mpcmsSize + $confSize + $dataSize + $calSize;
+
+
+ = "Electrode " . $__electrode_version . " NodeJS " . $__electrode_node_version ?>
+
- ?>
-
- = $lang["admin-about"]["categories"]['system'] ?> (= round(($mpcmsSize*100)/$globalSize, 2) ?>%)
- = $lang["admin-about"]["categories"]['config'] ?> (= round(($dataSize*100)/$globalSize, 2) ?>%)
- = $lang["admin-about"]["categories"]['resources'] ?> (= round(($resSize*100)/$globalSize, 2) ?>%)
- = $lang["admin-about"]["categories"]['misc'] ?>
-
-
-
-
+ PHP = PHP_VERSION ?> (= PHP_SAPI ?>, = PHP_BINARY ?>)
+
+ = php_uname('s') . " " . php_uname('m') . " " . php_uname('r') ?>
+
+
+
diff --git a/Neutron-trunk/cms-special/admin-v2/advanced/index.php b/Neutron-trunk/cms-special/admin-v2/advanced/index.php
old mode 100755
new mode 100644
index ae80b96..72a4fe1
--- a/Neutron-trunk/cms-special/admin-v2/advanced/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/advanced/index.php
@@ -1,8 +1,8 @@
- "Options avancées", "headerName" => "Options avancées" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?>
+ "Options avancées", "headerName" => "Options avancées" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?>
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/advanced/jsonconf/index.php b/Neutron-trunk/cms-special/admin-v2/advanced/jsonconf/index.php
old mode 100755
new mode 100644
index f087b1c..030c9bb
--- a/Neutron-trunk/cms-special/admin-v2/advanced/jsonconf/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/advanced/jsonconf/index.php
@@ -1,11 +1,11 @@
- "Préférences de développement - Options avancées", "headerName" => "Préférences de développement" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?>
+ "Préférences de développement - Options avancées", "headerName" => "Préférences de développement" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?>
/resources/image/message_warning.svg" class="message_img">= $lang["admin-advanced-dev"]["warning"] ?>
= $lang["admin-advanced-dev"]["remove"][0] ?> /data/webcontent/customSettings.json
. = $lang["admin-advanced-dev"]["remove"][1] ?>
/resources/image/loader.svg" class="loader">
-
+
-
-
/resources/image/message_info.svg" class="message_img">= $lang["admin-appearance"]["fdisc"][0] ?>
= $lang["admin-appearance"]["fdisc"][1] ?>
-
-
- = $lang["admin-appearance"]["password"] ?>
- = $lang["admin-appearance"]["error"] ?>
-
- /resources/image/loader.svg" class="loader">
-
+
");
+ require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("");
}
if (isJson($eventsraw)) {
$events = json_decode($eventsraw);
@@ -15,10 +15,10 @@ if (isJson($eventsraw)) {
}
}
} else {
- require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("");
+ require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("");
}
if (!isset($event)) {
- require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("");
+ require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("");
}
?>
= $lang["admin-calendar"]["info"] ?>
@@ -41,10 +41,10 @@ if (!isset($event)) {
= $lang["admin-calendar"]["deleteask"] ?>
-
+
+
+
/resources/image/message_info.svg" class="message_img">= $lang["admin-appearance"]["fdisc"][0] ?>
= $lang["admin-appearance"]["fdisc"][1] ?>
+
+
+
+
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/galery/addcategory/index.php b/Neutron-trunk/cms-special/admin-v2/galery/addcategory/index.php
old mode 100755
new mode 100644
index f2438e1..a40e31b
--- a/Neutron-trunk/cms-special/admin-v2/galery/addcategory/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/galery/addcategory/index.php
@@ -1,2 +1,2 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/galery/index.php b/Neutron-trunk/cms-special/admin-v2/galery/index.php
old mode 100755
new mode 100644
index 82ad59c..f0e5652
--- a/Neutron-trunk/cms-special/admin-v2/galery/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/galery/index.php
@@ -1,2 +1,2 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/galery/publish/index.php b/Neutron-trunk/cms-special/admin-v2/galery/publish/index.php
old mode 100755
new mode 100644
index ac5f616..91e2a81
--- a/Neutron-trunk/cms-special/admin-v2/galery/publish/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/galery/publish/index.php
@@ -1,2 +1,2 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/gallery/addcategory/index.php b/Neutron-trunk/cms-special/admin-v2/gallery/addcategory/index.php
old mode 100755
new mode 100644
index 68451fc..e29a1aa
--- a/Neutron-trunk/cms-special/admin-v2/gallery/addcategory/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/gallery/addcategory/index.php
@@ -1,11 +1,11 @@
- "Nouvelle catégorie - Galerie de photos", "headerName" => "Nouvelle catégorie" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?>
+ "Nouvelle catégorie - Galerie de photos", "headerName" => "Nouvelle catégorie" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?>
">
= $lang["admin-gallery"]["addcat"]["same"] ?>
-
+
@@ -117,9 +127,21 @@
- System
+ = $lang["admin-v2"]["drawer"][0] ?> /resources/image/admin2/home.png" alt="">
+
+
diff --git a/Neutron-trunk/cms-special/admin-v2/language/index.php b/Neutron-trunk/cms-special/admin-v2/language/index.php
old mode 100755
new mode 100644
index 4c16e04..5d069d7
--- a/Neutron-trunk/cms-special/admin-v2/language/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/language/index.php
@@ -1,57 +1,9 @@
- "Langue et région", "headerName" => "Langue et région" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?>
-
- "Langue et région", "headerName" => "Langue et région" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?>
+");
- echo(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/resources/i18n/" . $language . "/\$metadata.json"))->localized_name . " — " . json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/resources/i18n/" . $language . "/\$metadata.json"))->name);
- echo("");
- }
- }
- }
-
- ?>
-
-
-
-
-
-
\ No newline at end of file
+echo("");
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/login-old/index.php b/Neutron-trunk/cms-special/admin-v2/login-old/index.php
old mode 100755
new mode 100644
index d4428d7..a2f09ba
--- a/Neutron-trunk/cms-special/admin-v2/login-old/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/login-old/index.php
@@ -14,7 +14,7 @@ if (isset($_POST['authkey'])) {
$callback = $_GET['pr'];
}
} else {
- $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin/home";
+ $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin-v2";
}
if (password_verify($_POST['password'], file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/password"))) {
$token = str_ireplace("/", "-", password_hash(password_hash(rand(0, 999999) + rand(0, 999999) + rand(0, 999999) + rand(0, 999999) + rand(0, 999999), PASSWORD_BCRYPT, ['cost' => 12,]), PASSWORD_BCRYPT, ['cost' => 12,]));
@@ -37,7 +37,7 @@ if (isset($_POST['authkey'])) {
}
}
-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'])) {
if (isset($_GET['pr'])) {
if (isset($_GET['pa'])) {
@@ -46,7 +46,7 @@ if (isset($_COOKIE['_NEUTRON_ADMIN_TOKEN']) && $_COOKIE['_NEUTRON_ADMIN_TOKEN']
$callback = $_GET['pr'];
}
} else {
- $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin/home";
+ $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin-v2";
}
header("Location: " . $callback);
}
@@ -94,7 +94,7 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent")) {
diff --git a/Neutron-trunk/cms-special/admin-v2/login/index.php b/Neutron-trunk/cms-special/admin-v2/login/index.php
old mode 100755
new mode 100644
index 57a1b6a..6472865
--- a/Neutron-trunk/cms-special/admin-v2/login/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/login/index.php
@@ -1,7 +1,7 @@
@@ -57,7 +57,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/preprocesso
');
+ echo(' ');
?>
window.onerror = () => {
- location.href = "= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/login-old";
+ location.href = "= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/login-old";
}
-
+
@@ -103,7 +103,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/preprocesso
= $lang["admin-login"]["modes"][0] ?>
-
+
admin_panel_settings
Cloud Admin Console
diff --git a/Neutron-trunk/cms-special/admin-v2/logout/index.php b/Neutron-trunk/cms-special/admin-v2/logout/index.php
old mode 100755
new mode 100644
index 5c51269..12c5319
--- a/Neutron-trunk/cms-special/admin-v2/logout/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/logout/index.php
@@ -1,7 +1,7 @@
- "Historique d'activité", "headerName" => "Historique d'activité" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?>
+ "Historique d'activité", "headerName" => "Historique d'activité" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?>
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/pages/add/index.php b/Neutron-trunk/cms-special/admin-v2/pages/add/index.php
old mode 100755
new mode 100644
index 54dacdb..823d9d4
--- a/Neutron-trunk/cms-special/admin-v2/pages/add/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/pages/add/index.php
@@ -1,5 +1,5 @@
- "Nouvelle page - Pages", "headerName" => "Nouvelle page" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?>
+ "Nouvelle page - Pages", "headerName" => "Nouvelle page" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?>
/resources/image/loader.svg" class="loader">
-
+
\ No newline at end of file
diff --git a/Neutron-trunk/cms-special/admin-v2/plugins/index.php b/Neutron-trunk/cms-special/admin-v2/plugins/index.php
old mode 100755
new mode 100644
index 58be08f..2676076
--- a/Neutron-trunk/cms-special/admin-v2/plugins/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/plugins/index.php
@@ -1,7 +1,7 @@
"Extensions", "headerName" => "Extensions" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?>
+$pageConfig = [ "domName" => "Extensions", "headerName" => "Extensions" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?>
/resources/image/message_info.svg" class="message_img">= $lang["admin-plugins"]["newnotice"] ?>
"Extensions", "headerName" => "Extensions" ]; requi
}
?>
-
+