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.
 
 
 
 
 
 

17 rivejä
309 B

  1. <?php
  2. function login_content(App $a) {
  3. if (x($_SESSION, 'theme')) {
  4. unset($_SESSION['theme']);
  5. }
  6. if (x($_SESSION, 'mobile-theme')) {
  7. unset($_SESSION['mobile-theme']);
  8. }
  9. if (local_user()) {
  10. goaway(z_root());
  11. }
  12. return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
  13. }