exit; } if (isset($_GET["proxies-list"])) { proxies_list(); exit; } if (isset($_GET["add-proxy"])) { proxies_add_popup(); exit; } if (isset($_POST["authip-add"])) { proxies_add(); exit; } if (isset($_POST["proxy-delete"])) { proxies_delete(); exit; } if (isset($_POST["proxy-enable"])) { proxies_enabled(); exit; } popup(); function popup() { $tpl = new templates(); $sock = new sockets(); $page = CurrentPageName(); $tpl = new templates(); $q = new mysql_squid_builder(); $sql = "CREATE TABLE IF NOT EXISTS `nginx_exchecp` (\n\t\t\t`ID` INT( 5 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,\n\t\t\t`hostname` VARCHAR( 255 ) NOT NULL ,\n\t\t\t`ipsrc` VARCHAR( 255 ) NOT NULL ,\n\t\t\t`enabled` INT( 1 ) NOT NULL DEFAULT '1',\n\t\t\tINDEX ( `enabled`,`ipsrc`,`hostname` )) ENGINE=MYISAM;";
$user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["proxies-list"])){proxies_list();exit;} if(isset($_GET["add-proxy"])){proxies_add_popup();exit;} if(isset($_POST["ipsrc"])){proxies_add();exit;} if(isset($_POST["proxy-delete"])){proxies_delete();exit;} if(isset($_POST["proxy-enable"])){proxies_enabled();exit;} js(); function js(){ $t=time(); $tpl=new templates(); $page=CurrentPageName(); $title=$tpl->_ENGINE_parse_body("{proxy_child}"); $html="YahooWin4(600,'$page?popup=yes','$title')"; echo $html; } function popup(){ $tpl=new templates();