123456789101112131415161718192021222324252627282930 |
- <?php
- require_once('include/config.php');
- require_once('include/db.php');
- require_once('include/comment.php');
- $dirs = get_dir_list();
- $dirs_html = '';
- foreach ($dirs as $dir) {
- $dirs_html .= '<tr><td><a href="' . $config['basepath'] . 'dir.php?dir=' . urlencode($dir['path']) . '">' . htmlspecialchars($dir['name']) . '</a></td><td>' . $dir['count'] . '</td><td>' . date('j.m.Y', $dir['date']) . '</td><td>' . count_comments($dir['id'], 'dir') . '</td></tr>';
- }
- ?><!DOCTYPE html>
- <html>
- <head>
- <title>Obrazki</title>
- <link rel="stylesheet" href="/obrazki/style.css?<?=$time?>" type="text/css">
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- </head>
- <body>
- <h1>Dostępne katalogi z obrazkami</h1>
- Uwaga, nowy skrypt. Zgłoś problemy administratorowi.
- <table id="dirlist"><tr><th>Nazwa</th><th>Obrazków</th><th>Utworzono</th><th>Komentarzy<br>do katalogu</th></tr>
- <?=$dirs_html?>
- </table>
- <a class="k4" href="http://k4be.pl/"></a>
- </body>
- </html>
|