]> git.mxchange.org Git - friendica.git/blobdiff - mod/login.php
DE update to the strings
[friendica.git] / mod / login.php
index 296890a5b21a03c49e91eaddf40e67142945112c..d09fc1868f55adb2525f734666abeae77c22be38 100644 (file)
@@ -1,8 +1,13 @@
 <?php
 
+function login_content(&$a) {
+       if(x($_SESSION,'theme'))
+               unset($_SESSION['theme']);
+       if(x($_SESSION,'mobile-theme'))
+               unset($_SESSION['mobile-theme']);
 
+       if(local_user())
+               goaway(z_root());
+       return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
 
-function login_content(&$a) {
-//     return login($a->config['register_enabled']);
-       return login(1);
-}
\ No newline at end of file
+}