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