Subversion Repositories ALCASAR

Rev

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

Rev 1521 Rev 1827
Line 78... Line 78...
78
 
78
 
79
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";}
79
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";}
80
switch ($choix)
80
switch ($choix)
81
{
81
{
82
case 'NF_On' :
82
case 'NF_On' :
83
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
83
	exec ("sudo /usr/local/bin/alcasar-nf.sh -on");
84
	break;
84
	break;
85
case 'NF_Off' :
85
case 'NF_Off' :
86
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -off");
86
	exec ("sudo /usr/local/bin/alcasar-nf.sh -off");
87
	break;
87
	break;
88
case 'new_port' :
88
case 'new_port' :
89
	if ((trim($_POST['add_port']) != "80") and ($_POST['add_port'] != "") and ($_POST['add_proto'] != "") and (is_numeric($_POST['add_port'])))
89
	if ((trim($_POST['add_port']) != "80") and ($_POST['add_port'] != "") and ($_POST['add_proto'] != "") and (is_numeric($_POST['add_port'])))
90
		{
90
		{
91
		$_POST['add_proto'] = str_replace (CHR(32),"-",$_POST['add_proto']);
91
		$_POST['add_proto'] = str_replace (CHR(32),"-",$_POST['add_proto']);