diff options
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | banners.php | 17 | ||||
| -rw-r--r-- | banners/.gitignore | 3 |
3 files changed, 21 insertions, 3 deletions
@@ -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 |
