Example #1
0
Session::initSession();
if (Auth::checkAuth()) {
	Session::refreshSession();
}

if (isset($_POST['dologin']) && !Auth::checkAuth()) {
  $auth = Auth::getAuthObject($conf['auth']['type'], $conf['auth']['params']);
  if ($auth->authenticateLDAP($_POST['user'], $_POST['pass'])) {
    header('Location: index.php?'.session_name().'='.session_id());
  } else {
	Session::delSession();
        //header('Location: '.$conf['baseurl'].'/');
	header('Location: index.php?login_err=1');
  }
} else {
  Session::delSession();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>dnsZone-Manager</title>
	<link href="<?echo $conf['baseurl']?>/style/style.css" rel="stylesheet" type="text/css" />
</head>

<body style="padding: 0px; margin: 0px;" onload="inputfocus();">
<body style="padding: 0px; margin: 0px;">
<table class="topbar">
<tr>
  <td align="left" valign="top" style="width: 300px;">
    <span class="header">dnsZone Manager</span><br>