blob: 55e029aeeba0009f619ee5e51a15444a2c6c196f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
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>
|