summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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