www: visual cleanups, unused class/style zapping #2290

This commit is contained in:
Franco Fichtner 2018-03-25 13:10:27 +00:00
parent b074216e93
commit e9c3be35d6
35 changed files with 688 additions and 700 deletions

View File

@ -115,7 +115,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig['logbogons'] = empty($config['syslog']['nologbogons']);
$pconfig['logprivatenets'] = empty($config['syslog']['nologprivatenets']);
$pconfig['loglighttpd'] = empty($config['syslog']['nologlighttpd']);
$pconfig['filterdescriptions'] = !empty($config['syslog']['filterdescriptions']) ? $config['syslog']['filterdescriptions'] : null;
$pconfig['disablelocallogging'] = isset($config['syslog']['disablelocallogging']);
$pconfig['logfilesize'] = !empty($config['syslog']['logfilesize']) ? $config['syslog']['logfilesize'] : null;
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
@ -183,11 +182,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$config['syslog']['nologbogons'] = empty($pconfig['logbogons']);
$config['syslog']['nologprivatenets'] = empty($pconfig['logprivatenets']);
$config['syslog']['nologlighttpd'] = empty($pconfig['loglighttpd']);
if (is_numeric($pconfig['filterdescriptions']) && $pconfig['filterdescriptions'] > 0)
$config['syslog']['filterdescriptions'] = $pconfig['filterdescriptions'];
elseif (isset($config['syslog']['filterdescriptions'])) {
unset($config['syslog']['filterdescriptions']);
}
write_config();
@ -380,176 +374,178 @@ $(document).ready(function() {
<td><a id="help_for_logdefaultblock" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Log Firewall Default Blocks') ?></td>
<td>
<input name="logdefaultblock" type="checkbox" value="yes" <?=!empty($pconfig['logdefaultblock']) ? "checked=\"checked\"" : ""; ?> />
<strong><?=gettext("Log packets matched from the default block rules put in the ruleset");?></strong><br />
<?=gettext("Log packets matched from the default block rules put in the ruleset");?>
<div class="hidden" data-for="help_for_logdefaultblock">
<?=gettext("Hint: packets that are blocked by the implicit default block rule will not be logged if you uncheck this option. Per-rule logging options are still respected.");?>
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<input name="logdefaultpass" type="checkbox" id="logdefaultpass" value="yes" <?=!empty($pconfig['logdefaultpass']) ? "checked=\"checked\"" :""; ?> />
<strong><?=gettext("Log packets matched from the default pass rules put in the ruleset");?></strong><br />
<?=gettext("Log packets matched from the default pass rules put in the ruleset");?>
<div class="hidden" data-for="help_for_logdefaultblock">
<?=gettext("Hint: packets that are allowed by the implicit default pass rule will be logged if you check this option. Per-rule logging options are still respected.");?>
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<input name="logbogons" type="checkbox" id="logbogons" value="yes" <?=!empty($pconfig['logbogons']) ? "checked=\"checked\"" : ""; ?> />
<strong><?=gettext("Log packets blocked by 'Block Bogon Networks' rules");?></strong><br />
<?=gettext("Log packets blocked by 'Block Bogon Networks' rules");?>
</td>
</tr>
<tr>
<td></td>
<td>
<input name="logprivatenets" type="checkbox" id="logprivatenets" value="yes" <?php if ($pconfig['logprivatenets']) echo "checked=\"checked\""; ?> />
<strong><?=gettext("Log packets blocked by 'Block Private Networks' rules");?></strong><br />
<?=gettext("Log packets blocked by 'Block Private Networks' rules");?>
</td>
</tr>
<tr>
<td><a id="help_for_loglighttpd" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Web Server Log') ?></td>
<td>
<input name="loglighttpd" type="checkbox" id="loglighttpd" value="yes" <?=!empty($pconfig['loglighttpd']) ? "checked=\"checked\"" :""; ?> />
<strong><?=gettext("Log errors from the web server process.");?></strong><br />
<?=gettext("Log errors from the web server process.");?>
<div class="hidden" data-for="help_for_loglighttpd">
<?=gettext("Hint: If this is checked, errors from the lighttpd web server process for the GUI or Captive Portal will appear in the main system log.");?></td>
</div>
</tr>
<tr>
<td><a id="help_for_filterdescriptions" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Filter descriptions') ?></td>
<td>
<select name="filterdescriptions" id="filterdescriptions" class="form-control">
<option value="0"<?=!isset($pconfig['filterdescriptions'])?" selected=\"selected\"":""?>><?=gettext('Omit descriptions') ?></option>
<option value="1"<?=($pconfig['filterdescriptions'])==="1"?" selected=\"selected\"":""?>><?=gettext('Display as column') ?></option>
<option value="2"<?=($pconfig['filterdescriptions'])==="2"?" selected=\"selected\"":""?>><?=gettext('Display as second row') ?></option>
</select>
<div class="hidden" data-for="help_for_filterdescriptions">
<strong><?=gettext("Show the applied rule description below or in the firewall log rows.");?></strong>
<br />
<?=gettext("Displaying rule descriptions for all lines in the log might affect performance with large rule sets.");?>
</div>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext('Local Logging') ?></td>
<td> <input name="disablelocallogging" type="checkbox" id="disablelocallogging" value="yes" <?=!empty($pconfig['disablelocallogging']) ? "checked=\"checked\"" :""; ?> onclick="enable_change(false)" />
<strong><?=gettext("Disable writing log files to the local disk");?></strong></td>
</tr>
<tr>
<td><a id="help_for_resetlogs" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Reset Logs') ?></td>
<td>
<input name="resetlogs" id="resetlogs" type="submit" class="btn btn-default" value="<?=gettext("Reset Log Files"); ?>"/>
<div class="hidden" data-for="help_for_resetlogs">
<?= gettext("Note: Clears all local log files and reinitializes them as empty logs. This also restarts the DHCP daemon. Use the Save button first if you have made any setting changes."); ?>
</div>
</td>
</tr>
</table>
</div>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext('Local Logging') ?></td>
<td> <input name="disablelocallogging" type="checkbox" id="disablelocallogging" value="yes" <?=!empty($pconfig['disablelocallogging']) ? "checked=\"checked\"" :""; ?> onclick="enable_change(false)" />
<?=gettext("Disable writing log files to the local disk");?></td>
</tr>
<tr>
<td><a id="help_for_resetlogs" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Reset Logs') ?></td>
<td>
<input name="resetlogs" id="resetlogs" type="submit" class="btn btn-default" value="<?=gettext("Reset Log Files"); ?>"/>
<div class="hidden" data-for="help_for_resetlogs">
<?= gettext("Note: Clears all local log files and reinitializes them as empty logs. This also restarts the DHCP daemon. Use the Save button first if you have made any setting changes."); ?>
</div>
</td>
</tr>
</table>
</div>
<div class="tab-content content-box col-xs-12 __mb">
<div class="table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><strong><?=gettext("Remote Logging Options");?></strong></td>
<td style="width:78%; text-align:right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
</td>
</tr>
<tr>
<td><a id="help_for_sourceip" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Source Address"); ?></td>
<td>
<select name="sourceip" class="form-control">
<option value=""><?=gettext('Default (any)') ?></option>
</div>
<div class="tab-content content-box col-xs-12 __mb">
<div class="table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><strong><?=gettext("Remote Logging Options");?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>
<td><a id="help_for_sourceip" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Source Address"); ?></td>
<td>
<select name="sourceip" class="form-control">
<option value=""><?=gettext('Default (any)') ?></option>
<?php
foreach (get_possible_listen_ips(false) as $sip):?>
<option value="<?=$sip['value'];?>" <?=!link_interface_to_bridge($sip['value']) && ($sip['value'] == $pconfig['sourceip']) ? "selected=\"selected\"" : "";?>>
<?=htmlspecialchars($sip['name']);?>
</option>
foreach (get_possible_listen_ips(false) as $sip):?>
<option value="<?=$sip['value'];?>" <?=!link_interface_to_bridge($sip['value']) && ($sip['value'] == $pconfig['sourceip']) ? "selected=\"selected\"" : "";?>>
<?=htmlspecialchars($sip['name']);?>
</option>
<?php
endforeach; ?>
</select>
<div class="hidden" data-for="help_for_sourceip">
<?= gettext("This option will allow the logging daemon to bind to a single IP address, rather than all IP addresses."); ?>
<?= gettext("If you pick a single IP, remote syslog severs must all be of that IP type. If you wish to mix IPv4 and IPv6 remote syslog servers, you must bind to all interfaces."); ?>
<br /><br />
<?= gettext("NOTE: If an IP address cannot be located on the chosen interface, the daemon will bind to all addresses."); ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_ipproto" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("IP Protocol"); ?></td>
<td>
<select name="ipproto" class="form-control">
<option value="ipv4" <?=$ipproto == "ipv4" ? 'selected="selected"' : "";?>><?=gettext("IPv4");?></option>
<option value="ipv6" <?=$ipproto == "ipv6" ? 'selected="selected"' : "";?>><?=gettext("IPv6");?></option>
</select>
<div class="hidden" data-for="help_for_ipproto">
<?= gettext("This option is only used when a non-default address is chosen as the source above. This option only expresses a preference; If an IP address of the selected type is not found on the chosen interface, the other type will be tried."); ?>
</div>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable Remote Logging");?></td>
<td>
<input name="enable" type="checkbox" id="enable" value="yes" <?= !empty($pconfig['enable']) ? "checked=\"checked\"" :""; ?> onclick="enable_change(false)" />
<strong><?=gettext("Send log messages to remote syslog server");?></strong>
</td>
</tr>
<tr>
<td><a id="help_for_remoteserver" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Remote Syslog Servers");?></td>
<td>
<table class="table table-condensed opnsense_standard_table_form">
<tr>
<td><?=gettext("Server") . " 1";?></td>
<td><input name="remoteserver" id="remoteserver" type="text" class="form-control host" size="20" value="<?=htmlspecialchars($pconfig['remoteserver']);?>" /></td>
</tr>
<tr>
<td><?=gettext("Server") . " 2";?></td>
<td><input name="remoteserver2" id="remoteserver2" type="text" class="form-control host" size="20" value="<?=htmlspecialchars($pconfig['remoteserver2']);?>" /></td>
</tr>
<tr>
<td><?=gettext("Server") . " 3";?></td>
<td><input name="remoteserver3" id="remoteserver3" type="text" class="form-control host" size="20" value="<?=htmlspecialchars($pconfig['remoteserver3']);?>" /></td>
</tr>
</table>
<div class="hidden" data-for="help_for_remoteserver">
<?=gettext("IP addresses of remote syslog servers, or an IP:port.");?>
</div>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Remote Syslog Contents");?></td>
<td>
<input name="logall" id="logall" type="checkbox" value="yes" <?=!empty($pconfig['logall']) ? "checked=\"checked\"" : ""; ?> onclick="check_everything();" />
<?=gettext("Everything");?><br /><br />
<input name="system" id="system" type="checkbox" value="yes" onclick="enable_change(false)" <?=!empty($pconfig['system']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("System events");?><br />
<input name="filter" id="filter" type="checkbox" value="yes" <?=!empty($pconfig['filter']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("Firewall events");?><br />
<input name="dhcp" id="dhcp" type="checkbox" value="yes" <?=!empty($pconfig['dhcp']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("DHCP service events");?><br />
<input name="dns" id="dns" type="checkbox" value="yes" <?=!empty($pconfig['dns']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("DNS service events");?><br />
<input name="mail" id="mail" type="checkbox" value="yes" <?=!empty($pconfig['mail']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("Mail service events");?><br />
<input name="portalauth" id="portalauth" type="checkbox" value="yes" <?=!empty($pconfig['portalauth']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("Portal Auth events");?><br />
<input name="vpn" id="vpn" type="checkbox" value="yes" <?=!empty($pconfig['vpn']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("VPN (PPTP, IPsec, OpenVPN) events");?><br />
<input name="apinger" id="apinger" type="checkbox" value="yes" <?=!empty($pconfig['apinger']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("Gateway Monitor events");?><br />
<input name="relayd" id="relayd" type="checkbox" value="yes" <?=!empty($pconfig['relayd']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("Server Load Balancer events");?><br />
<input name="hostapd" id="hostapd" type="checkbox" value="yes" <?=!empty($pconfig['hostapd']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("Wireless events");?><br />
</td>
</tr>
<tr>
<td></td>
<td> <input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" onclick="enable_change(true)" />
</td>
</tr>
<tr>
<td colspan="2">
<?=gettext("Syslog sends UDP datagrams to port 514 on the specified " .
"remote syslog server, unless another port is specified. Be sure to set syslogd on the " .
"remote server to accept remote syslog messages.");?>
</td>
</tr>
</table>
</div>
endforeach; ?>
</select>
<div class="hidden" data-for="help_for_sourceip">
<?= gettext("This option will allow the logging daemon to bind to a single IP address, rather than all IP addresses."); ?>
<?= gettext("If you pick a single IP, remote syslog severs must all be of that IP type. If you wish to mix IPv4 and IPv6 remote syslog servers, you must bind to all interfaces."); ?>
<br /><br />
<?= gettext("NOTE: If an IP address cannot be located on the chosen interface, the daemon will bind to all addresses."); ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_ipproto" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("IP Protocol"); ?></td>
<td>
<select name="ipproto" class="form-control">
<option value="ipv4" <?=$ipproto == "ipv4" ? 'selected="selected"' : "";?>><?=gettext("IPv4");?></option>
<option value="ipv6" <?=$ipproto == "ipv6" ? 'selected="selected"' : "";?>><?=gettext("IPv6");?></option>
</select>
<div class="hidden" data-for="help_for_ipproto">
<?= gettext("This option is only used when a non-default address is chosen as the source above. This option only expresses a preference; If an IP address of the selected type is not found on the chosen interface, the other type will be tried."); ?>
</div>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable Remote Logging");?></td>
<td>
<input name="enable" type="checkbox" id="enable" value="yes" <?= !empty($pconfig['enable']) ? "checked=\"checked\"" :""; ?> onclick="enable_change(false)" />
<?=gettext("Send log messages to remote syslog server");?>
</td>
</tr>
<tr>
<td><a id="help_for_remoteserver" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Remote Syslog Servers");?></td>
<td>
<table class="table table-condensed opnsense_standard_table_form">
<tr>
<td><?=gettext("Server") . " 1";?></td>
<td><input name="remoteserver" id="remoteserver" type="text" class="form-control host" size="20" value="<?=htmlspecialchars($pconfig['remoteserver']);?>" /></td>
</tr>
<tr>
<td><?=gettext("Server") . " 2";?></td>
<td><input name="remoteserver2" id="remoteserver2" type="text" class="form-control host" size="20" value="<?=htmlspecialchars($pconfig['remoteserver2']);?>" /></td>
</tr>
<tr>
<td><?=gettext("Server") . " 3";?></td>
<td><input name="remoteserver3" id="remoteserver3" type="text" class="form-control host" size="20" value="<?=htmlspecialchars($pconfig['remoteserver3']);?>" /></td>
</tr>
</table>
<div class="hidden" data-for="help_for_remoteserver">
<?=gettext("IP addresses of remote syslog servers, or an IP:port.");?>
</div>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Remote Syslog Contents");?></td>
<td>
<input name="logall" id="logall" type="checkbox" value="yes" <?=!empty($pconfig['logall']) ? "checked=\"checked\"" : ""; ?> onclick="check_everything();" />
<?=gettext("Everything");?><br /><br />
<input name="system" id="system" type="checkbox" value="yes" onclick="enable_change(false)" <?=!empty($pconfig['system']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("System events");?><br />
<input name="filter" id="filter" type="checkbox" value="yes" <?=!empty($pconfig['filter']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("Firewall events");?><br />
<input name="dhcp" id="dhcp" type="checkbox" value="yes" <?=!empty($pconfig['dhcp']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("DHCP service events");?><br />
<input name="dns" id="dns" type="checkbox" value="yes" <?=!empty($pconfig['dns']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("DNS service events");?><br />
<input name="mail" id="mail" type="checkbox" value="yes" <?=!empty($pconfig['mail']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("Mail service events");?><br />
<input name="portalauth" id="portalauth" type="checkbox" value="yes" <?=!empty($pconfig['portalauth']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("Portal Auth events");?><br />
<input name="vpn" id="vpn" type="checkbox" value="yes" <?=!empty($pconfig['vpn']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("VPN (PPTP, IPsec, OpenVPN) events");?><br />
<input name="apinger" id="apinger" type="checkbox" value="yes" <?=!empty($pconfig['apinger']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("Gateway Monitor events");?><br />
<input name="relayd" id="relayd" type="checkbox" value="yes" <?=!empty($pconfig['relayd']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("Server Load Balancer events");?><br />
<input name="hostapd" id="hostapd" type="checkbox" value="yes" <?=!empty($pconfig['hostapd']) ? "checked=\"checked\"" : ""; ?> />
<?=gettext("Wireless events");?><br />
</td>
</tr>
<tr>
<td colspan="2">
<?=gettext("Syslog sends UDP datagrams to port 514 on the specified " .
"remote syslog server, unless another port is specified. Be sure to set syslogd on the " .
"remote server to accept remote syslog messages.");?>
</td>
</tr>
</table>
</div>
</div>
<div class="tab-content content-box col-xs-12">
<div class="table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"></td>
<td style="width:78%"><input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" onclick="enable_change(true)" />
</td>
</tr>
</table>
</div>
</div>
</form>
</section>

View File

@ -65,8 +65,7 @@ include("head.inc");
<form action="<?=$_SERVER['REQUEST_URI'];?>" method="post">
<br/>
<input name="statetable" type="checkbox" id="statetable" value="yes" checked="checked" />
<strong><?= gettext("Firewall state table"); ?></strong><br />
<br />
<?= gettext("Firewall state table"); ?><br/><br/>
<?=gettext("Resetting the state tables will remove all entries from " .
"the corresponding tables. This means that all open connections " .
"will be broken and will have to be re-established. This " .
@ -85,13 +84,11 @@ include("head.inc");
<?php
if (isset($config['system']['lb_use_sticky'])): ?>
<input name="sourcetracking" type="checkbox" id="sourcetracking" value="yes" checked="checked" />
<strong><?= gettext("Firewall Source Tracking"); ?></strong><br />
<span class="vexpl"><br />
<?= gettext("Firewall Source Tracking"); ?><br/><br/>
<?=gettext("Resetting the source tracking table will remove all source/destination associations. " .
"This means that the \"sticky\" source/destination association " .
"will be cleared for all clients."); ?><br />
<br />
</span><span class="vexpl"><?=gettext("This does not clear active connection states, only source tracking."); ?><br />
"will be cleared for all clients."); ?><br/><br/>
<?=gettext("This does not clear active connection states, only source tracking."); ?>
<?php
endif; ?>
<br/><br/>

View File

@ -84,8 +84,6 @@ $showAllOption = $showAll ? "" : "?showAll";
} else {
print("<td>$entry</td>\n");
}
if ($i > 0)
$class = 'listr';
$j++;
}
print("</tr>\n");

View File

@ -209,7 +209,7 @@ $main_buttons = array(
$i = 0;
foreach ($a_1to1 as $natent):
?>
<tr <?=isset($natent['disabled'])?"class=\"text-muted\"":"";?> style="vertical-align:top" ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';">
<tr <?=isset($natent['disabled'])?"class=\"text-muted\"":"";?> ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';">
<td>
<input class="rule_select" type="checkbox" name="rule[]" value="<?=$i;?>" />
</td>

View File

@ -239,10 +239,10 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="vertical-align:top"><?=gettext("Edit NAT 1:1 entry"); ?></td>
<td style="text-align:right">
<td style="width:22%"><strong><?= gettext('Edit NAT 1:1 entry') ?></strong></td>
<td style="width:78%;text-align:right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
</td>
</tr>
<tr>
@ -338,7 +338,7 @@ include("head.inc");
<tr>
<td>
<div class="input-group">
<!-- updates to "other" option in src -->
<!-- updates to "other" option in src -->
<input type="text" for="src" value="<?=$pconfig['src'];?>" aria-label="<?=gettext("Source address");?>"/>
<select name="srcmask" class="selectpicker" data-size="5" id="srcmask" data-width="auto" for="src" >
<?php for ($i = 32; $i > 0; $i--): ?>
@ -389,7 +389,7 @@ include("head.inc");
<tr>
<td>
<div class="input-group">
<!-- updates to "other" option in src -->
<!-- updates to "other" option in src -->
<input type="text" for="dst" value="<?= !is_specialnet($pconfig['dst']) ? $pconfig['dst'] : "";?>" aria-label="<?=gettext("Destination address");?>"/>
<select name="dstmask" class="selectpicker" data-size="5" id="dstmask" data-width="auto" for="dst" >
<?php for ($i = 32; $i > 0; $i--): ?>

View File

@ -327,7 +327,7 @@ $( document ).ready(function() {
if (!isset($config['system']['ipv6allow']) &&
($selected_if == 'FloatingRules')):
?>
<tr style="vertical-align:top">
<tr>
<td>&nbsp;</td>
<td><span class="glyphicon glyphicon-remove text-danger"></span></td>
<td>IPv6 *</td>
@ -349,7 +349,7 @@ $( document ).ready(function() {
|| ((count($config['interfaces']) == 1) && ($selected_if == 'wan')))):
$alports = implode('<br />', filter_core_antilockout_ports());
?>
<tr style="vertical-align:top">
<tr>
<td>&nbsp;</td>
<td><span class="fa fa-play text-success"></span></td>
<td>*</td>
@ -386,14 +386,14 @@ $( document ).ready(function() {
<td class="hidden-xs hidden-sm">*</td>
<td class="hidden-xs hidden-sm">&nbsp;</td>
<td class="hidden-xs hidden-sm"><?=gettext("Block private networks");?></td>
<td style="vertical-align:middle" class="list nowrap">
<a href="interfaces.php?if=<?=$selected_if?>#rfc1918" data-toggle="tooltip" title="<?=gettext("change configuration");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></a>
<td class="nowrap">
<a href="interfaces.php?if=<?=$selected_if?>#rfc1918" data-toggle="tooltip" title="<?=gettext("change configuration");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></a>
</td>
</tr>
<?php
endif;
if (isset($config['interfaces'][$selected_if]['blockbogons'])): ?>
<tr style="vertical-align:top" id="frrfc1918">
<tr id="frrfc1918">
<td>&nbsp;</td>
<td>
<span class="glyphicon glyphicon-remove text-danger"></span>
@ -658,7 +658,7 @@ $( document ).ready(function() {
if (!$interface_has_rules):
?>
<tr>
<td colspan="11" style="text-align:center; vertical-align:middle">
<td colspan="11">
<span class="text-muted">
<?php if ($selected_if == 'FloatingRules'): ?>
<?= gettext('No floating rules are currently defined. Floating rules are ' .

View File

@ -676,8 +676,8 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="vertical-align:top"><strong><?=gettext("Edit Firewall rule");?></strong></td>
<td style="text-align:right">
<td style="width:22%"><strong><?=gettext("Edit Firewall rule");?></strong></td>
<td style="width:78%;text-align:right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
</td>

View File

@ -622,7 +622,7 @@ function insertElements(tempFriendlyTime, starttimehour, starttimemin, stoptimeh
tbody = d.getElementById("scheduletable").getElementsByTagName("tbody").item(0);
tr = d.createElement("tr");
td = d.createElement("td");
td.innerHTML= "<span class='vexpl'>" + tempFriendlyTime + "<\/span>";
td.innerHTML= "<span>" + tempFriendlyTime + "<\/span>";
tr.appendChild(td);
td = d.createElement("td");
@ -876,20 +876,20 @@ function removeRow(el) {
echo "<tr>";
}
if ($firstdayofmonth == $positioncounter){?>
<td style="text-align:center; cursor: pointer;" class="listr" id="w<?=$weekcounter;?>p<?=$positioncounter;?>" onclick="daytoggle('w<?=$weekcounter;?>p<?=$positioncounter;?>-m<?=$monthcounter;?>d<?=$daycounter;?>');">
<td style="text-align:center; cursor: pointer;" id="w<?=$weekcounter;?>p<?=$positioncounter;?>" onclick="daytoggle('w<?=$weekcounter;?>p<?=$positioncounter;?>-m<?=$monthcounter;?>d<?=$daycounter;?>');">
<?php
echo $daycounter;
$daycounter++;
$firstdayprinted = TRUE;
echo "</td>";
} elseif ($firstdayprinted == TRUE && $daycounter <= $numberofdays){?>
<td style="text-align:center; cursor: pointer;" class="listr" id="w<?=$weekcounter;?>p<?=$positioncounter;?>" onclick="daytoggle('w<?=$weekcounter;?>p<?=$positioncounter;?>-m<?=$monthcounter;?>d<?=$daycounter;?>');">
<td style="text-align:center; cursor: pointer;" id="w<?=$weekcounter;?>p<?=$positioncounter;?>" onclick="daytoggle('w<?=$weekcounter;?>p<?=$positioncounter;?>-m<?=$monthcounter;?>d<?=$daycounter;?>');">
<?php
echo $daycounter;
$daycounter++;
echo "</td>";
} else {
echo "<td style=\"text-align:center\" class=\"listr\"></td>";
echo "<td style=\"text-align:center\"></td>";
}
if ($positioncounter == 7 || $daycounter > $numberofdays) {

View File

@ -289,8 +289,8 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="vertical-align:top"><strong><?=gettext("Edit Firewall scrub rule");?></strong></td>
<td style="text-align:right">
<td style="width:22%"><strong><?=gettext("Edit Firewall scrub rule");?></strong></td>
<td style="width:78%;text-align:right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
</td>

View File

@ -617,7 +617,7 @@ $(document).ready(function() {
<table class="table table-striped">
<tbody>
<tr>
<td style="width:22%; vertical-align:top">&nbsp;</td>
<td style="width:22%">&nbsp;</td>
<td style="width:78%">
<input type="hidden" name="bridgeif" value="<?=$pconfig['bridgeif']; ?>" />
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />

View File

@ -253,7 +253,7 @@ include("head.inc");
</td>
</tr>
<tr>
<td style="width:22%; vertical-align:top">&nbsp;</td>
<td style="width:22%">&nbsp;</td>
<td style="width:78%">
<input type="hidden" name="greif" value="<?=$pconfig['greif']; ?>" />
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" />

View File

@ -294,7 +294,7 @@ legacy_html_escape_form_data($pconfig);
</td>
</tr>
<tr>
<td style="width:22%; vertical-align:top">&nbsp;</td>
<td style="width:22%">&nbsp;</td>
<td style="width:78%">
<input type="hidden" name="laggif" value="<?=$pconfig['laggif']; ?>" />
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />

View File

@ -807,7 +807,7 @@ include("head.inc");
<table class="table table-striped">
<tbody>
<tr>
<td style="width:22%; vertical-align:top">&nbsp;</td>
<td style="width:22%">&nbsp;</td>
<td style="width:78%">
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
<input type="button" class="btn btn-default" value="<?=gettext("Cancel");?>" onclick="window.location.href='/interfaces_ppps.php'" />

View File

@ -220,7 +220,7 @@ include("head.inc");
</td>
</tr>
<tr>
<td style="width:22%; vertical-align:top">&nbsp;</td>
<td style="width:22%">&nbsp;</td>
<td style="width:78%">
<input type="hidden" name="vlanif" value="<?=$pconfig['vlanif']; ?>" />
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" />

View File

@ -629,7 +629,7 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%; vertical-align:top"></td>
<td style="width:22%"></td>
<td style="width:78%; text-align:right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
@ -1089,8 +1089,7 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped">
<tr>
<td colspan="5" style="vertical-align:top"><?=gettext("DHCP Static Mappings for this interface.");?></td>
<td>&nbsp;</td>
<td colspan="6"><strong><?=gettext("DHCP Static Mappings for this interface.");?></strong></td>
</tr>
<tr>
<td><?=gettext("Static ARP");?></td>

View File

@ -325,7 +325,7 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%; vertical-align:top"><strong><?=gettext("Static DHCP Mapping");?></strong></td>
<td style="width:22%"><strong><?=gettext("Static DHCP Mapping");?></strong></td>
<td style="width:78%; text-align:right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>

View File

@ -117,7 +117,7 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%; vertical-align:top"><strong><?=gettext("DHCP Relay configuration"); ?></strong></td>
<td style="width:22%"><strong><?=gettext("DHCP Relay configuration"); ?></strong></td>
<td style="width:78%; text-align:right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>

View File

@ -155,7 +155,7 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%; vertical-align:top"><strong><?=gettext("Static DHCPv6 Mapping");?></strong></td>
<td style="width:22%"><strong><?=gettext("Static DHCPv6 Mapping");?></strong></td>
<td style="width:78%; text-align:right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>

View File

@ -117,7 +117,7 @@ include("head.inc");
<div class="table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%; vertical-align:top"><strong><?=gettext("DHCPv6 Relay configuration"); ?></strong></td>
<td style="width:22%"><strong><?=gettext("DHCPv6 Relay configuration"); ?></strong></td>
<td style="width:78%; text-align:right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>

View File

@ -230,10 +230,10 @@ $( document ).ready(function() {
<div class="table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="vertical-align:top"><strong><?=gettext("General DNS Forwarder Options");?></strong></td>
<td style="text-align:right">
<small><?=gettext("full help");?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
<td style="width:22%"><strong><?=gettext("General DNS Forwarder Options");?></strong></td>
<td style="width:78%;text-align:right">
<small><?=gettext("full help");?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
</td>
</tr>
<tr>

View File

@ -416,7 +416,7 @@ include("head.inc");
</td>
</tr>
<tr>
<td style="width:22%; vertical-align:top">&nbsp;</td>
<td style="width:22%">&nbsp;</td>
<td style="width:78%">
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" />
</td>

View File

@ -380,8 +380,8 @@ $(document).ready(function() {
}
?>
<section class="col-xs-12">
<div class="content-box tab-content table-responsive">
<form method="post" name="iform" id="iform">
<form method="post" name="iform" id="iform">
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><strong><?=gettext('Web GUI');?></strong></td>
@ -390,350 +390,364 @@ $(document).ready(function() {
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Protocol"); ?></td>
<td>
<input name="webguiproto" class="proto" id="http_proto" type="radio" value="http" <?= $pconfig['webguiproto'] == "http" ? 'checked="checked"' :'' ?>/>
<?=gettext("HTTP"); ?>
&nbsp;&nbsp;&nbsp;
<input name="webguiproto" class="proto" id="https_proto" type="radio" value="https" <?= $pconfig['webguiproto'] == "https" ? 'checked="checked"' : '' ?> <?=$certs_available ? '' : 'disabled="disabled"' ?>/>
<?=gettext("HTTPS"); ?>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Protocol"); ?></td>
<td>
<input name="webguiproto" class="proto" id="http_proto" type="radio" value="http" <?= $pconfig['webguiproto'] == "http" ? 'checked="checked"' :'' ?>/>
<?=gettext("HTTP"); ?>
&nbsp;&nbsp;&nbsp;
<input name="webguiproto" class="proto" id="https_proto" type="radio" value="https" <?= $pconfig['webguiproto'] == "https" ? 'checked="checked"' : '' ?> <?=$certs_available ? '' : 'disabled="disabled"' ?>/>
<?=gettext("HTTPS"); ?>
<?php
if (!$certs_available) :?>
<br />
<?= sprintf(gettext("No Certificates have been defined. You must %sCreate or Import%s a Certificate before SSL can be enabled."),'<a href="system_certmanager.php">','</a>') ?>
if (!$certs_available) :?>
<br />
<?= sprintf(gettext("No Certificates have been defined. You must %sCreate or Import%s a Certificate before SSL can be enabled."),'<a href="system_certmanager.php">','</a>') ?>
<?php
endif; ?>
</td>
</tr>
<tr class="ssl_opts">
<td><a id="help_for_sslcertref" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("SSL Certificate"); ?></td>
<td>
<select name="ssl-certref" class="selectpicker" data-style="btn-default">
endif; ?>
</td>
</tr>
<tr class="ssl_opts">
<td><a id="help_for_sslcertref" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("SSL Certificate"); ?></td>
<td>
<select name="ssl-certref" class="selectpicker" data-style="btn-default">
<?php
foreach ($a_cert as $cert) :?>
<option value="<?=$cert['refid'];?>" <?=$pconfig['ssl-certref'] == $cert['refid'] ? "selected=\"selected\"" : "";?>>
<?=$cert['descr'];?>
foreach ($a_cert as $cert) :?>
<option value="<?=$cert['refid'];?>" <?=$pconfig['ssl-certref'] == $cert['refid'] ? "selected=\"selected\"" : "";?>>
<?=$cert['descr'];?>
</option>
<?php
endforeach;?>
</select>
<div class='hidden' data-for="help_for_sslcertref">
<?=sprintf(
gettext('The %sSSL certificate manager%s can be used to ' .
'create or import certificates if required.'),
'<a href="/system_certmanager.php">', '</a>'
);?>
</div>
</td>
</tr>
<tr class="ssl_opts">
<td><a id="help_for_sslciphers" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("SSL Ciphers"); ?></td>
<td>
<select name="ssl-ciphers[]" class="selectpicker" multiple="multiple" data-live-search="true" title="<?=gettext("System defaults");?>">
<?php
$ciphers = json_decode(configd_run("system ssl ciphers"), true);
if ($ciphers == null) {
$ciphers = array();
}
ksort($ciphers);
foreach ($ciphers as $cipher => $cipher_data):?>
<option value="<?=$cipher;?>" <?= !empty($pconfig['ssl-ciphers']) && in_array($cipher, $pconfig['ssl-ciphers']) ? 'selected="selected"' : '' ?>>
<?=!empty($cipher_data['description']) ? $cipher_data['description'] : $cipher;?>
</option>
<?php
endforeach;?>
</select>
<div class='hidden' data-for="help_for_sslcertref">
<?=sprintf(
gettext('The %sSSL certificate manager%s can be used to ' .
'create or import certificates if required.'),
'<a href="/system_certmanager.php">', '</a>'
);?>
<div class="hidden" data-for="help_for_sslciphers">
<?=gettext("Limit SSL cipher selection in case the system defaults are undesired. Note that restrictive use may lead to an inaccessible web GUI.");?>
</div>
</td>
</tr>
<tr class="ssl_opts">
<td><a id="help_for_sslciphers" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("SSL Ciphers"); ?></td>
</td>
</tr>
<tr>
<td><a id="help_for_webguiport" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("TCP port"); ?></td>
<td>
<input name="webguiport" id="webguiport" type="text" value="<?=$pconfig['webguiport'];?>" placeholder="<?= $pconfig['webguiproto'] == 'https' ? '443' : '80' ?>" />
<div class="hidden" data-for="help_for_webguiport">
<?=gettext("Enter a custom port number for the web GUI " .
"above if you want to override the default (80 for HTTP, 443 " .
"for HTTPS). Changes will take effect immediately after save."); ?>
</div>
</td>
</tr>
<tr class="ssl_opts">
<td><a id="help_for_disablehttpredirect" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('HTTP Redirect'); ?></td>
<td style="width:78%">
<input name="disablehttpredirect" type="checkbox" value="yes" <?= empty($pconfig['disablehttpredirect']) ? '' : 'checked="checked"';?> />
<?= gettext('Disable web GUI redirect rule') ?>
<div class="hidden" data-for="help_for_disablehttpredirect">
<?= gettext("When this is unchecked, access to the web GUI " .
"is always permitted even on port 80, regardless of the listening port configured. " .
"Check this box to disable this automatically added redirect rule.");
?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_quietlogin" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Login Messages") ?></td>
<td>
<input name="quietlogin" type="checkbox" value="yes" <?= empty($pconfig['quietlogin']) ? '' : 'checked="checked"' ?>/>
<?= gettext('Disable logging of web GUI successful logins') ?>
<div class="hidden" data-for="help_for_quietlogin">
<?=gettext("When this is checked, successful logins to the web GUI will not be logged.");?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_nodnsrebindcheck" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("DNS Rebind Check"); ?></td>
<td>
<input name="nodnsrebindcheck" type="checkbox" value="yes" <?= empty($pconfig['nodnsrebindcheck']) ? '' : 'checked="checked"';?>/>
<?=gettext("Disable DNS Rebinding Checks"); ?>
<div class="hidden" data-for="help_for_nodnsrebindcheck">
<?= sprintf(gettext("When this is unchecked, your system is protected against %sDNS Rebinding attacks%s. " .
"This blocks private IP responses from your configured DNS servers. Check this box to disable this protection if it interferes with " .
"web GUI access or name resolution in your environment."),'<a href="http://en.wikipedia.org/wiki/DNS_rebinding">','</a>') ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_althostnames" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?= gettext("Alternate Hostnames") ?></td>
<td>
<input name="althostnames" type="text" value="<?= $pconfig['althostnames'] ?>"/>
<?=gettext("Alternate Hostnames for DNS Rebinding and HTTP_REFERER Checks"); ?>
<div class="hidden" data-for="help_for_althostnames">
<?= gettext("Here you can specify alternate hostnames by which the router may be queried, to " .
"bypass the DNS Rebinding Attack checks. Separate hostnames with spaces.") ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_compression" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("HTTP Compression")?></td>
<td style="width:78%">
<select name="compression" class="selectpicker">
<option value="" <?=empty($pconfig['compression'])? 'selected="selected"' : '';?>>
<?=gettext("Off");?>
</option>
<option value="1" <?=$pconfig['compression'] == "1" ? 'selected="selected"' : '';?>>
<?=gettext("Low");?>
</option>
<option value="5" <?=$pconfig['compression'] == "5" ? 'selected="selected"' : '';?>>
<?=gettext("Medium");?>
</option>
<option value="9" <?=$pconfig['compression'] == "9" ? 'selected="selected"' : '';?>>
<?=gettext("High");?>
</option>
</select>
<div class="hidden" data-for="help_for_compression">
<?=gettext("Enable compression of HTTP pages and dynamic content.");?><br/>
<?=gettext("Transfer less data to the client for an additional cost in processing power.");?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_httpaccesslog" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Access log"); ?></td>
<td>
<input name="httpaccesslog" type="checkbox" value="yes" <?= empty($pconfig['httpaccesslog']) ? '' : 'checked="checked"' ?> />
<?=gettext("Enable access log"); ?>
<div class="hidden" data-for="help_for_httpaccesslog">
<?=gettext("Enable access logging on the webinterface for debugging and analysis purposes.") ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_webguiinterfaces" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Listen Interfaces') ?></td>
<td>
<select name="ssl-ciphers[]" class="selectpicker" multiple="multiple" data-live-search="true" title="<?=gettext("System defaults");?>">
<select id="webguiinterface" name="webguiinterfaces[]" multiple="multiple" class="selectpicker" title="<?= html_safe(gettext('All (recommended)')) ?>">
<?php
$ciphers = json_decode(configd_run("system ssl ciphers"), true);
if ($ciphers == null) {
$ciphers = array();
}
ksort($ciphers);
foreach ($ciphers as $cipher => $cipher_data):?>
<option value="<?=$cipher;?>" <?= !empty($pconfig['ssl-ciphers']) && in_array($cipher, $pconfig['ssl-ciphers']) ? 'selected="selected"' : '' ?>>
<?=!empty($cipher_data['description']) ? $cipher_data['description'] : $cipher;?>
</option>
foreach ($interfaces as $iface => $ifacename): ?>
<option value="<?= html_safe($iface) ?>" <?= !empty($pconfig['webguiinterfaces']) && in_array($iface, $pconfig['webguiinterfaces']) ? 'selected="selected"' : '' ?>><?= html_safe($ifacename) ?></option>
<?php
endforeach;?>
</select>
<div class="hidden" data-for="help_for_sslciphers">
<?=gettext("Limit SSL cipher selection in case the system defaults are undesired. Note that restrictive use may lead to an inaccessible web GUI.");?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_webguiport" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("TCP port"); ?></td>
<td>
<input name="webguiport" id="webguiport" type="text" value="<?=$pconfig['webguiport'];?>" placeholder="<?= $pconfig['webguiproto'] == 'https' ? '443' : '80' ?>" />
<div class="hidden" data-for="help_for_webguiport">
<?=gettext("Enter a custom port number for the web GUI " .
"above if you want to override the default (80 for HTTP, 443 " .
"for HTTPS). Changes will take effect immediately after save."); ?>
</div>
</td>
</tr>
<tr class="ssl_opts">
<td><a id="help_for_disablehttpredirect" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('HTTP Redirect'); ?></td>
<td style="width:78%">
<input name="disablehttpredirect" type="checkbox" value="yes" <?= empty($pconfig['disablehttpredirect']) ? '' : 'checked="checked"';?> />
<strong><?= gettext('Disable web GUI redirect rule') ?></strong>
<div class="hidden" data-for="help_for_disablehttpredirect">
<?= gettext("When this is unchecked, access to the web GUI " .
"is always permitted even on port 80, regardless of the listening port configured. " .
"Check this box to disable this automatically added redirect rule.");
?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_quietlogin" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Login Messages") ?></td>
<td>
<input name="quietlogin" type="checkbox" value="yes" <?= empty($pconfig['quietlogin']) ? '' : 'checked="checked"' ?>/>
<strong><?= gettext('Disable logging of web GUI successful logins') ?></strong>
<div class="hidden" data-for="help_for_quietlogin">
<?=gettext("When this is checked, successful logins to the web GUI will not be logged.");?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_nodnsrebindcheck" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("DNS Rebind Check"); ?></td>
<td>
<input name="nodnsrebindcheck" type="checkbox" value="yes" <?= empty($pconfig['nodnsrebindcheck']) ? '' : 'checked="checked"';?>/>
<strong><?=gettext("Disable DNS Rebinding Checks"); ?></strong>
<div class="hidden" data-for="help_for_nodnsrebindcheck">
<?= sprintf(gettext("When this is unchecked, your system is protected against %sDNS Rebinding attacks%s. " .
"This blocks private IP responses from your configured DNS servers. Check this box to disable this protection if it interferes with " .
"web GUI access or name resolution in your environment."),'<a href="http://en.wikipedia.org/wiki/DNS_rebinding">','</a>') ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_althostnames" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?= gettext("Alternate Hostnames") ?></td>
<td>
<input name="althostnames" type="text" value="<?= $pconfig['althostnames'] ?>"/>
<strong><?=gettext("Alternate Hostnames for DNS Rebinding and HTTP_REFERER Checks"); ?></strong>
<div class="hidden" data-for="help_for_althostnames">
<?= gettext("Here you can specify alternate hostnames by which the router may be queried, to " .
"bypass the DNS Rebinding Attack checks. Separate hostnames with spaces.") ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_compression" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("HTTP Compression")?></td>
<td style="width:78%">
<select name="compression" class="selectpicker">
<option value="" <?=empty($pconfig['compression'])? 'selected="selected"' : '';?>>
<?=gettext("Off");?>
</option>
<option value="1" <?=$pconfig['compression'] == "1" ? 'selected="selected"' : '';?>>
<?=gettext("Low");?>
</option>
<option value="5" <?=$pconfig['compression'] == "5" ? 'selected="selected"' : '';?>>
<?=gettext("Medium");?>
</option>
<option value="9" <?=$pconfig['compression'] == "9" ? 'selected="selected"' : '';?>>
<?=gettext("High");?>
</option>
</select>
<div class="hidden" data-for="help_for_compression">
<?=gettext("Enable compression of HTTP pages and dynamic content.");?><br/>
<?=gettext("Transfer less data to the client for an additional cost in processing power.");?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_httpaccesslog" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Access log"); ?></td>
<td>
<input name="httpaccesslog" type="checkbox" value="yes" <?= empty($pconfig['httpaccesslog']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Enable access log"); ?></strong>
<div class="hidden" data-for="help_for_httpaccesslog">
<?=gettext("Enable access logging on the webinterface for debugging and analysis purposes.") ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_webguiinterfaces" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Listen Interfaces') ?></td>
<td>
<select id="webguiinterface" name="webguiinterfaces[]" multiple="multiple" class="selectpicker" title="<?= html_safe(gettext('All (recommended)')) ?>">
<?php
foreach ($interfaces as $iface => $ifacename): ?>
<option value="<?= html_safe($iface) ?>" <?= !empty($pconfig['webguiinterfaces']) && in_array($iface, $pconfig['webguiinterfaces']) ? 'selected="selected"' : '' ?>><?= html_safe($ifacename) ?></option>
<?php
endforeach;?>
</select>
<div class="hidden" data-for="help_for_webguiinterfaces">
<?= gettext('Only accept connections from the selected interfaces. Leave empty to listen globally. Use with care.') ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_nohttpreferercheck" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("HTTP_REFERER enforcement"); ?></td>
<td>
<input name="nohttpreferercheck" type="checkbox" value="yes" <?= empty($pconfig['nohttpreferercheck']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Disable HTTP_REFERER enforcement check"); ?></strong>
<div class="hidden" data-for="help_for_nohttpreferercheck">
<?=sprintf(gettext("When this is unchecked, access to the web GUI " .
"is protected against HTTP_REFERER redirection attempts. " .
"Check this box to disable this protection if you find that it interferes with " .
"web GUI access in certain corner cases such as using external scripts to interact with this system. More information on HTTP_REFERER is available from %sWikipedia%s."),
'<a target="_blank" href="http://en.wikipedia.org/wiki/HTTP_referrer">','</a>') ?>
</div>
</td>
</tr>
<tr>
<th colspan="2"><?=gettext("Secure Shell"); ?></th>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Secure Shell Server"); ?></td>
<td>
<input name="enablesshd" type="checkbox" value="yes" <?= empty($pconfig['enablesshd']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Enable Secure Shell"); ?></strong>
</td>
</tr>
<tr>
<td><a id="help_for_sshlogingroup" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Login Group') ?></td>
<td>
<select name="sshlogingroup" class="selectpicker">
<option value=""><!-- do not translate: -->wheel</option>
<?php
foreach ($a_group as $group) :?>
<option value="<?= html_safe($group['name']) ?>" <?= $pconfig['sshlogingroup'] == $group['name'] ? 'selected="selected"' : '' ?>><!-- do not translate: -->wheel, <?= html_safe($group['name']) ?></option>
<?php
endforeach;?>
</select>
<div class="hidden" data-for="help_for_sshlogingroup">
<?= gettext('Select the allowed groups for remote login. The "wheel" group is always set for recovery purposes and an additional local group can be selected at will. Do not yield remote access to non-adminstrators as every user can access system files using SSH or SFTP.') ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_sshdpermitrootlogin" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?= gettext("Root Login") ?></td>
<td>
<input name="sshdpermitrootlogin" type="checkbox" value="yes" <?= empty($pconfig['sshdpermitrootlogin']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Permit root user login"); ?></strong>
<div class="hidden" data-for="help_for_sshdpermitrootlogin">
<?= gettext(
'Root login is generally discouraged. It is advised ' .
'to log in via another user and switch to root afterwards.'
) ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_sshpasswordauth" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?= gettext("Authentication Method") ?></td>
<td>
<input name="sshpasswordauth" type="checkbox" value="yes" <?= empty($pconfig['sshpasswordauth']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Permit password login"); ?></strong>
<div class="hidden" data-for="help_for_sshpasswordauth">
<?=sprintf(gettext("When disabled, authorized keys need to be configured for each %sUser%s that has been granted secure shell access."),
'<a href="system_usermanager.php">', '</a>') ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_sshport" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("SSH port"); ?></td>
<td style="width:78%">
<input name="sshport" type="text" value="<?=$pconfig['sshport'];?>" placeholder="22" />
<div class="hidden" data-for="help_for_sshport">
<?=gettext("Leave this blank for the default of 22."); ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_sshinterfaces" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Listen Interfaces') ?></td>
<td>
<select name="sshinterfaces[]" multiple="multiple" class="selectpicker" title="<?= html_safe(gettext('All (recommended)')) ?>">
<?php
foreach ($interfaces as $iface => $ifacename): ?>
<option value="<?= html_safe($iface) ?>" <?= !empty($pconfig['sshinterfaces']) && in_array($iface, $pconfig['sshinterfaces']) ? 'selected="selected"' : '' ?>><?= html_safe($ifacename) ?></option>
<?php
endforeach;?>
</select>
<div class="hidden" data-for="help_for_sshinterfaces">
<?= gettext('Only accept connections from the selected interfaces. Leave empty to listen globally. Use with care.') ?>
</div>
</td>
</tr>
<tr>
<th colspan="2"><?=gettext("Console Options"); ?></th>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i></a> <?= gettext('Console driver') ?></td>
<td style="width:78%">
<input name="usevirtualterminal" type="checkbox" value="yes" <?= empty($pconfig['usevirtualterminal']) ? '' : 'checked="checked"' ?> />
<strong><?= gettext('Use the virtual terminal driver (vt)') ?></strong>
</td>
</tr>
<tr>
<td><a id="help_for_primaryconsole" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Primary Console")?></td>
<td style="width:78%">
<select name="primaryconsole" id="primaryconsole" class="selectpicker">
<?php foreach (system_console_types() as $console_key => $console_type): ?>
<option value="<?= html_safe($console_key) ?>" <?= $pconfig['primaryconsole'] == $console_key ? 'selected="selected"' : '' ?>><?= $console_type['name'] ?></option>
<? endforeach ?>
</select>
<div class="hidden" data-for="help_for_primaryconsole">
<?=gettext("Select the primary console. This preferred console will show boot script output.") ?>
<?=gettext("All consoles display OS boot messages, console messages, and the console menu."); ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_secondaryconsole" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Secondary Console")?></td>
<td style="width:78%">
<select name="secondaryconsole" id="secondaryconsole" class="selectpicker">
<option value="" <?= empty($pconfig['secondaryconsole']) ? 'selected="selected"' : '' ?>><?= gettext('None') ?></option>
<?php foreach (system_console_types() as $console_key => $console_type): ?>
<option value="<?= html_safe($console_key) ?>" <?= $pconfig['secondaryconsole'] == $console_key ? 'selected="selected"' : '' ?>><?= $console_type['name'] ?></option>
<? endforeach ?>
</select>
<div class="hidden" data-for="help_for_secondaryconsole">
<?=gettext("Select the secondary console if multiple consoles are present."); ?>
<?=gettext("All consoles display OS boot messages, console messages, and the console menu."); ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_serialspeed" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Serial Speed")?></td>
<td>
<select name="serialspeed" id="serialspeed" class="selectpicker">
<option value="115200" <?=$pconfig['serialspeed'] == "115200" ? 'selected="selected"' : '' ?>>115200</option>
<option value="57600" <?=$pconfig['serialspeed'] == "57600" ? 'selected="selected"' : '' ?>>57600</option>
<option value="38400" <?=$pconfig['serialspeed'] == "38400" ? 'selected="selected"' : '' ?>>38400</option>
<option value="19200" <?=$pconfig['serialspeed'] == "19200" ? 'selected="selected"' : '' ?>>19200</option>
<option value="14400" <?=$pconfig['serialspeed'] == "14400" ? 'selected="selected"' : '' ?>>14400</option>
<option value="9600" <?=$pconfig['serialspeed'] == "9600" ? 'selected="selected"' : '' ?>>9600</option>
</select>
<div class="hidden" data-for="help_for_serialspeed">
<?=gettext("Allows selection of different speeds for the serial console port."); ?>
</div>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i></a> <?= gettext("Console menu") ?></td>
<td style="width:78%">
<input name="disableconsolemenu" type="checkbox" value="yes" <?= empty($pconfig['disableconsolemenu']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Password protect the console menu"); ?></strong>
</td>
</tr>
<tr>
<td><a id="help_for_disableintegratedauth" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?= gettext("Integrated authentication") ?></td>
<td style="width:78%">
<input name="disableintegratedauth" type="checkbox" value="yes" <?= empty($pconfig['disableintegratedauth']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Disable integrated authentication"); ?></strong>
<div class="hidden" data-for="help_for_disableintegratedauth">
<?=gettext("Disable OPNsense integrated authentication module for console access, falling back to normal unix authentication.");?>
</div>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?= gettext("Sudo usage") ?></td>
<td style="width:78%">
<select name="sudo_allow_wheel" id="sudo_allow_wheel" class="selectpicker">
<option value="" <?= empty($pconfig['sudo_allow_wheel']) ? 'selected="selected"' : '' ?>><?= gettext('Disallow') ?></option>
<option value="1" <?= $pconfig['sudo_allow_wheel'] == 1 ? 'selected="selected"' : '' ?>><?= gettext('Ask password') ?></option>
<option value="2" <?= $pconfig['sudo_allow_wheel'] == 2 ? 'selected="selected"' : '' ?>><?= gettext('No password') ?></option>
</select>
</td>
</tr>
<tr>
<td style="width:22%; vertical-align:top">&nbsp;</td>
<td style="width:78%"><input name="Submit" type="submit" class="btn btn-primary" value="<?= gettext("Save") ?>" /></td>
</tr>
endforeach;?>
</select>
<div class="hidden" data-for="help_for_webguiinterfaces">
<?= gettext('Only accept connections from the selected interfaces. Leave empty to listen globally. Use with care.') ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_nohttpreferercheck" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("HTTP_REFERER enforcement"); ?></td>
<td>
<input name="nohttpreferercheck" type="checkbox" value="yes" <?= empty($pconfig['nohttpreferercheck']) ? '' : 'checked="checked"' ?> />
<?=gettext("Disable HTTP_REFERER enforcement check"); ?>
<div class="hidden" data-for="help_for_nohttpreferercheck">
<?=sprintf(gettext("When this is unchecked, access to the web GUI " .
"is protected against HTTP_REFERER redirection attempts. " .
"Check this box to disable this protection if you find that it interferes with " .
"web GUI access in certain corner cases such as using external scripts to interact with this system. More information on HTTP_REFERER is available from %sWikipedia%s."),
'<a target="_blank" href="http://en.wikipedia.org/wiki/HTTP_referrer">','</a>') ?>
</div>
</td>
</tr>
</table>
</form>
</div>
</section>
</div>
</div>
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><strong><?= gettext('Secure Shell') ?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Secure Shell Server"); ?></td>
<td>
<input name="enablesshd" type="checkbox" value="yes" <?= empty($pconfig['enablesshd']) ? '' : 'checked="checked"' ?> />
<?=gettext("Enable Secure Shell"); ?>
</td>
</tr>
<tr>
<td><a id="help_for_sshlogingroup" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Login Group') ?></td>
<td>
<select name="sshlogingroup" class="selectpicker">
<option value=""><!-- do not translate: -->wheel</option>
<?php
foreach ($a_group as $group) :?>
<option value="<?= html_safe($group['name']) ?>" <?= $pconfig['sshlogingroup'] == $group['name'] ? 'selected="selected"' : '' ?>><!-- do not translate: -->wheel, <?= html_safe($group['name']) ?></option>
<?php
endforeach;?>
</select>
<div class="hidden" data-for="help_for_sshlogingroup">
<?= gettext('Select the allowed groups for remote login. The "wheel" group is always set for recovery purposes and an additional local group can be selected at will. Do not yield remote access to non-adminstrators as every user can access system files using SSH or SFTP.') ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_sshdpermitrootlogin" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?= gettext("Root Login") ?></td>
<td>
<input name="sshdpermitrootlogin" type="checkbox" value="yes" <?= empty($pconfig['sshdpermitrootlogin']) ? '' : 'checked="checked"' ?> />
<?=gettext("Permit root user login"); ?>
<div class="hidden" data-for="help_for_sshdpermitrootlogin">
<?= gettext(
'Root login is generally discouraged. It is advised ' .
'to log in via another user and switch to root afterwards.'
) ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_sshpasswordauth" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?= gettext("Authentication Method") ?></td>
<td>
<input name="sshpasswordauth" type="checkbox" value="yes" <?= empty($pconfig['sshpasswordauth']) ? '' : 'checked="checked"' ?> />
<?=gettext("Permit password login"); ?>
<div class="hidden" data-for="help_for_sshpasswordauth">
<?=sprintf(gettext("When disabled, authorized keys need to be configured for each %sUser%s that has been granted secure shell access."),
'<a href="system_usermanager.php">', '</a>') ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_sshport" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("SSH port"); ?></td>
<td style="width:78%">
<input name="sshport" type="text" value="<?=$pconfig['sshport'];?>" placeholder="22" />
<div class="hidden" data-for="help_for_sshport">
<?=gettext("Leave this blank for the default of 22."); ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_sshinterfaces" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Listen Interfaces') ?></td>
<td>
<select name="sshinterfaces[]" multiple="multiple" class="selectpicker" title="<?= html_safe(gettext('All (recommended)')) ?>">
<?php
foreach ($interfaces as $iface => $ifacename): ?>
<option value="<?= html_safe($iface) ?>" <?= !empty($pconfig['sshinterfaces']) && in_array($iface, $pconfig['sshinterfaces']) ? 'selected="selected"' : '' ?>><?= html_safe($ifacename) ?></option>
<?php
endforeach;?>
</select>
<div class="hidden" data-for="help_for_sshinterfaces">
<?= gettext('Only accept connections from the selected interfaces. Leave empty to listen globally. Use with care.') ?>
</div>
</td>
</tr>
</table>
</div>
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><strong><?= gettext('Console Options') ?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i></a> <?= gettext('Console driver') ?></td>
<td style="width:78%">
<input name="usevirtualterminal" type="checkbox" value="yes" <?= empty($pconfig['usevirtualterminal']) ? '' : 'checked="checked"' ?> />
<?= gettext('Use the virtual terminal driver (vt)') ?>
</td>
</tr>
<tr>
<td><a id="help_for_primaryconsole" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Primary Console")?></td>
<td style="width:78%">
<select name="primaryconsole" id="primaryconsole" class="selectpicker">
<?php foreach (system_console_types() as $console_key => $console_type): ?>
<option value="<?= html_safe($console_key) ?>" <?= $pconfig['primaryconsole'] == $console_key ? 'selected="selected"' : '' ?>><?= $console_type['name'] ?></option>
<? endforeach ?>
</select>
<div class="hidden" data-for="help_for_primaryconsole">
<?=gettext("Select the primary console. This preferred console will show boot script output.") ?>
<?=gettext("All consoles display OS boot messages, console messages, and the console menu."); ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_secondaryconsole" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Secondary Console")?></td>
<td style="width:78%">
<select name="secondaryconsole" id="secondaryconsole" class="selectpicker">
<option value="" <?= empty($pconfig['secondaryconsole']) ? 'selected="selected"' : '' ?>><?= gettext('None') ?></option>
<?php foreach (system_console_types() as $console_key => $console_type): ?>
<option value="<?= html_safe($console_key) ?>" <?= $pconfig['secondaryconsole'] == $console_key ? 'selected="selected"' : '' ?>><?= $console_type['name'] ?></option>
<? endforeach ?>
</select>
<div class="hidden" data-for="help_for_secondaryconsole">
<?=gettext("Select the secondary console if multiple consoles are present."); ?>
<?=gettext("All consoles display OS boot messages, console messages, and the console menu."); ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_serialspeed" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Serial Speed")?></td>
<td>
<select name="serialspeed" id="serialspeed" class="selectpicker">
<option value="115200" <?=$pconfig['serialspeed'] == "115200" ? 'selected="selected"' : '' ?>>115200</option>
<option value="57600" <?=$pconfig['serialspeed'] == "57600" ? 'selected="selected"' : '' ?>>57600</option>
<option value="38400" <?=$pconfig['serialspeed'] == "38400" ? 'selected="selected"' : '' ?>>38400</option>
<option value="19200" <?=$pconfig['serialspeed'] == "19200" ? 'selected="selected"' : '' ?>>19200</option>
<option value="14400" <?=$pconfig['serialspeed'] == "14400" ? 'selected="selected"' : '' ?>>14400</option>
<option value="9600" <?=$pconfig['serialspeed'] == "9600" ? 'selected="selected"' : '' ?>>9600</option>
</select>
<div class="hidden" data-for="help_for_serialspeed">
<?=gettext("Allows selection of different speeds for the serial console port."); ?>
</div>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i></a> <?= gettext("Console menu") ?></td>
<td style="width:78%">
<input name="disableconsolemenu" type="checkbox" value="yes" <?= empty($pconfig['disableconsolemenu']) ? '' : 'checked="checked"' ?> />
<?=gettext("Password protect the console menu"); ?>
</td>
</tr>
<tr>
<td><a id="help_for_disableintegratedauth" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?= gettext("Integrated authentication") ?></td>
<td style="width:78%">
<input name="disableintegratedauth" type="checkbox" value="yes" <?= empty($pconfig['disableintegratedauth']) ? '' : 'checked="checked"' ?> />
<?=gettext("Disable integrated authentication"); ?>
<div class="hidden" data-for="help_for_disableintegratedauth">
<?=gettext("Disable OPNsense integrated authentication module for console access, falling back to normal unix authentication.");?>
</div>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?= gettext("Sudo usage") ?></td>
<td style="width:78%">
<select name="sudo_allow_wheel" id="sudo_allow_wheel" class="selectpicker">
<option value="" <?= empty($pconfig['sudo_allow_wheel']) ? 'selected="selected"' : '' ?>><?= gettext('Disallow') ?></option>
<option value="1" <?= $pconfig['sudo_allow_wheel'] == 1 ? 'selected="selected"' : '' ?>><?= gettext('Ask password') ?></option>
<option value="2" <?= $pconfig['sudo_allow_wheel'] == 2 ? 'selected="selected"' : '' ?>><?= gettext('No password') ?></option>
</select>
</td>
</tr>
</table>
</div>
<div class="content-box tab-content table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"></td>
<td style="width:78%"><input name="Submit" type="submit" class="btn btn-primary" value="<?= gettext("Save") ?>" /></td>
</tr>
</table>
</div>
</form>
</section>
</div>
</div>
</section>
<?php include("foot.inc"); ?>

View File

@ -252,7 +252,7 @@ include("head.inc");
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('IPv6 Options') ?></td>
<td style="width:22%"><strong><?= gettext('IPv6 Options') ?></strong></td>
<td style="width:78%; text-align:right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
@ -262,7 +262,7 @@ include("head.inc");
<td><a id="help_for_ipv6allow" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Allow IPv6"); ?></td>
<td>
<input name="ipv6allow" type="checkbox" value="yes" <?= !empty($pconfig['ipv6allow']) ? "checked=\"checked\"" :"";?> onclick="enable_change(false)" />
<strong><?=gettext("Allow IPv6"); ?></strong>
<?=gettext("Allow IPv6"); ?>
<div class="hidden" data-for="help_for_ipv6allow">
<?=gettext("All IPv6 traffic will be blocked by the firewall unless this box is checked."); ?><br />
<?=gettext("NOTE: This does not disable any IPv6 features on the firewall, it only blocks traffic."); ?><br />
@ -275,7 +275,7 @@ include("head.inc");
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('Network Address Translation') ?></td>
<td style="width:22%"><strong><?= gettext('Network Address Translation') ?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>
@ -313,7 +313,7 @@ include("head.inc");
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('Bogon Networks') ?></td>
<td style="width:22%"><strong><?= gettext('Bogon Networks') ?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>
@ -340,14 +340,14 @@ include("head.inc");
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('Gateway Monitoring') ?></td>
<td style="width:22%"><strong><?= gettext('Gateway Monitoring') ?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>
<td><a id="help_for_kill_states" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Kill states");?> </td>
<td>
<input name="kill_states" type="checkbox" id="kill_states" value="yes" <?= !empty($pconfig['kill_states']) ? "checked=\"checked\"" : "";?> />
<strong><?=gettext("Disable State Killing on Gateway Failure"); ?></strong>
<?=gettext("Disable State Killing on Gateway Failure"); ?>
<div class="hidden" data-for="help_for_kill_states">
<?=gettext("The monitoring process will flush states for a gateway that goes down if this box is not checked. Check this box to disable this behavior."); ?>
</div>
@ -357,7 +357,7 @@ include("head.inc");
<td><a id="help_for_skip_rules_gw_down" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Skip rules");?> </td>
<td>
<input name="skip_rules_gw_down" type="checkbox" id="skip_rules_gw_down" value="yes" <?=!empty($pconfig['skip_rules_gw_down']) ? "checked=\"checked\"" : "";?> />
<strong><?=gettext("Skip rules when gateway is down"); ?></strong>
<?=gettext("Skip rules when gateway is down"); ?>
<div class="hidden" data-for="help_for_skip_rules_gw_down">
<?=gettext("By default, when a rule has a specific gateway set, and this gateway is down, ".
"rule is created and traffic is sent to default gateway.This option overrides that behavior ".
@ -369,7 +369,7 @@ include("head.inc");
<td><a id="help_for_gw_switch_default" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Gateway switching') ?></td>
<td>
<input name="gw_switch_default" type="checkbox" id="gw_switch_default" value="yes" <?= !empty($pconfig['gw_switch_default']) ? 'checked="checked"' : '' ?> />
<strong><?=gettext("Allow default gateway switching"); ?></strong><br />
<?=gettext("Allow default gateway switching"); ?>
<div class="hidden" data-for="help_for_gw_switch_default">
<?= gettext('If the link where the default gateway resides fails switch the default gateway to another available one.') ?>
</div>
@ -380,14 +380,14 @@ include("head.inc");
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('Multi-WAN') ?></td>
<td style="width:22%"><strong><?= gettext('Multi-WAN') ?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>
<td><a id="help_for_lb_use_sticky" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Sticky connections");?> </td>
<td>
<input name="lb_use_sticky" type="checkbox" id="lb_use_sticky" value="yes" <?= !empty($pconfig['lb_use_sticky']) ? 'checked="checked"' : '';?>/>
<strong><?=gettext("Use sticky connections"); ?></strong><br />
<?=gettext("Use sticky connections"); ?>
<div class="hidden" data-for="help_for_lb_use_sticky">
<?=gettext("Successive connections will be redirected to the servers " .
"in a round-robin manner with connections from the same " .
@ -409,7 +409,7 @@ include("head.inc");
<td><a id="help_for_pf_share_forward" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Shared forwarding');?> </td>
<td>
<input name="pf_share_forward" type="checkbox" id="pf_share_forward" value="yes" <?= !empty($pconfig['pf_share_forward']) ? 'checked="checked"' : '' ?>/>
<strong><?=gettext('Use shared forwarding between packet filter, traffic shaper and captive portal'); ?></strong><br />
<?=gettext('Use shared forwarding between packet filter, traffic shaper and captive portal'); ?>
<div class="hidden" data-for="help_for_pf_share_forward">
<?= gettext('Using policy routing in the packet filter rules causes packets to skip ' .
'processing for the traffic shaper and captive portal tasks. ' .
@ -422,7 +422,7 @@ include("head.inc");
<td><a id="help_pf_disable_force_gw" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Disable force gateway');?> </td>
<td>
<input name="pf_disable_force_gw" type="checkbox" id="pf_disable_force_gw" value="yes" <?= !empty($pconfig['pf_disable_force_gw']) ? 'checked="checked"' : '' ?>/>
<strong><?=gettext('Disable automatic rules which force local services to use the assigned interface gateway.'); ?></strong><br />
<?=gettext('Disable automatic rules which force local services to use the assigned interface gateway.'); ?>
<div class="hidden" data-for="help_pf_disable_force_gw">
<?= gettext('Outgoing packets from this firewall on an interface which has a gateway ' .
'will normally use the specified gateway for that interface. ' .
@ -435,7 +435,7 @@ include("head.inc");
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('Schedules') ?></td>
<td style="width:22%"><strong><?= gettext('Schedules') ?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>
@ -453,7 +453,7 @@ include("head.inc");
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('Miscellaneous') ?></td>
<td style="width:22%"><strong><?= gettext('Miscellaneous') ?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>
@ -474,26 +474,25 @@ include("head.inc");
</option>
</select>
<div class="hidden" data-for="help_for_optimization">
<?=gettext("Select the type of state table optimization to use");?>
<?=gettext("Select the type of state table optimization to use");?><br/><br/>
<table class="table table-condensed">
<tr>
<td><strong><?=gettext("normal");?></strong></td>
<td><?=gettext("normal");?></td>
<td><?=gettext("As the name says, it is the normal optimization algorithm");?></td>
</tr>
<tr>
<td><strong><?=gettext("high-latency");?></strong></td>
<td><?=gettext("high-latency");?></td>
<td><?=gettext("Used for high latency links, such as satellite links. Expires idle connections later than default");?></td>
</tr>
<tr>
<td><strong><?=gettext("aggressive");?></strong></td>
<td><?=gettext("aggressive");?></td>
<td><?=gettext("Expires idle connections quicker. More efficient use of CPU and memory but can drop legitimate idle connections");?></td>
</tr>
<tr>
<td><strong><?=gettext("conservative");?></strong></td>
<td><?=gettext("conservative");?></td>
<td><?=gettext("Tries to avoid dropping any legitimate idle connections at the expense of increased memory usage and CPU utilization.");?></td>
</tr>
</table>
<hr/>
</div>
</td>
</tr>
@ -512,22 +511,21 @@ include("head.inc");
</option>
</select>
<div class="hidden" data-for="help_for_rulesetoptimization">
<?=gettext("Select the type of rules optimization to use");?>
<?=gettext("Select the type of rules optimization to use");?><br/><br>
<table class="table table-condensed">
<tr>
<td><strong><?=gettext("none");?></strong></td>
<td><?=gettext("none");?></td>
<td><?=gettext("Disable the ruleset optimizer.");?></td>
</tr>
<tr>
<td><strong><?=gettext("basic");?></strong></td>
<td><?=gettext("basic");?></td>
<td><?=gettext("(default) Basic ruleset optimization does four things to improve the performance of ruleset evaluations: remove duplicate rules; remove rules that are a subset of another rule; combine multiple rules into a table when advantageous; re-order the rules to improve evaluation performance");?></td>
</tr>
<tr>
<td><strong><?=gettext("profile");?></strong></td>
<td><?=gettext("profile");?></td>
<td><?=gettext("Uses the currently loaded ruleset as a feedback profile to tailor the ordering of quick rules to actual network traffic.");?></td>
</tr>
</table>
<hr/>
</div>
</td>
</tr>
@ -535,7 +533,7 @@ include("head.inc");
<td><a id="help_for_disablefilter" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Disable Firewall");?></td>
<td>
<input name="disablefilter" type="checkbox" value="yes" <?= !empty($pconfig['disablefilter']) ? "checked=\"checked\"" : "";?>/>
<strong><?=gettext("Disable all packet filtering.");?></strong>
<?=gettext("Disable all packet filtering.");?>
<div class="hidden" data-for="help_for_disablefilter">
<?= gettext('Warning: This will convert into a routing-only platform!') ?><br />
<?= gettext('Warning: This will also turn off NAT!') ?><br />
@ -568,14 +566,12 @@ include("head.inc");
</tbody>
</table>
<div class="hidden" data-for="help_for_adaptive">
<strong><?=gettext("Timeouts for states can be scaled adaptively as the number of state table entries grows.");?></strong>
<br />
<strong><?=gettext("start");?></strong></br>
<?=gettext("When the number of state entries exceeds this value, adaptive scaling begins. All timeout values are scaled linearly with factor (adaptive.end - number of states) / (adaptive.end - adaptive.start).");?><br/>
<strong><?=gettext("end");?></strong></br>
<?=gettext("When reaching this number of state entries, all timeout values become zero, effectively purging all state entries immediately. This value is used to define the scale factor, it should not actually be reached (set a lower state limit, see below).");?>
<br/>
<strong><?=gettext("Note: Leave this blank for the default(0).");?></strong>
<?=gettext("Timeouts for states can be scaled adaptively as the number of state table entries grows.");?><br/><br/>
<?=gettext("start");?><br/><br/>
<?=gettext("When the number of state entries exceeds this value, adaptive scaling begins. All timeout values are scaled linearly with factor (adaptive.end - number of states) / (adaptive.end - adaptive.start).");?><br/><br/>
<?=gettext("end");?><br/><br/>
<?=gettext("When reaching this number of state entries, all timeout values become zero, effectively purging all state entries immediately. This value is used to define the scale factor, it should not actually be reached (set a lower state limit, see below).");?><br/><br/>
<?=gettext("Note: Leave this blank for the default(0).");?>
</div>
</td>
</tr>
@ -584,8 +580,7 @@ include("head.inc");
<td>
<input name="maximumstates" type="text" id="maximumstates" value="<?=$pconfig['maximumstates'];?>" />
<div class="hidden" data-for="help_for_maximumstates">
<strong><?=gettext("Maximum number of connections to hold in the firewall state table.");?></strong>
<br />
<?=gettext("Maximum number of connections to hold in the firewall state table.");?><br/>
<?=gettext("Note: Leave this blank for the default. On your system the default size is:");?> <?= default_state_size() ?>
</div>
</td>
@ -595,8 +590,7 @@ include("head.inc");
<td>
<input name="maximumfrags" type="text" id="maximumfrags" value="<?=$pconfig['maximumfrags'];?>" />
<div class="hidden" data-for="help_for_maximumfrags">
<strong><?=gettext("Sets the maximum number of entries in the memory pool used for fragment reassembly.");?></strong>
<br />
<?=gettext("Sets the maximum number of entries in the memory pool used for fragment reassembly.");?><br/>
<?=gettext("Note: Leave this blank for the default.");?>
</div>
</td>
@ -606,8 +600,7 @@ include("head.inc");
<td>
<input name="maximumtableentries" type="text" id="maximumtableentries" value="<?= html_safe($pconfig['maximumtableentries']) ?>"/>
<div class="hidden" data-for="help_for_maximumtableentries">
<strong><?=gettext("Maximum number of table entries for systems such as aliases, sshlockout, snort, etc, combined.");?></strong>
<br />
<?=gettext("Maximum number of table entries for systems such as aliases, sshlockout, snort, etc, combined.");?><br/>
<?=gettext("Note: Leave this blank for the default.");?>
<?php
if (empty($pconfig['maximumtableentries'])) :?>
@ -621,7 +614,7 @@ include("head.inc");
<td><a id="help_for_bypassstaticroutes" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Static route filtering");?></td>
<td>
<input name="bypassstaticroutes" type="checkbox" value="yes" <?=!empty($pconfig['bypassstaticroutes']) ? "checked=\"checked\"" : "";?>/>
<strong><?=gettext("Bypass firewall rules for traffic on the same interface");?></strong>
<?=gettext("Bypass firewall rules for traffic on the same interface");?>
<div class="hidden" data-for="help_for_bypassstaticroutes">
<?=gettext("This option only applies if you have defined one or more static routes. If it is enabled, traffic that enters and " .
"leaves through the same interface will not be checked by the firewall. This may be desirable in some situations where " .
@ -633,7 +626,7 @@ include("head.inc");
<td><a id="help_for_disablereplyto" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Disable reply-to') ?></td>
<td>
<input name="disablereplyto" type="checkbox" value="yes" <?=!empty($pconfig['disablereplyto']) ? "checked=\"checked\"" : "";?> />
<strong><?=gettext("Disable reply-to on WAN rules");?></strong>
<?=gettext("Disable reply-to on WAN rules");?>
<div class="hidden" data-for="help_for_disablereplyto">
<?=gettext("With Multi-WAN you generally want to ensure traffic leaves the same interface it arrives on, hence reply-to is added automatically by default. " .
"When using bridging, you must disable this behavior if the WAN gateway IP is different from the gateway IP of the hosts behind the bridged interface.");?>
@ -644,7 +637,7 @@ include("head.inc");
<td><a id="help_for_noantilockout" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Disable anti-lockout"); ?></td>
<td>
<input name="noantilockout" type="checkbox" value="yes" <?= empty($pconfig['noantilockout']) ? '' : 'checked="checked"' ?>/>
<strong><?= gettext('Disable administration anti-lockout rule') ?></strong>
<?= gettext('Disable administration anti-lockout rule') ?>
<div class="hidden" data-for="help_for_noantilockout">
<?= sprintf(gettext("When this is unchecked, access to the web GUI or SSH " .
"on the %s interface is always permitted, regardless of the user-defined firewall " .
@ -661,7 +654,7 @@ include("head.inc");
<td>
<input name="aliasesresolveinterval" type="text" value="<?=$pconfig['aliasesresolveinterval']; ?>" />
<div class="hidden" data-for="help_for_aliasesresolveinterval">
<strong><?=gettext("Interval, in seconds, that will be used to resolve hostnames configured on aliases.");?></strong>
<?=gettext("Interval, in seconds, that will be used to resolve hostnames configured on aliases.");?>
<br />
<?=gettext("Note: Leave this blank for the default (300s).");?>
</div>
@ -671,7 +664,7 @@ include("head.inc");
<td><a id="help_for_checkaliasesurlcert" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Check certificate of aliases URLs");?></td>
<td>
<input name="checkaliasesurlcert" type="checkbox" value="yes" <?=!empty($pconfig['checkaliasesurlcert']) ? "checked=\"checked\"" : "";?> />
<strong><?=gettext("Verify HTTPS certificates when downloading alias URLs");?></strong>
<?=gettext("Verify HTTPS certificates when downloading alias URLs");?>
<div class="hidden" data-for="help_for_checkaliasesurlcert">
<?=gettext("Make sure the certificate is valid for all HTTPS addresses on aliases. If it's not valid or is revoked, do not download it.");?>
</div>

View File

@ -225,7 +225,7 @@ include("head.inc");
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('Cryptographic Hardware Acceleration') ?></td>
<td style="width:22%"><strong><?= gettext('Cryptographic Hardware Acceleration') ?></strong></td>
<td style="width:78%; text-align:right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
@ -277,7 +277,7 @@ include("head.inc");
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('Thermal Sensors') ?></td>
<td style="width:22%"><strong><?= gettext('Thermal Sensors') ?></strong></td>
<td style="witdh:78%"></td>
</tr>
<tr>
@ -308,7 +308,7 @@ include("head.inc");
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('Periodic Backups') ?></td>
<td style="width:22%"><strong><?= gettext('Periodic Backups') ?></strong></td>
<td style="witdh:78%"></td>
</tr>
<tr>
@ -389,7 +389,7 @@ include("head.inc");
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('Power Savings') ?></td>
<td style="width:22%"><strong><?= gettext('Power Savings') ?></strong></td>
<td style="witdh:78%"></td>
</tr>
<tr>
@ -477,7 +477,7 @@ include("head.inc");
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td colspan="2"><?= gettext('Disk / Memory Settings (reboot to apply changes)') ?></td>
<td colspan="2"><strong><?= gettext('Disk / Memory Settings (reboot to apply changes)') ?></strong></td>
</tr>
<tr>
<td style="width:22%"><i class="fa fa-info-circle text-muted"></i> <?=gettext('Swap file'); ?></td>

View File

@ -150,9 +150,9 @@ include("head.inc");
}
?>
</form>
<section class="col-xs-12">
<div class="content-box tab-content table-responsive">
<form method="post" name="iform">
<section class="col-xs-12">
<form method="post" name="iform">
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><strong><?=gettext("Growl");?></strong></td>
@ -182,7 +182,7 @@ include("head.inc");
<tr>
<td><a id="help_for_notification_name" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Notification Name"); ?></td>
<td>
<input name='notification_name' type='text' value='<?=$pconfig['notification_name']; ?>' /><br />
<input name='notification_name' type='text' value='<?=$pconfig['notification_name']; ?>' />
<div class="hidden" data-for="help_for_notification_name">
<?=sprintf(gettext("Enter a name for the Growl notifications (default: %s growl alert)."), $g['product_name']); ?>
</div>
@ -191,7 +191,7 @@ include("head.inc");
<tr>
<td><a id="help_for_ipaddress" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("IP Address"); ?></td>
<td>
<input name="ipaddress" type="text" value="<?=$pconfig['ipaddress']; ?>" /><br />
<input name="ipaddress" type="text" value="<?=$pconfig['ipaddress']; ?>" />
<div class="hidden" data-for="help_for_ipaddress">
<?=gettext("This is the IP address that you would like to send growl notifications to."); ?>
</div>
@ -200,14 +200,19 @@ include("head.inc");
<tr>
<td><a id="help_for_password" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Password"); ?></td>
<td>
<input name="password" type="password" value="<?=$pconfig['password']; ?>"/><br />
<input name="password" type="password" value="<?=$pconfig['password']; ?>"/>
<div class="hidden" data-for="help_for_password">
<?=gettext("Enter the password of the remote growl notification device."); ?>
</div>
</td>
</tr>
</table>
</div>
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<th colspan="2"><?=gettext("SMTP Email"); ?></th>
<td style="width:22%"><strong><?=gettext("SMTP Email"); ?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>
<td><a id="help_for_disable_smtp" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Disable SMTP Notifications"); ?></td>
@ -240,9 +245,9 @@ include("head.inc");
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Secure SMTP Connection"); ?></td>
<td>
<input type="checkbox" id="smtpssl" name="smtpssl" <?=!empty($pconfig['smtpssl']) ? "checked=\"checked\"" : "";?> />
<strong><?=gettext('Enable SMTP over SSL/TLS');?></strong><br />
<?=gettext('Enable SMTP over SSL/TLS');?><br/>
<input type="checkbox" id="smtptls" name="smtptls" <?=!empty($pconfig['smtptls']) ? "checked=\"checked\"" : "";?> />
<strong><?=gettext('Enable STARTTLS');?></strong><br />
<?=gettext('Enable STARTTLS');?><br/>
</td>
</tr>
<tr>
@ -268,7 +273,6 @@ include("head.inc");
<td>
<input name="smtpusername" type="text" value="<?=$pconfig['smtpusername']; ?>" />
<div class="hidden" data-for="help_for_smtpusername">
<small><?=gettext("(optional)");?></small><br/>
<?=gettext("Enter the email address username for SMTP authentication."); ?>
</div>
</td>
@ -276,52 +280,48 @@ include("head.inc");
<tr>
<td><a id="help_for_smtppassword" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Email auth password"); ?></td>
<td>
<input name='smtppassword' type='password' value='<?=$pconfig['smtppassword']; ?>' /><br />
<input name='smtppassword' type='password' value='<?=$pconfig['smtppassword']; ?>' />
<div class="hidden" data-for="help_for_smtppassword">
<small><?=gettext("(optional)");?></small><br/>
<?=gettext("Enter the email address password for SMTP authentication."); ?>
</div>
</td>
</tr>
</table>
</div>
<div class="content-box tab-content table-responsive __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<!-- System Sounds -->
<tr>
<th colspan="2"><?=gettext("System Sounds"); ?></th>
<td style="width:22%"><strong><?= gettext('System Sounds') ?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>
<td><a id="help_for_disablebeep" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Startup/Shutdown Sound"); ?></td>
<td>
<input name="disablebeep" type="checkbox" id="disablebeep" value="yes" <?=!empty($pconfig['disablebeep']) ? "checked=\"checked\"" : "";?>/>
<strong><?=gettext("Disable the startup/shutdown beep"); ?></strong>
<br />
<?=gettext("Disable the startup/shutdown beep"); ?>
<div class="hidden" data-for="help_for_disablebeep">
<span class="vexpl"><?=gettext("When this is checked, startup and shutdown sounds will no longer play."); ?></span>
<?=gettext("When this is checked, startup and shutdown sounds will no longer play."); ?>
</div>
</td>
</tr>
</table>
</div>
<div class="content-box tab-content table-responsive">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td></td>
<td>
<td style="width:22%"></td>
<td style="width:78%">
<input type="submit" id="Submit" name="Submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
</td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" id="test_growl" name="test_growl" value="<?=gettext("Test Growl"); ?>" class="btn btn-primary" />
<input type="submit" id="test_smtp" name="test_smtp" value="<?=gettext("Test SMTP"); ?>" class="btn btn-primary" />
<br />
<small><?= gettext("NOTE: A test notification will be sent even if the service is marked as disabled.") ?></small>
<input type="submit" id="test_growl" name="test_growl" value="<?=gettext("Test Growl"); ?>" class="btn btn-default" />
<input type="submit" id="test_smtp" name="test_smtp" value="<?=gettext("Test SMTP"); ?>" class="btn btn-default" /><br/>
<div data-for="help_for_notifytest">
<?= gettext('A test notification will be sent even if the service is marked as disabled.') ?>
</div>
</td>
</tr>
</table>
</form>
</div>
</div>
</form>
</section>
</div>
</div>

View File

@ -202,7 +202,7 @@ $( document ).ready(function() {
<table class="table table-striped">
<tbody>
<tr>
<td style="width:22%"><?= gettext('Edit system tunable') ?></td>
<td style="width:22%"><strong><?= gettext('Edit system tunable') ?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>

View File

@ -242,7 +242,7 @@ include("head.inc");
<div class="content-box tab-content __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('System') ?></td>
<td style="width:22%"><strong><?= gettext('System') ?></strong></td>
<td style="width:78%; text-align:right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
@ -300,9 +300,7 @@ include("head.inc");
endforeach;?>
</select>
<div class="hidden" data-for="help_for_language">
<strong>
<?= gettext('Choose a language for the web GUI.') ?>
</strong>
<?= gettext('Choose a language for the web GUI.') ?>
</div>
</td>
</tr>
@ -320,9 +318,7 @@ include("head.inc");
endforeach; ?>
</select>
<div class="hidden" data-for="help_for_theme">
<strong>
<?= gettext('This will change the look and feel of the GUI.') ?>
</strong>
<?= gettext('This will change the look and feel of the GUI.') ?>
</div>
</td>
</tr>
@ -331,14 +327,14 @@ include("head.inc");
<div class="content-box tab-content __mb">
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td style="width:22%"><?= gettext('Networking') ?></td>
<td style="width:22%"><strong><?= gettext('Networking') ?></strong></td>
<td style="width:78%"></td>
</tr>
<tr>
<td><a id="help_for_prefer_ipv4" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Prefer IPv4 over IPv6"); ?></td>
<td>
<input name="prefer_ipv4" type="checkbox" id="prefer_ipv4" value="yes" <?= !empty($pconfig['prefer_ipv4']) ? "checked=\"checked\"" : "";?> />
<strong><?=gettext("Prefer to use IPv4 even if IPv6 is available"); ?></strong>
<?=gettext("Prefer to use IPv4 even if IPv6 is available"); ?>
<div class="hidden" data-for="help_for_prefer_ipv4">
<?=gettext("By default, if a hostname resolves IPv6 and IPv4 addresses ".
"IPv6 will be used, if you check this option, IPv4 will be " .
@ -407,9 +403,7 @@ include("head.inc");
<td><a id="help_for_dnsservers_opt" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("DNS server options"); ?></td>
<td>
<input name="dnsallowoverride" type="checkbox" value="yes" <?= $pconfig['dnsallowoverride'] ? 'checked="checked"' : '' ?>/>
<strong>
<?=gettext("Allow DNS server list to be overridden by DHCP/PPP on WAN"); ?>
</strong>
<?=gettext("Allow DNS server list to be overridden by DHCP/PPP on WAN"); ?>
<div class="hidden" data-for="help_for_dnsservers_opt">
<?= gettext("If this option is set, DNS servers " .
"assigned by a DHCP/PPP server on WAN will be used " .
@ -417,11 +411,13 @@ include("head.inc");
"However, they will not be assigned to DHCP and PPTP " .
"VPN clients.") ?>
</div>
<br/>
</td>
</tr>
</tr>
<td></td>
<td>
<input name="dnslocalhost" type="checkbox" value="yes" <?=$pconfig['dnslocalhost'] ? "checked=\"checked\"" : ""; ?> />
<strong>
<?=gettext("Do not use the DNS Forwarder/Resolver as a DNS server for the firewall"); ?>
</strong>
<?=gettext("Do not use the DNS Forwarder/Resolver as a DNS server for the firewall"); ?>
<div class="hidden" data-for="help_for_dnsservers_opt">
<?=gettext("By default localhost (127.0.0.1) will be used as the first DNS server where the DNS Forwarder or DNS Resolver is enabled and set to listen on Localhost, so system can use the local DNS service to perform lookups. ".
"Checking this box omits localhost from the list of DNS servers."); ?>

View File

@ -572,7 +572,7 @@ include("head.inc");
<?php
endif;?>
<tr>
<td style="width:22%; vertical-align:top"><a id="help_for_disabled" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Disabled"); ?></td>
<td style="width:22%"><a id="help_for_disabled" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Disabled"); ?></td>
<td>
<input name="disabled" type="checkbox" id="disabled" value="yes" <?=!empty($pconfig['disabled'])?"checked=\"checked\"":"";?> />
<div class="hidden" data-for="help_for_disabled">

View File

@ -657,7 +657,7 @@ $( document ).ready(function() {
<option value="<?=$iface;?>" <?=$selected;?>><?=htmlspecialchars($ifacename);?></option>
<?php
endforeach; ?>
</select> <br />
</select>
</td>
</tr>
<tr>
@ -709,14 +709,14 @@ $( document ).ready(function() {
</table>
<br/>
<input name="remote_random" type="checkbox" value="yes" <?= !empty($pconfig['remote_random']) ? 'checked="checked"' : '' ?>/>
<strong><?= gettext('Select remote server at random') ?></strong>
<?= gettext('Select remote server at random') ?>
</td>
</tr>
<tr>
<td><a id="help_for_resolve_retry" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Retry DNS resolution"); ?></td>
<td>
<input name="resolve_retry" type="checkbox" value="yes" <?= !empty($pconfig['resolve_retry']) ? 'checked="checked"' : '' ?>/>
<strong><?= gettext('Infinitely resolve remote server') ?></strong>
<?= gettext('Infinitely resolve remote server') ?>
<div class="hidden" data-for="help_for_resolve_retry">
<div><small><?=gettext("Continuously attempt to resolve the server host name. Useful when communicating with a server that is not permanently connected to the Internet"); ?></small></div>
</div>
@ -1110,7 +1110,7 @@ $( document ).ready(function() {
<tr>
<td style="width:22%"><a id="help_for_custom_options" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Advanced"); ?></td>
<td style="width:78%">
<textarea rows="6" cols="78" name="custom_options" id="custom_options"><?=$pconfig['custom_options'];?></textarea><br />
<textarea rows="6" cols="78" name="custom_options" id="custom_options"><?=$pconfig['custom_options'];?></textarea>
<div class="hidden" data-for="help_for_custom_options">
<?=gettext("Enter any additional options you would like to add to the configuration file here."); ?>
</div>

View File

@ -670,7 +670,7 @@ if ($act!="new" && $act!="edit") {
</td>
</tr>
<tr>
<td style="vertical-align:top">&nbsp;</td>
<td>&nbsp;</td>
<td>
<input name="save" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
<input name="act" type="hidden" value="<?=$act;?>" />

View File

@ -1278,7 +1278,7 @@ if (isset($savemsg)) {
</td>
</tr>
<tr>
<td style="vertical-align:top"><i class="fa fa-info-circle text-muted"></i> <?=gettext("Remote Access Server");?></td>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Remote Access Server");?></td>
<td>
<select name="server" id="server">
<?php
@ -1290,7 +1290,7 @@ if (isset($savemsg)) {
</td>
</tr>
<tr>
<td style="vertical-align:top"><i class="fa fa-info-circle text-muted"></i> <?=gettext("Host Name Resolution");?></td>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Host Name Resolution");?></td>
<td>
<select name="useaddr" id="useaddr">
<option value="serveraddr" ><?=gettext("Interface IP Address");?></option>
@ -1326,7 +1326,7 @@ if (isset($savemsg)) {
</td>
</tr>
<tr class="mode_server">
<td style="vertical-align:top"><a id="help_for_verify_server_cn" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Verify Server CN");?></td>
<td><a id="help_for_verify_server_cn" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Verify Server CN");?></td>
<td>
<select name="verifyservercn" id="verifyservercn">
<option value="auto"><?=gettext("Automatic - Use verify-x509-name (OpenVPN 2.3+) where possible");?></option>
@ -1342,7 +1342,7 @@ if (isset($savemsg)) {
</td>
</tr>
<tr class="mode_server">
<td style="vertical-align:top"><a id="help_for_random_local_port" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Use Random Local Port");?></td>
<td><a id="help_for_random_local_port" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Use Random Local Port");?></td>
<td>
<input name="randomlocalport" id="randomlocalport" type="checkbox" value="yes" checked="CHECKED" />
<div class="hidden" data-for="help_for_random_local_port">
@ -1352,7 +1352,7 @@ if (isset($savemsg)) {
</div>
</tr>
<tr class="mode_server">
<td style="vertical-align:top"><i class="fa fa-info-circle text-muted"></i> <?=gettext("Certificate Export Options");?></td>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Certificate Export Options");?></td>
<td>
<div>
<input name="usetoken" id="usetoken" type="checkbox" value="yes" />
@ -1371,7 +1371,7 @@ if (isset($savemsg)) {
</td>
</tr>
<tr>
<td style="vertical-align:top"><a id="help_for_http_proxy" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Use Proxy");?></td>
<td><a id="help_for_http_proxy" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Use Proxy");?></td>
<td>
<input name="useproxy" id="useproxy" type="checkbox" value="yes" />
<div class="hidden" data-for="help_for_http_proxy">
@ -1407,7 +1407,7 @@ if (isset($savemsg)) {
</td>
</tr>
<tr class="mode_server">
<td style="vertical-align:top"><a id="help_for_openvpnmanager" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Management Interface OpenVPN Manager");?></td>
<td><a id="help_for_openvpnmanager" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Management Interface OpenVPN Manager");?></td>
<td>
<input name="openvpnmanager" id="openvpnmanager" type="checkbox" value="yes" />
<div class="hidden" data-for="help_for_openvpnmanager">
@ -1418,13 +1418,13 @@ if (isset($savemsg)) {
</td>
</tr>
<tr class="mode_server">
<td style="vertical-align:top"><a id="help_for_advancedoptions" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Additional configuration options");?></td>
<td><a id="help_for_advancedoptions" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Additional configuration options");?></td>
<td>
<textarea rows="6" cols="68" name="advancedoptions" id="advancedoptions"></textarea><br/>
<div class="hidden" data-for="help_for_advancedoptions">
<?=gettext("Enter any additional options you would like to add to the OpenVPN client export configuration here, separated by a line break or semicolon"); ?><br/>
<?=gettext("EXAMPLE: remote-random"); ?>;
</div>
<textarea rows="6" cols="68" name="advancedoptions" id="advancedoptions"></textarea>
<div class="hidden" data-for="help_for_advancedoptions">
<?=gettext("Enter any additional options you would like to add to the OpenVPN client export configuration here, separated by a line break or semicolon"); ?><br/>
<?=gettext("EXAMPLE: remote-random"); ?>;
</div>
</td>
</tr>
<tr>
@ -1561,7 +1561,7 @@ if (isset($savemsg)) {
</td>
</tr>
<tr>
<td style="vertical-align:top"><i class="fa fa-info-circle text-muted"></i> <?=gettext("Links to OpenVPN clients");?></td>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Links to OpenVPN clients");?></td>
<td>
<a href="http://www.sparklabs.com/viscosity/" target="_blank"><?= gettext("Viscosity") ?></a> - <?= gettext("Recommended client for Mac OSX and Windows") ?><br/>
<a href="http://openvpn.net/index.php/open-source/downloads.html" target="_blank"><?= gettext("OpenVPN Community Client") ?></a> - <?=gettext("Binaries for Windows, Source for other platforms.")?><br/>

View File

@ -610,7 +610,7 @@ $( document ).ready(function() {
</td>
</tr>
<tr>
<td class="vncellreq">
<td>
<a id="help_for_disable" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Disabled"); ?>
</td>
<td>
@ -773,7 +773,7 @@ $( document ).ready(function() {
<option value="<?=$iface; ?>"<?=$selected;?>><?=htmlspecialchars($ifacename);?></option>
<?php
endforeach; ?>
</select> <br />
</select>
</td>
</tr>
<tr>
@ -926,9 +926,6 @@ endif; ?>
<?php
endforeach; ?>
</select>
<span>
<?=gettext("bits"); ?>
</span>
</td>
</tr>
<tr class="opt_mode opt_mode_p2p_shared_key">
@ -1538,7 +1535,7 @@ endif; ?>
<tr>
<td style="width:22%"><a id="help_for_custom_options" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Advanced"); ?></td>
<td>
<textarea rows="6" cols="78" name="custom_options" id="custom_options"><?=$pconfig['custom_options'];?></textarea><br />
<textarea rows="6" cols="78" name="custom_options" id="custom_options"><?=$pconfig['custom_options'];?></textarea>
<div class="hidden" data-for="help_for_custom_options">
<?=gettext("Enter any additional options you would like to add to the configuration file here."); ?>
</div>

View File

@ -210,15 +210,13 @@ else {
<table class="table table-striped" style="width:100%; border:0; cellpadding:0; cellspacing:0;">
<tr>
<td>
<span class="vexpl">
<span class="red">
<strong>
<?= gettext('Note: There are no configured IPsec Tunnels') ?><br />
</strong>
</span>
<?= sprintf(gettext('You can configure your IPsec %shere%s.'), '<a href="vpn_ipsec.php">', '</a>'); ?>
</span>
</td>
<span class="red">
<strong>
<?= gettext('Note: There are no configured IPsec Tunnels') ?><br />
</strong>
</span>
<?= sprintf(gettext('You can configure your IPsec %shere%s.'), '<a href="vpn_ipsec.php">', '</a>'); ?>
</td>
</tr>
</table>
</div>

View File

@ -126,8 +126,8 @@ if ($_REQUEST['updateme']) {
<table >
<tbody>
<tr>
<td style="width:40%" class="vncellt">Sync Source</td>
<td style="width:60%" class="listr">
<td style="width:40%">Sync Source</td>
<td style="width:60%">
<?php if ($ntpq_counter == 0) :
?>
<?= gettext('No active peers available') ?>
@ -142,8 +142,8 @@ endif; ?>
<?php if (($gps_ok) && ($gps_lat) && ($gps_lon)) :
?>
<tr>
<td style="width:40%" class="vncellt"><?= gettext('Clock location') ?></td>
<td style="width:60%" class="listr">
<td style="width:40%"><?= gettext('Clock location') ?></td>
<td style="width:60%">
<a target="_gmaps" href="http://maps.google.com/?q=<?= html_safe($gps_lat) ?>,<?= html_safe($gps_lon) ?>">
<?php
echo sprintf("%.5f", $gps_lat) . " " . $gps_la . ", " . sprintf("%.5f", $gps_lon) . " " . $gps_lo; ?>
@ -156,8 +156,8 @@ endif; ?>
<?php if (isset($gps_sat) || isset($gps_satview)) :
?>
<tr>
<td style="width:40%" class="vncellt"><?= gettext('Satellites') ?></td>
<td style="width:60%" class="listr">
<td style="width:40%"><?= gettext('Satellites') ?></td>
<td style="width:60%">
<?php
if (isset($gps_satview)) {
echo gettext('in view ') . intval($gps_satview);
@ -461,8 +461,8 @@ function clockUpdate()
<table class="table table-striped table-condensed">
<tbody>
<tr>
<td style="width:40%" class="vncellt">Server Time</td>
<td style="width:60%" class="listr">
<td style="width:40%">Server Time</td>
<td style="width:60%">
<div id="ClockTime">
<b><?= clockTimeString($gDate, $gClockShowsSeconds) ?></b>
</div>

View File

@ -454,11 +454,11 @@ function showchange() {
switch ($field['type']) {
case "input":
if ($field['displayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['displayname']);
echo ":</td>\n";
} else if(!$field['dontdisplayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['name']);
echo ":</td>\n";
}
@ -477,18 +477,18 @@ function showchange() {
}
break;
case "text":
echo "<td colspan=\"2\" style=\"text-align:center\" class=\"vncell\">\n";
echo "<td colspan=\"2\" style=\"text-align:center\">\n";
if($field['description'] <> "") {
echo "<center><br /> " . gettext($field['description']) . "</center>";
}
break;
case "inputalias":
if ($field['displayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['displayname']);
echo ":</td>\n";
} else if(!$field['dontdisplayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['name']);
echo ":</td>\n";
}
@ -511,7 +511,7 @@ function showchange() {
$size = "";
$multiple = "";
$name = strtolower($name);
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo ($field['displayname'] ? gettext($field['displayname']) : gettext($field['name'])) . ":\n";
echo "</td>";
echo "<td class=\"vtable\">\n";
@ -554,11 +554,11 @@ function showchange() {
break;
case "password":
if ($field['displayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['displayname']);
echo ":</td>\n";
} else if(!$field['dontdisplayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['name']);
echo ":</td>\n";
}
@ -578,7 +578,7 @@ function showchange() {
$size = "";
$multiple = "";
$name = strtolower($name);
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo ($field['displayname'] ? gettext($field['displayname']) : gettext($field['name'])) . ":\n";
echo "</td>";
echo "<td class=\"vtable\">\n";
@ -619,7 +619,7 @@ function showchange() {
$size = "";
$multiple = "";
$name = strtolower($name);
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo ($field['displayname'] ? gettext($field['displayname']) : gettext($field['name'])) . ":\n";
echo "</td>";
echo "<td class=\"vtable\">\n";
@ -657,11 +657,11 @@ function showchange() {
break;
case "select":
if ($field['displayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['displayname']);
echo ":</td>\n";
} else if(!$field['dontdisplayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['name']);
echo ":</td>\n";
}
@ -697,11 +697,11 @@ function showchange() {
break;
case "textarea":
if ($field['displayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['displayname']);
echo ":</td>\n";
} else if(!$field['dontdisplayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['name']);
echo ":</td>";
}
@ -735,11 +735,11 @@ function showchange() {
break;
case "subnet_select":
if ($field['displayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['displayname']);
echo ":</td>\n";
} else if(!$field['dontdisplayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['name']);
echo ":</td>";
}
@ -771,11 +771,11 @@ function showchange() {
$languagelist = get_locale_list();
if ($field['displayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['displayname']);
echo ":</td>\n";
} else if(!$field['dontdisplayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['name']);
echo ":</td>";
}
@ -800,11 +800,11 @@ function showchange() {
$timezonelist = get_zoneinfo();
if ($field['displayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['displayname']);
echo ":</td>\n";
} else if(!$field['dontdisplayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['name']);
echo ":</td>";
}
@ -829,11 +829,11 @@ function showchange() {
break;
case "checkbox":
if ($field['displayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['displayname']);
echo ":</td>\n";
} else if(!$field['dontdisplayname']) {
echo "<td style=\"width:22%; text-align:right\" class=\"vncellreq\">\n";
echo "<td style=\"width:22%; text-align:right\">\n";
echo gettext($field['name']);
echo ":</td>";
}