Fixes #21 - Undefined variable: _SESSION

This commit is contained in:
Deon George 2019-04-18 23:17:24 +10:00
parent c1af05f403
commit 73b7795bc0

View File

@ -57,6 +57,11 @@ if (defined('CONFDIR'))
else else
$app['config_file'] = 'config.php'; $app['config_file'] = 'config.php';
if (! is_readable($app['config_file'])) {
if (ob_get_level()) ob_end_clean();
die(sprintf("Missing configuration file <b>%s</b> - have you created it?",$app['config_file']));
}
# Make sure this PHP install has session support # Make sure this PHP install has session support
if (! extension_loaded('session')) if (! extension_loaded('session'))
error('<p>Your install of PHP appears to be missing php-session support.</p><p>Please install php-session support before using phpLDAPadmin.<br /><small>(Dont forget to restart your web server afterwards)</small></p>','error',null,true); error('<p>Your install of PHP appears to be missing php-session support.</p><p>Please install php-session support before using phpLDAPadmin.<br /><small>(Dont forget to restart your web server afterwards)</small></p>','error',null,true);