index.php 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. require_once('include/config.php');
  3. require_once('include/db.php');
  4. require_once('include/comment.php');
  5. $dirs = get_dir_list();
  6. $dirs_html = '';
  7. foreach ($dirs as $dir) {
  8. $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><td>' . count_comments_all_dir_images($dir['id']) . '</td></tr>';
  9. }
  10. ?><!DOCTYPE html>
  11. <html>
  12. <head>
  13. <title>Obrazki</title>
  14. <link rel="stylesheet" href="/obrazki/style.css?<?=$time?>" type="text/css">
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  16. </head>
  17. <body>
  18. <h1>Dostępne katalogi z obrazkami</h1>
  19. Uwaga, nowy skrypt. Zgłoś problemy administratorowi.
  20. <table id="dirlist"><tr><th>Nazwa</th><th>Obrazków</th><th>Utworzono</th><th>Komentarzy<br>do katalogu</th><th>Komentarzy<br>do obrazków</th></tr>
  21. <?=$dirs_html?>
  22. </table>
  23. <a class="k4" href="http://k4be.pl/"></a>
  24. </body>
  25. </html>