diff --git a/plugins/dynamix/DiskList.page b/plugins/dynamix/DiskList.page index b564c690a..6ff9122d5 100644 --- a/plugins/dynamix/DiskList.page +++ b/plugins/dynamix/DiskList.page @@ -4,8 +4,8 @@ Tag="user-circle-o" Cond="$var['fsState']!='Stopped' && $var['shareDisk']!='no'" --- - +
NameCommentSMBNFSAFPSizeFreeView
NameCommentSMBNFSAFPTypeSizeFreeView

diff --git a/plugins/dynamix/ManagementAccess.page b/plugins/dynamix/ManagementAccess.page index 2320a13f8..e7809fac8 100644 --- a/plugins/dynamix/ManagementAccess.page +++ b/plugins/dynamix/ManagementAccess.page @@ -4,8 +4,8 @@ Icon="icon-key" Tag="expeditedssl" --- - - +
NameCommentSMBNFSAFPSizeFreeView
NameCommentSMBNFSAFPCacheSizeFreeView

diff --git a/plugins/dynamix/UserEdit.page b/plugins/dynamix/UserEdit.page index 81f3f8129..13f2b25f0 100644 --- a/plugins/dynamix/UserEdit.page +++ b/plugins/dynamix/UserEdit.page @@ -181,12 +181,12 @@ foreach ($users as $user) { } foreach ($shares as $share => $data) { echo "security[\"$share\"]=\"{$sec[$share]['security']}\";\n"; - echo "readList[\"$share\"]=\"{$sec[$share]['readList']},\";\n"; - echo "writeList[\"$share\"]=\"{$sec[$share]['writeList']},\";\n"; + echo "readList[\"$share\"]=\",{$sec[$share]['readList']},\";\n"; + echo "writeList[\"$share\"]=\",{$sec[$share]['writeList']},\";\n"; } ?> function updateAccess(form,data,n,i) { - var name = ","; + var name = ",,"; if (data) { if (n' : ''; break; case 'private': - if (user+',' == name) access = $(this).val(); + if (','+user+',' == name) access = $(this).val(); else access = writeList[share].indexOf(name)!==-1 ? '' : (readList[share].indexOf(name)!==-1 ? '' : ''); break; } diff --git a/plugins/dynamix/include/DiskList.php b/plugins/dynamix/include/DiskList.php index 3a2f74d89..44d0691a5 100644 --- a/plugins/dynamix/include/DiskList.php +++ b/plugins/dynamix/include/DiskList.php @@ -1,6 +1,6 @@ $disk) { echo "".disk_share_settings($var['shareNFSEnabled'], $sec_nfs[$name]).""; echo "".disk_share_settings($var['shareAFPEnabled'], $sec_afp[$name]).""; $cmd="/webGui/scripts/disk_size"."&arg1=".urlencode($name)."&arg2=ssz2"; + $type = $disk['rotational'] ? 'HDD' : 'SSD'; if (array_key_exists($name, $ssz2)) { + echo "$type"; echo "".my_scale(($disk['fsSize'])*1024, $unit)." $unit"; echo "".my_scale($disk['fsFree']*1024, $unit)." $unit"; echo ""; @@ -106,12 +108,14 @@ foreach ($disks as $name => $disk) { echo ""; echo ""; echo ""; + echo ""; echo "".my_scale($sharesize*1024, $unit)." $unit"; echo "".my_scale($disk['fsFree']*1024, $unit)." $unit"; echo ""; echo ""; } } else { + echo "$type"; echo "Compute..."; echo "".my_scale($disk['fsFree']*1024, $unit)." $unit"; echo ""; @@ -119,6 +123,6 @@ foreach ($disks as $name => $disk) { } } if ($row==0) { - echo "There are no exportable disk shares"; + echo "There are no exportable disk shares"; } ?> diff --git a/plugins/dynamix/include/Download.php b/plugins/dynamix/include/Download.php index f6800cbb6..6b4598e0f 100644 --- a/plugins/dynamix/include/Download.php +++ b/plugins/dynamix/include/Download.php @@ -1,6 +1,6 @@ diff --git a/plugins/dynamix/include/ShareList.php b/plugins/dynamix/include/ShareList.php index 8d5f69a4c..a78d18eca 100644 --- a/plugins/dynamix/include/ShareList.php +++ b/plugins/dynamix/include/ShareList.php @@ -1,6 +1,6 @@ $share) { echo "".user_share_settings($var['shareNFSEnabled'], $sec_nfs[$name]).""; echo "".user_share_settings($var['shareAFPEnabled'], $sec_afp[$name]).""; $cmd="/webGui/scripts/share_size"."&arg1=".urlencode($name)."&arg2=ssz1"; + $cache = ucfirst($share['useCache']); if (array_key_exists($name, $ssz1)) { + echo "$cache"; echo "".my_scale($ssz1[$name]['disk.total']*1024, $unit)." $unit"; echo "".my_scale($share['free']*1024, $unit)." $unit"; echo ""; @@ -107,12 +109,14 @@ foreach ($shares as $name => $share) { echo ""; echo ""; echo ""; + echo ""; echo "".my_scale($disksize*1024, $unit)." $unit"; echo "".my_scale($disks[$diskname]['fsFree']*1024, $unit)." $unit"; echo ""; echo ""; } } else { + echo "$cache"; echo "Compute..."; echo "".my_scale($share['free']*1024, $unit)." $unit"; echo ""; @@ -120,5 +124,5 @@ foreach ($shares as $name => $share) { } } if ($row==0) { - echo "There are no exportable user shares"; + echo "There are no exportable user shares"; } diff --git a/plugins/dynamix/scripts/update_access b/plugins/dynamix/scripts/update_access index 4f53f15ef..36d83aa94 100755 --- a/plugins/dynamix/scripts/update_access +++ b/plugins/dynamix/scripts/update_access @@ -15,6 +15,7 @@ fi [[ -z $USE_TELNET ]] && USE_TELNET=yes [[ -z $PORTTELNET ]] && PORTTELNET=23 [[ -z $USE_SSH ]] && USE_SSH=yes +[[ -z $USE_UPNP ]] && USE_UPNP=yes [[ -z $PORTSSH ]] && PORTSSH=22 # get management IP addresses @@ -57,6 +58,13 @@ else /etc/rc.d/rc.sshd stop >/dev/null fi +# enable/disable UPnP function +if [[ $USE_UPNP == yes ]]; then + [[ ! -x /usr/bin/upnpc ]] && chmod +x /usr/bin/upnpc +else + [[ -x /usr/bin/upnpc ]] && chmod -x /usr/bin/upnpc +fi + # update TELNET listening port sed -ri "s/^(telnet\s+)[0-9]+\/(tcp|udp)\$/\1${PORTTELNET}\/\2/" $SERV