changeset 156:fa7f3defffd0

Comments.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Oct 2013 16:12:05 +0300
parents 5b92f130ba87
children 5136563c1f04
files admlogin.php usrlogin.php
diffstat 2 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
 {
--- 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);