summaryrefslogtreecommitdiff
path: root/main.php
blob: b7e1fe06494b755366a1d3523d5541c1f11844b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
$dh = opendir('.');
echo "<ul>";
$files = glob('*');
sort($files, SORT_NUMERIC);
foreach ($files as $file) {
	if (is_dir($file) && (substr($file,0,1)!='.')) {
		echo "<li><a href='$file'>";
		if (is_numeric($file)) {
			echo "Issue $file";
		} else {
			echo "$file issue";
		}
		echo "</a></li>";
	}
}
closedir($dh);
echo "</ul>";