-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
40 lines (40 loc) · 807 Bytes
/
index.php
File metadata and controls
40 lines (40 loc) · 807 Bytes
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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="test.js"></script>
<style>
a {
text-decoration: none;
color: #2b3e50;
}
.player {
color: #7c9ebd;
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 10px;
min-height: 60px;
max-height: 100px;
overflow-y: auto;
background: #2B3E50;
}
.player a {
text-decoration: none;
color: white;
}
</style>
</head>
<body>
<?php
$dir = 'ayfiles';
$files = glob($dir."/*.[Aa][Yy]");
foreach($files as $file) { ?>
<div style="width: 22%; display: inline-block"><a href="javascript:" onclick="player.load("<?=htmlspecialchars(basename($file))?>", 0, 0, 1);"><?=htmlspecialchars(basename($file))?></a></div>
<?php
}
?>
<div class="padding" style="height: 40px;"> </div>
<div id="player" class="player"></div>
</body>
</html>