Rev 236 | Rev 238 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 236 | tom | 1 | <?php |
| 2 | |||
| 3 | require '../_taios.php'; |
||
| 4 | |||
| 5 | $page = new Taios_Page('Photo Albums', '../'); |
||
| 6 | $page->drawHeader(); |
||
| 7 | $page->drawMiddle(); |
||
| 8 | |||
| 9 | $dirName = $_GET['dir']; |
||
| 10 | if (empty($dirName)) |
||
| 11 | { |
||
| 12 | $page->redirect('index.php'); |
||
| 13 | } |
||
| 14 | |||
| 15 | $dir = dir('albums/' . $dirName); |
||
| 16 | while (($file = $dir->read()) !== false) |
||
| 17 | { |
||
| 18 | if ($file[0] != '.') |
||
| 19 | { |
||
| 237 | tom | 20 | write('<p><img src="albums/' . $dirName . '/' . $file . '" /></p>'); |
| 236 | tom | 21 | } |
| 22 | } |
||
| 23 | |||
| 24 | $page->drawFooter(); |
||
| 25 | |||
| 26 | ?> |
||
| 27 |