diff options
author | Gitea <gitea@fake.local> | 2021-11-10 17:53:13 +0100 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2021-11-10 17:53:13 +0100 |
commit | 7b4af63a90a726b98a59b83e53f040a7a566a11d (patch) | |
tree | b85747947816fe4375e85ab6b822ffabec548c7b /Neutron-trunk/cms-special/admin-v2/$panes/system.php | |
parent | 80f78c2925530e945503ab603e79d1acc53075f4 (diff) | |
download | electrode-7b4af63a90a726b98a59b83e53f040a7a566a11d.tar.gz electrode-7b4af63a90a726b98a59b83e53f040a7a566a11d.tar.bz2 electrode-7b4af63a90a726b98a59b83e53f040a7a566a11d.zip |
Update
Diffstat (limited to 'Neutron-trunk/cms-special/admin-v2/$panes/system.php')
-rw-r--r--[-rwxr-xr-x] | Neutron-trunk/cms-special/admin-v2/$panes/system.php | 85 |
1 files changed, 79 insertions, 6 deletions
diff --git a/Neutron-trunk/cms-special/admin-v2/$panes/system.php b/Neutron-trunk/cms-special/admin-v2/$panes/system.php index 916f798..34cbc91 100755..100644 --- a/Neutron-trunk/cms-special/admin-v2/$panes/system.php +++ b/Neutron-trunk/cms-special/admin-v2/$panes/system.php @@ -1,11 +1,33 @@ +<?php + +require_once "../../../resources/private/relative.php"; getRelativeDetails("cms-special"); +require_once $_SERVER['DOCUMENT_ROOT'] . "/api/lang/processor.php"; +require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/session.php"; + +global $lang; + +?> <!DOCTYPE html> <html> <head> + <title>base</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/admin_v2/main.css"> <link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/admin_v2/inner.css"> + <?php if (strpos($_SERVER['HTTP_USER_AGENT'], "Chrome/")): ?> + <link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/admin_v2/chromium.css"> + <style>:root { --mpcms-banner: url(<?php + + if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/resources/upload/banner.jpg")) { + echo('"' . $GLOBALS["SYSTEM_ROOT"] . '/resources/upload/banner.jpg"'); + } else { + echo('"' . $GLOBALS["SYSTEM_ROOT"] . '/resources/image/default.jpg"'); + } + + ?>); }</style> + <?php endif; ?> <style>:root { --mpcms-banner: url(<?php if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/resources/upload/banner.jpg")) { @@ -25,27 +47,78 @@ <div id="system-head-version"> <div> <b>Neutron 10</b><br> - version <?= trim(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/api/prettyver")) ?> + version <?= 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) ?> + </div> + </div> + </div> + + + <div class="inner-item" data-item-href="top://<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/logout"> + <div class="inner-item-image-outer"> + <img alt="" class="inner-item-image" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/logoff.png"> + </div> + <div class="inner-item-text"> + <div> + <span class="inner-item-title"><?= $lang["admin-v2"]["system_items"][3] ?></span><br> + <span class="inner-item-description"><?= $lang["admin-v2"]["system_descriptions"][3] ?></span> </div> </div> + <div class="inner-item-enter-outer"> + <img alt="" class="inner-item-enter" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/enter.png"> + </div> </div> <div id="inner-items"> - <div class="inner-item"> + <div class="inner-item" data-item-href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/about"> + <div class="inner-item-image-outer"> + <img alt="" class="inner-item-image" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/about.png"> + </div> + <div class="inner-item-text"> + <div> + <span class="inner-item-title"><?= $lang["admin-v2"]["system_items"][0] ?></span><br> + <span class="inner-item-description"><?= $lang["admin-v2"]["system_descriptions"][0] ?></span> + </div> + </div> + <div class="inner-item-enter-outer"> + <img alt="" class="inner-item-enter" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/enter.png"> + </div> + </div> + + <div class="inner-item" data-item-href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/logs"> + <div class="inner-item-image-outer"> + <img alt="" class="inner-item-image" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/audit.png"> + </div> + <div class="inner-item-text"> + <div> + <span class="inner-item-title"><?= $lang["admin-v2"]["system_items"][1] ?></span><br> + <span class="inner-item-description"><?= $lang["admin-v2"]["system_descriptions"][1] ?></span> + </div> + </div> + <div class="inner-item-enter-outer"> + <img alt="" class="inner-item-enter" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/enter.png"> + </div> + </div> + + <?php if (!file_exists($GLOBALS['ORIGINAL_DOCUMENT_ROOT'] . "/NeutronCloud")): ?> + <div class="inner-item" data-item-href="parent://minteck.ro.lt/creations/neutron"> <div class="inner-item-image-outer"> - <img class="inner-item-image" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/about.png"> + <img alt="" class="inner-item-image" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/install.png"> </div> <div class="inner-item-text"> <div> - <span class="inner-item-title">About Neutron</span><br> - <span class="inner-item-description">View Neutron versions and data usage</span> + <span class="inner-item-title"><?= $lang["admin-v2"]["system_items"][2] ?></span><br> + <span class="inner-item-description"><?= $lang["admin-v2"]["system_descriptions"][2] ?></span> </div> </div> <div class="inner-item-enter-outer"> - <img class="inner-item-enter" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/enter.png"> + <img alt="" class="inner-item-enter" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/enter.png"> </div> </div> + <?php endif; ?> </div> </body> + <script src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/js/jquery.js"></script> + <script src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/js/admin_v2.js"></script> + </html>
\ No newline at end of file |