Initial commit - Mini CMS complet (PHP + Docker + MinIO)

This commit is contained in:
Aya Tess tess
2025-11-01 16:42:38 +01:00
commit 9a57013505
3035 changed files with 131442 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
require_once 'config.php';
if (!isset($_SESSION['user_id'])) {
header("Location: login.php");
exit();
}
$id = $_GET['id'] ?? null;
$stmt = $pdo->prepare("DELETE FROM posts WHERE id = ?");
$stmt->execute([$id]);
header("Location: index.php");
exit();