Mercurial > hg > fapweb
view admlogin.php @ 511:6fe66ea0e954
Move most of the results code to site module, remove the support for HTML
type output.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 08 Dec 2013 02:16:26 +0200 |
parents | 8df523e6326a |
children | ed2247111fdd |
line wrap: on
line source
<? // // FAPWeb Simple Demoparty System // Administration interface session login handler // (C) Copyright 2012-2013 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"); ?>