diff options
Diffstat (limited to 'Neutron-trunk/cms-special/admin-v2/index.php')
-rw-r--r-- | Neutron-trunk/cms-special/admin-v2/index.php | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/Neutron-trunk/cms-special/admin-v2/index.php b/Neutron-trunk/cms-special/admin-v2/index.php new file mode 100644 index 0000000..55e029a --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/index.php @@ -0,0 +1,126 @@ +<?php require_once "../../resources/private/relative.php"; getRelativeDetails("cms-special"); ?> +<!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> + <div 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("Neutron Cloud X" . trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Tier"))); + else: + echo("Neutron On-premises"); + endif; + + ?> + </div> + </div> + </div> + <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">System</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">Content</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">Personalization</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">Features</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">Accounts</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">Region & language</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">Data & security</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">Advanced options</span> + </div> + + <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">Neutron Cloud</span> + </div> + + <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">Electrode Server</span> + </div> + + <script> + Array.from(document.getElementsByClassName("nav-item")).forEach((item) => { + item.onclick = () => { + if (item.classList.contains("selected")) { return; } + + 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").innerText = item.children[1].innerText; + } + }) + </script> + </div> + </aside> + + <article id="main-content"> + <span id="main-title">System</span> + <iframe id="main-iframe" src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/$panes/system.php"></iframe> + </article> + </main> +</body> + +</html>
\ No newline at end of file |