diff options
author | Minteck <contact@minteck.org> | 2022-01-01 10:37:28 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-01 10:37:28 +0100 |
commit | ef055e79855cf3be1ad5e1aa5f9ebad480062384 (patch) | |
tree | ff074b29a7a87c3ccfc3b10741bbe30cb28e103e /admin/api/setlive.php | |
parent | e3a79df6428799024eac64e9cffbb062317aeb95 (diff) | |
download | main-ef055e79855cf3be1ad5e1aa5f9ebad480062384.tar.gz main-ef055e79855cf3be1ad5e1aa5f9ebad480062384.tar.bz2 main-ef055e79855cf3be1ad5e1aa5f9ebad480062384.zip |
Diffstat (limited to 'admin/api/setlive.php')
-rw-r--r-- | admin/api/setlive.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/admin/api/setlive.php b/admin/api/setlive.php deleted file mode 100644 index 0ef8b94..0000000 --- a/admin/api/setlive.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
-
-if (isset($_POST['document']) && strpos($_POST['document'], "/") === false) {
- $doc = $_POST['document'];
-} else {
- die();
-}
-
-if ($doc === "conduct.fr") {
- file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/code/fr.html", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/drafts/" . $doc . ".html"));
-}
-
-if ($doc === "conduct.en") {
- file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/code/en.html", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/drafts/" . $doc . ".html"));
-}
-
-if ($doc === "blog.en") {
- file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/blog/data/{$_POST['article']}.json.html", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/drafts/blog-{$_POST['article']}.json.html"));
-}
-
-if ($doc === "blog.fr") {
- file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/blog/data/{$_POST['article']}.json.fr.html", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/drafts/blog-{$_POST['article']}.json.fr.html"));
-}
-
-if ($doc === "blog.en") {
- unlink($_SERVER['DOCUMENT_ROOT'] . "/includes/drafts/blog-{$_POST['article']}.json.html");
-} else if ($doc === "blog.fr") {
- unlink($_SERVER['DOCUMENT_ROOT'] . "/includes/drafts/blog-{$_POST['article']}.json.fr.html");
-} else {
- unlink($_SERVER['DOCUMENT_ROOT'] . "/includes/drafts/" . $doc . ".html");
-}
\ No newline at end of file |