forked from halo-battle/game
Second revision by Master Leon
This commit is contained in:
parent
4230eb6922
commit
b8e951f59d
382 changed files with 3112 additions and 14815 deletions
|
|
@ -1,28 +0,0 @@
|
|||
<?
|
||||
session_start();
|
||||
|
||||
$id = $_SESSION['id'];
|
||||
mysql_connect("leon.redby.fr", "leon0", "7268032");
|
||||
mysql_select_db("leon0");
|
||||
$x = mysql_query("SELECT pseudo FROM user WHERE id='".$id."'");
|
||||
$donnees = mysql_fetch_array($x);
|
||||
|
||||
$pseudo = $donnees['pseudo'];
|
||||
|
||||
if (isset($_POST['description']) && $_POST['description'] !='' ) {
|
||||
if (isset($_POST['page']) && $_POST['page'] !='' ) {
|
||||
|
||||
$temps = time();
|
||||
|
||||
mysql_query("INSERT INTO bug VALUES('', '$pseudo', '$temps', '".htmlspecialchars($_POST['page'])."', '".htmlspecialchars($_POST['description'])."')");
|
||||
mysql_close();
|
||||
@header("Location: rapport_bug.php?ok=1");
|
||||
}
|
||||
else { echo "Précisez la page concernée"; }
|
||||
}
|
||||
else { echo "La description n'est pas valide"; }
|
||||
|
||||
mysql_close();
|
||||
@header("Location: rapport_bug.php");
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue