index.php 969 B

123456789101112131415161718192021222324252627282930313233343536
  1. ;You need to edit line 5 and 9. Don't edit line 34, unless you hate us, then.. go ahead.
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <title>Stats generated by #YOURCHANNEL</title>
  6. <link rel="stylesheet" type="text/css" href="dark-style.css">
  7. </head>
  8. <body>
  9. <h1 class="center">Stats generated by #YOURCHANNEL</h1>
  10. <table>
  11. <tr>
  12. <th>Channel</th>
  13. <th>Last updated</th>
  14. <th>Users</th>
  15. </tr>
  16. <?php
  17. $cache = file_get_contents("index-cache.txt") or die("Cache file not found!");
  18. $channels = explode("\n", $cache);
  19. foreach ($channels as $channel) {
  20. $data = explode("\001", $channel);
  21. echo '<tr onclick="document.location = \'' . $data[0] . '\'">';
  22. echo '<td>' . $data[1] . '</td>';
  23. echo '<td>' . $data[2] . '</td>';
  24. echo '<td>' . $data[3] . '</td>';
  25. echo '</tr>';
  26. }
  27. ?>
  28. </table>
  29. <h6 class="center">pisg!stats@pisg/stats/bot @ freenode | Generated by <a href="https://github.com/PISG/pisg">PISG</a> | All rights reserved</h6>
  30. </body>
  31. </html>