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

@ -61,6 +61,12 @@ if (class_exists('SQLite3') === FALSE) {
$errormsg = "You need PHP SQLite3 to run nsedit"; $errormsg = "You need PHP SQLite3 to run nsedit";
$blocklogin = TRUE; $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'])); $defaults['defaulttype'] = ucfirst(strtolower($defaults['defaulttype']));