view login.php @ 28:bf567e6402bf

Moar work.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 08 Dec 2012 14:40:13 +0200
parents ea0f98a0bed8
children
line wrap: on
line source

<?
require "mconfig.inc.php";
require "msite.inc.php";

stSetupCacheControl();

$target = stGetRequestItem("goto", FALSE);
if ($target === FALSE || $target == "" || strpos($target, "login.php") !== FALSE)
  exit;

if (stGetRequestItem("admpass", FALSE) == stGetSetting("admPassword"))
  stAdmSessionStart();
else
{
  if (stGetSetting("debug")) error_log("Admin session AUTH LOGIN failed (".stGetRequestItem("admpass", FALSE).")");
}

header("Location: https://".$target);
?>