]> git.mxchange.org Git - friendica.git/blob - mod/login.php
Cleanup /format pre-move
[friendica.git] / mod / login.php
1 <?php
2
3 function login_content(App $a) {
4         if (x($_SESSION, 'theme')) {
5                 unset($_SESSION['theme']);
6         }
7         if (x($_SESSION, 'mobile-theme')) {
8                 unset($_SESSION['mobile-theme']);
9         }
10
11         if (local_user()) {
12                 goaway(z_root());
13         }
14         
15         return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
16 }