]> git.mxchange.org Git - friendica.git/blob - mod/toggle_mobile.php
Remove unused global cache constants
[friendica.git] / mod / toggle_mobile.php
1 <?php
2
3 use Friendica\App;
4 use Friendica\Core\System;
5
6 function toggle_mobile_init(App $a) {
7
8         if (isset($_GET['off'])) {
9                 $_SESSION['show-mobile'] = false;
10         } else {
11                 $_SESSION['show-mobile'] = true;
12         }
13
14         if (isset($_GET['address'])) {
15                 $address = $_GET['address'];
16         } else {
17                 $address = System::baseUrl();
18         }
19
20         goaway($address);
21 }