HB/index.php

200 lines
6.2 KiB
PHP

<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="fr" />
<title> ::Halo-Battle:: Bêta - Login</title>
<style type="text/css">
body
{
background-color:black;
background-image:url(images/background.jpg);
background-attachment: fixed ;
background-position:center 10%;
background-repeat: no-repeat;
text-align: center;
}
.contenu
{
width:790px;
margin-top: 260px;
margin-left: auto;
margin-right: auto;
}
.texte
{
background-color:black;
filter:alpha(opacity=90);
-moz-opacity:0.90;
opacity: 0.90;
border: 1px solid #383C51;
float: left;
width:450px;
height:330px;
padding: 5px;
padding-top: 5%;
text-align: center;
color: white;
font-family:"verdana";
font-size: 12px;
line-height:20px;
}
.login
{
background-color:black;
filter:alpha(opacity=50);
-moz-opacity:0.50;
opacity: 0.50;
border: 1px solid #383C51;
padding: 10px;
float: right;
width: 275px;
height: 375px;
margin: 1px;
}
.cellulestxt
{
text-align: right;
color: white;
font-family:"verdana";
font-weight: bold;
font-size: 12px;
}
.connexion
{
color: white;
font-family:"verdana";
font-size: 12px;
font-weight: bold;
text-decoration:none;
background: transparent;
border: 0px;
cursor: pointer;
}
.connexion:hover
{
color: #519FFF;
font-size: 12px;
font-weight: bold;
text-decoration: none;
background: transparent;
border: 0px;
cursor: pointer;
}
.footer
{
position: absolute;
top: 690px;
left:0px;
width:100%;
text-align: center;
color: #B0B0B0;
font-family:"verdana";
font-size: 10px;
font-weight: bold;
}
input.champ {
border:1px solid #B0B0B0;
background-color:white;
color:#B0B0B0;
}
input.champ:hover {
border:1px solid black;
background-color:white;
color:black;
}
input.champ:focus {
border:1px solid #071831;
background-color:#B9C0E6;
color:black;
}
.lien
{
color:white;
font-weight: bold;
text-decoration: none;
}
.lien:visited
{
color:white;
font-weight: bold;
text-decoration: none;
}
.lien:hover
{
color:white;
font-weight: bold;
text-decoration: underline;
}
</style>
</head>
<body>
<div class="contenu">
<div class="texte">
<?php
if (isset($_GET['erreur'])) {
if ($_GET['erreur'] == '0') print '<b><font color="#FF0000">Nom d\'utilisateur ou mot de passe incorrect.</font><br /><br />Cliquez ici si vous avez perdu votre mot de passe.</b>';
elseif (strtolower($_GET['erreur']) == 'b2') print '<b><font color="#FF0000">Vous n\'avez pas trouvé votre mot de passe au bout de 15 essais. Par mesure de sécurité, vous avez été banni 3 heures.</font></b>';
elseif ($_GET['erreur'] == '2') print '<script type="text/javascript">var i = 0; function gen() { i++;
//<![CDATA[
document.getElementById(\'gen\').innerHTML=\'<img src="ab/ab.php?\'+i+\'" alt="Captcha"\\/>\';
//]]>
}</script><b><font color="#FF0000">Le texte situ&eacute; dans l\'image ne correspond pas, r&eacute;essayez.</font></b><br /><br />Vous pouvez générer une nouvelle image en <a href="javascript:gen();" class="lien">cliquant ici</a><br /><br />Si vous &ecirc;tes visuellement déficient, contactez un <a href="mailto:staffhb@hotmail.fr" class="lien">administrateur</a>.';
elseif ($_GET['erreur'] == '3') print '<b><font color="#FF0000">Veuillez vous connecter depuis le formulaire d\'identification ci-contre.</font></b>';
elseif ($_GET['erreur'] == '1') print '<b><font color="#FF0000">Impossible de valider la session, veuillez vous reconnecter.</font></b>';
elseif ($_GET['erreur'] == '4') print '<b><font color="#FF0000">Veuillez vous connecter depuis le formulaire d\'identification ci-contre.</font></b>';
elseif (strtolower($_GET['erreur']) == 'b') print '<b><font color="#FF0000">Vous êtes banni du jeu. Vous ne pouvez pas vous identifier</font></b>';
else print '<b><font color="#FF0000">Erreur !</font></b>';
}
else print 'Bienvenue&nbsp;sur&nbsp;la&nbsp;page&nbsp;de&nbsp;connexion&nbsp;de&nbsp;la&nbsp;version&nbsp;Beta&nbsp;d&#39;Halo&#45;Battle&#44;<br />
La b&eacute;ta &eacute;tant r&eacute;serv&eacute;e &agrave; certains utilisateurs, vous ne pouvez pas encore vous inscrire pour jouer.<br />
Si vous possèdez un code d\'activation de compte béta-testeur, <a href="inscription.php" class="lien">cliquez ici pour activer votre compte</a><br />
Pour&nbsp;suivre&nbsp;l&#39;avancement&nbsp;du&nbsp;projet&#44;&nbsp;rendez&#45;vous&nbsp;sur&nbsp;le&nbsp;<a class="lien" target="_blank" href="http://halo-battle.s-fr.com/forum/">forum</a>&#46;<br /><br />
<div style="text-align:left; text-indent:10%;font-weight: bold;">Staff&nbsp;Halo&#45;Battle</div>';
?>
</div>
<div class="login">
<form name="login" method="post" action="verifLogin.php">
<table>
<tr>
<td class="cellulestxt">&#58;&#58;&nbsp;Pseudo&nbsp;&#58;&#58;&nbsp;</td><td><input type="text" class="champ" name="login" /></td></tr>
<tr><td class="cellulestxt">&#58;&#58;&nbsp;Mot&nbsp;de&nbsp;Passe&nbsp;&#58;&#58;&nbsp;</td><td><input type="password" class="champ" name="password" /></td></tr>
<?php
if (isset($_SESSION['essaimdp']) && $_SESSION['essaimdp'] >= 3 && strtolower($_GET['erreur']) != 'b') print '<tr><td class="cellulestxt" colspan="2" style="text-align: center;"><br />Veuillez recopier le texte de cette image<br /><br /><span id="gen"><img src="ab/ab.php" alt="Captcha" /></span><br /><input type="text" class="champ" name="captcha" /></td></tr>';
?>
<tr><td align="center" colspan="2"><br />
<input class="connexion" type="submit" value="&rsaquo;&nbsp;Connexion&nbsp;&lsaquo;" /></td></tr></table>
</form>
</div>
</div>
<div class="footer">
Design by Odst &#124; Halo&#45;Battle&#46;com Tous Droits R&eacute;serv&eacute;s&#46; Halo&#44; Bungie et Microsoft sont des marques et logos d&eacute;pos&eacute;s par Microsoft Corporation&#46; Tous droits r&eacute;serv&eacute;s Copyright &copy; 2007&#45;2008
</div>
<div id="player">
<object id="mediaplayer" width="0" height="0" type="audio/mpeg" data="08_ost_sacred_icon_suite.mp3">
<param name="filename" value="08_ost_sacred_icon_suite.mp3" />
<param name="autostart" value="true" />
<param name="repeat" value="true"/>
</object>
</div>
<!-- \\******* By Phantom *******// Halo-Battle, Tous droits réservés. -->
</body>
</html>