pagehist.php 715 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Addon for page meta information
  4. */
  5. namespace PHPPE\AddOn;
  6. use PHPPE\Core;
  7. use PHPPE\View;
  8. use PHPPE\DS;
  9. // L("pagehist")
  10. class pagehist extends \PHPPE\AddOn
  11. {
  12. public $heightClass = "infobox";
  13. public $forceFull = 60;
  14. function load(&$app)
  15. {
  16. $app->versions = DS::query(
  17. "a.*,b.name as moduser,c.name as pubuser, CURRENT_TIMESTAMP as ct",
  18. "pages a left join users b on a.modifyid=b.id left join users c on a.publishid=c.id",
  19. "a.id=? AND (a.lang='' OR a.lang=?)",
  20. "", "a.created DESC", 0, 0, [$_SESSION['cms_url'], Core::$client->lang]);
  21. }
  22. function edit()
  23. {
  24. return View::template("cms_pagehist");
  25. }
  26. }
  27. ?>