20 lines
300 B
PHP
20 lines
300 B
PHP
<?php
|
|
|
|
use Friendica\App;
|
|
|
|
function toggle_mobile_init(App $a) {
|
|
|
|
if (isset($_GET['off'])) {
|
|
$_SESSION['show-mobile'] = false;
|
|
} else {
|
|
$_SESSION['show-mobile'] = true;
|
|
}
|
|
|
|
if (isset($_GET['address'])) {
|
|
$address = $_GET['address'];
|
|
} else {
|
|
$address = '';
|
|
}
|
|
|
|
$a->redirect($address);
|
|
}
|