From 58d5dcb626bdf59c2d65ee28c58105f3b2bb89df Mon Sep 17 00:00:00 2001 From: Ruben Herold Date: Fri, 1 Jan 2016 20:27:44 +0100 Subject: [PATCH] Add a check for openssl issue #61 --- includes/misc.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) 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']));