Version 1.7i

This commit is contained in:
nemunaire 2008-11-16 12:00:00 +01:00
commit ba5e741c99
136 changed files with 2561 additions and 2105 deletions

View file

@ -6,11 +6,13 @@ $titre = 'Rapports de bugs';
if (!empty($_POST['page']) && !empty($_POST['description'])) {
$pages = $_POST['page'];
$description = $_POST['description'];
$pseudo = $queryUser['pseudo'];
$time = time();
$bdd->connexion();
$bdd->escape($pages);
$bdd->escape($description);
$bdd->query("INSERT INTO `$table_bug` VALUES(NULL, '".$queryUser['pseudo']."', '".time()."', '$pages', '$description');");
$bdd->query("INSERT INTO $table_bug VALUES(NULL, '$pseudo', '$time', '$pages', '$description');");
$bdd->deconnexion();
header('Location: ?p=bugs');
exit;
@ -19,14 +21,14 @@ elseif (isset($_GET['a']) && $_GET['a'] == 'del' && isset($_GET['i']) && $sess->
$i = $_GET['i'];
$bdd->connexion();
$bdd->escape($i);
$bdd->query("DELETE FROM `$table_bug` WHERE `id` = '$i' LIMIT 1");
$bdd->query("DELETE FROM $table_bug WHERE id = '$i' LIMIT 1;");
$bdd->deconnexion();
header('Location: ?p=bugs');
exit;
}
$bdd->connexion();
$bugs = $bdd->query("SELECT id, pseudo, temps, page, description FROM `$table_bug` ORDER BY `id` DESC");
$bugs = $bdd->query("SELECT id, pseudo, temps, page, description FROM $table_bug ORDER BY id DESC");
$bdd->deconnexion();
$TEMP_bugs = array();
for ($i = 0; $i < $bdd->num_rows; $i++) {