Subversion Repositories taios

Rev

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

<?php

require '../_taios.php';

$page = new Taios_Page('Photo Albums', '../');
$page->drawHeader();
$page->drawMiddle();

write('<p>Here we have all sorts of photos from Tim32.</p><br />');

$dirs = array();
$dir = dir('albums/');
while (($file = $dir->read()) !== false)
{
    array_push($dirs, $file);
}

asort($dirs);

foreach ($dirs as $file)
{
    if ($file[0] != '.')
    {
        write('<p><a href="album.php?dir=' . $file . '">' . $file . '</a></p>');
    }
}

$page->drawFooter();

?>