Menu="Share:1" Title="Share Settings" Tag="share-alt-square" --- "", "name" => "", "comment" => "", "allocator" => "highwater", "floor" => "", "splitLevel" => "", "include" => "", "exclude" => "", "useCache" => "no", "cachePool" => "cache", "cow" => "auto"]; } elseif (array_key_exists($name, $shares)) { /* edit existing share */ $share = $shares[$name]; } else { /* handle share deleted case */ echo "

"._('Share')." '".htmlspecialchars($name)."' "._('has been deleted').".

"; return; } /* check for empty share */ function shareEmpty($name) { return (($files = @scandir("/mnt/user/$name")) && (count($files) <= 2)); } function globalInclude($name) { global $var; return substr($name,0,4)=='disk' && (!$var['shareUserInclude'] || strpos("{$var['shareUserInclude']},","$name,")!==false); } // global shares include/exclude $myDisks = array_filter(array_diff(array_keys(array_filter($disks,'my_disks')), explode(',',$var['shareUserExclude'])), 'globalInclude'); ?> :share_edit_global1_help: :share_edit_global2_help:
_(Read settings from)_
_(Write settings to)_
":">"?> _(Share name)_: : :share_edit_name_help: _(Comments)_: : :share_edit_comments_help: _(Use cache pool (for new files/directories))_: : :share_edit_cache_pool_help: _(Select cache pool)_: : _(Enable Copy-on-write)_: : _(Set when adding new share only)_ :share_edit_copy_on_write_help: _(Allocation method)_: : :share_edit_allocation_method_help: _(Minimum free space)_: : :share_edit_free_space_help: _(Split level)_: : :share_edit_split_level_help: _(Included disk(s))_: : :share_edit_included_disks_help: _(Excluded disk(s))_: : :share_edit_excluded_disks_help:   : _(Share status)_: : _(Share is empty)_ :share_edit_status_help: _(Delete)_ : _(Share status)_: : _(Share contains data)_ :share_edit_delete_help:   :