Browse Source

Remove everything from banners/ except images

pull/35/head
Michael Walker www-data 8 years ago
parent
commit
6d20e7bfb2
3 changed files with 21 additions and 3 deletions
  1. +4
    -0
      .gitignore
  2. +17
    -0
      banners.php
  3. +0
    -3
      banners/.gitignore

+ 4
- 0
.gitignore View File

@@ -62,3 +62,7 @@ tf/
all/
mod/
random/

# Banners
banners/*
!banners/lain-bottom.png

+ 17
- 0
banners.php 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>

+ 0
- 3
banners/.gitignore View File

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

Loading…
Cancel
Save