From 574db00d94adc38c1c2ba5a0de36a5ed3dc7f255 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Tue, 2 Aug 2016 14:15:57 +0200 Subject: [PATCH] Cleanup. We don't need this stuff for v4 anymore --- includes/config.inc.php-dist | 12 +----------- includes/misc.inc.php | 18 +----------------- 2 files changed, 2 insertions(+), 28 deletions(-) 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;