if (1 == 1) { $page_redirection = "/admin/tarif_categorie/liste.php"; if ($debug) { echo "Redirection vers " . $page_redirection; } else { header("Location: " . $page_redirection); } exit; } // ---------------------------------------------- // } // -------------------------------------------------------------------- // } elseif ($_GET["action"] == 'delete') { try { $categorie = new Tarif_categorie(); $result = $categorie->supprimer($_GET["id"], $debug); if (!$debug) { header("Location: /admin/tarif_categorie/liste.php"); } } catch (Exception $e) { echo 'Erreur contactez votre administrateur <br> :', $e->getMessage(), "\n"; $goldbook = null; exit; } } else { if ($debug) { echo "ERREUR!!!"; } else { header('Location: /admin/'); } }