68,7 → 68,7 |
switch ($choix) |
{ |
case 'new_port' : |
if ((trim($_POST['add_port']) != "80") and ($_POST['add_port'] != "") and ($_POST['add_proto'] != "") and (is_numeric($_POST['add_port']))) |
if (($_POST['add_port'] != "") and ($_POST['add_proto'] != "") and (is_numeric($_POST['add_port']))) |
{ |
$_POST['add_proto'] = str_replace (CHR(32),"-",$_POST['add_proto']); |
$tab=file(SERVICES_LIST); |
131,7 → 131,7 |
} |
fclose($pointeur); |
} |
exec ("sudo /usr/local/bin/alcasar-iptables.sh -on"); |
exec ("sudo /usr/local/bin/alcasar-iptables.sh"); |
break; |
} |
?> |