} if(isset($_GET["REMOTE_ARTICA_SERVER"])){ $_SESSION["WIZARD_CYRUS"]["REMOTE_ARTICA_SERVER"]=$_GET["REMOTE_ARTICA_SERVER"]; $_SESSION["WIZARD_CYRUS"]["REMOTE_ARTICA_SERVER_PORT"]=$_GET["REMOTE_ARTICA_SERVER_PORT"]; $_SESSION["WIZARD_CYRUS"]["REMOTE_ARTICA_USR"]=$_GET["REMOTE_ARTICA_USR"]; $_SESSION["WIZARD_CYRUS"]["REMOTE_ARTICA_PASS"]=$_GET["REMOTE_ARTICA_PASS"]; exit; } if(isset($_GET["LOCAL_ARTICA_SERVER"])){build();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["popup-cluster-infos"])){popup_cluster_infos();exit;} if(isset($_GET["popup-cluster-finish"])){popup_cluster_finish();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{WIZARD_BACKUP}"); $WIZARD_CONFIGURE_RESOURCE=$tpl->_ENGINE_parse_body("{WIZARD_BACKUP_CHOOSE_STORAGE}"); $WIZARD_COMPILE=$tpl->_ENGINE_parse_body("{WIZARD_COMPILE}"); $WIZARD_CONFIGURE_SCHEDULE=$tpl->_ENGINE_parse_body("{WIZARD_CONFIGURE_SCHEDULE}"); $WIZARD_FINISH=$tpl->_ENGINE_parse_body("{WIZARD_FINISH}"); $html="
exit; } if (isset($_GET["LOCAL_ARTICA_SERVER"])) { build(); exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["popup-cluster-infos"])) { popup_cluster_infos(); exit; } if (isset($_GET["popup-cluster-finish"])) { popup_cluster_finish(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body("{WIZARD_BACKUP}"); $WIZARD_CONFIGURE_RESOURCE = $tpl->_ENGINE_parse_body("{WIZARD_BACKUP_CHOOSE_STORAGE}"); $WIZARD_COMPILE = $tpl->_ENGINE_parse_body("{WIZARD_COMPILE}"); $WIZARD_CONFIGURE_SCHEDULE = $tpl->_ENGINE_parse_body("{WIZARD_CONFIGURE_SCHEDULE}"); $WIZARD_FINISH = $tpl->_ENGINE_parse_body("{WIZARD_FINISH}"); $html = "\n\t\n\tfunction WizardCyrusClusterLoad(){YahooWin2(650,'{$page}?popup=yes','{$title}');}\n\tfunction WizardCyrusClusterInfos(){YahooWin2(650,'{$page}?popup-cluster-infos=yes','{$title}');}\n\tfunction WizardCyrusClusterFinish(){YahooWin2(650,'{$page}?popup-cluster-finish=yes','{$title}');}\n\t\n\tvar x_WizardCyrusReplicaSave= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\tWizardCyrusClusterInfos();\n\t }\t\n\t \n\tvar x_WizardClusterBuild= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue);return;};\n\t\tLoadjs('cyrus.clusters.php');\n\t\tYahooWin2Hide();\n\t }\t\t \n\t \n\t\t\n\t\t\n\tfunction WizardCyrusReplicaSave(){\n\t\tvar XHR = new XHRConnection();\n\t\tvar REMOTE_ARTICA_SERVER=document.getElementById('REMOTE_ARTICA_SERVER').value;\n\t\tif(REMOTE_ARTICA_SERVER.length>1){\n\t\t\t\tXHR.appendData('REMOTE_ARTICA_SERVER',REMOTE_ARTICA_SERVER);\n\t\t\t\tXHR.appendData('REMOTE_ARTICA_SERVER_PORT',document.getElementById('REMOTE_ARTICA_SERVER_PORT').value);\n\t\t\t\tXHR.appendData('REMOTE_ARTICA_USR',document.getElementById('REMOTE_ARTICA_USR').value);\n\t\t\t\tXHR.appendData('REMOTE_ARTICA_PASS',document.getElementById('REMOTE_ARTICA_PASS').value);\n\t\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_WizardCyrusReplicaSave);\n\t\t\t}\n\t}\n\n\tfunction WizardClusterBuild(){\n\t\tvar XHR = new XHRConnection();\n\t\tvar LOCAL_ARTICA_SERVER=document.getElementById('LOCAL_ARTICA_SERVER').value;\n\t\tif(LOCAL_ARTICA_SERVER.length>1){\n\t\t\t\tXHR.appendData('LOCAL_ARTICA_SERVER',LOCAL_ARTICA_SERVER);\n\t\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_WizardClusterBuild);\n\t\t\t}\n\t}\t\n\t\n\t \n\t\t\n\t\t\n\t\tWizardCyrusClusterLoad();\n\t\t"; echo $html; }