diff options
Diffstat (limited to 'Neutron-trunk/cms-special/admin-v2/index.php')
-rw-r--r-- | Neutron-trunk/cms-special/admin-v2/index.php | 148 |
1 files changed, 0 insertions, 148 deletions
diff --git a/Neutron-trunk/cms-special/admin-v2/index.php b/Neutron-trunk/cms-special/admin-v2/index.php deleted file mode 100644 index a7c6c9a..0000000 --- a/Neutron-trunk/cms-special/admin-v2/index.php +++ /dev/null @@ -1,148 +0,0 @@ -<?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> - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>Neutron</title> - <link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/ajax.css"> - <link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/admin_v2/main.css"> - <link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/admin_v2/navigation.css"> - <link rel="stylesheet" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/css/admin_v2/iframe.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; ?> - <link rel="icon" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/siteicon.png"> - <script src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/js/jquery.js"></script> -</head> - -<body> - <div class="bg"></div> - <main> - <aside> - <a href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/" id="nav-header"> - <img src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/upload/siteicon.png" id="nav-header-icon"> - <div id="nav-header-names-outer"> - <div id="nav-header-names"> - <b><?= file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename") ?></b><br> - <?php - - if (file_exists($GLOBALS['ORIGINAL_DOCUMENT_ROOT'] . "/NeutronCloud")): - echo("Cloud X" . trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Tier"))); - else: - echo($lang["admin-v2"]["on-premises"]); - endif; - - ?> - </div> - </div> - </a> - <div id="nav-items"> - <div class="nav-item selected" data-pane="system"> - <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/system.png" alt=""> - <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][0] ?></span> - </div> - - <div class="nav-item" data-pane="content"> - <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/content.png" alt=""> - <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][1] ?></span> - </div> - - <div class="nav-item" data-pane="personalization"> - <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/personalization.png" alt=""> - <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][2] ?></span> - </div> - - <div class="nav-item" data-pane="features"> - <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/features.png" alt=""> - <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][3] ?></span> - </div> - - <div class="nav-item" data-pane="accounts"> - <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/accounts.png" alt=""> - <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][4] ?></span> - </div> - - <div class="nav-item" data-pane="language"> - <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/language.png" alt=""> - <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][5] ?></span> - </div> - - <div class="nav-item" data-pane="security"> - <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/security.png" alt=""> - <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][6] ?></span> - </div> - - <div class="nav-item" data-pane="maintenance"> - <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/maintenance.png" alt=""> - <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][7] ?></span> - </div> - - <?php if (false): ?> - <div class="nav-item" data-pane="cloud"> - <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/cloud.png" alt=""> - <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][8] ?></span> - </div> - <?php endif; ?> - - <?php if (false): ?> - <div class="nav-item" data-pane="electrode"> - <img class="nav-item-icon" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/electrode.png" alt=""> - <span class="nav-item-name"><?= $lang["admin-v2"]["drawer"][9] ?></span> - </div> - <?php endif; ?> - - <script> - Array.from(document.getElementsByClassName("nav-item")).forEach((item) => { - item.onclick = () => { - Array.from(document.getElementsByClassName("nav-item")).forEach((i) => { - i.classList.remove("selected"); - }) - item.classList.add("selected") - - document.getElementById("main-iframe").src = "<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/$panes/" + item.getAttribute("data-pane") + ".php"; - document.getElementById("main-title-inner").innerText = item.children[1].innerText; - } - }) - </script> - </div> - </aside> - - <article id="main-content"> - <div id="main-title" style="margin-top: 2px;"><span id="main-title-inner"><?= $lang["admin-v2"]["drawer"][0] ?></span> <span class="main-title-home-outer" onclick='$(".selected").click()'><img class="main-title-home" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/admin2/home.png" alt=""></span></div> - <iframe id="main-iframe" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/$panes/system.php"></iframe> - </article> - - <script> - document.getElementById("main-iframe").onload = () => { - if (document.getElementById("main-iframe").contentDocument.title !== "base") { - document.getElementById("main-title").style.marginTop = "0"; - $(".main-title-home-outer").fadeIn(200); - } else { - document.getElementById("main-title").style.marginTop = "2px"; - $(".main-title-home-outer").fadeOut(200); - } - } - </script> - </main> -</body> - -</html>
\ No newline at end of file |