Gazelle/sections/torrents/history.php

28 lines
623 B
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
2013-12-24 08:00:55 +00:00
if (!isset($_GET['groupid']) || !is_number($_GET['groupid'])) {
2013-05-01 08:00:16 +00:00
error(0);
}
2013-12-24 08:00:55 +00:00
$GroupID = (int)$_GET['groupid'];
2011-03-28 14:21:28 +00:00
2013-06-20 08:01:00 +00:00
$DB->query("
SELECT Name
FROM torrents_group
2013-12-24 08:00:55 +00:00
WHERE ID = $GroupID");
if (!$DB->has_results()) {
2013-05-01 08:00:16 +00:00
error(404);
}
2013-12-24 08:00:55 +00:00
list($Name) = $DB->next_record();
2011-03-28 14:21:28 +00:00
2013-12-24 08:00:55 +00:00
View::show_header("Revision history for $Name");
2011-03-28 14:21:28 +00:00
?>
<div class="thin">
2012-08-19 08:00:19 +00:00
<div class="header">
<h2>Revision history for <a href="torrents.php?id=<?=$GroupID?>"><?=$Name?></a></h2>
</div>
2011-03-28 14:21:28 +00:00
<?
2013-12-24 08:00:55 +00:00
RevisionHistoryView::render_revision_history(RevisionHistory::get_revision_history('torrents', $GroupID), "torrents.php?id=$GroupID");
2011-03-28 14:21:28 +00:00
?>
</div>
<?
2012-10-11 08:00:15 +00:00
View::show_footer();