'); 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"][1] . "
" . $lang["header"]["internalError"][2] . "/data/webcontent/customSettings.json
" . $lang["header"]["internalError"][3] . "
" . $lang["header"]["internalError"][4] . "
" . $lang["header"]["internalError"][2] . "/data/webcontent/customSettings.json
" . $lang["header"]["internalError"][3] . "