summaryrefslogtreecommitdiff
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
parent686a9eed5686428e5ac65ce991933e8afd62c3aa (diff)
Remove everything from banners/ except images
-rw-r--r--.gitignore4
-rw-r--r--banners.php17
-rw-r--r--banners/.gitignore3
3 files changed, 21 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 2739f37c..f03e1a4a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -62,3 +62,7 @@ tf/
all/
mod/
random/
+
+# Banners
+banners/*
+!banners/lain-bottom.png
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>
diff --git a/banners/.gitignore b/banners/.gitignore
deleted file mode 100644
index 9a6b4b2a..00000000
--- a/banners/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-*
-!lain-bottom.png
-!.gitignore