aboutsummaryrefslogtreecommitdiff
path: root/admin/api/draftvslive.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/api/draftvslive.php')
-rw-r--r--admin/api/draftvslive.php41
1 files changed, 0 insertions, 41 deletions
diff --git a/admin/api/draftvslive.php b/admin/api/draftvslive.php
deleted file mode 100644
index cc5e325..0000000
--- a/admin/api/draftvslive.php
+++ /dev/null
@@ -1,41 +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") {
- if (file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/drafts/" . $doc . ".html") === file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/code/fr.html")) {
- die("true");
- } else {
- die("false");
- }
-}
-
-if ($doc === "conduct.en") {
- if (file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/drafts/" . $doc . ".html") === file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/code/en.html")) {
- die("true");
- } else {
- die("false");
- }
-}
-
-if ($doc === "blog.en") {
- if (file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/drafts/blog-{$_POST['article']}.json.html") === file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/blog/data/{$_POST['article']}.json.html")) {
- die("true");
- } else {
- die("false");
- }
-}
-
-if ($doc === "blog.fr") {
- if (file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/drafts/blog-{$_POST['article']}.json.fr.html") === file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/blog/data/{$_POST['article']}.json.fr.html")) {
- die("true");
- } else {
- die("false");
- }
-} \ No newline at end of file