Help_Page.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. require_once($path["page"] . "Page.php");
  3. require_once($path["helper"] . "text.php");
  4. /**
  5. * Help page model.
  6. */
  7. class Help_Page extends Page{
  8. public $help = [
  9. "info" => [
  10. "title" => "",
  11. "text" => "",
  12. ],
  13. "license" => [
  14. "title" => "",
  15. "text" => "",
  16. ],
  17. "privacy" => [
  18. "title" => "",
  19. "text" => "",
  20. ],
  21. "cookies" => [
  22. "title" => "",
  23. "text" => "",
  24. ]
  25. ];
  26. /**
  27. * Constructor.
  28. *
  29. * Retrieves the data and initializes the variables.
  30. *
  31. * @param MySQL_connection $db Connection to the database.
  32. * @param string $lang Lowercase, two-letter language code.
  33. */
  34. public function __construct($db, $lang){
  35. global $path;
  36. global $base_url;
  37. parent::__construct($db, $lang);
  38. $this->view = $path["view"] . "help.php";
  39. $this->help["info"]["title"] = text($this, "HELP_INFO_TITLE");
  40. $this->help["info"]["text"] = text($this, "HELP_INFO_TEXT");
  41. $this->help["license"]["title"] = text($this, "HELP_LICENSE_TITLE");
  42. $this->help["license"]["text"] = text($this, "HELP_LICENSE_TEXT");
  43. $this->help["privacy"]["title"] = text($this, "HELP_PRIVACY_TITLE");
  44. $this->help["privacy"]["text"] = text($this, "HELP_PRIVACY_TEXT");
  45. $this->help["cookies"]["title"] = text($this, "HELP_COOKIES_TITLE");
  46. $this->help["cookies"]["text"] = text($this, "HELP_COOKIES_TEXT");
  47. $this->title = text($this, "USER_NAME");
  48. $this->description = text($this, "USER_NAME") . " - " . text($this, "USER_TAGLINE");
  49. $this->canonical = $base_url . "/help/";
  50. }
  51. }
  52. ?>