diff --git a/includes/misc.inc.php b/includes/misc.inc.php index 58d2703..9002ccc 100644 --- a/includes/misc.inc.php +++ b/includes/misc.inc.php @@ -61,6 +61,12 @@ if (class_exists('SQLite3') === FALSE) { $errormsg = "You need PHP SQLite3 to run nsedit"; $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']));