summaryrefslogtreecommitdiff
path: root/banners.php
diff options
context:
space:
mode:
Diffstat (limited to 'banners.php')
-rw-r--r--banners.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/banners.php b/banners.php
new file mode 100644
index 00000000..262bdc57
--- /dev/null
+++ b/banners.php
@@ -0,0 +1,17 @@
+<html>
+<head>
+<title>Lainchan Banners</title>
+</head>
+<body>
+<?php
+if ($handle = opendir('banners')) {
+ while (false !== ($entry = readdir($handle))) {
+ if ($entry != "." && $entry != "..") {
+ echo "<a href=\"banners/$entry\"><img src=\"banners/$entry\" alt=\"$entry\" style=\"width:348px;height:128px\"></a> ";
+ }
+ }
+ closedir($handle);
+}
+?>
+</body>
+</html>