mirror of
https://github.com/unraid/webgui.git
synced 2026-01-01 15:10:19 -06:00
92 lines
2.9 KiB
Plaintext
92 lines
2.9 KiB
Plaintext
Menu="SMB:1"
|
|
Title="SMB Settings"
|
|
Tag="windows"
|
|
---
|
|
<?PHP
|
|
/* Copyright 2005-2025, Lime Technology
|
|
* Copyright 2012-2025, 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" <?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>
|
|
|
|
:smb_enable_help:
|
|
|
|
_(Hide "dot" files)_:
|
|
: <select name="hideDotFiles" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['hideDotFiles'], "no", _('No'))?>
|
|
<?=mk_option($var['hideDotFiles'], "yes", _('Yes'))?>
|
|
</select>
|
|
|
|
:smb_hide_files_help:
|
|
|
|
_(Enable SMB Multi Channel)_:
|
|
: <select name="serverMultiChannel" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['serverMultiChannel'], "no", _('No'))?>
|
|
<?=mk_option($var['serverMultiChannel'], "yes", _('Yes'))?>
|
|
</select>
|
|
|
|
:smb_multi_channel_help:
|
|
|
|
_(Enhanced macOS interoperability)_:
|
|
: <select name="enableFruit" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['enableFruit'], "no", _('No'))?>
|
|
<?=mk_option($var['enableFruit'], "yes", _('Yes'))?>
|
|
</select>
|
|
|
|
:smb_enhanced_macos_help:
|
|
|
|
_(Enable NetBIOS)_:
|
|
: <select name="USE_NETBIOS" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['USE_NETBIOS'], "no", _('No'))?>
|
|
<?=mk_option($var['USE_NETBIOS'], "yes", _('Yes'))?>
|
|
</select>
|
|
|
|
:smb_enable_netbios_help:
|
|
|
|
_(Enable WSD)_:
|
|
: <select name="USE_WSD" onchange="checkWSDSettings()" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['USE_WSD'], "no", _('No'))?>
|
|
<?=mk_option($var['USE_WSD'], "yes", _('Yes'))?>
|
|
</select>
|
|
|
|
:smb_enable_wsd_help:
|
|
|
|
_(WSD options [experimental])_:
|
|
: <input type="text" name="WSD2_OPT" maxlength="80" value="<?=htmlspecialchars($var['WSD2_OPT'])?>" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
|
|
:smb_wsd_options_help:
|
|
|
|
|
|
: <span class="inline-block">
|
|
<input type="submit" name="changeShare" value="_(Apply)_" disabled>
|
|
<input type="button" value="_(Done)_" onclick="done()">
|
|
</span>
|
|
<?if ($var['fsState']=="Started"):?>*_(Array must be **Stopped** to change)_*<?endif;?>
|
|
</form>
|
|
|
|
<script>
|
|
function checkWSDSettings() {
|
|
form=document.SMBEnable;
|
|
if (form.USE_WSD.value=="yes" && <?=($var['fsState']=="Started")?> {
|
|
form.WSD2_OPT.disabled=false;
|
|
} else {
|
|
form.WSD2_OPT.disabled=true;
|
|
}
|
|
}
|
|
$(checkWSDSettings);
|
|
</script>
|