]> git.mxchange.org Git - friendica.git/blob - mod/toggle_mobile.php
Merge pull request #3464 from beardyunixer/nginx
[friendica.git] / mod / toggle_mobile.php
1 <?php
2
3 use Friendica\App;
4
5 function toggle_mobile_init(App $a) {
6
7         if (isset($_GET['off'])) {
8                 $_SESSION['show-mobile'] = false;
9         } else {
10                 $_SESSION['show-mobile'] = true;
11         }
12
13         if (isset($_GET['address'])) {
14                 $address = $_GET['address'];
15         } else {
16                 $address = App::get_baseurl();
17         }
18
19         goaway($address);
20 }