BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

history.php 648B

1234567891011121314151617181920212223242526272829
  1. <?
  2. #declare(strict_types = 1);
  3. if (!isset($_GET['groupid']) || !is_number($_GET['groupid'])) {
  4. error(0);
  5. }
  6. $GroupID = (int)$_GET['groupid'];
  7. $DB->query("
  8. SELECT Name
  9. FROM torrents_group
  10. WHERE ID = $GroupID");
  11. if (!$DB->has_results()) {
  12. error(404);
  13. }
  14. list($Name) = $DB->next_record();
  15. View::show_header("Revision history for $Name");
  16. ?>
  17. <div>
  18. <div class="header">
  19. <h2>Revision history for <a href="torrents.php?id=<?=$GroupID?>"><?=$Name?></a></h2>
  20. </div>
  21. <?
  22. RevisionHistoryView::render_revision_history(RevisionHistory::get_revision_history('torrents', $GroupID), "torrents.php?id=$GroupID");
  23. ?>
  24. </div>
  25. <?
  26. View::show_footer();