Merge pull request #71 from ruben-herold/master

Add a check for openssl issue #61
This commit is contained in:
Tuxis Internet Engineering V.O.F 2016-01-02 11:10:02 +01:00
commit 21ef7202a3

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']));