-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
46 lines (46 loc) · 1.03 KB
/
index.php
File metadata and controls
46 lines (46 loc) · 1.03 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
<?php require 'cheezy_gallery.php' ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>
Gallery<?php if ($directory) echo " : " . htmlspecialchars($directory) ?>
</title>
<link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/style.css" />
<style>
table.gallery {
width: 98%;
}
table.gallery td, .feature {
align: center;
valign: center;
text-align: center;
}
.feature {
width: 100%;
}
table.gallery td {
border: solid 1px;
}
</style>
</head>
<body>
<div id="wrap">
<!-- header or something -->
<h1>
Gallery<?php if ($directory) echo " : " . htmlspecialchars($directory) ?>
</h1>
<div id="main">
<?php
if ($directory && is_dir("images/$directory")) {
gallery("images/$directory");
} else {
gallery_list("images");
}
?>
</div>
<div id="footer">
<hr />
</div>
</div>
</body>
</html>