summaryrefslogtreecommitdiff
path: root/banners.php
diff options
context:
space:
mode:
authorMichael Walker <mike@barrucadu.co.uk>2015-09-19 17:21:50 +0100
committerwww-data <www-data@lainchan.org>2015-09-19 17:22:23 +0100
commit6d20e7bfb2536b154541eb6e6f3df93ed83437dd (patch)
treee71f347ed6e679feff79fcea58471035c3162624 /banners.php
parent686a9eed5686428e5ac65ce991933e8afd62c3aa (diff)
Remove everything from banners/ except images
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>