# HG changeset patch # User Matti Hamalainen # Date 1382384849 -10800 # Node ID 6e076b3630a0ad590d95065ff4acdeeb04fbcbde # Parent 324f3a415237659828e898fd0017caa9ba76592d Cleanup the code a bit. diff -r 324f3a415237 -r 6e076b3630a0 admin.inc.php --- a/admin.inc.php Mon Oct 21 22:11:40 2013 +0300 +++ b/admin.inc.php Mon Oct 21 22:47:29 2013 +0300 @@ -35,14 +35,9 @@ { echo "

Oh noes, admin configuration not done!

\n". "

Better go and prod that, so you get to use the fine admin interface.

\n"; - $authState = "error"; } else -if (stAdmSessionAuth()) -{ - $authState = "ok"; -} -else +if (!stAdmSessionAuth(FALSE)) { // Perform authentication if we are not in session already echo @@ -53,11 +48,8 @@ stGetFormPasswordInput("admpass", "", "")."\n". stGetFormSubmitInput("submit", "Login"). "\n"; - - $authState = "login"; } - -if ($authState == "ok") +else { ?>