Skip to content

Instantly share code, notes, and snippets.

@raymondjavaxx
Forked from anonymous/minilogin.php
Created January 2, 2012 05:49
Show Gist options
  • Save raymondjavaxx/1549512 to your computer and use it in GitHub Desktop.
Save raymondjavaxx/1549512 to your computer and use it in GitHub Desktop.
<?php
require_once('/home/superjug/public_html/foro/SSI.php');
global $context, $scripturl, $user_info;
?>
<?php
if ($context['user']['is_guest']) {
ssi_login();
ssi_welcome();
} else {
?>
<table>
<tr>
<td>
<img src="<?php echo htmlspecialchars($context['user']['avatar']['href']) ?>" alt="">
</td>
<td>
Hola <?php echo htmlspecialchars($context['user']['name']) ?><br>
Tienes <?php echo htmlspecialchars($context['user']['messages']); ?>,
<?php echo htmlspecialchars($context['user']['unread_messages']); ?>
<p><a target="_top">Link 1</a> | <a target="_top">Link 2</a></p>
</td>
</tr>
</table>
<?php
echo '<p>';
$_SESSION['logout_url'] = 'http://www.superjugadores.net/minilogin.php';
$_SESSION['login_url'] = 'http://www.superjugadores.net/minilogin.php';
ssi_logout();
echo '</p>';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment