<?php if (!isset($_GET['groupid']) || !is_number($_GET['groupid'])) { error(0); } $GroupID = (int) $_GET['groupid']; $DB->query("\n\tSELECT Name\n\tFROM torrents_group\n\tWHERE ID = {$GroupID}"); if (!$DB->has_results()) { error(404); } list($Name) = $DB->next_record(); View::show_header("Revision history for {$Name}"); ?> <div class="thin"> <div class="header"> <h2>Revision history for <a href="torrents.php?id=<?php echo $GroupID; ?> "><?php echo $Name; ?> </a></h2> </div> <?php RevisionHistoryView::render_revision_history(RevisionHistory::get_revision_history('torrents', $GroupID), "torrents.php?id={$GroupID}"); ?> </div> <?php View::show_footer();
<?php if (!is_number($_GET['artistid'])) { error(0); } $ArtistID = (int) $_GET['artistid']; $DB->query("\n\tSELECT Name\n\tFROM artists_group\n\tWHERE ArtistID = {$ArtistID}"); if (!$DB->has_results()) { error(404); } list($Name) = $DB->next_record(); View::show_header("Revision history for {$Name}"); ?> <div class="thin"> <div class="header"> <h2>Revision history for <a href="artist.php?id=<?php echo $ArtistID; ?> "><?php echo $Name; ?> </a></h2> </div> <?php RevisionHistoryView::render_revision_history(RevisionHistory::get_revision_history('artists', $ArtistID), "artist.php?id={$ArtistID}"); ?> </div> <?php View::show_footer();