<?
$this_day=(date("D, j F Y"));
$lan = $HTTP_ACCEPT_LANGUAGE;
$user = explode ('/', $HTTP_USER_AGENT);

if($name==""){
header ('Location: history.php?npage=1');
}
elseif($mess==""){
header ('Location: history.php?npage=1');
}
else{
           $text = "$name::$mess::$tz $this_day::$user[0] $lan::$mail::$HTTP_USER_AGENT::$REMOTE_ADDR::";

           $fp=@fopen("gb.txt","a");

           @fputs($fp,"$text \r\n");
           @fclose($fp);
header ('Location: history.php?npage=1');
}


?>