aboutsummaryrefslogtreecommitdiffstats
path: root/A8_srv_build/openfile.php
diff options
context:
space:
mode:
Diffstat (limited to 'A8_srv_build/openfile.php')
-rw-r--r--A8_srv_build/openfile.php36
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>