header('Content-type: text/html; charset=iso-8859-1'); extract($_GET); $SCRIPT_NAME = $_SERVER['SCRIPT_NAME']; if(!$src&&!($fp=@fopen($fn='data/'.preg_replace('@.*/([^.]*).*@','\1.txt',$SCRIPT_NAME),'r'))) { header('HTTP/1.0 404 No file'); } $title = preg_replace('@.*/@','',$fn); $title = 'MUD/RPG and time travel'; ?>
\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.025°N, 71:05:16.332°W (42.360007,-071.087870 in decimal degrees)}?>