diff options
Diffstat (limited to 'Neutron-trunk/cms-special/admin-v2/pages')
-rw-r--r--[-rwxr-xr-x] | Neutron-trunk/cms-special/admin-v2/pages/add/index.php | 6 | ||||
-rw-r--r--[-rwxr-xr-x] | Neutron-trunk/cms-special/admin-v2/pages/delete/index.php | 14 | ||||
-rw-r--r--[-rwxr-xr-x] | Neutron-trunk/cms-special/admin-v2/pages/edit/index.php | 12 | ||||
-rw-r--r--[-rwxr-xr-x] | Neutron-trunk/cms-special/admin-v2/pages/index.php | 18 | ||||
-rw-r--r--[-rwxr-xr-x] | Neutron-trunk/cms-special/admin-v2/pages/rename/index.php | 10 |
5 files changed, 30 insertions, 30 deletions
diff --git a/Neutron-trunk/cms-special/admin-v2/pages/add/index.php b/Neutron-trunk/cms-special/admin-v2/pages/add/index.php index 54dacdb..823d9d4 100755..100644 --- a/Neutron-trunk/cms-special/admin-v2/pages/add/index.php +++ b/Neutron-trunk/cms-special/admin-v2/pages/add/index.php @@ -1,5 +1,5 @@ <?php require_once "../../../../resources/private/relative.php"; getRelativeDetails("cms-special"); ?> -<?php $pageConfig = [ "domName" => "Nouvelle page - Pages", "headerName" => "Nouvelle page" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +<?php $pageConfig = [ "domName" => "Nouvelle page - Pages", "headerName" => "Nouvelle page" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?> <p> <form name="settings"> <div class="nd_Field nd_Field_input nd_Field__centered" id="namebox"> @@ -35,7 +35,7 @@ </div> </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) { @@ -67,7 +67,7 @@ function createPageVisual() { url: "<?= $GLOBALS["SYSTEM_ROOT"] ?>/api/admin/create_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) Array.from(document.getElementsByTagName('input')).forEach((el) => {el.disabled = false}) diff --git a/Neutron-trunk/cms-special/admin-v2/pages/delete/index.php b/Neutron-trunk/cms-special/admin-v2/pages/delete/index.php index 4cbcb49..964c208 100755..100644 --- a/Neutron-trunk/cms-special/admin-v2/pages/delete/index.php +++ b/Neutron-trunk/cms-special/admin-v2/pages/delete/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"; ?> <?php if ($currentSlug == "index") { @@ -37,9 +37,9 @@ if ($currentSlug == "index") { ?> <!--<ul> <li><a onclick="deletePage()" class="sblink" title="<?= $lang["admin-pages"]["deleteyl"] ?>"><?= $lang["admin-pages"]["deletey"] ?></a></li> - <li><a onclick="location.href='/cms-special/admin/pages/manage/?slug=<?= $currentSlug ?>'" class="sblink" title="<?= $lang["admin-pages"]["deletenl"] ?>"><?= $lang["admin-pages"]["deleten"] ?></a></li> + <li><a onclick="location.href='/cms-special/admin-v2/pages/manage/?slug=<?= $currentSlug ?>'" class="sblink" title="<?= $lang["admin-pages"]["deletenl"] ?>"><?= $lang["admin-pages"]["deleten"] ?></a></li> </ul>--> - <a title="<?= $lang["admin-pages"]["deletenl"] ?>" onclick="location.href='/cms-special/admin/pages';" class="mdc-button mdc-button--raised"> + <a title="<?= $lang["admin-pages"]["deletenl"] ?>" onclick="location.href='/cms-special/admin-v2/pages';" class="mdc-button mdc-button--raised"> <div class="mdc-button__ripple"></div> <span class="mdc-button__label"><?= $lang["admin-pages"]["deleten"] ?></span> </a> @@ -51,7 +51,7 @@ if ($currentSlug == "index") { </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> @@ -66,7 +66,7 @@ function deletePage() { url: "<?= $GLOBALS["SYSTEM_ROOT"] ?>/api/admin/delete_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') 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') diff --git a/Neutron-trunk/cms-special/admin-v2/pages/index.php b/Neutron-trunk/cms-special/admin-v2/pages/index.php index d8e1e3d..71b55db 100755..100644 --- a/Neutron-trunk/cms-special/admin-v2/pages/index.php +++ b/Neutron-trunk/cms-special/admin-v2/pages/index.php @@ -1,5 +1,5 @@ <?php require_once "../../../resources/private/relative.php"; getRelativeDetails("cms-special"); ?> -<?php $pageConfig = [ "domName" => "Pages", "headerName" => "Gestionnaire de pages" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +<?php $pageConfig = [ "domName" => "Pages", "headerName" => "Gestionnaire de pages" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?> <div class="admin-pages-list"> <?php @@ -22,18 +22,18 @@ $sizetotal = $sizetotal + $size; $sizestr = str_replace(".", ",", $sizestr); if ($page == "index"): ?> -<!-- echo("<li><a href='/cms-special/admin/pages/manage/?slug={$page}' class='sblink' title='{$lang['admin-pages']['lore']}'>{$lang['admin-pages']['home']}</a> ({$page}), {$typestr}, {$sizestr}</li>");--> +<!-- echo("<li><a href='/cms-special/admin-v2/pages/manage/?slug={$page}' class='sblink' title='{$lang['admin-pages']['lore']}'>{$lang['admin-pages']['home']}</a> ({$page}), {$typestr}, {$sizestr}</li>");--> <div class="mdc-card mdc-card--outlined" style="width:256px;margin:10px;display:inline-block;"> <div class="mdc-card-wrapper__text-section" style="padding-left:5px;padding-right:5px;"> <h2 style="margin-bottom:5px;white-space: nowrap;overflow: hidden !important;text-overflow: ellipsis;" class="mdc-typography mdc-typography--headline6"><?= $lang["admin-pages"]["home"] ?></h2> <h3 style="margin-top:5px;" class="mdc-typography mdc-typography--subtitle2"><?php $text = strip_tags(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/pages/" . $page));if (strlen($text)>100){echo(substr($text,0,100) . " …");}else{echo($text);} ?></h3> </div><br><br> <div class="mdc-card__actions mdc-card__actions-pages-list"> - <a href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/pages/edit/?slug=<?= $page ?>" title="<?= $lang["admin-pages"]["editl"] ?>" class="mdc-button mdc-card__action mdc-card__action--button"> + <a href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/pages/edit/?slug=<?= $page ?>" title="<?= $lang["admin-pages"]["editl"] ?>" class="mdc-button mdc-card__action mdc-card__action--button"> <div class="mdc-button__ripple"></div> <span class="mdc-button__label"><?= $lang["admin-pages"]["edit"] ?></span> </a> - <a href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/pages/edit/?slug=<?= $page ?>&forcehtml" class="material-icons mdc-icon-button mdc-card__action mdc-card__action--icon mdi-icbtn-card" title="<?= $lang["admin-pages"]["editcode"] ?>">code</a> + <a href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/pages/edit/?slug=<?= $page ?>&forcehtml" class="material-icons mdc-icon-button mdc-card__action mdc-card__action--icon mdi-icbtn-card" title="<?= $lang["admin-pages"]["editcode"] ?>">code</a> </div> </div> <?php else: ?> @@ -43,12 +43,12 @@ <h3 style="margin-top:5px;" class="mdc-typography mdc-typography--subtitle2"><?php $text = strip_tags(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/pages/" . $page));if (strlen($text)>100){echo(substr($text,0,100) . " …");}else{echo($text);} ?></h3> </div><br><br> <div class="mdc-card__actions mdc-card__actions-pages-list"> - <a href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/pages/edit/?slug=<?= $page ?>" title="<?= $lang["admin-pages"]["editl"] ?>" class="mdc-button mdc-card__action mdc-card__action--button"> + <a href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/pages/edit/?slug=<?= $page ?>" title="<?= $lang["admin-pages"]["editl"] ?>" class="mdc-button mdc-card__action mdc-card__action--button"> <div class="mdc-button__ripple"></div> <span class="mdc-button__label"><?= $lang["admin-pages"]["edit"] ?></span> </a> - <a href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/pages/rename/?slug=<?= $page ?>" class="material-icons mdc-icon-button mdc-card__action mdc-card__action--icon mdi-icbtn-card" title="<?= $lang["admin-pages"]["renamel"] ?>">create</a> - <a href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/pages/delete/?slug=<?= $page ?>" class="material-icons mdc-icon-button mdc-card__action mdc-card__action--icon mdi-icbtn-card" title="<?= $lang["admin-pages"]["deletel"] ?>">delete</a> + <a href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/pages/rename/?slug=<?= $page ?>" class="material-icons mdc-icon-button mdc-card__action mdc-card__action--icon mdi-icbtn-card" title="<?= $lang["admin-pages"]["renamel"] ?>">create</a> + <a href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/pages/delete/?slug=<?= $page ?>" class="material-icons mdc-icon-button mdc-card__action mdc-card__action--icon mdi-icbtn-card" title="<?= $lang["admin-pages"]["deletel"] ?>">delete</a> </div> </div> <?php endif; @@ -57,10 +57,10 @@ ?> </div> <p><div style="text-align: center;"> - <a title="<?= $lang["admin-pages"]["alore"] ?>" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin/pages/add" class="mdc-button mdc-button--outlined"> + <a title="<?= $lang["admin-pages"]["alore"] ?>" href="<?= $GLOBALS["SYSTEM_ROOT"] ?>/cms-special/admin-v2/pages/add" class="mdc-button mdc-button--outlined"> <div class="mdc-button__ripple"></div> <i class="material-icons-outlined mdc-button__icon" aria-hidden="true">add</i> <span class="mdc-button__label"><?= $lang["admin-pages"]["create"] ?></span> </a> </div></p> -<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/postcontent.php"; ?>
\ No newline at end of file +<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/postcontent.php"; ?>
\ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/pages/rename/index.php b/Neutron-trunk/cms-special/admin-v2/pages/rename/index.php index d7118ba..cf7b67e 100755..100644 --- a/Neutron-trunk/cms-special/admin-v2/pages/rename/index.php +++ b/Neutron-trunk/cms-special/admin-v2/pages/rename/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"; ?> <?php if ($currentSlug == "index") { @@ -51,7 +51,7 @@ if ($currentSlug == "index") { </div> <div class="hide" id="loader" style="text-align: center;"><img src="/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> @@ -67,7 +67,7 @@ function renamePage() { url: "<?= $GLOBALS["SYSTEM_ROOT"] ?>/api/admin/rename_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') |