Name:
E-mail (optional):
Homepage URL (optional):
Comment:
Insert name "paulo":
", $message); if (get_magic_quotes_gpc()) { $message = stripslashes($message); $name = stripslashes($name); } $date = date("l, F j Y"); list($user_name, $mail_domain) = split("\@", $email); if (!$email && (!$homepageurl || $homepageurl=="http:\\") ) $message = "$name -- $date --
$message
\r\n"; else if ($email && (!$homepageurl || $homepageurl=="http:\\") ) $message = "$name -- $date -- $user_name@$mail_domain
$message
\r\n"; else if (!$email && $homepageurl) $message = "$name -- $date -- WebPage
$message
\r\n"; else $message = "$name -- $date -- $user_name@$mail_domain -- WebPage
$message
\r\n"; $textfile = "admin/guestbook.txt"; if ($fp = @fopen ($textfile, "r")) // read old messages { $oldmessages = @fread($fp,filesize($textfile)); @fclose(fp); } $fp = fopen ($textfile, "w"); // write new message and then old messages fwrite ($fp, $message); fwrite ($fp, $oldmessages); fclose ($fp); } @readfile("admin/guestbook.txt"); ?>