Remove everything from banners/ except images
This commit is contained in:
parent
686a9eed56
commit
6d20e7bfb2
4
.gitignore
vendored
4
.gitignore
vendored
@ -62,3 +62,7 @@ tf/
|
|||||||
all/
|
all/
|
||||||
mod/
|
mod/
|
||||||
random/
|
random/
|
||||||
|
|
||||||
|
# Banners
|
||||||
|
banners/*
|
||||||
|
!banners/lain-bottom.png
|
||||||
|
17
banners.php
Normal file
17
banners.php
Normal 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
3
banners/.gitignore
vendored
@ -1,3 +0,0 @@
|
|||||||
*
|
|
||||||
!lain-bottom.png
|
|
||||||
!.gitignore
|
|
Loading…
Reference in New Issue
Block a user