From 8fabf77b2a7720a357c63817c07035a9908818a0 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 10 Nov 2021 17:53:50 +0100 Subject: Update --- .../resources/private/headers/documenthead.php | 139 --------------------- 1 file changed, 139 deletions(-) delete mode 100644 Neutron-trunk/resources/private/headers/documenthead.php (limited to 'Neutron-trunk/resources/private/headers/documenthead.php') diff --git a/Neutron-trunk/resources/private/headers/documenthead.php b/Neutron-trunk/resources/private/headers/documenthead.php deleted file mode 100644 index a628016..0000000 --- a/Neutron-trunk/resources/private/headers/documenthead.php +++ /dev/null @@ -1,139 +0,0 @@ -'); - echo(''); - echo(''); - echo(''); - echo(''); - echo(''); - echo(''); - echo(''); - echo(''); - echo(''); - echo(''); - echo(''); - echo(''); - echo(''); - echo(''); - echo(''); -} - -// This will run only if the website is ready -if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent")) { - // Custom settings parser - if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/customSettings.json")) { - if (dataValid(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/customSettings.json"))) { - $customSettings = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/customSettings.json")); - if (isset($customSettings->AfficherBoutonAdministration) && isset($customSettings->AdministrationBarreNavigation) && isset($customSettings->RessourcesPersonnalisées) && isset($customSettings->RessourcesPersonnalisées->CSS) && isset($customSettings->RessourcesPersonnalisées->JS) && isset($customSettings->PagesMasquées)) { // If it's using the old system, delete the file and generate a new one. - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/customSettings.json.bak", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/customSettings.json")); - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/customSettings.json", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/csettings-base.json")); - $continue = true; - } else { - $continue = true; - } - if ($continue) { - if (isset($customSettings->showAdminButton) && isset($customSettings->customResources) && isset($customSettings->customResources->styles) && isset($customSettings->customResources->script) && isset($customSettings->hiddenPages)) { - if (!$customSettings->showAdminButton) { - echo(""); - } - echo(""); - echo(""); - } else { - require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("

" . $lang["header"]["internalError"][0] . "

" . $lang["header"]["internalError"][1] . "

" . $lang["header"]["internalError"][2] . "/data/webcontent/customSettings.json" . $lang["header"]["internalError"][3] . "


" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/version") . " " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/codename") . ""); - } - } - } else { - require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("

" . $lang["header"]["internalError"][0] . "

" . $lang["header"]["internalError"][4] . "

" . $lang["header"]["internalError"][2] . "/data/webcontent/customSettings.json" . $lang["header"]["internalError"][3] . "


" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/version") . " " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/codename") . ""); - } - } else { - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/customSettings.json", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/resources/private/headers/csettings-base.json")); - } -} - -if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/resources/upload/styles.css")) { - echo(''); // Custom styles loader -} -echo(''); // JQuery, used at almost all pages - -echo(""); // Global Scripts - -?> - - -- cgit