$a = @$_GET["a"]; } else if ( $_SERVER['REQUEST_METHOD'] == "POST" ) { $a = @$_POST["a"]; } /*-------------------------------------------------------------------- TRAITEMENTS ----------------------------------------------------------------------*/ switch ($a) { case 0 : // Afficher break; case 2 : // Modifier etat if(!empty($_GET['id'])) $id = $_GET['id']; CTemplate::set_current_template(basename($id)); break; case 5 : // Modifier 1 if(!empty($_GET['id'])) $id = $_GET['id']; $rep = CTemplate::get_info_file($id); $nom = $rep ['name']; $url_dest = $rep ['url']; $url_design = $url_dest . "/design.xml"; $template_objet= new CTemplate($nom); $design = $template_objet->design; break; case 55 : // Modifier 2 if(!empty($_POST['id'])) $id = $_POST['id']; if(!empty($_POST['nom'])) $nom = trim($_POST['nom']); $template_objet = new CTemplate(CFunction::addslashes($nom));