From 9d9ed2b32a1a9c2560a43a85c94caecf140974d5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 26 Mar 2013 18:55:57 +0400 Subject: add classic mobile as a system plugin --- plugins/mobile/init.php | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 plugins/mobile/init.php (limited to 'plugins/mobile/init.php') 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 @@ +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() { + + } + + +} +?> -- cgit v1.2.3