Gazelle/sections/artist/history.php
2013-05-05 08:00:31 +00:00

41 lines
1.1 KiB
PHP

<?
/************************************************************************
||------------|| Artist wiki history page ||---------------------------||
This page lists previous revisions of the artists page. It gets called
if $_GET['action'] == 'history'.
It also requires $_GET['artistid'].
The wiki class is used here to generate the page history.
************************************************************************/
$ArtistID = $_GET['artistid'];
if (!is_number($ArtistID)) {
error(0);
}
include(SERVER_ROOT.'/classes/class_wiki.php'); // Wiki class
$Wiki = new WIKI('wiki_artists', $ArtistID, "artist.php?id=$ArtistID");
// Get the artist name and the body of the last revision
$DB->query("SELECT Name FROM artists_group WHERE ArtistID='$ArtistID'");
list($Name) = $DB->next_record(MYSQLI_NUM, true);
View::show_header("Revision history for $Name"); // Set title
// Start printing form
?>
<div class="thin">
<div class="header">
<h2>Revision history for <a href="artist.php?id=<?=$ArtistID?>"><?=$Name?></a></h2>
</div>
<?
$Wiki->revision_history(); // the wiki class takes over from here
?>
</div>
<?
View::show_footer();
?>