Location: PHPKode > scripts > DGUESTBOOK > dguestbook/admin/admin.php
<?php
$filename	 = "../entries.html";

$fp = fopen( $filename,"r"); 
$old_data = fread($fp, 80000); 
fclose( $fp );

echo "entries=$old_data";

$submit 	= $_POST["submit"];
$post	= $_POST["entries"];
$post	= stripslashes($post);


if ($submit == "yes") {
	$fp = fopen( $filename,"w"); 
	if(!$fp) die("&error	=Failed to write!");
	fwrite($fp, $post, 800000); 
	fclose( $fp ); 
}	
?>
Return current item: DGUESTBOOK