|
|
@ -44,7 +44,7 @@ if (!function_exists('json_decode')) |
|
|
|
$config = isset($opts['c']) ? $opts['c'] : __DIR__.'/config.json'; |
|
|
|
if (!file_exists($config)) |
|
|
|
logger(1, 'Config file not found: '.$config, 1, true); |
|
|
|
if (!$_set = @json_decode(@file_get_contents(__DIR__.'/config.json'))) |
|
|
|
if (!$_set = @json_decode(@file_get_contents($config))) |
|
|
|
logger(1, 'Unable to load or parse configuration file', 1, true); |
|
|
|
|
|
|
|
// Loop indefinitely
|
|
|
|