Location: PHPKode > projects > Ptk-forensics > ptk/index.php
<?
/*
PTK  - DFLabs
Copyright (C) 2008 - DFLabs srl - All rights reserved
hide@address.com
*/
if (!file_exists("config/install.lock"))
        header("location: install.php");

include ("config/conf.php");

session_start();
if(!isset($_GET['err'])){
	$date = date('Ymd');
	if(file_exists("$INSTALLDIR/log/$date.log")){
		fopen("$INSTALLDIR/log/$date.log", 'a');
	}else{
		fopen("$INSTALLDIR/log/$date.log", 'w');
	}
	$_SESSION['log'] = "$INSTALLDIR/log/$date.log";
}
$login = md5(uniqid(rand(), TRUE));
$_SESSION['login'] = $login;
?>
<html>
<head>
	<title>PTK</title>
	<link rel='stylesheet' href='css/style.css' type='text/css'>	
</head>
<body style="vertical-align: middle">
	<div id="login">
		<div id="loginform">
			<form name="login" method="POST" action="lib/login.php">
			Username<br>
			<input type="text" id="username" name="username" size="20">
			<br>
			Password<br>
			<input type="password" name="password" size="20" AUTOCOMPLETE="off">
			<br><br>
			<input type="hidden" name="token" value="<?=$login?>"/>
			<input type="submit" value="Login">
			<?if (isset($_GET['err'])){?><b>Login error</b><?}?>
			</form>
		</div>
	</div>
</body>
</html>

<script type="text/javascript">
document.getElementById('username').focus();
</script>	
Return current item: Ptk-forensics