Mercurial > hg > fapweb
annotate admlogin.php @ 565:ed2247111fdd
Bump copyright years.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 10 Mar 2014 17:08:33 +0200 |
parents | 8df523e6326a |
children | ce11ea112a65 |
rev | line source |
---|---|
0 | 1 <? |
136 | 2 // |
3 // FAPWeb Simple Demoparty System | |
4 // Administration interface session login handler | |
565 | 5 // (C) Copyright 2012-2014 Tecnic Software productions (TNSP) |
136 | 6 // |
32 | 7 $sessionType = "admin"; |
175
8df523e6326a
User require_once instead of require.
Matti Hamalainen <ccr@tnsp.org>
parents:
171
diff
changeset
|
8 require_once "mconfig.inc.php"; |
8df523e6326a
User require_once instead of require.
Matti Hamalainen <ccr@tnsp.org>
parents:
171
diff
changeset
|
9 require_once "msite.inc.php"; |
8df523e6326a
User require_once instead of require.
Matti Hamalainen <ccr@tnsp.org>
parents:
171
diff
changeset
|
10 require_once "msession.inc.php"; |
0 | 11 |
156 | 12 // |
13 // Initialize | |
14 // | |
15 stSetupCacheControl(); | |
5
76c3b89d7b11
Improve voting, clean up the code, etc.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
16 |
156 | 17 |
18 // | |
19 // Authenticate | |
20 // | |
32 | 21 $password = stGetSetting("admPassword"); |
22 if (stGetRequestItem("admpass", FALSE) == $password) | |
23 { | |
51 | 24 if (!stSessionStart(SESS_ADMIN, $password, "admTimeout")) |
32 | 25 error_log("Admin session AUTH LOGIN failed (session setup)"); |
26 } | |
15
ea0f98a0bed8
Fix some issues and bugs caused by recent changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
27 else |
ea0f98a0bed8
Fix some issues and bugs caused by recent changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
28 { |
32 | 29 error_log("Admin session AUTH LOGIN failed (password)"); |
15
ea0f98a0bed8
Fix some issues and bugs caused by recent changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
30 } |
0 | 31 |
171
705dabdc37d4
Move administration interface page to separate layout, to make things less cramped.
Matti Hamalainen <ccr@tnsp.org>
parents:
168
diff
changeset
|
32 header("Location: admin.php"); |
0 | 33 ?> |