1<!DOCTYPE html>
2<html lang="en" dir="ltr">
3<head>
4    <title>Filetype icons</title>
5
6    <style>
7        body {
8            background-color: #ccc;
9            font-family: Arial;
10        }
11
12        .box {
13            width: 200px;
14            float: left;
15            padding: 0.5em;
16            margin: 0;
17        }
18
19        .white {
20            background-color: #fff;
21        }
22
23        .black {
24            background-color: #000;
25        }
26    </style>
27
28</head>
29<body>
30
31<?php
32$fi_list = '';
33$fi_list32 = '';
34foreach (glob('*.png') as $img) {
35    $fi_list .= '<img src="' . $img . '" alt="' . $img . '" title="' . $img . '" /> ';
36}
37foreach (glob('32x32/*.png') as $img) {
38    $fi_list32 .= '<img src="' . $img . '" alt="' . $img . '" title="' . $img . '" /> ';
39}
40echo '<div class="white box">
41' . $fi_list . '
42</div>
43
44<div class="black box">
45' . $fi_list . '
46</div>
47
48<br style="clear: left" />
49
50<div class="white box">
51' . $fi_list32 . '
52</div>
53
54<div class="black box">
55' . $fi_list32;
56?>
57</div>
58
59</body>
60</html>
61