Login Logout
<?php
$userid=$_SESSION["__default"]["user"]->id; ;
if( $userid )
{
echo '<a href="index.php?action=logout"><img src="logout.jpg" width="100" height="25" /></a>';
} else {
echo '<a href="index.php/login"><img src="login.jpg" width="100" height="25" /></a>';
}
?>