aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/cms-special/admin-v2/pages/edit
diff options
context:
space:
mode:
Diffstat (limited to 'Neutron-trunk/cms-special/admin-v2/pages/edit')
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin-v2/pages/edit/index.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/Neutron-trunk/cms-special/admin-v2/pages/edit/index.php b/Neutron-trunk/cms-special/admin-v2/pages/edit/index.php
index b198566..3044904 100755..100644
--- a/Neutron-trunk/cms-special/admin-v2/pages/edit/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/pages/edit/index.php
@@ -4,16 +4,16 @@
if (isset($_GET['slug'])) {
$currentSlug = $_GET['slug'];
if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/pages/" . $currentSlug)) {} else {
- header("Location: /cms-special/admin/pages");
+ header("Location: /cms-special/admin-v2/pages");
require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit();
}
} else {
- header("Location: /cms-special/admin/pages");
+ header("Location: /cms-special/admin-v2/pages");
require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit();
}
?>
-<?php $pageConfig = [ "domName" => "Pages", "headerName" => "Pages" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?>
+<?php $pageConfig = [ "domName" => "Pages", "headerName" => "Pages" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?>
<div id="editing">
<?php
@@ -44,7 +44,7 @@ if (isset($_GET['slug'])) {
?>
</div>
<div class="hide" id="loader" style="text-align: center;"><img src="<?= $GLOBALS["SYSTEM_ROOT"] ?>/resources/image/loader.svg" class="loader"></div>
-<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/postcontent.php"; ?>
+<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/postcontent.php"; ?>
<script>
window.onbeforeunload = function (e) {
@@ -75,7 +75,7 @@ function updatePage() {
success: function (data) {
if (data == "ok") {
window.onbeforeunload = null;
- location.href = "<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/pages";
+ location.href = "<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/pages";
} else {
alert("<?= $lang["admin-errors"]["errorprefix"] ?>" + data)
document.getElementById('loader').classList.add('hide')
@@ -172,7 +172,7 @@ function updatePageHTML() {
url: "<?= $GLOBALS["SYSTEM_ROOT"] ?>/api/admin/edit_page.php",
success: function (data) {
if (data == "ok") {
- location.href = "<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/pages";
+ location.href = "<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/pages";
} else {
alert("<?= $lang["admin-errors"]["errorprefix"] ?>" + data)
document.getElementById('loader').classList.add('hide')