initial commit
This commit is contained in:
commit
b65642cd0a
18 changed files with 1543 additions and 0 deletions
14
load_config.php
Normal file
14
load_config.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
$config = require('./config.php');
|
||||
|
||||
// a basic validation of config keys
|
||||
if (!(isset($config['domain']) && strlen($config['domain']) > 0)) {
|
||||
die('Domain key not present in config');
|
||||
}
|
||||
if (!(isset($config['modules']) && count($config['modules']) > 0)) {
|
||||
die('Modules key not present in config or no modules configured');
|
||||
}
|
||||
if (!(isset($config['auth']) && count($config['auth']) > 0)) {
|
||||
die('Auth key not present in config or no auth configured');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue