Location: PHPKode > projects > HuskyMail Webmail > contacts/update.php
<?php
if (isset($_POST['encrypt'])) {
	$content = "<"."?php\r";
	$content .= "$"."test_encrypt = \"".$foo->encode($_POST['test_encrypt'],$_POST['passkey'])."\";\r";
	$content .= "$"."uniqueid = \"".$foo->encode($date,$_POST['passkey'])."\";\r";
	$content .= "$"."identifier = \"".$foo->encode($_POST['identifier'],$_POST['passkey'])."\";\r";
	$content .= "$"."emailhome = \"".$foo->encode($_POST['emailhome'],$_POST['passkey'])."\";\r";
	$content .= "$"."emailwork = \"".$foo->encode($_POST['emailwork'],$_POST['passkey'])."\";\r";
	$content .= "$"."firstname = \"".$foo->encode($_POST['firstname'],$_POST['passkey'])."\";\r";
	$content .= "$"."middlename = \"".$foo->encode($_POST['middlename'],$_POST['passkey'])."\";\r";
	$content .= "$"."lastname = \"".$foo->encode($_POST['lastname'],$_POST['passkey'])."\";\r";
	$content .= "$"."position = \"".$foo->encode($_POST['position'],$_POST['passkey'])."\";\r";
	$content .= "$"."company = \"".$foo->encode($_POST['company'],$_POST['passkey'])."\";\r";
	$content .= "$"."url = \"".$foo->encode($_POST['url'],$_POST['passkey'])."\";\r";
	$content .= "$"."phonehome = \"".$foo->encode($_POST['phonehome'],$_POST['passkey'])."\";\r";
	$content .= "$"."phonework = \"".$foo->encode($_POST['phonework'],$_POST['passkey'])."\";\r";
	$content .= "$"."phonecell = \"".$foo->encode($_POST['phonecell'],$_POST['passkey'])."\";\r";
	$content .= "$"."phonefax = \"".$foo->encode($_POST['phonefax'],$_POST['passkey'])."\";\r";
	$content .= "$"."birthday = \"".$foo->encode($_POST['birthday'],$_POST['passkey'])."\";\r";
	$content .= "$"."birthmonth = \"".$foo->encode($_POST['birthmonth'],$_POST['passkey'])."\";\r";
	$content .= "$"."birthyear = \"".$foo->encode($_POST['birthyear'],$_POST['passkey'])."\";\r";
	$content .= "$"."addresshome = \"".$foo->encode($_POST['addresshome'],$_POST['passkey'])."\";\r";
	$content .= "$"."addresswork = \"".$foo->encode($_POST['addresswork'],$_POST['passkey'])."\";\r";
	$content .= "$"."addresspostal = \"".$foo->encode($_POST['addresspostal'],$_POST['passkey'])."\";\r";
	$content .= "$"."notes = \"".$foo->encode($_POST['notes'],$_POST['passkey'])."\";\r";
	$content .= "?".">";
}
else {
	$content = "<"."?php\r";
	$content .= "$"."test_encrypt = \"".$_POST['test_encrypt']."\";\r";
	$content .= "$"."uniqueid = \"".$date."\";\r";
	$content .= "$"."identifier = \"".$_POST['identifier']."\";\r";
	$content .= "$"."emailhome = \"".$_POST['emailhome']."\";\r";
	$content .= "$"."emailwork = \"".$_POST['emailwork']."\";\r";
	$content .= "$"."firstname = \"".$_POST['firstname']."\";\r";
	$content .= "$"."middlename = \"".$_POST['middlename']."\";\r";
	$content .= "$"."lastname = \"".$_POST['lastname']."\";\r";
	$content .= "$"."position = \"".$_POST['position']."\";\r";
	$content .= "$"."company = \"".$_POST['company']."\";\r";
	$content .= "$"."url = \"".$_POST['url']."\";\r";
	$content .= "$"."phonehome = \"".$_POST['phonehome']."\";\r";
	$content .= "$"."phonework = \"".$_POST['phonework']."\";\r";
	$content .= "$"."phonecell = \"".$_POST['phonecell']."\";\r";
	$content .= "$"."phonefax = \"".$_POST['phonefax']."\";\r";
	$content .= "$"."birthday = \"".$_POST['birthday']."\";\r";
	$content .= "$"."birthmonth = \"".$_POST['birthmonth']."\";\r";
	$content .= "$"."birthyear = \"".$_POST['birthyear']."\";\r";
	$content .= "$"."addresshome = \"".$_POST['addresshome']."\";\r";
	$content .= "$"."addresswork = \"".$_POST['addresswork']."\";\r";
	$content .= "$"."addresspostal = \"".$_POST['addresspostal']."\";\r";
	$content .= "$"."notes = \"".$_POST['notes']."\";\r";
	$content .= "?".">";
}
$filename = $bookdir.$date.".php";
@touch($filename);
@file_put_contents($filename,$content);
?>
Return current item: HuskyMail Webmail