I am building a website using stuff from ssi_examples.php
There's one that says:
<?php ssi_logout(); ?>
but I want to make:
if (isset(MemberLoggedIn)) {
ssi_logout();
}
else {
echo '<a href="index.php?action=login">Login</a>';
}
What can I put in place of MemberLoggedIn?
Or, if that is no good -- how else can I replace the logout link with a login link?
!$context['user']['is_guest']
and remember to define context as a global variable.
I don't know what a global variable is or how to "define" it :o
<?php
global $user_info;
if ($user_info['is_guest'])
ssi_login();
else
ssi_logout();
Thanks :)