aboutsummaryrefslogtreecommitdiff
path: root/html/fileshow.phtml
diff options
context:
space:
mode:
authorDavid Aspinall2000-03-13 05:14:23 +0000
committerDavid Aspinall2000-03-13 05:14:23 +0000
commit670761dd6bd6321d65beeacdc81d68c0a2ebe92b (patch)
tree42cb0879a750de1af1122ab103272f305ad5902e /html/fileshow.phtml
parent5e9f920b0d834276ed2df4db60f95357460818bd (diff)
Updated web pages.
Diffstat (limited to 'html/fileshow.phtml')
-rw-r--r--html/fileshow.phtml8
1 files changed, 6 insertions, 2 deletions
diff --git a/html/fileshow.phtml b/html/fileshow.phtml
index 6e984bdf..741ef556 100644
--- a/html/fileshow.phtml
+++ b/html/fileshow.phtml
@@ -1,7 +1,9 @@
<?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";
@@ -10,8 +12,10 @@
substr($filename,0,1)=="/" or
substr($filename,0,1)=="~") {
print "Sorry, can't show you that file!\n";
- } else {
- markup_plain_text($filename);
+ } elseif (substr($filename,-3)==".el") {
+ elisp_markup($filename,"fileshow.phtml");
+ else {
+ outline_markup($filename,"fileshow.phtml",$expanded);
}
print "</pre>\n";
print "<hr>";