From 75ef5af371aa223e8a96607bb85bb20a340e4f47 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Tue, 1 May 2001 14:17:52 +0000 Subject: Rename some html files php --- html/fileshow.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 html/fileshow.php (limited to 'html/fileshow.php') diff --git a/html/fileshow.php b/html/fileshow.php new file mode 100644 index 00000000..94df8538 --- /dev/null +++ b/html/fileshow.php @@ -0,0 +1,24 @@ +\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.html"); + } else { + outline_markup($filename,"fileshow.html",$expanded); + } + print "\n"; + print "
"; + click_to_go_back(); + footer(); +?> -- cgit v1.2.3