Subversion Repositories ALCASAR

Rev

Rev 612 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 612 Rev 681
Line 71... Line 71...
71
	break;
71
	break;
72
case 'NF_Off' :
72
case 'NF_Off' :
73
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -off");
73
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -off");
74
	break;
74
	break;
75
case 'new_proto' :
75
case 'new_proto' :
-
 
76
	$_POST['add_proto'] = str_replace (CHR(32),"-",$_POST['add_proto']);
76
	if ((trim($_POST['add_port']) != "80") and ($_POST['add_port'] != "") and ($_POST['add_proto'] != "") and (is_numeric($_POST['add_port'])))
77
	if ((trim($_POST['add_port']) != "80") and ($_POST['add_port'] != "") and ($_POST['add_proto'] != "") and (is_numeric($_POST['add_port'])))
77
		{
78
		{
78
		$tab=file($services_list);
79
		$tab=file($services_list);
79
		if ($tab)
80
		if ($tab)
80
			{
81
			{