Mercurial > hg > fapweb
view admlogin.php @ 1120:b2bca5f6d0ff default tip
Cosmetic cleanup: remove trailing whitespace.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 13 Dec 2020 13:47:13 +0200 |
parents | 7da8bde9b7be |
children |
line wrap: on
line source
<?php // // FAPWeb - Simple Web-based Demoparty Management System // Administration interface session login handler // (C) Copyright 2012-2017 Tecnic Software productions (TNSP) // $sessionType = "admin"; require_once "mconfig.inc.php"; require_once "msite.inc.php"; require_once "msession.inc.php"; // // Initialize // stSetupCacheControl(); // // Authenticate // $sfrom = $_SERVER["REMOTE_ADDR"]; $password = stGetSetting("admPassword"); if (stGetRequestItem("admpass", FALSE) == $password) { if (!stSessionStart(SESS_ADMIN, $password, "admTimeout")) stLogError("Admin session AUTH LOGIN failed (session setup) @ ".$sfrom); else stLogError("Admin session LOGIN SUCCESS @ ".$sfrom); } else { stLogError("Admin session AUTH LOGIN failed (password) @ ".$sfrom); } header("Location: admin.php"); ?>