diff options
author | Jared Dillard <jdillard@netgate.com> | 2015-11-20 10:13:25 -0600 |
---|---|---|
committer | Jared Dillard <jdillard@netgate.com> | 2015-11-20 10:13:32 -0600 |
commit | 9c9617a54939fe73049b0388824d0d14e0539e2e (patch) | |
tree | ae69aaa54bbed8576af6c7a41fe1fa68dd42ac25 /src/usr/local | |
parent | 3d312f569d6e1261bdc5bf8a982644cecf11499e (diff) | |
download | pfsense-9c9617a54939fe73049b0388824d0d14e0539e2e.zip pfsense-9c9617a54939fe73049b0388824d0d14e0539e2e.tar.gz |
remove inline styles
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/firewall_rules_edit.php | 6 | ||||
-rw-r--r-- | src/usr/local/www/services_dyndns.php | 14 | ||||
-rw-r--r-- | src/usr/local/www/services_rfc2136.php | 12 | ||||
-rw-r--r-- | src/usr/local/www/services_unbound_acls.php | 8 | ||||
-rw-r--r-- | src/usr/local/www/status_captiveportal_test.php | 4 | ||||
-rwxr-xr-x | src/usr/local/www/status_services.php | 2 | ||||
-rw-r--r-- | src/usr/local/www/system_advanced_firewall.php | 4 | ||||
-rwxr-xr-x | src/usr/local/www/system_usermanager_settings_test.php | 6 | ||||
-rw-r--r-- | src/usr/local/www/widgets/widgets/system_information.widget.php | 2 |
9 files changed, 29 insertions, 29 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index c93b73a..446b380 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -1923,10 +1923,10 @@ events.push(function(){ } function setOptText(target, val) { - var dispstr = '<font color="green">'; + var dispstr = '<span class="text-success">'; if (val == 'keep state') - dispstr += 'Keep: works with all IP protocols</font>'; + dispstr += 'Keep: works with all IP protocols'; else if (val == 'sloppy state') dispstr += 'Sloppy: works with all IP protocols'; else if (val == 'synproxy state') @@ -1934,7 +1934,7 @@ events.push(function(){ else if (val == 'none') dispstr += 'None: Do not use state mechanisms to keep track. This is only useful if you\'re doing advanced queueing in certain situations'; - dispstr += '</font>'; + dispstr += '</span>'; setHelpText(target, dispstr); } diff --git a/src/usr/local/www/services_dyndns.php b/src/usr/local/www/services_dyndns.php index 48016b6..6a9dd72 100644 --- a/src/usr/local/www/services_dyndns.php +++ b/src/usr/local/www/services_dyndns.php @@ -176,24 +176,24 @@ foreach ($a_dyndns as $dyndns): $cached_ip = $cached_ip_s[0]; if ($ipaddr != $cached_ip) - print('<font color="red">'); + print('<span class="text-danger">'); else - print('<font color="green">'); + print('<span class="text-success">'); print(htmlspecialchars($cached_ip)); - print('</font>'); + print('</span>'); } else if (file_exists($filename_v6)) { $ipv6addr = get_interface_ipv6($dyndns['interface']); $cached_ipv6_s = explode("|", file_get_contents($filename_v6)); $cached_ipv6 = $cached_ipv6_s[0]; if ($ipv6addr != $cached_ipv6) - print('<font color="red">'); + print('<span class="text-danger">'); else - print('<font color="green">'); + print('<span class="text-success">'); print(htmlspecialchars($cached_ipv6)); - print('</font>'); + print('</span>'); } else { print('N/A'); } @@ -234,7 +234,7 @@ foreach ($a_dyndns as $dyndns): </nav> <div> - <?=gettext('IP addresses appearing in <span style="color: green;">green</span> are up to date with Dynamic DNS provider. ')?> + <?=gettext('IP addresses appearing in <span class="text-success">green</span> are up to date with Dynamic DNS provider. ')?> <?=gettext('You can force an update for an IP address on the edit page for that service.')?> </div> diff --git a/src/usr/local/www/services_rfc2136.php b/src/usr/local/www/services_rfc2136.php index a4deb9c..dc639af 100644 --- a/src/usr/local/www/services_rfc2136.php +++ b/src/usr/local/www/services_rfc2136.php @@ -159,12 +159,12 @@ foreach ($a_rfc2136 as $rfc2136): $cached_ip = $cached_ip_s[0]; if ($ipaddr != $cached_ip) - print('<font color="red">'); + print('<span class="text-danger">'); else - print('<font color="green">'); + print('<span class="text-success">'); print(htmlspecialchars($cached_ip)); - print('</font>'); + print('</span>'); } else { print('IPv4: N/A'); } @@ -178,12 +178,12 @@ foreach ($a_rfc2136 as $rfc2136): $cached_ip = $cached_ip_s[0]; if ($ipaddr != $cached_ip) - print('<font color="red">'); + print('<span class="text-danger">'); else - print('<font color="green">'); + print('<span class="text-success">'); print(htmlspecialchars($cached_ip)); - print('</font>'); + print('</span>'); } else { print('IPv6: N/A'); } diff --git a/src/usr/local/www/services_unbound_acls.php b/src/usr/local/www/services_unbound_acls.php index 92fd87d..895af29 100644 --- a/src/usr/local/www/services_unbound_acls.php +++ b/src/usr/local/www/services_unbound_acls.php @@ -190,10 +190,10 @@ if ($_POST) { } $actionHelp = - '<strong><font color="green">Deny:</font></strong> Stops queries from hosts within the netblock defined below.' . '<br />' . - '<strong><font color="green">Refuse:</font></strong> Stops queries from hosts within the netblock defined below, but sends a DNS rcode REFUSED error message back to the client.' . '<br />' . - '<strong><font color="green">Allow:</font></strong> Allow queries from hosts within the netblock defined below.' . '<br />' . - '<strong><font color="green">Allow Snoop:</font></strong> Allow recursive and nonrecursive access from hosts within the netblock defined below. Used for cache snooping and ideally should only be configured for your administrative host.'; + '<span class="text-success"><strong>Deny:</strong></span> Stops queries from hosts within the netblock defined below.' . '<br />' . + '<span class="text-success"><strong>Refuse:</strong></span> Stops queries from hosts within the netblock defined below, but sends a DNS rcode REFUSED error message back to the client.' . '<br />' . + '<span class="text-success"><strong>Allow:</strong></span> Allow queries from hosts within the netblock defined below.' . '<br />' . + '<span class="text-success"><strong>Allow Snoop:</strong></span> Allow recursive and nonrecursive access from hosts within the netblock defined below. Used for cache snooping and ideally should only be configured for your administrative host.'; $closehead = false; diff --git a/src/usr/local/www/status_captiveportal_test.php b/src/usr/local/www/status_captiveportal_test.php index bbc14bb..0a85848 100644 --- a/src/usr/local/www/status_captiveportal_test.php +++ b/src/usr/local/www/status_captiveportal_test.php @@ -128,9 +128,9 @@ if ($_POST) { foreach ($test_results as $result) { if (strpos($result, " good ") || strpos($result, " granted ")) { - $output .= '<font color="green">' . htmlspecialchars($result) . '</font>' . '<br />'; + $output .= '<span class="text-success">' . htmlspecialchars($result) . '</span>' . '<br />'; } else { - $output .= '<font color="red">' . htmlspecialchars($result) . '</font>' . '<br />'; + $output .= '<span class="text-danger">' . htmlspecialchars($result) . '</span>' . '<br />'; } } diff --git a/src/usr/local/www/status_services.php b/src/usr/local/www/status_services.php index 4d1ec82..3fedf83 100755 --- a/src/usr/local/www/status_services.php +++ b/src/usr/local/www/status_services.php @@ -162,7 +162,7 @@ if (count($services) > 0) { } ?> <td> - <?=$running ? '<font color="green">Running</font>':'<font color="red">Stopped</font>'?> + <?=$running ? '<span class="text-success">Running</span>':'<span class="text-danger">Stopped</span>'?> </td> <td> <?=get_service_control_links($service)?> diff --git a/src/usr/local/www/system_advanced_firewall.php b/src/usr/local/www/system_advanced_firewall.php index e6abbdc..3b252e9 100644 --- a/src/usr/local/www/system_advanced_firewall.php +++ b/src/usr/local/www/system_advanced_firewall.php @@ -753,7 +753,7 @@ events.push(function(){ } function setOptText(val) { - var htext = '<font color="green">'; + var htext = '<span class="text-success">'; if(val == 'normal') htext += 'The default optimization algorithm'; @@ -764,7 +764,7 @@ events.push(function(){ else if (val == 'conservative') htext += 'Tries to avoid dropping any legitimate idle connections at the expense of increased memory usage and CPU utilization'; - htext += '</font>'; + htext += '</span>'; setHelpText('optimization', htext); } diff --git a/src/usr/local/www/system_usermanager_settings_test.php b/src/usr/local/www/system_usermanager_settings_test.php index d2339b7..6a7e938 100755 --- a/src/usr/local/www/system_usermanager_settings_test.php +++ b/src/usr/local/www/system_usermanager_settings_test.php @@ -95,16 +95,16 @@ if (!$authcfg) { echo "<tr><td>" . gettext("Attempting connection to") . " " . "<td><center>" . htmlspecialchars($auth_server). "</b></center></td>"; if (ldap_test_connection($authcfg)) { - echo "<td><center><font color=green>OK</center></td></tr>"; + echo "<td><span class="text-center text-success">OK</span></td></tr>"; echo "<tr><td>" . gettext("Attempting bind to") . " " . "<td><center>" . htmlspecialchars($auth_server). "</b></center></td>"; if (ldap_test_bind($authcfg)) { - echo "<td><center><font color=green>OK</center></td></tr>"; + echo "<td><span class="text-center text-success">OK</span></td></tr>"; echo "<tr><td>" . gettext("Attempting to fetch Organizational Units from") . " " . "<td><center>" . htmlspecialchars($auth_server). "</b></center></td>"; $ous = ldap_get_user_ous(true, $authcfg); if (count($ous)>1) { - echo "<td><center><font color=green>OK</center></td></tr>"; + echo "<td><span class="text-center text-success">OK</span></td></tr>"; echo "</table>"; if (is_array($ous)) { echo "<br/>"; diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php index c3e2c13..2ba486a 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -85,7 +85,7 @@ if ($_REQUEST['getupdatestatus']) { ?> <div> <?=gettext("Version ")?> - <span style="color: green"><?=$system_version['version']?></span> <?=gettext("is available.")?> + <span class="text-success"><?=$system_version['version']?></span> <?=gettext("is available.")?> <a class="fa fa-cloud-download fa-lg" href="/pkg_mgr_install.php?id=firmware"></a> </div> <?php |