mirror of
https://github.com/unraid/webgui.git
synced 2026-05-12 15:20:29 -05:00
Show a warning next to the Server Name field when it doesn't meet NetBIOS standards
This commit is contained in:
@@ -14,16 +14,19 @@ Icon="ident.png"
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
?>
|
||||
<? $disabled = $var['fsState']!='Stopped' ? 'disabled' : ''; ?>
|
||||
<?
|
||||
$disabled = $var['fsState']!='Stopped' ? 'disabled' : '';
|
||||
$name_warning = preg_match('/^[a-z0-9]([a-z0-9\-\.]{0,13}[a-z0-9])?$/i', $var['NAME']) ? '' : '<i class="fa fa-warning icon warning"></i> Not compatible with NetBIOS';
|
||||
?>
|
||||
<form markdown="1" name="NameSettings" method="POST" action="/update.htm" target="progressFrame">
|
||||
|
||||
Server name:
|
||||
: <input type="text" name="NAME" maxlength="15" value="<?=$var['NAME'];?>" <?=$disabled?>>
|
||||
: <input type="text" name="NAME" maxlength="15" value="<?=$var['NAME'];?>" <?=$disabled?>> <?=$name_warning?>
|
||||
|
||||
> The network identity of your server. Also known as *hostname* or *short hostname*. Windows networking
|
||||
> refers to this as the *netBIOS name* and must be 15 characters or less in length.
|
||||
> refers to this as the *NetBIOS name* and must be 15 characters or less in length.
|
||||
> Use only alphanumeric characters (that is, "A-Z", "a-z", and "0-9"), dashes ("-"), and dots (".");
|
||||
> and, the first character must be alphanumeric.
|
||||
> and, the first and last characters must be alphanumeric.
|
||||
|
||||
Description:
|
||||
: <input type="text" name="COMMENT" value="<?=$var['COMMENT'];?>" <?=$disabled?>>
|
||||
|
||||
Reference in New Issue
Block a user