/web/acc/admin/protocols_filter.php |
---|
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; |
} |
?> |
/web/intercept.php |
---|
594,7 → 594,7 |
$domain = explode('"', $domain_allowed[0]); |
// remove every '.' from the beginning of domain |
$domain[1] = ltrim($domain[1], '.'); |
echo '<a href="http://'.trim($domain[1]).'">'.trim($domain_allowed[1]).'</a>'; |
echo '<a href="http://'.trim($domain[1]).'">'.trim($domain_allowed[1]).'</a> '; |
} |
} |
} |