This repository has been archived on 2024-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
core/mod/login.php

10 lines
214 B
PHP

<?php
function login_content(&$a) {
if(x($_SESSION,'theme'))
unset($_SESSION['theme']);
if(local_user())
goaway(z_root());
return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
}