prepare('SELECT sf.title, GROUP_CONCAT(f.path) as fpaths FROM source_file sf LEFT JOIN files f ON sf.id = f.source_file_id WHERE sf.id = ? GROUP BY sf.id'); $st->execute([$id]); $row = $st->fetch(); if ($row) { if ($row['fpaths']) { foreach (explode(',', $row['fpaths']) as $path) { if (file_exists($path)) unlink($path); } } db()->prepare('DELETE FROM source_file WHERE id = ?')->execute([$id]); flash('success', "Entrée supprimée."); } header('Location: /'); exit; } // Comptes pour le dropdown transfert $otherAccounts = db()->query('SELECT id, username, display_name FROM accounts WHERE active = 1 ORDER BY username')->fetchAll(); html_head('Courriers'); html_navbar('mail'); ?>
Courriers traités
— 10s
Date Compte Sujet Expéditeur Pièces jointes Actions
Chargement…