I have progressively updated my installation. It used to be that I could 'require("SSI.php")' and then test, if a user was logged in. But now calling SSI, immediately redirects the user to the login page. How can I test for login status, without sending a user to login screen. I want to be able to treat logged in users differently than non-logged in users.
Login Function:
Shows a login box only when user is not logged in.
<?php ssi_login(); ?>