aboutsummaryrefslogtreecommitdiff
path: root/html/fileshow.phtml
blob: 5859634ae60d9ad0addea4faf24116e91f7fbc63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
  require('functions.php3');
  $filename=$HTTP_GET_VARS["file"];
  $title=$HTTP_GET_VARS["title"];
  if ($title=="") { $title = $filename; };
  small_header($title);
  print "<pre>\n";
  if (substr($filename,0,1)=="." or substr($filename,0,1)=="/") {
     print "Sorry, can't show you that file!\n"; 
  } else {
     markup_plain_text($filename);
  }
  print "</pre>\n";
  print "<hr>";
  click_to_go_back();
  footer();
?>