Check for existance of php Curl, or else reject to login

Closes 
This commit is contained in:
Mark Schouten 2015-02-26 16:01:23 +01:00
parent 0794111cda
commit 94f722b4d5

View file

@ -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)) {