First code received by Master Leon

This commit is contained in:
nemunaire 2007-03-31 12:00:00 +02:00
commit 4230eb6922
330 changed files with 15543 additions and 0 deletions

28
validation_bug.php Normal file
View file

@ -0,0 +1,28 @@
<?
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");
?>