Ver código fonte

Remove everything from banners/ except images

pull/35/head
Michael Walker www-data 8 anos atrás
pai
commit
6d20e7bfb2
3 arquivos alterados com 21 adições e 3 exclusões
  1. +4
    -0
      .gitignore
  2. +17
    -0
      banners.php
  3. +0
    -3
      banners/.gitignore

+ 4
- 0
.gitignore Ver arquivo

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

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

+ 17
- 0
banners.php Ver arquivo

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

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

Carregando…
Cancelar
Salvar