Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

toggle_mobile.php 292 B

12345678910111213141516171819
  1. <?php
  2. function toggle_mobile_init(App &$a) {
  3. if (isset($_GET['off'])) {
  4. $_SESSION['show-mobile'] = false;
  5. } else {
  6. $_SESSION['show-mobile'] = true;
  7. }
  8. if (isset($_GET['address'])) {
  9. $address = $_GET['address'];
  10. } else {
  11. $address = App::get_baseurl();
  12. }
  13. goaway($address);
  14. }