aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php
diff options
context:
space:
mode:
authorGitea <gitea@fake.local>2021-11-10 17:53:13 +0100
committerGitea <gitea@fake.local>2021-11-10 17:53:13 +0100
commit7b4af63a90a726b98a59b83e53f040a7a566a11d (patch)
treeb85747947816fe4375e85ab6b822ffabec548c7b /Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php
parent80f78c2925530e945503ab603e79d1acc53075f4 (diff)
downloadelectrode-7b4af63a90a726b98a59b83e53f040a7a566a11d.tar.gz
electrode-7b4af63a90a726b98a59b83e53f040a7a566a11d.tar.bz2
electrode-7b4af63a90a726b98a59b83e53f040a7a566a11d.zip
Update
Diffstat (limited to 'Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php')
-rw-r--r--[-rwxr-xr-x]Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php b/Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php
index a6f4ebd..db5d226 100755..100644
--- a/Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php
+++ b/Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php
@@ -1,9 +1,9 @@
<?php require_once "../../../../resources/private/relative.php"; getRelativeDetails("cms-special"); ?>
-<?php $pageConfig = [ "domName" => "Supprimer un événement - Calendrier", "headerName" => "Supprimer un événement" ]; include_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?>
+<?php $pageConfig = [ "domName" => "Supprimer un événement - Calendrier", "headerName" => "Supprimer un événement" ]; include_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?>
<?php
$eventsraw = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/caldb.json");
if (isset($_GET['id'])) {} else {
- require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("<script>location.href = '" . $GLOBALS['SYSTEM_ROOT'] . "/cms-special/admin/calendar';</script>");
+ require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("<script>location.href = '" . $GLOBALS['SYSTEM_ROOT'] . "/cms-special/admin-v2/calendar';</script>");
}
if (isJson($eventsraw)) {
$events = json_decode($eventsraw);
@@ -15,10 +15,10 @@ if (isJson($eventsraw)) {
}
}
} else {
- require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("<script>location.href = '" . $GLOBALS['SYSTEM_ROOT'] . "/cms-special/admin/calendar';</script>");
+ require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("<script>location.href = '" . $GLOBALS['SYSTEM_ROOT'] . "/cms-special/admin-v2/calendar';</script>");
}
if (!isset($event)) {
- require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("<script>location.href = '" . $GLOBALS['SYSTEM_ROOT'] . "/cms-special/admin/calendar';</script>");
+ require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("<script>location.href = '" . $GLOBALS['SYSTEM_ROOT'] . "/cms-special/admin-v2/calendar';</script>");
}
?>
<h3><?= $lang["admin-calendar"]["info"] ?></h3>
@@ -41,10 +41,10 @@ if (!isset($event)) {
</ul>
<h3><?= $lang["admin-calendar"]["deleteask"] ?></h3>
<ul id="delete">
- <li><a class="sblink" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/calendar" title="<?= $lang["admin-calendar"]["deletenoph"] ?>"><?= $lang["admin-calendar"]["deleteno"] ?></a></li>
+ <li><a class="sblink" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/calendar" title="<?= $lang["admin-calendar"]["deletenoph"] ?>"><?= $lang["admin-calendar"]["deleteno"] ?></a></li>
<li><a class="sblink" onclick="deleteEvent()" title="<?= $lang["admin-calendar"]["deleteyesph"] ?>"><?= $lang["admin-calendar"]["deleteyes"] ?></a></li>
</ul>
-<?php include_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/postcontent.php"; ?>
+<?php include_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/postcontent.php"; ?>
<script>
@@ -58,7 +58,7 @@ function deleteEvent() {
url: "<?= $GLOBALS["SYSTEM_ROOT"] ?>/api/admin/calendar_delete.php",
success: function (data) {
if (data == "ok") {
- location.href = "<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/calendar";
+ location.href = "<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/calendar";
} else {
alert("<?= $lang["admin-errors"]["errorprefix"] ?>" + data)
document.getElementById('delete').classList.remove('hide')