diff --git a/includes/config.inc.php-dist b/includes/config.inc.php-dist index 093d9b0..dcb5a2b 100644 --- a/includes/config.inc.php-dist +++ b/includes/config.inc.php-dist @@ -1,24 +1,14 @@ doc/apiconf.txt'; $blocklogin = TRUE; } -if (!preg_match('/^[01]$/', $apivers)) { - $errormsg = "The value for \$apivers is incorrect your config"; - $blocklogin = TRUE; -} - -if (!isset($authmethod) or !preg_match('/^(xapikey|userpass|auto)$/', $authmethod)) { - $errormsg = "The value for \$authmethod is incorrect in your config"; - $blocklogin = TRUE; -} - if (!isset($apiproto) or !preg_match('/^http(s)?$/', $apiproto)) { $errormsg = "The value for \$apiproto is incorrect in your config. Did you configure it?"; $blocklogin = TRUE; @@ -51,12 +41,6 @@ if (!isset($logo) or empty($logo)) { /* No need to change stuf below */ -if ($apivers == 0) { - $apipath = ""; -} elseif ($apivers == 1) { - $apipath = "/api/v1"; -} - if (function_exists('curl_init') === FALSE) { $errormsg = "You need PHP Curl to run nsedit"; $blocklogin = TRUE;