diff options
| author | David Aspinall | 2001-05-01 14:17:52 +0000 |
|---|---|---|
| committer | David Aspinall | 2001-05-01 14:17:52 +0000 |
| commit | 75ef5af371aa223e8a96607bb85bb20a340e4f47 (patch) | |
| tree | 4b00b133602af6e905fb616216f0da69f2a8d3b9 /html/fileshow.php | |
| parent | c91ecc2744440c5ae63507f6f56f22c6c5acc202 (diff) | |
Rename some html files php
Diffstat (limited to 'html/fileshow.php')
| -rw-r--r-- | html/fileshow.php | 24 |
1 files changed, 24 insertions, 0 deletions
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 @@ +<?php + require('functions.php3'); + require('elispmarkup.php3'); + $filename=$HTTP_GET_VARS["file"]; + $title=$HTTP_GET_VARS["title"]; + $expanded=$HTTP_GET_VARS["expanded"]; + if ($title=="") { $title = $filename; }; + small_header($title); + print "<pre>\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 "</pre>\n"; + print "<hr>"; + click_to_go_back(); + footer(); +?> |
