lainchan/banners.php

23 lines
518 B
PHP
Raw Permalink Normal View History

<html>
<head>
<title>Lainchan Banners</title>
</head>
<body>
<?php
2016-08-19 19:56:46 -04:00
function listBannersInDir($dir) {
if ($handle = opendir($dir)) {
while (false !== ($entry = readdir($handle))) {
if ($entry != "." && $entry != "..") {
echo "<a href=\"$dir/$entry\"><img src=\"$dir/$entry\" alt=\"$entry\" style=\"width:348px;height:128px\"></a> ";
}
}
2016-08-19 19:56:46 -04:00
closedir($handle);
}
}
2016-08-19 19:56:46 -04:00
listBannersInDir("banners_priority");
listBannersInDir("banners");
?>
</body>
</html>