Location: PHPKode > projects > Nfg > nfg/code/login.php
<?php
if(!defined('INC'))
	die();

if(!defined(USERID) || !USERID){
$_SESSION['randPwdNr']=mt_rand();
?>
<script language="JavaScript" src="sha1.js"></script>
<script language="JavaScript">
<!--
function aL(){
   rd=<?php echo $_SESSION['randPwdNr']; ?>;
   document.login.pwd.value=hex_sha1(document.login.pwd.value);
   document.login.pwd.value=document.login.pwd.value+""+rd;
   document.login.pwd.value=hex_sha1(document.login.pwd.value);
}
// -->
</script>
<form name="login" id="login" method="POST" action="index.php">
<input type="text" name="usr" />
<input type="password" name="pwd" />
<input type="submit" name="authSubmit" value="Login" onClick="javascript:aL();" />
</form> <a href="index.php?m=register">Register</a>
<?php
}
?>
Return current item: Nfg