Exemplo n.º 1
0
    exit;
}
if (isset($_GET["website_block_delete"])) {
    url_regex_del();
    exit;
}
if (isset($_GET["force-upgrade-squid"])) {
    force_upgrade_squid();
    exit;
}
if (isset($_POST["DenyWebSiteImportPerform"])) {
    url_regex_popup_import_receive();
    exit;
}
if (isset($_GET["AllowAllNetworksInSquid"])) {
    AllowAllNetworksInSquid_save();
    exit;
}
function network_js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $your_network = $tpl->_ENGINE_parse_body("{your_network}");
    header("content-type: application/x-javascript");
    echo "\t\t\t\t\n\t\tYahooWin2(500,'squid.network.php?popup=yes','{$your_network}','');\n\t\t\n\t\t\n\t\tvar x_netadd= function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>3){alert(results);}\n\t\t\tYahooWin2(500,'{$page}?content=network','{$your_network}');\n\t\t\tif(document.getElementById('main_squid_quicklinks_config')){RefreshTab('main_squid_quicklinks_config');}\n\t\t\tif(document.getElementById('squid_main_config')){RefreshTab('squid_main_config');}\n\t\t\t\n\t\t}\n\t\t\n\t\tfunction netadd(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('addipfrom',document.getElementById('from_ip').value);\n\t\t\tXHR.appendData('addipto',document.getElementById('to_ip').value);\n\t\t\tdocument.getElementById('squid_network_id').innerHTML='<center style=\"width:100%\"><img src=img/wait_verybig.gif></center>';\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_netadd);\t\n\t\t}\n\t\t\n\t\tfunction NetDelete(num){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('NetDelete',num);\n\t\t\tdocument.getElementById('squid_network_id').innerHTML='<center style=\"width:100%\"><img src=img/wait_verybig.gif></center>';\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_netadd);\t\n\t\t}\n\t\t\n\t\tfunction SquidnetaddCheck(e){\n\t\t\tif(checkEnter(e)){netadd();}\n\t\t}\n\t\t\n\t\tfunction SquidnetaddSingleCheck(e){\n\t\t\tif(checkEnter(e)){SquidnetaddSingle();}\n\t\t}\n\t\t\n\t\tfunction SquidnetaddSingle(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('add-ip-single',document.getElementById('FREE_FIELD').value);\n\t\t\tdocument.getElementById('squid_network_id').innerHTML='<center style=\"width:100%\"><img src=img/wait_verybig.gif></center>';\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_netadd);\t\n\t\t}\t\t\n\n\t\t\n\t\t\n\t\t";
}
function ldap_auth_save()
{
    $squid = new squidbee();
    $tpl = new templates();
    $squid->LDAP_AUTH = $_GET["ldap_auth"];
Exemplo n.º 2
0
	if(isset($_GET["standard_dns"])){dns_popup_index();exit;}
	if(isset($_GET["dns_cache"])){dns_popup_cache();exit;}
	
	
	
	
	
	
	
	
	if(isset($_GET["enable_plugins"])){plugins_save();exit;}
	if(isset($_GET["website_block"])){url_regex_save();exit;}
	if(isset($_GET["website_block_delete"])){url_regex_del();exit;}
	if(isset($_GET["force-upgrade-squid"])){force_upgrade_squid();exit;}
	if(isset($_POST["DenyWebSiteImportPerform"])){url_regex_popup_import_receive();exit;}
	if(isset($_GET["AllowAllNetworksInSquid"])){AllowAllNetworksInSquid_save();exit;}


	
	function network_js(){
		$page=CurrentPageName();
		$tpl=new templates();
		$your_network=$tpl->_ENGINE_parse_body("{your_network}");
		header("content-type: application/x-javascript");
		echo "				
		YahooWin2(500,'squid.network.php?popup=yes','$your_network','');
		
		
		var x_netadd= function (obj) {
			var results=obj.responseText;
			if(results.length>3){alert(results);}