From: Alan Date: Thu, 2 Mar 2023 03:43:35 +0000 (+0800) Subject: ignore login request for testing X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=e634f8fceb19f9a547f440a86f3d4a1ddc619d0f ignore login request for testing --- diff --git a/Pman/Login.php b/Pman/Login.php index 6ca67e5..1378c87 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -81,7 +81,9 @@ class Pman_Login extends Pman if (!empty($_REQUEST['loginPublic'])) { $this->switchPublicUser($_REQUEST['loginPublic']); } - + if (!empty($_SERVER['HTTP_USER_AGENT']) && preg_match('/^check_http.', $_SERVER['HTTP_USER_AGENT'])) { + die("server is alive"); + } $this->jerr("INVALID REQUEST"); exit; }