Subversion Repositories taios

Rev

Rev 235 | Rev 335 | Go to most recent revision | 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);

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

$page->drawFooter();

?>