Browse Source

Remove everything from banners/ except images

pull/40/head
Michael Walker 9 years ago
committed by www-data
parent
commit
6d20e7bfb2
  1. 4
      .gitignore
  2. 17
      banners.php
  3. 3
      banners/.gitignore

4
.gitignore

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

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

3
banners/.gitignore

@ -1,3 +0,0 @@
*
!lain-bottom.png
!.gitignore
Loading…
Cancel
Save