Fixes #21 - Undefined variable: _SESSION
This commit is contained in:
parent
c1af05f403
commit
73b7795bc0
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user