\n"); print("\n"); if ($text) { $frames = preg_split("/=====[\r]?\n/", $text); foreach ($frames as $frame) { print("" . htmlspecialchars($frame) . "\n"); } } print("\n"); } else { # just print as plain text header("Content-type: text/plain"); print($text); } } else { header("HTTP/1.1 404 File not found"); die("HTTP/1.1 ERROR 404 - File not found: $file_path\n"); } } } ?>