]>
Commit | Line | Data |
---|---|---|
9d9ed2b3 AD |
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 | ||
9d9ed2b3 AD |
24 | header("Location: plugins/mobile/index.php"); |
25 | } | |
26 | ||
27 | /* function get_js() { | |
28 | return file_get_contents(dirname(__FILE__) . "/digest.js"); | |
29 | } */ | |
30 | ||
31 | function csrf_ignore($method) { | |
32 | return true; //in_array($method, array("index")); | |
33 | } | |
34 | ||
35 | function before($method) { | |
36 | return true; | |
37 | } | |
38 | ||
39 | function after() { | |
40 | ||
41 | } | |
42 | ||
43 | ||
44 | } | |
45 | ?> |