1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 22:41:29 +00:00

add classic mobile as a system plugin

This commit is contained in:
Andrew Dolgov
2013-03-26 18:55:57 +04:00
parent 554f658c0e
commit 9d9ed2b32a
37 changed files with 2200 additions and 0 deletions

47
plugins/mobile/init.php Normal file
View File

@@ -0,0 +1,47 @@
<?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");
login_sequence($this->link);
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() {
}
}
?>