summaryrefslogtreecommitdiff
path: root/plugins/mobile/init.php
blob: 0ebbcced12559e32efbd28191abe1c33c0727961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
class Mobile extends Plugin implements IHandler {

	private $link;
	private $host;

	function about() {
		return array(1.0,
			"Classic mobile version for tt-rss (unsupported)",
			"fox",
			true);
	}

	function init($host) {
		$this->link = $host->get_link();
		$this->host = $host;

		$host->add_handler("mobile", "index", $this);
	}

	function index() {
		header("Content-type: text/html; charset=utf-8");

		header("Location: plugins/mobile/index.php");
	}

	/* function get_js() {
		return file_get_contents(dirname(__FILE__) . "/digest.js");
	} */

	function csrf_ignore($method) {
		return true; //in_array($method, array("index"));
	}

	function before($method) {
		return true;
	}

	function after() {

	}


}
?>