Exemplo n.º 1
0
    rmdirp();
    exit;
}
if (isset($_GET["null"])) {
    exit;
}
if (isset($_GET["hidden-add"])) {
    hidden_disk_js();
    exit;
}
if (isset($_GET["hidden-disk-popup"])) {
    hidden_disk_popup();
    exit;
}
if (isset($_GET["add-disk-save"])) {
    hidden_disk_save();
    exit;
}
if (isset($_GET["del-disk-save"])) {
    hidden_disk_delete();
    exit;
}
$page = CurrentPageName();
$tpl = new templates();
$start = "Browse();";
if (isset($_GET["in-front-ajax"])) {
    $start = "Browse2();";
}
$title = $tpl->_ENGINE_parse_body("{browse}" . "... {folders}");
$html = "\nvar x_DeleteHiddenDisk= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>0){alert(results);}\n\tLoadjs('SambaBrowse.php');\n\t}\t\n\n\t\n\tfunction DeleteHiddenDisk(disk){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('del-disk-save',disk);\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_DeleteHiddenDisk);\n\t}\n\n\tfunction Browse(){\n\t\tLoadWinORG(740,'{$page}?main_disks_discover=yes&t={$_GET["t"]}&homeDirectory={$_GET["homeDirectory"]}&no-shares={$_GET["no-shares"]}&field={$_GET["field"]}&protocol={$_GET["protocol"]}&no-hidden={$_GET["no-hidden"]}','{$title}');\n\n\t}\n\t\n\tfunction Browse2(){\n\t\t\$('#BodyContent').load('{$page}?main_disks_discover=yes&t={$_GET["t"]}&homeDirectory={$_GET["homeDirectory"]}&no-shares={$_GET["no-shares"]}&field={$_GET["field"]}&protocol={$_GET["protocol"]}&no-hidden={$_GET["no-hidden"]}');\n\t}\t\n{$start}\n";
echo $html;
Exemplo n.º 2
0
		$tpl=new templates();
		$error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
		echo "alert('$error')";
		die();
	}
	
	if(isset($_GET["jdisk"])){echo jdisk();exit;}
	if(isset($_GET["main_disks_discover"])){echo main_disks_discover();exit;}
	if(isset($_GET["browsedisk_start"])){echo browsedisk_start();exit;}
	if(isset($_POST["dir"])){json_root();exit;}
	if(isset($_GET["TreeRightInfos"])){TreeRightInfos();exit;}
	if(isset($_GET["rmdirp"])){rmdirp();exit;}
	if(isset($_GET["null"])){exit;}
	if(isset($_GET["hidden-add"])){hidden_disk_js();exit;}
	if(isset($_GET["hidden-disk-popup"])){hidden_disk_popup();exit;}
	if(isset($_GET["add-disk-save"])){hidden_disk_save();exit;}
	if(isset($_GET["del-disk-save"])){hidden_disk_delete();exit;}
	$page=CurrentPageName();
	$tpl=new templates();

	$start="Browse();";
	if(isset($_GET["in-front-ajax"])){$start="Browse2();";}	

	$title=$tpl->_ENGINE_parse_body("{browse}"."... {folders}");
	
$html="
var x_DeleteHiddenDisk= function (obj) {
	var results=obj.responseText;
	if(results.length>0){alert(results);}
	Loadjs('SambaBrowse.php');
	}