init.php 676 B

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