2007-10-27 10:00:00 +00:00
|
|
|
|
<?php
|
|
|
|
|
session_start();
|
|
|
|
|
?>
|
2007-03-31 10:00:00 +00:00
|
|
|
|
<HTML>
|
|
|
|
|
<HEAD>
|
2007-11-03 11:00:00 +00:00
|
|
|
|
<TITLE>Halo battle</TITLE>
|
|
|
|
|
<link rel=stylesheet media=screen type=text/css title=design href=descriptions/diz/base.css >
|
|
|
|
|
<meta http-equiv=pragma content=no-cache >
|
|
|
|
|
<meta http-equiv=content-type content=text/html;charset=iso-8869-1 >
|
|
|
|
|
<link rel=shortcut icon type=image/x-icon href=favicon.ico >
|
2007-11-04 11:00:00 +00:00
|
|
|
|
|
2007-10-27 10:00:00 +00:00
|
|
|
|
<?php
|
|
|
|
|
require('../connectBDD.php');
|
2007-03-31 10:00:00 +00:00
|
|
|
|
|
|
|
|
|
function convert_ts_fr($tstamp) {
|
2007-10-27 10:00:00 +00:00
|
|
|
|
echo date ('d/m/Y H:i:s' , $tstamp );
|
|
|
|
|
}
|
2007-03-31 10:00:00 +00:00
|
|
|
|
?>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2007-10-27 10:00:00 +00:00
|
|
|
|
<?php
|
2007-03-31 10:00:00 +00:00
|
|
|
|
$retour = mysql_query("SELECT COUNT(*) AS nbre_entrees FROM bug");
|
|
|
|
|
$donnees = mysql_fetch_array($retour);
|
|
|
|
|
$bug = $donnees['nbre_entrees'];
|
|
|
|
|
|
|
|
|
|
|
2007-11-04 11:00:00 +00:00
|
|
|
|
if (isset($_GET['ok']) == 1) { echo "<br><table align=center><tr><td><font color=lime>Bug envoy<6F></font></td></tr></table>"; }
|
2007-03-31 10:00:00 +00:00
|
|
|
|
|
|
|
|
|
|
2007-11-04 11:00:00 +00:00
|
|
|
|
if ($bug > 0) {
|
|
|
|
|
echo "<table align=center width=560>";
|
|
|
|
|
$result = mysql_query("SELECT * FROM bug ORDER BY temps DESC");
|
|
|
|
|
while ($data = mysql_fetch_array($result)) {
|
2007-10-27 10:00:00 +00:00
|
|
|
|
echo "<tr><td>Exp<78>diteur : ".$data['pseudo']."</td></tr><tr><td>Le : "; convert_ts_fr($data['temps']);
|
2007-11-20 11:00:00 +00:00
|
|
|
|
echo"</td></tr><tr><td>Page concern<72>e : ".$data['page']."</td></tr><tr><td align=left><u>Description du bug :</u><br>".nl2br($data['description'])."</td></tr><tr><td style=\"height: 5px; border: none; background: inherit;\"></td></tr>";
|
2007-11-04 11:00:00 +00:00
|
|
|
|
}
|
2007-03-31 10:00:00 +00:00
|
|
|
|
echo "</table>";
|
2007-10-27 10:00:00 +00:00
|
|
|
|
}
|
2007-11-04 11:00:00 +00:00
|
|
|
|
else echo "<br><br><table align=center><tr><td><font color=red>Aucun bug trouv<75></font></td></tr></table>";
|
2007-03-31 10:00:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo"<br><br><br><br><br>
|
|
|
|
|
|
|
|
|
|
<form method=post action=validation_bug.php>
|
|
|
|
|
<center>Ajouter un bug<br><br>
|
|
|
|
|
<table>
|
|
|
|
|
<tr><td colspan=2 align=left><font color=red>Attention : bien lire les bugs deja propos<EFBFBD>,<br>l'utilisation abusive ou des bugs ayant non lieus seront sanctionn<EFBFBD>s.</font></td></tr>
|
2007-11-04 11:00:00 +00:00
|
|
|
|
<tr><td>Page concern<EFBFBD>e : <td><input type=text class=zone_texte size=44 maxlength=50 name=page></td></td></tr>
|
2007-11-03 11:00:00 +00:00
|
|
|
|
<tr><td>Description le plus pr<EFBFBD>cise possible du bug : <td><textarea cols=30 rows=12 name=description class=zone_texte></textarea></td></td></tr>
|
|
|
|
|
<tr><td colspan=2><input type=submit value=Envoyer class=bouton /></td></tr>
|
2007-03-31 10:00:00 +00:00
|
|
|
|
</table></center></form>";
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|