Location: PHPKode > projects > Ptk-forensics > ptk/lib/modal_investigator.php
<?
/*
PTK  - DFLabs
Copyright (C) 2008 - DFLabs srl - All rights reserved
hide@address.com
*/
include("check_session.php");
if (strcmp($_SESSION['user'],"admin")==0){
	$inv_token = md5(uniqid(rand(), TRUE));
	$_SESSION['inv_token'] = $inv_token;
	$_SESSION['inv_token_time'] = time();
	?>
	<b style="float:left">Create new investigator</b><img style="float:right; cursor: pointer" src="../img/cancel.png" onclick="closeMessage()">
	<br><hr>
	<form method="post" action="new_investigator.php" name="myform" onsubmit="return(checkInvestigator('insert'))">
		<input type=hidden name=ptktoken VALUE="<?=$inv_token?>"/>
		<table class="form">
			<tr><td>*Name: </td><td> <input name="name" id="name" style="width:220px"></td></tr>
			<tr><td>*Surname: </td><td> <input name="surname" id="surname" style="width:220px"></td></tr>
			<tr><td>*Primary mail: </td><td> <input name="mail1" id="mail1" style="width:220px"></td></tr>
			<tr><td>Secondary mail: </td><td> <input name="mail2" style="width:220px"></td></tr>
			<tr><td>*Phone: </td><td> <input name="phone1" id="phone1" style="width:220px"></td></tr>
			<tr><td>Mobile: </td><td> <input name="phone2" style="width:220px"></td></tr>
			<tr><td>*Username: </td><td> <input name="username" id="username" style="width:220px"></td></tr>
			<tr><td>*Password: </td><td> <input autocomplete="off" type="password" name="password1" id="password1" style="width:220px"></td></tr>
			<tr><td>*Confirm password: </td><td> <input autocomplete="off" type="password" name="password2" id="password2" style="width:220px"></td></tr>
			<tr><td></td></tr>
			<tr><td></td></tr>
			<tr><td></td><td style="text-align: right"><input type="submit" value="Create"></td></tr>
		</table>
		<script type="text/javascript">
		document.myform.name.focus();
		</script>	
	</form>
<?}?>
Return current item: Ptk-forensics