Mercurial > hg > fapweb
view admlogin.php @ 1117:43c384a37d19
Update README.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 14 Oct 2019 10:42:35 +0300 |
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"); ?>