diff options
author | William Harrington <kb0iic@berzerkula.org> | 2019-02-12 15:57:59 -0600 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2019-02-12 15:57:59 -0600 |
commit | 3b5a092df12e386624414f32962bfd500fbabcbb (patch) | |
tree | d36eafd2da29012631042d9bcaaa141eeca71bd9 /A8_srv_build/openfile.php | |
parent | 00b1a72baba3c842abdf705ccf0664abf453d75c (diff) |
Add A8 server build layout
Diffstat (limited to 'A8_srv_build/openfile.php')
-rw-r--r-- | A8_srv_build/openfile.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/A8_srv_build/openfile.php b/A8_srv_build/openfile.php new file mode 100644 index 0000000..3ad1c1f --- /dev/null +++ b/A8_srv_build/openfile.php @@ -0,0 +1,36 @@ +<?php +session_start(); + +include('config.inc'); +$name = $_GET['name']; +?> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<html> +<head> +<meta http-equiv="content-type" content="text/html;charset=utf-8"> +<link rel="stylesheet" type="text/css" href="/css/table.css"> +<link rel="stylesheet" type="text/css" href="/css/style.css"> +<title>File List</title> +</head> +<body> +<p><fieldset> +<legend><span>Installed File List for +<?php echo $name ?> +</span></legend> +<br> +<?php +if(!empty($name)) { + //echo '<pre style="color:green">Name found</pre>'; + $myfile = fopen("/sources/installed-files/$name", "r") + or die("Unable to open file!"); + echo "<textarea readonly name='txtbox' rows='24'>"; + echo fread($myfile,filesize("/sources/installed-files/$name")); + echo "</textarea>"; + fclose($myfile); +} else { + echo '<pre style="color:Red">No NAME given to list installed files!</pre>'; +} +?> +</fieldset> +</body> +</html> |