aboutsummaryrefslogtreecommitdiffstats
path: root/mod/toggle_mobile.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/toggle_mobile.php')
-rw-r--r--mod/toggle_mobile.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/mod/toggle_mobile.php b/mod/toggle_mobile.php
new file mode 100644
index 000000000..00991e44c
--- /dev/null
+++ b/mod/toggle_mobile.php
@@ -0,0 +1,17 @@
+<?php
+
+function toggle_mobile_init(&$a) {
+
+ if(isset($_GET['off']))
+ $_SESSION['show-mobile'] = false;
+ else
+ $_SESSION['show-mobile'] = true;
+
+ if(isset($_GET['address']))
+ $address = $_GET['address'];
+ else
+ $address = $a->get_baseurl();
+
+ goaway($address);
+}
+