init.php 728 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. class Mobile extends Plugin implements IHandler {
  3. private $link;
  4. private $host;
  5. function about() {
  6. return array(1.0,
  7. "Classic mobile version for tt-rss (unsupported)",
  8. "fox",
  9. true);
  10. }
  11. function init($host) {
  12. $this->link = $host->get_link();
  13. $this->host = $host;
  14. $host->add_handler("mobile", "index", $this);
  15. }
  16. function index() {
  17. header("Content-type: text/html; charset=utf-8");
  18. header("Location: plugins/mobile/index.php");
  19. }
  20. /* function get_js() {
  21. return file_get_contents(dirname(__FILE__) . "/digest.js");
  22. } */
  23. function csrf_ignore($method) {
  24. return true; //in_array($method, array("index"));
  25. }
  26. function before($method) {
  27. return true;
  28. }
  29. function after() {
  30. }
  31. }
  32. ?>