SAND-framework/application/traitements/traitement-example.php
Emmanuel ROY 4f4743ba8b update nude-sand index
update in order to make it simple to understand
2020-12-09 09:07:15 +01:00

19 lines
No EOL
520 B
PHP

<?php
$path = PATH_URL;
$bdd = new \MVC\Classe\Bdd();
\MVC\Domain\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");
}