PHPServerMonitor Public Status Page

In file phpservermon/src/psm/Service/User.php below line 97 $this->session = $session; add

$kl = "";
$kl = isset($_GET["kl"]) ? $_GET["kl"] : '';
if ($kl == "public"){
$user_id = 3;
$this->setUserLoggedIn($user_id, true);
$user = $this->getUser($user_id);
$this->newRememberMeCookie();
}

In file phpservermon/src/psm/Module/AbstractController.php edit line 274 to remove functions you do not want public to have.

  • To use auth on a web page you need the php-mcrypt package
Back to top