|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* ***************************************************************************** |
|
5
|
|
|
* Contributions to this work were made on behalf of the GÉANT project, a |
|
6
|
|
|
* project that has received funding from the European Union’s Framework |
|
7
|
|
|
* Programme 7 under Grant Agreements No. 238875 (GN3) and No. 605243 (GN3plus), |
|
8
|
|
|
* Horizon 2020 research and innovation programme under Grant Agreements No. |
|
9
|
|
|
* 691567 (GN4-1) and No. 731122 (GN4-2). |
|
10
|
|
|
* On behalf of the aforementioned projects, GEANT Association is the sole owner |
|
11
|
|
|
* of the copyright in all material which was developed by a member of the GÉANT |
|
12
|
|
|
* project. GÉANT Vereniging (Association) is registered with the Chamber of |
|
13
|
|
|
* Commerce in Amsterdam with registration number 40535155 and operates in the |
|
14
|
|
|
* UK as a branch of GÉANT Vereniging. |
|
15
|
|
|
* |
|
16
|
|
|
* Registered office: Hoekenrode 3, 1102BR Amsterdam, The Netherlands. |
|
17
|
|
|
* UK branch address: City House, 126-130 Hills Road, Cambridge CB2 1PQ, UK |
|
18
|
|
|
* |
|
19
|
|
|
* License: see the web/copyright.inc.php file in the file structure or |
|
20
|
|
|
* <base_url>/copyright.php after deploying the software |
|
21
|
|
|
*/ |
|
22
|
|
|
|
|
23
|
|
|
require_once "autoloader.php"; |
|
24
|
|
|
require_once __DIR__ . "/../packageRoot.php"; |
|
25
|
|
|
|
|
26
|
|
|
if (!file_exists(ROOT . "/config/Master.php")) { |
|
27
|
|
|
echo "Master configuration file not found. You need to configure the product! At least config/Master.php is required!"; |
|
28
|
|
|
throw new Exception("Master config file not found!"); |
|
29
|
|
|
} |
|
30
|
|
|
|
|
31
|
|
|
/* load sub-configs if we are dealing with those in this installation */ |
|
32
|
|
|
|
|
33
|
|
|
if (\config\Master::CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == 'LOCAL' || \config\Master::CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == 'LOCAL') { |
|
34
|
|
|
if (!file_exists(ROOT . "/config/ConfAssistant.php")) { |
|
35
|
|
|
echo "ConfAssistant configuration file not found. You need to configure the product!"; |
|
36
|
|
|
throw new Exception("ConfAssistant config file not found!"); |
|
37
|
|
|
} |
|
38
|
|
|
} |
|
39
|
|
|
|
|
40
|
|
|
if (\config\Master::CONFIG['FUNCTIONALITY_LOCATIONS']['DIAGNOSTICS'] == 'LOCAL') { |
|
41
|
|
|
if (!file_exists(ROOT . "/config/Diagnostics.php")) { |
|
42
|
|
|
echo "Diagnostics configuration file not found. You need to configure the product!"; |
|
43
|
|
|
throw new Exception("Diagnostics config file not found!"); |
|
44
|
|
|
} |
|
45
|
|
|
} |