forked from leftypol/leftypol
Remove everything from banners/ except images
This commit is contained in:
parent
686a9eed56
commit
6d20e7bfb2
3 changed files with 21 additions and 3 deletions
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>
|
Loading…
Add table
Add a link
Reference in a new issue