-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
83 lines (80 loc) · 1.92 KB
/
index.php
File metadata and controls
83 lines (80 loc) · 1.92 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<title>eBook Library</title>
<body>
<div id="main" class="body">
<h1>eBook Library</h1><p/>
If there are any titles you'd like, please let the node administrator know, and we'll try our best to locate it, and get it up here for you.</p>
<div id="ePub" class="col">
<h2>ePub</h2><br/>
Most devices can read this.<p/>
<?php
if ($handle = opendir('epub/')) {
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
$thelist1 .= '<a href="epub/'.$file.'">'.$file.'</a></p>';
}
}
closedir($handle);
}
print $thelist1
?>
</div>
<div id="mobi" class="col">
<h2>mobi Format</h2><br/>
Amazon devices (aka Kindles)</p>
<?php
if ($handle = opendir('mobi/')) {
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
$thelist2 .= '<a href="mobi/'.$file.'">'.$file.'</a></p>';
}
}
closedir($handle);
}
print $thelist2;
?>
</div>
<div id="pdf" class="col">
<h2>PDF Format</h2><br/>
Laptops and Desktops<p/>
<?php
if ($handle = opendir('pdf/')) {
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
$thelist3 .= '<a href="pdf/'.$file.'">'.$file.'</a></p>';
}
}
closedir($handle);
}
print $thelist3;
?>
</div>
<div id="misc" class="col">
<h2>Misc Formats</h2><br/>
Various formats (Text files, etc)<p/>
<?php
if ($handle = opendir('misc/')) {
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
$thelist4 .= '<a href="misc/'.$file.'">'.$file.'</a></p>';
}
}
closedir($handle);
}
print $thelist4
?>
</div>
</div>
</body>
</html>