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.

revisionhistory.class.php 699B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. class RevisionHistory
  3. {
  4. /**
  5. * Read the revision history of an artist or torrent page
  6. * @param string $Page artists or torrents
  7. * @param in $PageID
  8. * @return array
  9. */
  10. public static function get_revision_history($Page, $PageID)
  11. {
  12. $Table = ($Page == 'artists') ? 'wiki_artists' : 'wiki_torrents';
  13. $QueryID = G::$DB->get_query_id();
  14. G::$DB->query("
  15. SELECT
  16. RevisionID,
  17. Summary,
  18. Time,
  19. UserID
  20. FROM $Table
  21. WHERE PageID = $PageID
  22. ORDER BY RevisionID DESC");
  23. $Ret = G::$DB->to_array();
  24. G::$DB->set_query_id($QueryID);
  25. return $Ret;
  26. }
  27. }