';exit;} if($fp) { $s = fread($fp,filesize($fn)); fclose($fp); $lines = preg_replace("@^\n*
@",'', preg_replace("@
\n*
@", '', '
'.
    preg_replace("/\n([^a-z\n]+)\n/m", "\n\\1\n",
    preg_replace("/\n( *)[-=] /m", "\n\\1— ",
    preg_replace("/from (.*) to (.*),/mU",
                 "from \\1 to \\2,",
    preg_replace(
      "/\n*\\[([^\"]*)\"([^\"]*)\"([^\\]]*)\\]\n/mS",
      "\n
\n
[\\1\"\\2\"\\3]\n",
      preg_replace("@(http://[^	,<\n) ]*)@",
                   '\1',
                   $s))))). '
' )); $b=0;$s=''; foreach(explode("\n",$lines) as $line) { if(preg_match('@^\| (.*)@', $line)) { if(!$b)$s .= ''; $b=1; } else { if($b) $s .= ''; $b=0; } $s .= $b ? substr($line, 2) : $line; $s .= "\n"; } if($b)$s .= ''; print $s; }else echo 'File "', htmlspecialchars($fn), '" does not exist on this server.'; if(!preg_match('@googlebot@i', $HTTP_USER_AGENT)){?> Source code of this simple message to html converter is available.
The Time Traveler Convention
May 7, 2005, 10:00pm EDT (08 May 2005 02:00:00 UTC)
East Campus Courtyard, MIT
42:21:36.025N, 71:05:16.332W
(42.360007,-071.087870 in decimal degrees)