-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.php
38 lines (34 loc) · 1.05 KB
/
menu.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
<?php
function scandir2($n)
{
return array_slice(scandir($n), 2);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<link rel="stylesheet" type="text/css" href="assets/style.css">
<title>Clover Picker - Menu</title>
<base target="cont">
</head>
<body TEXT="#CC0000" BGCOLOR="#FFFFFF" ALINK="#FF0099" VLINK="#003333">
<h2><a href="index2.html">Clover Picker</a></h2>
<span class="sidenav">
<?php
$dir = "4chan";
$files = scandir2($dir);
sort($files);
foreach ($files as $file) {
if (is_dir("$dir/$file") && $file != "output") {
echo "<li><a href='$dir/board.php?board=$file'>/$file/</a></li>";
}
}
echo "<br/>";
?>
<a href="./archiver.php">Thread Archiver</a><br /><br />
<a href="./about.html">About</a>
</span>
</body>
</html>