Subversion Repositories taios

Rev

Rev 236 | Rev 238 | 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();

$dirName = $_GET['dir'];
if (empty($dirName))
{
    $page->redirect('index.php');
}

$dir = dir('albums/' . $dirName);
while (($file = $dir->read()) !== false)
{
    if ($file[0] != '.')
    {
        write('<p><img src="albums/' . $dirName . '/' . $file . '" /></p>');
    }
}

$page->drawFooter();

?>