]> git.wh0rd.org - tt-rss.git/blob - plugins/mobile/init.php
add classic mobile as a system plugin
[tt-rss.git] / plugins / mobile / init.php
1 <?php
2 class Mobile extends Plugin implements IHandler {
3
4 private $link;
5 private $host;
6
7 function about() {
8 return array(1.0,
9 "Classic mobile version for tt-rss (unsupported)",
10 "fox",
11 true);
12 }
13
14 function init($host) {
15 $this->link = $host->get_link();
16 $this->host = $host;
17
18 $host->add_handler("mobile", "index", $this);
19 }
20
21 function index() {
22 header("Content-type: text/html; charset=utf-8");
23
24 login_sequence($this->link);
25
26 header("Location: plugins/mobile/index.php");
27 }
28
29 /* function get_js() {
30 return file_get_contents(dirname(__FILE__) . "/digest.js");
31 } */
32
33 function csrf_ignore($method) {
34 return true; //in_array($method, array("index"));
35 }
36
37 function before($method) {
38 return true;
39 }
40
41 function after() {
42
43 }
44
45
46 }
47 ?>