Esempio n. 1
0
    die;
}
if (isset($_GET["AddUserToFolderNFS"])) {
    AddUserToFolderNFS();
    exit;
}
if (isset($_GET["AddFreeUserToFolderNFS"])) {
    AddFreeUserToFolderNFS();
    exit;
}
if (isset($_GET["nfsacl"])) {
    echo nsfacls($_GET["nfsacl"]);
    exit;
}
if (isset($_GET["NFSComputerDelete"])) {
    NFSComputerDelete();
    exit;
}
if (isset($_GET["NFSComputerEdit"])) {
    NFSComputerEdit();
    exit;
}
if (isset($_GET["share-dir"])) {
    share_dir_js();
    exit;
}
if (isset($_GET["share-dir-popup"])) {
    share_dir_popup();
    exit;
}
if (isset($_GET["UnShareFolderNFS"])) {
Esempio n. 2
0
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.nfs.inc');
	include_once('ressources/class.computers.inc');

	
	$user=new usersMenus();
	if($user->AsSambaAdministrator==false){
		$tpl=new templates();
		echo $tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
		die();
	}

	if(isset($_GET["AddUserToFolderNFS"])){AddUserToFolderNFS();exit;}
	if(isset($_GET["AddFreeUserToFolderNFS"])){AddFreeUserToFolderNFS();exit;}
	if(isset($_GET["nfsacl"])){echo nsfacls($_GET["nfsacl"]);exit;}
	if(isset($_GET["NFSComputerDelete"])){NFSComputerDelete();exit;}
	if(isset($_GET["NFSComputerEdit"])){NFSComputerEdit();exit;}
	
if(isset($_GET["share-dir"])){share_dir_js();exit;}
if(isset($_GET["share-dir-popup"])){share_dir_popup();exit;}
if(isset($_GET["UnShareFolderNFS"])){UnShareFolderNFS();exit;}


function share_dir_js(){
$page=CurrentPageName();
	$prefix=str_replace('.','_',$page);
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{share_this_NFS}','fileshares.index.php');
	$title_computer=$tpl->_ENGINE_parse_body('{give_computer_nameip}','fileshares.index.php');
	$base=basename($_GET["share-dir-popup"]);