SAND-framework/application/traitements/traitement-example.php
Emmanuel ROY 21ec903fa9 Ajout et tests des modules Wordpress et Prestashop
Installation finalisée pour wordpress
Installation en erreur pour Prestashop
2019-12-06 17:35:12 +01:00

21 lines
555 B
PHP

<?php
require OBJETS_PATH.DIRECTORY_SEPARATOR."host.class.php";
$path = PATH_URL;
$bdd = new Bdd();
Host::addHost($bdd,$_POST['ip'],$_POST['nom']);
switch($_POST['from']){
case "vlan-zone+" :
case "vlan-zone" :
header("Location: $path{$_POST['from']}/vlan/{$_POST['vlan']}/alert/2/host/{$_POST['ip']}");
break;
case "ip-zone+" :
case "ip-zone" :
header("Location: $path{$_POST['from']}/motif-ip/{$_POST['motif-ip']}/alert/2/host/{$_POST['ip']}");
break;
default:
header("Location: $path");
}