Mercurial > hg > fapweb
comparison admlogin.php @ 32:36392d1d6b5f
Moar work.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 10 Dec 2012 11:14:05 +0200 |
parents | login.php@bf567e6402bf |
children | 5bf22431176c |
comparison
equal
deleted
inserted
replaced
31:eaa65f0b3ce7 | 32:36392d1d6b5f |
---|---|
1 <? | |
2 $sessionType = "admin"; | |
3 require "mconfig.inc.php"; | |
4 require "msite.inc.php"; | |
5 | |
6 stSetupCacheControl(); | |
7 | |
8 $target = stGetRequestItem("goto", FALSE); | |
9 if (!stCheckHTTPS() || $target === FALSE || $target == "" || strpos($target, "login.php") !== FALSE) | |
10 exit; | |
11 | |
12 $password = stGetSetting("admPassword"); | |
13 if (stGetRequestItem("admpass", FALSE) == $password) | |
14 { | |
15 if (!stSessionStart($password, "admTimeout")) | |
16 error_log("Admin session AUTH LOGIN failed (session setup)"); | |
17 } | |
18 else | |
19 { | |
20 error_log("Admin session AUTH LOGIN failed (password)"); | |
21 } | |
22 | |
23 header("Location: ".$target); | |
24 ?> |