示例#1
0
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["automount-list"])) {
    popup_resource_automount_list();
    exit;
}
if (isset($_GET["popup-ressource"])) {
    popup_resource();
    exit;
}
if (isset($_GET["popup-schedule"])) {
    popup_schedule();
    exit;
}
if (isset($_GET["W_RESOURCE"])) {
    $_SESSION["WIZARD"]["W_RESOURCE"] = $_GET["W_RESOURCE"];
    exit;
}
if (isset($_GET["W_UUID"])) {
    $_SESSION["WIZARD"]["W_UUID"] = $_GET["W_UUID"];
    exit;
}
if (isset($_GET["W_LOCALDIR"])) {
    $_SESSION["WIZARD"]["W_LOCALDIR"] = $_GET["W_LOCALDIR"];
    exit;
}
if (isset($_GET["W_SMB_SERVER"])) {
示例#2
0
	include_once('ressources/class.cron.inc');
	include_once('ressources/class.backup.inc');
	include_once('ressources/class.autofs.inc');

$user=new usersMenus();
	if($user->AsSystemAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["automount-list"])){popup_resource_automount_list();exit;}
	if(isset($_GET["popup-ressource"])){popup_resource();exit;}
	if(isset($_GET["popup-schedule"])){popup_schedule();exit;}
	if(isset($_GET["W_RESOURCE"])){$_SESSION["WIZARD"]["W_RESOURCE"]=$_GET["W_RESOURCE"];exit;}
	if(isset($_GET["W_UUID"])){$_SESSION["WIZARD"]["W_UUID"]=$_GET["W_UUID"];exit;}
	if(isset($_GET["W_LOCALDIR"])){$_SESSION["WIZARD"]["W_LOCALDIR"]=$_GET["W_LOCALDIR"];exit;}
	
	
	
	if(isset($_GET["W_SMB_SERVER"])){
		$_SESSION["WIZARD"]["W_SMB_SERVER"]=$_GET["W_SMB_SERVER"];
		$_SESSION["WIZARD"]["W_SMB_USERNAME"]=$_GET["W_SMB_USERNAME"];
		$_SESSION["WIZARD"]["W_SMB_PASSWORD"]=$_GET["W_SMB_PASSWORD"];
		$_SESSION["WIZARD"]["W_SMB_SHAREDDIR"]=$_GET["W_SMB_SHAREDDIR"];
		exit;
	}
	
	if(isset($_GET["W_SSH_SERVER"])){