Mercurial > hg > fapweb
view admlogin.php @ 1096:bbc0a3d0b51e
Major renaming / refactor of site messages. Some that were previously
modifiable from admin interface are now "hardcoded" in the configuration
file. Having these settings made modifiable from there made no sense
and just took space in the UI.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 27 Jan 2017 22:15:06 +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"); ?>