<?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;
    }