示例#1
0
    exit;
}
if (isset($_GET["step3"])) {
    step3();
    exit;
}
if (isset($_POST["www_cnx"])) {
    save_mem();
    exit;
}
if (isset($_POST["www_dest"])) {
    save_mem();
    exit;
}
if (isset($_POST["agree"])) {
    agree();
    exit;
}
js();
function suffix()
{
    return "&peer-id={$_REQUEST["peer-id"]}";
}
function js()
{
    $suffix = suffix();
    header("content-type: application/x-javascript");
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->javascript_parse_text("{new_server}");
    if (intval($_REQUEST["peer-id"]) > 0) {
if(!$usersmenus->AsSquidAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}
if(isset($_GET["step0"])){step0();exit;}
if(isset($_GET["step1"])){step1();exit;}
if(isset($_GET["step2"])){step2();exit;}
if(isset($_GET["step3"])){step3();exit;}
if(isset($_GET["step4"])){step4();exit;}

if(isset($_POST["DOMAIN"])){Save();exit;}
if(isset($_POST["LOCALNET"])){Save();exit;}
if(isset($_POST["PROXY"])){Save();exit;}
if(isset($_POST["agree"])){agree();exit;}


start_js();



function start_js(){
	header("content-type: application/x-javascript");
	$tpl=new templates();
	$page=CurrentPageName();
	$title=$tpl->javascript_parse_text("{autoconfiguration_wizard}");
	echo "YahooWin2(900,'$page?step0=yes','$title',true)";	
	
}