require_once('Fonctions.php'); if(isset($_COOKIE["Prout"])) { if($_COOKIE["Prout"] == 315) { if(isset($_GET["X"]) and $_GET["X"] != "") { if(isset($_GET["ID"]) and $_GET["ID"] != "") { if(isset($_POST["Modifier"])) { $ID = $_GET["ID"]; $modifier = modifier($ID, $_POST); header('Location:Open.php?S='.$_POST["Societe"].'&ID='.$ID.''); } if(isset($_POST["Supprimer"])) { } } else { if(isset($_POST["Ajouter"])) { $ajouter = ajouter($_POST); header('Location:Open.php'); } } } else { header('Location:index.php'); } } else { header('Location:index.php'); } } else { header('Location:index.php'); } ?> if($_GET["X"] == "M") { $ID = $_GET["ID"]; $debut = debut($ID); ?>
} elseif($_GET["X"] == "A") {?> } elseif($_GET["X"] == "S") { $ID = $_GET["ID"]; $debut = debut($ID); if($debut["Actif"]) {?>echo $debut["Societe"];?> est actif. Tu ne peux pas la supprimer.
} else {?>echo $debut["Societe"];?>
}?> }?>