summaryrefslogtreecommitdiff
path: root/plugins/mobile/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mobile/init.php')
-rw-r--r--plugins/mobile/init.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/plugins/mobile/init.php b/plugins/mobile/init.php
new file mode 100644
index 000000000..b11c27690
--- /dev/null
+++ b/plugins/mobile/init.php
@@ -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() {
+
+ }
+
+
+}
+?>