Subversion Repositories taios

Rev

Rev 336 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
169 tom 1
<?php
2
 
3
require '../_taios.php';
4
 
234 tom 5
$page = new Taios_Page('Photo Albums', '../');
169 tom 6
$page->drawHeader();
7
$page->drawMiddle();
8
 
234 tom 9
write('<p>Here we have all sorts of photos from Tim32.</p><br />');
169 tom 10
 
334 tom 11
$dirs = array();
234 tom 12
$dir = dir('albums/');
13
while (($file = $dir->read()) !== false)
14
{
334 tom 15
    array_push($dirs, $file);
16
}
17
 
18
asort($dirs);
19
 
337 tom 20
foreach ($dirs as $file)
334 tom 21
{
235 tom 22
    if ($file[0] != '.')
23
    {
24
        write('<p><a href="album.php?dir=' . $file . '">' . $file . '</a></p>');
25
    }
234 tom 26
}
27
 
169 tom 28
$page->drawFooter();
29
 
30
?>
31