Example #1
0
function share_dir_popup()
{
    $nfsacl = "<div id='nfsacl'>" . nsfacls($_GET["share-dir-popup"]) . "</div>";
    $nfsacl = RoundedLightWhite($nfsacl);
    $nfs = new nfs();
    if (is_array($nfs->main_array[$_GET["share-dir-popup"]])) {
        $delete = imgtootltip('delete-48.png', '{delete_share}', 'UnShareFolderNFS()');
    }
    $base = basename($_GET["share-dir-popup"]);
    $html = "<h1>{$_GET["share-dir-popup"]}</h1>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'><img src='img/nfs-128.png'><br><br><center>{$delete}</center></td>\n\t<td valign='top'>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td align='left'><input type='button' OnClick=\"javascript:NFSFreeComputer();\" value='{add_computer_access}&nbsp;&raquo;'></td>\n\t\t\t<td align='right'><input type='button' OnClick=\"javascript:NFSSecurity();\" value='{browse_computers}&nbsp;&raquo;'></td>\n\t\t</tr>\n\t</table>\n\t\t{$nfsacl}\n</td>\n</tr>\n</table>\n\t\n\t\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, "fileshares.index.php");
}
Example #2
0
$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"])) {
Example #3
0
	include_once('ressources/class.ldap.inc');
	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"]);