-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
70 lines (70 loc) · 1.33 KB
/
index.php
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<html>
<style type="text/css">
body {
background: #fcfcfc;
color: #111;
font-family: verdana, sans-serif;
padding: 0;
margin: 0;
}
#main {
width: 100%;
position: relative;
}
.container {
padding: 1em;
}
#menu { float: left; width: 24%; }
#menu ul { padding: 0; border-right: 3px solid white; margin: 0; }
ul li { list-style-type: none; }
ul li a {
display: block;
background: #eee;
padding: 4px 7px;
border-top: 2px solid #fff;
}
ul li a:hover {
background: #B6C6D7;
color: black;
}
iframe {
border: 0 none;
overflow: hidden;
width: 74%;
height: 95%;
padding-left: 1%;
}
.clear-block {
width: 100%;
height: 1px;
clear: both;
}
</style>
<link rel="stylesheet" type="text/css" href="phpmyadmin/phpmyadmin.css.php"></script>
<body>
<div id="main">
<div class="container">
<div id="menu">
<a href="/xampp"><strong>XAMPP for Windows</strong></a>
<hr>
<p><strong>/htdocs (Websites)</strong></p>
<ul>
<?php
$www = $_SERVER['DOCUMENT_ROOT'];
$files = scandir($www);
usort($files, 'strcasecmp');
foreach($files as $key => $value){
if($value[0] != '.' && is_dir($value))
echo '<li><a href="/' . $value . '">' . $value . '</a></li>';
}
?>
</ul>
</div>
<div>
<iframe src="http://localhost/phpmyadmin/"></iframe>
</div>
<div class="clear-block"></div>
</div>
</div>
</body>
</html>