예제 #1
0
}
if (isset($_GET["SMTP_DOM"])) {
    $_SESSION["WIZARD"]["SMTP_DOM"] = $_GET["SMTP_DOM"];
    $_SESSION["WIZARD"]["MAILBOX_IP"] = $_GET["MAILBOX_IP"];
    exit;
}
if (isset($_GET["SMTP_NET"])) {
    $_SESSION["WIZARD"]["SMTP_NET"] = $_GET["SMTP_NET"];
    exit;
}
if (isset($_GET["popup-finish"])) {
    popup_finish();
    exit;
}
if (isset($_GET["COMPILE"])) {
    COMPILE();
    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\t\tfunction WizardBackupLoad(){YahooWin(650,'{$page}?popup=yes','{$title}');}\n\t\tfunction WizardRessourceShow(){YahooWin(650,'{$page}?popup-ressource=yes','{$WIZARD_CONFIGURE_RESOURCE}');}\n\t\tfunction WizardScheduleShow(){YahooWin(650,'{$page}?popup-schedule=yes','{$WIZARD_CONFIGURE_SCHEDULE}');}\n\t\tfunction WizardFinish(){YahooWin(650,'{$page}?popup-finish=yes','{$WIZARD_FINISH}');}\n\t\t\n\n\t\t\n\t\tfunction CancelBackupWizard(){\n\t\t\tYahooWinHide();\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('WIZARD_CANCEL','yes');\n\t\t\tXHR.sendAndLoad('{$page}', 'GET');\t\t\t\n\t\t}\n\t\t\n\tvar x_WizardRessource= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\tWizardRessourceShow();\n\t }\t\n\t \n\tvar x_WizardUSBSaveRessource= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\tWizardScheduleShow();\n\t }\t\n\n\tvar x_WizardBackupScheduleSave= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\tWizardFinish();\n\t }\n\n\t var x_WizardBackupCompile= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){\n\t\t\talert(tempvalue);\n\t\t\treturn;\n\t\t\t}\n\t\tWizardBackupLoad();\n\t\tif(document.getElementById('main_config_backup_tasks')){RefreshTab('main_config_backup_tasks');}\n\t }\n\n\n\nfunction CloseTimeOut(){\n\t\tLoadjs('domains.manage.org.index.php?js=yes&ou='+document.getElementById('ou').value);\n\t \tYahooWinHide();\n\t \t\n\t}\n\n\tfunction WizardRessource(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tvar storage=document.getElementById('storage').value;\n\t\t\tif(storage.length>1){\n\t\t\t\tXHR.appendData('W_RESOURCE',storage);\n\t\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_WizardRessource);\n\t\t\t}\n\t\t}\n\t\t\n\tfunction WizardUSBSaveRessource(){\n\t\tvar XHR = new XHRConnection();\n\t\tvar UUID=document.getElementById('UUID').value;\n\t\tif(UUID.length>1){\n\t\t\t\tXHR.appendData('W_UUID',UUID);\n\t\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_WizardUSBSaveRessource);\n\t\t\t}\n\t}\n\t\n\tfunction WizardSMBSaveRessource(){\n\t\tvar XHR = new XHRConnection();\n\t\tvar W_SMB_SERVER=document.getElementById('W_SMB_SERVER').value;\n\t\tif(W_SMB_SERVER.length>1){\n\t\t\t\tXHR.appendData('W_SMB_SERVER',W_SMB_SERVER);\n\t\t\t\tXHR.appendData('W_SMB_USERNAME',document.getElementById('W_SMB_USERNAME').value);\n\t\t\t\tXHR.appendData('W_SMB_PASSWORD',document.getElementById('W_SMB_PASSWORD').value);\n\t\t\t\tXHR.appendData('W_SMB_SHAREDDIR',document.getElementById('W_SMB_SHAREDDIR').value);\n\t\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_WizardUSBSaveRessource);\n\t\t\t}\n\t}\t\n\t\n\t\n\tfunction WizardAutomountSaveRessource(dir){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('W_AUTOMOUNT_DIR',dir);\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_WizardUSBSaveRessource);\n\t}\t\t\n\n\tfunction WizardBackupScheduleSave(){\n\t\tvar XHR = new XHRConnection();\n\t\tvar CRON_DAYS=document.getElementById('CRON_DAYS').value;\n\t\tif(CRON_DAYS.length>0){\n\t\t\t\tXHR.appendData('CRON_DAYS',CRON_DAYS);\n\t\t\t\tXHR.appendData('CRON_HOURS',document.getElementById('CRON_HOURS').value);\n\t\t\t\tXHR.appendData('CRON_MIN',document.getElementById('CRON_MIN').value);\n\t\t\t\tXHR.appendData('CRON_CONTAINER',document.getElementById('CRON_CONTAINER').value);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_WizardBackupScheduleSave);\n\t\t\t}\n\t}\n\n\t\n\tfunction WizardBackupCompile(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('BACKUP_COMPILE','yes');\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_WizardBackupCompile);\n\t}\n\t\n\t\n\n\t\t  \n\t\n\t\n\tWizardBackupLoad();";
    echo $html;
}
예제 #2
0
		exit;
		}		
		
	
	if(isset($_GET["WIZARD_CANCEL"])){WIZARD_CANCEL();exit;}
	if(isset($_GET["BACKUP_COMPILE"])){BACKUP_COMPILE();exit;}
	
	if(isset($_GET["SMTP_DOM"])){
		$_SESSION["WIZARD"]["SMTP_DOM"]=$_GET["SMTP_DOM"];
		$_SESSION["WIZARD"]["MAILBOX_IP"]=$_GET["MAILBOX_IP"];
		exit;
	}
	
	if(isset($_GET["SMTP_NET"])){$_SESSION["WIZARD"]["SMTP_NET"]=$_GET["SMTP_NET"];exit;}
	if(isset($_GET["popup-finish"])){popup_finish();exit;}
	if(isset($_GET["COMPILE"])){COMPILE();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="
	
		function WizardBackupLoad(){YahooWin(650,'$page?popup=yes','$title');}