From c9c3ed7a59fb73ad9bae3d4a48df422a9d1ad0d5 Mon Sep 17 00:00:00 2001 From: Tristan Schneider Date: Thu, 10 Dec 2020 18:53:11 +0100 Subject: [PATCH] added customization from json config file --- index.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index beea5c9..ac69c23 100644 --- a/index.php +++ b/index.php @@ -38,19 +38,22 @@ if (array_key_exists("submitted", $_REQUEST)) { header("location: ".htmlentities($_SERVER['PHP_SELF'])); } +$raw_json_config = file_get_contents("data/config.json"); +$config_data = json_decode($raw_json_config, false); + ?> - One Word Each + <?php print($config_data->title ?? "One Word Each"); ?> - + " type="image/x-icon"> - - + +

One Word Each Seite

" width="90%">

headline ?? "One Word Each Seite"); ?>