bcom/includes/header.php

68 lines
2.9 KiB
PHP

<header>
<!--
000000000000000800000000000000000000000000000000000000000000000000000
000000000000008000000000000000000000000000000000000000000000000000000
000000000000080000000000000888000000000000000000000000000000000000000
000000000000800000000000088000880000000000000000000000000000000000000
000000000008008000000000000000080000000000000000000000000000000000000
000000000080008000000000000000800000000000000000000000000000000000000
000000000888888888000000000008000000000000000000000000000000000000000
000000000000008000000000000080000000000000000000000000000000000000000
000000000000008000000000000800000000000000000000000000000000000000000
000000000000008000000000088888880000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000
--><!--
3.14159265358979323846264338327950288419716939
______________________________________________
__________$$$$$$$$$$$$$$$$$$$$$$$$$$__________
__________$$$$$$$$$$$$$$$$$$$$$$$$$$__________
_______________$$$_________$$$________________
_______________$$$_________$$$________________
_______________$$$_________$$$________________
_______________$$$_________$$$________________
_______________$$$_________$$$________________
_______________$$$_________$$$________________
______________$$$__________$$$________________
_____________$$$___________$$$________________
______________________________________________
-->
<?php
include_once('includes/inter.php');
if(isConnected()){
?>
<div id="bienvenue">Bienvenue &agrave; toi, <?php echo getPseudo(); ?>
<form id="headDisconnectForm" method="post" action="disconnect.php">
<input type="submit" value="Se d&eacute;connecter" />
</form>
</div>
<?php }else{ ?>
<form id="headLoginForm" method="post" action="logging.php">
<label for="pseudo">Pseudo :</label>
<input type="text" name="pseudo" id="pseudo" placeholder="Ex:Bernard" />
<label for="mdp">Mot de passe :</label>
<input type="password" name="mdp" id="mdp" placeholder="Votre mot de passe" />
<input type="submit" value="Se connecter" />
</form>
<form id="headLittleLoginForm" method="post" action="login.php">
<input type="submit" value="Se connecter" />
</form>
<form id="headRegisterForm" method="post" action="register.php">
<input type="submit" value="S'inscrire" />
</form>
<?php } ?>
<img id="bande" src="pictures/<?php if(rand()*31415 < 110*42)echo "lucas_president.png";else echo "bande.png";?>" alt="Erreur d'affichage de l'image" width=1000 height="89" />
<nav id="navLinks">
<a href="index.php">Accueil</a><br class="navV"/>
<a href="projets.php">Mes Projets</a><br class="nav2x2"/>
<a href="others.php">Tous les projets</a><br class="navV"/>
<a href="discuts.php">Discussions</a><br class="navV"/>
<a href="profile.php">Mon profil</a><br class="navV"/>
</nav>
</header>