exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["SquidEnableProxyPac"])) { Save(); exit; } if (isset($_GET["pac-status"])) { Pac_status(); exit; } if (isset($_GET["add-freeweb-js"])) { add_freeweb_js(); exit; } js(); function add_freeweb_js() { header("content-type: application/x-javascript"); $page = CurrentPageName(); $tpl = new templates(); $t = time(); $addfree = $tpl->javascript_parse_text("{add_freeweb_wpad_explain}"); $t = $_GET["t"]; $html = "\n\t\t\n\tvar x_AddNewFreeWeb{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);}\n\tRefreshTab('main_config_proxypac');\n}\n\nfunction AddNewFreeWeb{$t}(){\nvar servername=prompt('{$addfree}');\nif(!servername){return;}\nvar XHR = new XHRConnection();\nXHR.appendData('ADD_DNS_ENTRY','');\nXHR.appendData('ForceInstanceZarafaID','');\nXHR.appendData('ForwardTo','');\nXHR.appendData('Forwarder','0');\nXHR.appendData('SAVE_FREEWEB_MAIN','yes');\nXHR.appendData('ServerIP','');\nXHR.appendData('UseDefaultPort','0');\nXHR.appendData('UseReverseProxy','0');\nXHR.appendData('gpid','');\nXHR.appendData('lvm_vg','');\nXHR.appendData('servername','wpad.'+servername);\nXHR.appendData('sslcertificate','');\nXHR.appendData('uid','');\nXHR.appendData('useSSL','0');\nXHR.appendData('force-groupware','WPAD');\nAnimateDiv('status-{$t}');\nXHR.sendAndLoad('freeweb.edit.main.php', 'POST',x_AddNewFreeWeb{$t});\n}\n\n\nAddNewFreeWeb{$t}();\n\n"; echo $html; } function js()
$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["status"])){status();exit;} if(isset($_GET["cas"])){cas_auth();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["options"])){options();exit;} if(isset($_POST["EnableArticaHotSpot"])){SaveEnable();exit;} if(isset($_POST["ArticaHotSpotPort"])){EnableArticaHotSpot();exit;} if(isset($_POST["EnableArticaHotSpotCAS"])){EnableArticaHotSpotCAS();exit;} if(isset($_GET["terme-of-use"])){echo terme_of_use();exit;} if(isset($_POST["USETERMSTEXT"])){xSaveOptions();exit;} if(isset($_POST["USELDAP"])){xSaveOptions();exit;} if(isset($_GET["add-freeweb-js"])){add_freeweb_js();exit;} if(isset($_GET["radius"])){radius_config();exit;} if(isset($_POST["RAD_SERVER"])){xSaveOptions();exit;} if(isset($_GET["hostspot-status"])){services_status();exit;} js(); function js(){ header("content-type: application/x-javascript"); $page=CurrentPageName(); $tpl=new templates(); $YahooWin=2; if(isset($_GET["YahooWin"])){$YahooWin=$_GET["YahooWin"];$YahooWinUri="&YahooWin={$_GET["YahooWin"]}";} $title=$tpl->_ENGINE_parse_body("{HotSpot} V3"); $html="