quelque amelioration
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user