/web/acc/admin/network.php |
---|
416,11 → 416,10 |
header('Location: '.$_SERVER['PHP_SELF']); |
exit(); |
case 'interlan': |
$CONF_FILE = CONF_FILE; |
if (isset($_POST['interlan'])) { |
exec('/bin/sed -i "s/^INTERLAN=.*/INTERLAN=on/g"'.$CONF_FILE); |
exec('/bin/sed -i "s/^INTERLAN=.*/INTERLAN=on/g" '.CONF_FILE); |
} else { |
exec('/bin/sed -i "s/^INTERLAN=.*/INTERLAN=off/g" '.$CONF_FILE); |
exec('/bin/sed -i "s/^INTERLAN=.*/INTERLAN=off/g" '.CONF_FILE); |
} |
exec('sudo /usr/local/bin/alcasar-iptables.sh'); |
header('Location: '.$_SERVER['PHP_SELF']); |