blob: 1d7d9c1bd75a9e1d34da1e1d7c13269e3eaf9ea5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php
session_start();
include('/home/kb0iic/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>
|