Mercurial > hg > fapweb
view admlogin.php @ 685:b05376c7ece8
Add confirmation for changing entry's compo_id.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 09 Nov 2014 19:24:18 +0200 |
parents | ce11ea112a65 |
children | 6178399820b9 |
line wrap: on
line source
<? // // FAPWeb - Simple Web-based Demoparty Management System // Administration interface session login handler // (C) Copyright 2012-2014 Tecnic Software productions (TNSP) // $sessionType = "admin"; require_once "mconfig.inc.php"; require_once "msite.inc.php"; require_once "msession.inc.php"; // // Initialize // stSetupCacheControl(); // // Authenticate // $password = stGetSetting("admPassword"); if (stGetRequestItem("admpass", FALSE) == $password) { if (!stSessionStart(SESS_ADMIN, $password, "admTimeout")) error_log("Admin session AUTH LOGIN failed (session setup)"); } else { error_log("Admin session AUTH LOGIN failed (password)"); } header("Location: admin.php"); ?>