<?php
if (isset($_SESSION[‘auth’][“username”]))
{ echo “Welcome <a href=’index.php?option=com_user&view=user&task=edit’>” . $_SESSION[‘auth’][“username”] . “</a>!”; }
else
{ echo “<a href=’index.php?option=com_user&view=login’>Log in</a>”; }
?>
<?php
if (isset($_SESSION[‘auth’][“username”]))
{ echo “Welcome <a href=’index.php?option=com_user&view=user&task=edit’>” . $_SESSION[‘auth’][“username”] . “</a>!”; }
else
{ echo “<a href=’index.php?option=com_user&view=login’>Log in</a>”; }
?>