Gazelle/sections/artist/history.php

39 lines
1.1 KiB
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
/************************************************************************
||------------|| Artist wiki history page ||---------------------------||
2013-02-22 08:00:24 +00:00
This page lists previous revisions of the artists page. It gets called
if $_GET['action'] == 'history'.
2011-03-28 14:21:28 +00:00
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);
2012-10-11 08:00:15 +00:00
View::show_header("Revision history for ".$Name); // Set title
2011-03-28 14:21:28 +00:00
// Start printing form
?>
<div class="thin">
2012-08-19 08:00:19 +00:00
<div class="header">
<h2>Revision history for <a href="artist.php?id=<?=$ArtistID?>"><?=$Name?></a></h2>
</div>
2011-03-28 14:21:28 +00:00
<?
$Wiki->revision_history(); // the wiki class takes over from here
?>
</div>
<?
2012-10-11 08:00:15 +00:00
View::show_footer();
2011-03-28 14:21:28 +00:00
?>