b21dd0518d
Prepared the website structure for the new layout
9 lines
321 B
PHP
9 lines
321 B
PHP
<?php
|
|
require_once ( 'lib/php/classes/Database.php' );
|
|
function load_config ( ) : array {
|
|
$config = file_get_contents ( 'config.json' );
|
|
$config = json_decode ( $config, true );
|
|
$config [ 'installation_path' ] = substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 );
|
|
return $config;
|
|
}
|