X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/19f57ab41e51c2598a0f8bd91d722c1fe9b5edfe..880e7ccaecd3d018325be05e63770863502bcbae:/login.php diff --git a/login.php b/login.php index c83534c..714b5c5 100644 --- a/login.php +++ b/login.php @@ -1,17 +1,40 @@ +if (empty($User)) { + ob_clean(); + require_once 'login.inc.php'; + return TRUE; +} -

Sitebeheer

+if (isset($_GET['goto'])) { + ob_clean(); + $target = ltrim($_GET['goto'], '/'); + header("Location: /$target"); + http_response_code(302); + exit; +} -

-Welkom, je bent ingelogd als . Onderaan elke pagina staat een link om inhoud aan te passen. -

+$part = [ + 'user' => $User['name'], +]; +print getoutput($part); +if (empty($Args) and !empty($User['admin'])) { + include_once 'admin/index.html'; + include_once 'admin.php'; +}