php-gallery/app/settings/settings.php

21 lines
638 B
PHP
Raw Normal View History

2022-09-08 13:29:45 +00:00
<?php
/*
|-------------------------------------------------------------
| Settings (decode)
|-------------------------------------------------------------
| This is for decoding the settings Json, used throughout
| most of the website. Used for settings things such as
| the default background and accent colour
|-------------------------------------------------------------
*/
2022-09-20 15:47:23 +00:00
$user_import = file_get_contents(__DIR__."/manifest.json");
2022-09-08 13:29:45 +00:00
$user_settings = json_decode($user_import, true);
2022-09-20 15:47:23 +00:00
foreach ($user_settings->data as $website) {
foreach ($website->debug as $debug) {
2022-09-08 13:29:45 +00:00
}
}
2022-09-20 15:47:23 +00:00
2022-09-08 13:29:45 +00:00
$debug = $user_settings["website"]["debug"];