add mobile toggle to frost mobile
This commit is contained in:
parent
3ea5001bb0
commit
e8acdb31bc
5 changed files with 60 additions and 8 deletions
17
mod/toggle_mobile.php
Normal file
17
mod/toggle_mobile.php
Normal file
|
@ -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);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue