Exemplo n.º 1
0
include_once 'ressources/class.users.menus.inc';
$user = new usersMenus();
if ($user->AsArticaAdministrator == false) {
    die;
    exit;
}
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["branch_id"])) {
    json_root();
    exit;
}
if (isset($_GET["TreeRightInfos"])) {
    TreeRightInfos();
    exit;
}
$page = CurrentPageName();
$html = "\nYahooWin4(450,'{$page}?main_disks_discover=yes&t={$_GET["t"]}');\n";
echo $html;
function Get_mounted_path($dev, $array)
{
Exemplo n.º 2
0
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.samba.inc');
	include_once('ressources/class.nfs.inc');
	include_once("ressources/class.harddrive.inc");
	
	$users=new usersMenus();
	if(!IsPriv()){
		$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}");