Version 2007-10-27

This commit is contained in:
nemunaire 2007-10-27 12:00:00 +02:00
commit 4909921671
98 changed files with 6096 additions and 2268 deletions

View file

@ -1,28 +1,24 @@
<?
session_start();
<?php
session_start();
$id = $_SESSION['id'];
mysql_connect("localhost", "root", "");
mysql_select_db("wars");
require('../connectBDD.php');
$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");
if (isset($_POST['page']) && $_POST['page'] !='' ) {
$temps = time();
mysql_query("INSERT INTO bug VALUES('', '$pseudo', '$temps', '".htmlspecialchars($_POST['page'])."', '".nl2br(htmlspecialchars($_POST['description']))."')");
mysql_close();
@header("Location: rapport_bug.php?ok=1");
}
else echo "Précisez la page concernée";
}
else { echo "Précisez la page concernée"; }
}
else { echo "La description n'est pas valide"; }
else echo "La description n'est pas valide";
mysql_close();
@header("Location: rapport_bug.php");
@header("Location: rapport_bug.php");
?>