Simple Machines Community Forum

General Community => Scripting Help => Topic started by: papaworx on May 05, 2012, 11:28:19 AM

Title: Test if user logged in on integrated website
Post by: papaworx on May 05, 2012, 11:28:19 AM
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.
Title: Re: Test if user logged in on integrated website
Post by: Colin on May 06, 2012, 01:04:12 PM
Login Function:
Shows a login box only when user is not logged in.

<?php ssi_login(); ?>