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

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>