Settings
Settings saved successfully!"; break; case 2: echo "Domain ACL saved successfully!"; break; case 3: echo "Blocked Client ACL saved successfully!"; break; case 4: echo "Allowed Client ACL saved successfully!"; break; default: break; } echo " "; if(db_getconfval("withsquid")=="1") { echo""; echo "
"; echo "
"; if ($_REQUEST["submit"] == "Speichern") { $fp = fopen(db_getconfval("sqdir")."/denied_domains.acl","w"); $data =$_REQUEST["inhalt"]; $data = str_replace("\r","",$data); exec("touch /var/vpn/squid_restart"); fputs($fp,$data); fclose($fp); echo ""; } if ($_REQUEST["submitc"] == "Speichern") { $fp = fopen(db_getconfval("sqdir")."/denied_clients.acl","w"); $data =$_REQUEST["inhaltc"]; $data = str_replace("\r","",$data); exec("touch /var/vpn/squid_restart"); fputs($fp,$data); fclose($fp); echo ""; } if ($_REQUEST["submita"] == "Speichern") { $fp = fopen(db_getconfval("sqdir")."/allowed_clients.acl","w"); $data =$_REQUEST["inhalta"]; $data = str_replace("\r","",$data); exec("touch /var/vpn/squid_restart"); fputs($fp,$data); fclose($fp); echo ""; } } ?>