From 94f722b4d5f90220d952dc7371c335ce68462d50 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Thu, 26 Feb 2015 16:01:23 +0100 Subject: [PATCH] Check for existance of php Curl, or else reject to login Closes #33 --- includes/misc.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/misc.inc.php b/includes/misc.inc.php index d0b31dd..0266fff 100644 --- a/includes/misc.inc.php +++ b/includes/misc.inc.php @@ -20,6 +20,12 @@ if (!isset($authdb)) { } /* No need to change stuf below */ + +if (function_exists('curl_init') === FALSE) { + $errormsg = "You need PHP Curl to run nsedit"; + $blocklogin = TRUE; +} + $defaults['defaulttype'] = ucfirst(strtolower($defaults['defaulttype'])); if (isset($authdb) && !file_exists($authdb)) {