Browse Source

login/logout et gravatar

master
heuzef 10 years ago
parent
commit
adeaa3863b
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      index.php

+ 4
- 3
index.php View File

@@ -63,10 +63,11 @@ $message[6]='
</ul> </ul>
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<?php if($status != 0): ?> <?php if($status != 0): ?>
<li><?php echo '<img class="img-circle" src="http://gravatar.com/avatar/'.$hash.'?s=50" alt="gravatar" />'; ?>&nbsp;&nbsp;<strong><?php echo strtoupper($pseudo); ?></strong></li>
<li><a href="logout.php"><i class="glyphicon glyphicon-off"></i>&nbsp;&nbsp;DECONNEXION</a></li>
<a href="http://fr.gravatar.com" target="_blank"><?php echo '<img class="img-circle" src="http://gravatar.com/avatar/'.$hash.'?s=50" alt="gravatar" />'; ?></a>&nbsp;&nbsp;<strong><?php echo strtoupper($pseudo); ?></strong>
&nbsp;&nbsp;
<a href="logout.php" class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-off"></i></a>&nbsp;&nbsp;
<?php elseif($status == 0): ?> <?php elseif($status == 0): ?>
<li><a data-toggle="modal" data-target="#modal_login"><i class="glyphicon glyphicon-log-in"></i>&nbsp;&nbsp;CONNEXION</a></li>
<a class="btn btn-info btn-xs" data-toggle="modal" data-target="#modal_login"><i class="glyphicon glyphicon-off"></i>&nbsp;&nbsp;CONNEXION</a>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
</div> </div>


Loading…
Cancel
Save