2025-01-29 22:30:31 +08:00

17 lines
254 B
PHP

<?php
require_once '../includes/auth.php';
checkLogin();
$id = $_GET['id'] ?? '';
if (!empty($id)) {
$filePath = "../configs/{$id}.json";
if (file_exists($filePath)) {
unlink($filePath);
}
}
header('Location: index.php');
exit;
?>