Explorar el Código

add debug to blackhole

CauseFX hace 4 años
padre
commit
1fc2a4d144
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 0
      api/classes/organizr.class.php
  2. 1 1
      api/functions/config-functions.php

+ 1 - 0
api/classes/organizr.class.php

@@ -188,6 +188,7 @@ class Organizr
 			$currentIP = $this->userIP();
 			if ($this->config['blacklisted'] !== '') {
 				if (in_array($currentIP, $this->arrayIP($this->config['blacklisted']))) {
+					$this->debug('User was sent to blackhole');
 					die($this->config['blacklistedMessage']);
 				}
 			}

+ 1 - 1
api/functions/config-functions.php

@@ -8,7 +8,7 @@ trait ConfigFunctions
 			$this->setAPIResponse('success', null, 200, $this->config[$item]);
 			return $this->config[$item];
 		} else {
-			$this->setAPIResponse('error', '${$this->config[$item]} is not defined', 404);
+			$this->setAPIResponse('error', $item . ' is not defined or is blank', 404);
 			return false;
 		}