From 5c7722f8abcc683ec0ad06b12b0b2e03a0439495 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Thu, 18 Jul 2002 22:10:25 +0000 Subject: Move fileshow code into lib --- html/fileshow.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'html/fileshow.php') diff --git a/html/fileshow.php b/html/fileshow.php index 09747fda..ded131d6 100644 --- a/html/fileshow.php +++ b/html/fileshow.php @@ -4,21 +4,5 @@ $filename=$HTTP_GET_VARS["file"]; $title=$HTTP_GET_VARS["title"]; $expanded=$HTTP_GET_VARS["expanded"]; - if ($title=="") { $title = $filename; }; - small_header($title); - print "
\n";
- /* I hope this is enough to prevent access outside cwd */
- if (substr($filename,0,1)=="." or
- substr($filename,0,1)=="/" or
- substr($filename,0,1)=="~") {
- print "Sorry, can't show you that file!\n";
- } elseif (substr($filename,-3)==".el") {
- elisp_markup($filename,"fileshow.php");
- } else {
- outline_markup($filename,"fileshow.php",$expanded);
- }
- print "\n";
- print "