%PDF- %PDF-
Direktori : /home/alliance/domains/congress-pact1in5.eu/public_html/ |
Current File : /home/alliance/domains/congress-pact1in5.eu/public_html/a-suppr_cat.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/session.php"); include_once("inc/init.php"); verif_co_admin(); $db = new BaseOps; $db->delete("categorie", "id = ".$_GET['id']); $db->delete("categorie_lang", "categorie = ".$_GET['id']." AND lang = 1"); $db->delete("categorie_lang", "categorie = ".$_GET['id']." AND lang = 2"); $db->recalcordre("categorie"); $result = $section->liste_sections_cat($_GET['id']); foreach($result as $sec) { $db->delete("section", "id = ".$sec['id']); $db->delete("section_lang", "section = ".$sec['id']." AND lang = 1"); $db->delete("section_lang", "section = ".$sec['id']." AND lang = 2"); } header("Location:liste_cat.php?msg=yes"); ?>