//text.php3 (takes full filename of text in text/ as text=xxx.htm ) include('top.php3'); $textfile = array(); preg_match('/(\w+).(htm|txt)/', $_GET['text'], $textfile); if ($textfile[0]) { @include ("text/".$textfile[0]); } else { print("
Error: filename must be specified
\n"); } ?> include('bottom.php3') ?>