# HG changeset patch # User Matti Hamalainen # Date 1382706725 -10800 # Node ID fa7f3defffd0ee66ce47581c2c0d042c3586594d # Parent 5b92f130ba87dd77baab61aba84798027c526e1c Comments. diff -r 5b92f130ba87 -r fa7f3defffd0 admlogin.php --- a/admlogin.php Fri Oct 25 16:11:49 2013 +0300 +++ b/admlogin.php Fri Oct 25 16:12:05 2013 +0300 @@ -9,8 +9,16 @@ require "msite.inc.php"; require "msession.inc.php"; +// +// Initialize +// +stSetupCacheControl(); stSetupCacheControl(); + +// +// Authenticate +// $password = stGetSetting("admPassword"); if (stGetRequestItem("admpass", FALSE) == $password) { diff -r 5b92f130ba87 -r fa7f3defffd0 usrlogin.php --- a/usrlogin.php Fri Oct 25 16:11:49 2013 +0300 +++ b/usrlogin.php Fri Oct 25 16:12:05 2013 +0300 @@ -9,16 +9,20 @@ require "msite.inc.php"; require "msession.inc.php"; +// +// Initialize +// stSetupCacheControl(); -// Initiate SQL database connection if (!stConnectSQLDB()) die("Could not connect to SQL database."); -// Fetch non-"hardcoded" settings from SQL database stReloadSettings(); +// +// Authenticate +// $gotoPage = stGetRequestItem("goto", FALSE); $password = stGetRequestItem("key", FALSE);