index.php 787 B

1234567891011121314151617181920212223242526272829303132333435
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>PISG Index</title>
  5. <link rel="stylesheet" type="text/css" href="dark-style.css">
  6. </head>
  7. <body>
  8. <h1 class="center">PISG Channels</h1>
  9. <table>
  10. <tr>
  11. <th>Channel</th>
  12. <th>Last updated</th>
  13. <th>Users</th>
  14. </tr>
  15. <?php
  16. $cache = file_get_contents("index-cache.txt") or die("Cache file not found!");
  17. $channels = explode("\n", $cache);
  18. foreach ($channels as $channel) {
  19. $data = explode("\001", $channel);
  20. echo '<tr onclick="document.location = \'' . $data[0] . '\'">';
  21. echo '<td>' . $data[1] . '</td>';
  22. echo '<td>' . $data[2] . '</td>';
  23. echo '<td>' . $data[3] . '</td>';
  24. echo '</tr>';
  25. }
  26. ?>
  27. </table>
  28. <h6 class="center">Index and API coded by OverCoder | Whatever here | All rights reserved</h6>
  29. </body>
  30. </html>