"Lorem ipsum dolor sit amet", "name" => $config["name"] ], JSON_PRETTY_PRINT)); } else { file_put_contents($_SERVER["DOCUMENT_ROOT"] . "/data/general.json", json_encode([ "description" => $_GET['description'], "name" => $config["name"] ], JSON_PRETTY_PRINT)); } header("Location: /admin/general"); die(); } if (isset($_GET["name"])) { $config = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/general.json"), true); if (trim($_GET['name']) === "") { file_put_contents($_SERVER["DOCUMENT_ROOT"] . "/data/general.json", json_encode([ "description" => $config["description"], "name" => "Cloudburst System" ], JSON_PRETTY_PRINT)); } else { file_put_contents($_SERVER["DOCUMENT_ROOT"] . "/data/general.json", json_encode([ "description" => $config['description'], "name" => $_GET["name"] ], JSON_PRETTY_PRINT)); } header("Location: /admin/general"); die(); } } ?>

General Preferences