Files
webgui/plugins/dynamix/SMBsettings.page
2019-08-17 13:07:17 -07:00

89 lines
3.2 KiB
Plaintext

Menu="SMB:1"
Title="SMB Settings"
Tag="windows"
---
<?PHP
/* Copyright 2005-2018, Lime Technology
* Copyright 2012-2018, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
?>
<form markdown="1" name="SMBEnable" method="POST" action="/update.htm" target="progressFrame">
Enable SMB:
: <select name="shareSMBEnabled" size="1" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['shareSMBEnabled'], "no", "No")?>
<?=mk_option($var['shareSMBEnabled'], "yes", "Yes (Workgroup)")?>
<?=mk_option($var['shareSMBEnabled'], "ads", "Yes (Active Directory)")?>
</select>
> Select 'Yes (Workgroup)' to enable SMB (Windows Networking) protocol support. This
> also enables Windows host discovery.
>
> Select 'Yes (Active Directory)' to enable Active Directory integration.
Hide "dot" files:
: <select name="hideDotFiles" size="1" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['hideDotFiles'], "no", "No");?>
<?=mk_option($var['hideDotFiles'], "yes", "Yes");?>
</select>
> If set to 'Yes' then files starting with a '.' (dot) will appear as *hidden files* and normally
> will not appear in Windows folder lists unless you have "Show hidden files, folders, and drives" enabled
> in Windows Folder Options.
> If set to 'No' then dot files will appear in folder lists the same as any other file.
Enhanced macOS interoperability:
: <select name="enableFruit" size="1" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['enableFruit'], "no", "No");?>
<?=mk_option($var['enableFruit'], "yes", "Yes");?>
</select>
> When set to 'Yes' provides enhanced compatibility with Apple SMB clients, resulting, for example, in faster
> Finder browsing, and ability to export Time Machine shares. This may cause some issues with Windows clients, however.
> Please also refer to the [VFS_FRUIT MAN PAGE](https://www.mankier.com/8/vfs_fruit).
Use NETBIOS [experimental]:
: <select name="USE_NETBIOS" size="1" class="narrow">
<?=mk_option($var['USE_NETBIOS'], "no", "No")?>
<?=mk_option($var['USE_NETBIOS'], "yes", "Yes")?>
</select>
> Select 'Yes' to enable NETBIOS.
Use WSD [experimental]:
: <select name="USE_WSD" size="1" class="narrow" onchange="checkWSDSettings()">
<?=mk_option($var['USE_WSD'], "no", "No")?>
<?=mk_option($var['USE_WSD'], "yes", "Yes")?>
</select>
> Select 'Yes' to enable WSD (WS-Discovery).
WSD options [experimental]:
: <input type="text" name="WSD_OPT" maxlength="80" value="<?=htmlspecialchars($var['WSD_OPT'])?>">
> WSD daemon options.
&nbsp;
: <input type="submit" name="changeShare" value="Apply" disabled><input type="button" value="Done" onclick="done()"><?if ($var['fsState']=="Started"):?>Array must be <span class="strong big">Stopped</span> to change<?endif;?>
</form>
<script>
function checkWSDSettings() {
form=document.SMBEnable;
if (form.USE_WSD.value=="yes") {
form.WSD_OPT.disabled=false;
} else {
form.WSD_OPT.disabled=true;
}
}
$(checkWSDSettings);
</script>