This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
dogstats/web/pages/err/controller.php
Chris 0ed8ab9137
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
perfected automated logins
2023-10-29 19:52:08 +01:00

18 lines
361 B
PHP

<?php
class Err extends Page {
function notfound($params=false)
{
$this->set("page",$params[0]);
$this->set('template', "notfound.html");
}
function notallowed()
{
$this->set("loggedin",(isset($_SESSION['user']) && $_SESSION['user'] !== false));
$this->set('template', "notallowed.html");
}
}