Remove everything from banners/ except images

This commit is contained in:
Michael Walker 2015-09-19 17:21:50 +01:00 committed by www-data
parent 686a9eed56
commit 6d20e7bfb2
3 changed files with 21 additions and 3 deletions

4
.gitignore vendored
View File

@ -62,3 +62,7 @@ tf/
all/
mod/
random/
# Banners
banners/*
!banners/lain-bottom.png

17
banners.php Normal file
View File

@ -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>

3
banners/.gitignore vendored
View File

@ -1,3 +0,0 @@
*
!lain-bottom.png
!.gitignore