]> git.mxchange.org Git - friendica.git/blob - mod/toggle_mobile.php
Merge branch 'develop' into rewrites/dbm_is_result
[friendica.git] / mod / toggle_mobile.php
1 <?php
2
3 function toggle_mobile_init(App &$a) {
4
5         if (isset($_GET['off'])) {
6                 $_SESSION['show-mobile'] = false;
7         } else {
8                 $_SESSION['show-mobile'] = true;
9         }
10
11         if (isset($_GET['address'])) {
12                 $address = $_GET['address'];
13         } else {
14                 $address = App::get_baseurl();
15         }
16
17         goaway($address);
18 }
19