Add a check for openssl issue #61

This commit is contained in:
Ruben Herold 2016-01-01 20:27:44 +01:00
parent bff07c1244
commit 58d5dcb626

View file

@ -62,6 +62,12 @@ if (class_exists('SQLite3') === FALSE) {
$blocklogin = TRUE;
}
if (function_exists('openssl_random_pseudo_bytes') === FALSE) {
$errormsg = "You need PHP compiled with openssl to run nsedit";
$blocklogin = TRUE;
}
$defaults['defaulttype'] = ucfirst(strtolower($defaults['defaulttype']));
if (isset($authdb) && !file_exists($authdb) && class_exists('SQLite3')) {