Esempio n. 1
0
function _print_edit_buttons($dir)
{
    // for the copy button the user must have create and read rights
    _print_link("copy", permissions_grant_all($dir, NULL, array("create", "read")), $dir, NULL);
    _print_link("move", permissions_grant($dir, NULL, "change"), $dir, NULL);
    _print_link("delete", permissions_grant($dir, NULL, "delete"), $dir, NULL);
    _print_link("upload", permissions_grant($dir, NULL, "create") && get_cfg_var("file_uploads"), $dir, NULL);
    _print_link("archive", permissions_grant_all($dir, NULL, array("create", "read")) && ($GLOBALS["zip"] || $GLOBALS["tar"] || $GLOBALS["tgz"]), $dir, NULL);
}
Esempio n. 2
0
function _print_edit_buttons($dir)
{
    // for the copy button the user must have create and read rights
    _print_link("copy", permissions_grant_all($dir, NULL, array("create", "read")), $dir, NULL);
    _print_link("move", permissions_grant($dir, NULL, "change"), $dir, NULL);
    _print_link("delete", permissions_grant($dir, NULL, "delete"), $dir, NULL);
    // NAS4Free info: We disable upload function for security and limited space var/temp
    //	_print_link("upload", permissions_grant($dir, NULL, "create") && get_cfg_var("file_uploads"), $dir, NULL);
    //	_print_link("archive",
    //		permissions_grant_all($dir, NULL, array("create", "read"))
    //			&& ($GLOBALS["zip"] || $GLOBALS["tar"] || $GLOBALS["tgz"]),
    //		$dir, NULL);
}