-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
36 lines (33 loc) · 880 Bytes
/
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
<?php
include "common/helpers.php";
show_top();
echo "<center>\n<h2>Musical Works</h2>\n<h4>Dean Dierschow</h4>\n</center>\n";
$dirs = array();
if (is_dir(getcwd()))
{
if ($dh = opendir(getcwd()))
{
while (($file = readdir($dh)) !== false)
if ($file != 'old' && !str_starts_with($file, '.') && filetype(getcwd() . '/' . $file) == 'dir')
$dirs[] = $file;
closedir($dh);
}
}
sort($dirs);
echo "<table width=100%>\n";
$style = 0;
foreach ($dirs as $ent)
{
echo " <tr class='" . $styles[$style] . "'>\n";
echo " <td><a href='" . $ent . "/'>";
show_image($ent . '/image.png', '256');
echo "</a></td>\n";
echo " <td><a href='" . $ent . "/'><h3>" . $ent . "</h3></a>";
show_description($ent . '/description.txt');
echo " </td>\n";
echo " </tr>\n";
$style = 1 - $style;
}
echo "</table>\n\n";
show_bottom();
?>