quelque amelioration

This commit is contained in:
2025-11-02 23:20:42 +01:00
parent 26c06eae90
commit 296b5c5a62
19 changed files with 461 additions and 328 deletions

View File

@@ -3,8 +3,8 @@
global $pdo;
require '../include/db.php';
require '../include/auth.php';
require '../include/db.php';
requireLogin();
@@ -12,7 +12,7 @@ $id = isset($_GET['id']) ? (int)$_GET['id'] : 0;
// Id est pas valide on retourne au tableau
if ($id <= 0) {
header('Location: board.php');
header('Location: dashboard.php');
exit;
}
@@ -23,7 +23,7 @@ $article = $stmt->fetch();
// Article est pas valide on retourne au tableau
if (!$article) {
header('Location: board.php');
header('Location: dashboard.php');
exit;
}
@@ -50,7 +50,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
]);
header('Location: board.php');
header('Location: dashboard.php');
exit;
}
}
@@ -81,7 +81,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
<textarea name="contenu" rows="10" required><?= htmlspecialchars($contenu) ?></textarea>
</label><br>
<button type="submit">Enregistrer</button>
<a href="board.php">Annuler</a>
<a href="dashboard.php">Annuler</a>
</form>
</body>