diff --git a/conf.default/config.xml b/conf.default/config.xml index a0cabd501..7052fcc0b 100644 --- a/conf.default/config.xml +++ b/conf.default/config.xml @@ -3,7 +3,7 @@ 9.9 - pfsense_ng + opnsense diff --git a/usr/local/www/carp_status.php b/usr/local/www/carp_status.php index d53cf5047..8a3b40a72 100644 --- a/usr/local/www/carp_status.php +++ b/usr/local/www/carp_status.php @@ -50,12 +50,11 @@ unset($carp_interface_count_cache); unset($interface_ip_arr_cache); $status = get_carp_status(); -$status = intval($status); if($_POST['carp_maintenancemode'] <> "") { interfaces_carp_set_maintenancemode(!isset($config["virtualip_carp_maintenancemode"])); } if($_POST['disablecarp'] <> "") { - if($status > 0) { + if($status == true) { set_single_sysctl('net.inet.carp.allow', '0'); if(is_array($config['virtualip']['vip'])) { $viparr = &$config['virtualip']['vip']; @@ -69,7 +68,6 @@ if($_POST['disablecarp'] <> "") { } } $savemsg = sprintf(gettext("%s IPs have been disabled. Please note that disabling does not survive a reboot."), $carp_counter); - $status = 0; } else { $savemsg = gettext("CARP has been enabled."); if(is_array($config['virtualip']['vip'])) { @@ -85,11 +83,12 @@ if($_POST['disablecarp'] <> "") { } interfaces_carp_setup(); set_single_sysctl('net.inet.carp.allow', '1'); - $status = 1; } } -$carp_detected_problems = ((get_single_sysctl("net.inet.carp.demotion")) > 0); +$status = get_carp_status(); + +$carp_detected_problems = (array_pop(get_sysctl("net.inet.carp.demotion")) > 0); $pgtitle = array(gettext("Status"),gettext("CARP")); $shortcut_section = "carp"; @@ -97,113 +96,118 @@ include("head.inc"); ?> - + -
- - -" . gettext("Check link status on all interfaces with configured CARP VIPs.")); ?> + + +
+
+
+
+ + + + " . gettext("Check link status on all interfaces with configured CARP VIPs.")); ?> -
- - - "; - $align = "style=\"vertical-align:middle\""; - if($carp_enabled == false) { - $icon = "\"disabled\""; - $status = "DISABLED"; - } else { - if($status == "MASTER") { - $icon = "\"master\""; - } else if($status == "BACKUP") { - $icon = "\"backup\""; - } else if($status == "INIT") { - $icon = "\"init\""; +
+ +
+ " . convert_friendly_interface_to_friendly_descr($carp['interface']) . "@{$vhid}  "; - echo "
"; - echo ""; - echo ""; - } - } -?> -
- 0) { - if($status > 0) { - $carp_enabled = true; - echo ""; - } else { - $carp_enabled = false; - echo ""; - } - if(isset($config["virtualip_carp_maintenancemode"])) { - echo ""; - } else { - echo ""; - } - } -?> - -

- - - - - - -

" . gettext("Could not locate any defined CARP interfaces."); - echo "
"; - - include("fend.inc"); - echo ""; - return; - } - if(is_array($config['virtualip']['vip'])) { - foreach($config['virtualip']['vip'] as $carp) { - if ($carp['mode'] != "carp") - continue; - $ipaddress = $carp['subnet']; - $password = $carp['password']; - $netmask = $carp['subnet_bits']; - $vhid = $carp['vhid']; - $advskew = $carp['advskew']; - $advbase = $carp['advbase']; - $status = get_carp_interface_status("{$carp['interface']}_vip{$carp['vhid']}"); - echo "
" . $ipaddress . " {$icon}  " . $status . " 
- - - -
- + if($carpcount > 0) { + if($status == false) { + $carp_enabled = false; + echo ""; + } else { + $carp_enabled = true; + echo ""; + } + if(isset($config["virtualip_carp_maintenancemode"])) { + echo ""; + } else { + echo ""; + } + } + ?> + +
+ + + + + + + +

" . gettext("Could not locate any defined CARP interfaces."); + + + } + elseif(is_array($config['virtualip']['vip'])) { + foreach($config['virtualip']['vip'] as $carp) { + if ($carp['mode'] != "carp") + continue; + $ipaddress = $carp['subnet']; + $password = $carp['password']; + $netmask = $carp['subnet_bits']; + $vhid = $carp['vhid']; + $advskew = $carp['advskew']; + $advbase = $carp['advbase']; + $status = get_carp_interface_status("{$carp['interface']}_vip{$carp['vhid']}"); + echo "
"; + $align = "style=\"vertical-align:middle\""; + if($carp_enabled == false) { + $icon = "\"disabled\""; + $status = "DISABLED"; + } else { + if($status == "MASTER") { + $icon = "\"master\""; + } else if($status == "BACKUP") { + $icon = "\"backup\""; + } else if($status == "INIT") { + $icon = "\"init\""; + } + } + echo ""; + echo ""; + echo ""; + echo ""; + } + } + ?> +
" . convert_friendly_interface_to_friendly_descr($carp['interface']) . "@{$vhid}  " . $ipaddress . " {$icon}  " . $status . " 
+ +
+ +
+

+ : +
+ . +

-

-: -
- . -

+ " . gettext("pfSync nodes") . ":
"; + echo "
";
+							system("/sbin/pfctl -vvss | /usr/bin/grep creator | /usr/bin/cut -d\" \" -f7 | /usr/bin/sort -u");
+							echo "
"; + ?> +
+ +
+
+ + + -" . gettext("pfSync nodes") . ":
"; - echo "
";
-	system("/sbin/pfctl -vvss | /usr/bin/grep creator | /usr/bin/cut -d\" \" -f7 | /usr/bin/sort -u");
-	echo "
"; -?> - - - - - + \ No newline at end of file diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php index 1b3d40bc9..0a3e2a60e 100644 --- a/usr/local/www/crash_reporter.php +++ b/usr/local/www/crash_reporter.php @@ -70,8 +70,8 @@ function output_crash_reporter_html($crash_reports) { echo "

" . gettext("Please double check the contents to ensure you are comfortable sending this information before clicking Yes.") . "

"; echo "

" . gettext("Contents of crash reports") . ":
"; echo "

"; - echo "

" . gettext(" - Submit this to the developers for inspection") . "

"; - echo "

" . gettext(" - Just delete the crash report and take me back to the Dashboard") . "

"; + echo "

" . gettext(" - Submit this to the developers for inspection") . "

"; + echo "

" . gettext(" - Just delete the crash report and take me back to the Dashboard") . "

"; echo ""; } @@ -88,11 +88,18 @@ exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors); ?> - - + -
+
+
+
+ +
+
+ +
+ - - - - - +
+ +
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/csrf/csrf-secret.php b/usr/local/www/csrf/csrf-secret.php new file mode 100644 index 000000000..a1331841f --- /dev/null +++ b/usr/local/www/csrf/csrf-secret.php @@ -0,0 +1 @@ + - - + + -
- loader -

 

-
- - - - - - - - -
- - - - - - - - - - - - - - - - -
- {$mac_man[$mac_hi]}"; } - ?> - - -
-

.
- - - - - + + +
+
+ +
+ +
+
+ +
+ + + + + + + + + + + + + + + + + +
+ + + + + +
+ +
+
+ + + + + +
+ +
+
+ + + + + +
+ +
+
+ + + + + +
+ +
+
{$mac_man[$mac_hi]}"; } + ?>
+ +
. + +
+ +
+
+ +
+ +
+
+ + \ No newline at end of file diff --git a/usr/local/www/diag_authentication.php b/usr/local/www/diag_authentication.php index 5fd0abdc6..7f5673cae 100644 --- a/usr/local/www/diag_authentication.php +++ b/usr/local/www/diag_authentication.php @@ -68,65 +68,76 @@ if ($_POST) { } $pgtitle = array(gettext("Diagnostics"),gettext("Authentication")); $shortcut_section = "authentication"; + include("head.inc"); ?> - + - + - - - - - - -
-
-
- - - - - - - - - - - - - - - - - -
- -
- -
- -
  - " /> -
-
+
+
+
+
+ + + +
+
+ +
+

Test a server

+
+ +
+
+ + + + + + + + + + + + + + + + + + + +
+
 " />
+ + +
+
+ +
+
+ +
+
-
+ + - - - + \ No newline at end of file diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 1b67fee8e..73d4acf6c 100644 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -582,12 +582,14 @@ $mth = ini_get('upload_progress_meter.store_method'); $dir = ini_get('upload_progress_meter.file.filename_template'); $pgtitle = array(gettext("Diagnostics"),gettext("Backup/restore")); + include("head.inc"); ?> - + + - +
@@ -627,152 +629,225 @@ function backuparea_change(obj) { " . gettext("The firewall is now rebooting."));?>
+ +
- - - - - - - -
- -
-
- - - - - - - - - - - - - - - - - + + + + + +
  -



- - - - - -
- - - -
- - - - - - - - - -
- - - -
- - - -
- - - - - - - - - -
- - - -
- - - -
-

" />

-
 
  - +
+
+
+ + + +
+ + + + + +
+ +
+ +
+ +
+
+ +
+

Backup configuration

+
+ +
+
+ + + + + + + + + + +



+ + + + + +
+ + + +
+ + + + + + + + + +
+ + + +
+ + + +
+ + + + + + + + + +
+ + + +
+ + + +
+

" />

+ + +
+
+ +
+ +
+
+ +
+
+ +
+

+
+ +
+
+ + + + - - - - - - - - - - - - - -



- -

- - - - - -
- - - -
- - - - - - - - - -
- - - -
- - - -
-

" />

-



-
 
  - -



- " /> -
-
- - -



- " /> - -

-
+

+ +

+ + + + + +
+ + + +
+ + + + + + + + + +
+ + + +
+ + + +
+

" />

+



+ + +
+
+ + + + + + + + + +
+
+ +
+

+
+ +
+
+ + + + + + +
+ + +



+ " /> +
+
+ + +



+ " /> + +

+ +
+
+ +
+ +
+
+ + + + + + + + + -
+ + + +
- - - + + - + - - - - - - - - -
-
- - - - - - - - - - - - - - - - - -
- -
-
-
- + +
+
+
+ +
+ + - -
- - - - - - - + + +
+
+
+

+
+ +
+ +
+ +
  + +
+ +
+ +
- : -
-
: - - " /> - - " /> - -
: - -
" /> -
+ + + + + + +
+
+ + + + + + + + +
+
+ +
+

+
+ +
+ + : +
+
: + + " /> + + " /> + +
: + +
" /> + +
+
+
+ + + + +
+
+
+ +
+

Config history

+
+ +
+ +
+ + + + + + + + + +
" />
+ +
+
+
+
+
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
+ +
+ + + + + +   + + + "> + " > + "> +
+ + " /> + +
+
+
+ + + + + + + + + + + + + + -
  - - - - " />
  - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

-
" /> 
- -
- - - - - -   - - - - <?=gettext(" title="" /> - - - <?=gettext(" title="" /> - - - <?=gettext(" title="" /> - -
" />
- -
-
- - - - - - - + + + \ No newline at end of file diff --git a/usr/local/www/diag_defaults.php b/usr/local/www/diag_defaults.php index 9b50b1c07..ab725e4e3 100755 --- a/usr/local/www/diag_defaults.php +++ b/usr/local/www/diag_defaults.php @@ -54,36 +54,54 @@ include("head.inc"); ?> - + + - -
-
-
- -
-

-
    -
  • -
  • -
  • -
  • -
  • -
  • -
  • ''
  • -
-

-

- " /> - " /> -

-
- - - - + +
+
+
+
+ + +
+			
+			
+ + + +
+

+
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • ''
  • +
+

+ + +
+ " /> + " /> +
+

+ +
+ + +
+
+
+
+ + + \ No newline at end of file diff --git a/usr/local/www/diag_dns.php b/usr/local/www/diag_dns.php index 21a903541..c900baad3 100644 --- a/usr/local/www/diag_dns.php +++ b/usr/local/www/diag_dns.php @@ -169,116 +169,111 @@ function display_host_results ($address,$hostname,$dns_speeds) { } include("head.inc"); ?> - + - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
- -  =  - - "") { - echo $hostitem . "
"; - $found++; - } - } - } else { - echo $resolved; - } - if($found > 0) { ?> -
- - An alias already exists for the hostname .
- - - - - - Alias created with name - - -
-
- - - - - - - - - - - -
- - - -
- - - -
-
-
- -

-

-
- -

-
  -
  - " /> -
-
-
- - - +
+
+
+ +
+
+
+ + + +
+

+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ "") { + echo $hostitem . "
"; + $found++; + } + } + } else { + echo $resolved; + } + ?> +
+ 0): ?> + + An alias already exists for the hostname .
+ + + + + + + Alias created with name + +
+ + + + + + + + + + + + +
+ + + +
+

+ +

+

+
+ +

+
+
+ + " /> +
+ +
+
+ +
+ +
+
\ No newline at end of file diff --git a/usr/local/www/diag_dump_states.php b/usr/local/www/diag_dump_states.php index 40ab24bbb..fc373bc30 100755 --- a/usr/local/www/diag_dump_states.php +++ b/usr/local/www/diag_dump_states.php @@ -73,7 +73,7 @@ include("head.inc"); ?> -"> +"> - - - - - - - -
- -
-
- - - - - - - - - - - - -
- - - - - - -
- : - - - - " /> - - " /> - -
- -
- - - - - - - - - - - -= 10000) - break; - - $line_split = preg_split("/\s+/", $line); - - $iface = array_shift($line_split); - $proto = array_shift($line_split); - $state = array_pop($line_split); - $info = implode(" ", $line_split); - - // We may want to make this optional, with a large state table, this could get to be expensive. - $iface = convert_real_interface_to_friendly_descr($iface); - - /* break up info and extract $srcip and $dstip */ - $ends = preg_split("/\?/", $info); - $parts = explode(":", $ends[0]); - $srcip = trim($parts[0]); - $parts = explode(":", $ends[count($ends) - 1]); - $dstip = trim($parts[0]); - -?> - - - - - - - - - - - - - -
Router -> Destination");?>
- -
- -
-
- - : - -
- - +
+
+
+ +
+ + + +
+ +
+ +
+ + +
+ +
+ + + + + + + + + + + + +
: " /> + + " /> + +
+ + +
+
+ +
+ +
+ +
+ + + + + + + + + + = 10000) + break; + + $line_split = preg_split("/\s+/", $line); + + $iface = array_shift($line_split); + $proto = array_shift($line_split); + $state = array_pop($line_split); + $info = implode(" ", $line_split); + + // We may want to make this optional, with a large state table, this could get to be expensive. + $iface = convert_real_interface_to_friendly_descr($iface); + + /* break up info and extract $srcip and $dstip */ + $ends = preg_split("/\?/", $info); + $parts = explode(":", $ends[0]); + $srcip = trim($parts[0]); + $parts = explode(":", $ends[count($ends) - 1]); + $dstip = trim($parts[0]); + + ?> + + + + + + + + + + + + + +
+ + + + + +
+ +
+
+ + + + + +
+ +
+
+ + + + + +
Router -> Destination");?> + +
+
+ + + + + +
+ +
+
+ + + +
+ +
+ + +

:

+ + +
+
+
+ +
+
+
+
-
+ + - - - + + \ No newline at end of file diff --git a/usr/local/www/diag_ipsec.php b/usr/local/www/diag_ipsec.php index 9c77b187a..e4d624856 100644 --- a/usr/local/www/diag_ipsec.php +++ b/usr/local/www/diag_ipsec.php @@ -80,373 +80,380 @@ $status = ipsec_smp_dump_status(); ?> -"> + + + -
- - - - - - + + + + + + + + + + + + + + + $ikesa) { + $con_id = substr($ikesa['peerconfig'], 3); + $ipsecconnected[$con_id] = $con_id; + + if (ipsec_phase1_status($status['query']['ikesalist']['ikesa'], $ikesa['id'])) { + $icon = "pass"; + } elseif(!isset($config['ipsec']['enable'])) { + $icon = "block"; + } else { + $icon = "reject"; + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- -
-
- - - - - - - - - - - - - - - - - $ikesa) { - $con_id = substr($ikesa['peerconfig'], 3); - $ipsecconnected[$con_id] = $con_id; - if (ipsec_phase1_status($status['query']['ikesalist']['ikesa'], $ikesa['id'])) { - $icon = "pass"; - } elseif(!isset($config['ipsec']['enable'])) { - $icon = "block"; - } else { - $icon = "reject"; - } -?> - - - - - - - - - - - - - - - - - -
- - - - - Port:' . htmlspecialchars($ikesa['local']['port']); - else - echo 'Unknown'; - if ($ikesa['local']['nat'] != 'false') - echo " NAT-T"; - } - ?> - - {$identity}"; - } else { - if (empty($identity)) - echo "Unknown"; - else - echo $identity; - } - } - ?> - - Port:' . htmlspecialchars($ikesa['remote']['port']); - else - echo 'Unknown'; - if ($ikesa['remote']['nat'] != 'false') - echo " NAT-T"; - } - ?> - - IKEv -
- +
+
+
+ + + +
+ + -
- - - "; - echo htmlspecialchars($ikesa['intalg']); - echo "
"; - echo htmlspecialchars($ikesa['prfalg']); - echo "
"; - echo htmlspecialchars($ikesa['dhgroup']); - ?> -
-
- -
-
-
-
- -
- - Connect VPN - -
- -
- - Disconnect VPN - - - Disconnect VPN Connection - -
- -
- -
-
-
- - Show child SA entries -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- +

+ + + + + Port:' . htmlspecialchars($ikesa['local']['port']); + else + echo 'Unknown'; + if ($ikesa['local']['nat'] != 'false') + echo " NAT-T"; + } + ?> + + {$identity}"; + } else { + if (empty($identity)) + echo "Unknown"; + else + echo $identity; + } + } + ?> + + Port:' . htmlspecialchars($ikesa['remote']['port']); + else + echo 'Unknown'; + if ($ikesa['remote']['nat'] != 'false') + echo " NAT-T"; + } + ?> + + IKEv +
+ + +
+ + + "; + echo htmlspecialchars($ikesa['intalg']); + echo "
"; + echo htmlspecialchars($ikesa['prfalg']); + echo "
"; + echo htmlspecialchars($ikesa['dhgroup']); + ?> +
+
+ +
+
+
+
+ +
+ + Connect VPN + +
+ +
+ + Disconnect VPN + + + Disconnect VPN Connection + +
+ +
+ +
+
+
+ - Show child SA entries +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
Disconnected +
+
+
+ + Connect VPN + +
+
+ +
+
+ +

+
here.

- + + + + + + + + + + + + - - + \ No newline at end of file diff --git a/usr/local/www/diag_ipsec_leases.php b/usr/local/www/diag_ipsec_leases.php index 571259ddd..7d348ecf0 100644 --- a/usr/local/www/diag_ipsec_leases.php +++ b/usr/local/www/diag_ipsec_leases.php @@ -49,82 +49,77 @@ include("head.inc"); $mobile = ipsec_dump_mobile(); ?> + - - - - - - - - - -
- -
-
- - - - - - - 0): ?> - - - - - - - - - - - - - - - - - - -
- -
-
-

-
- - - - - - -
+ + +
+
+
+ + + +
+ + + +
+
+ +
+ + + + + + + + + 0): ?> + + + + + + + + + + + + + + + + + + +
+ +
+
+

+
+ +

-
- -
-
+ + + +

+
+ +

+ + + + + + -

-
- -

- - - - + \ No newline at end of file diff --git a/usr/local/www/diag_ipsec_sad.php b/usr/local/www/diag_ipsec_sad.php index 001f5256e..846d27d12 100644 --- a/usr/local/www/diag_ipsec_sad.php +++ b/usr/local/www/diag_ipsec_sad.php @@ -54,68 +54,71 @@ $sad = ipsec_dump_sad(); ?> - - - - - - - - - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-

-
-
-
+ -

-
- -

+ - - - +
+
+
+ + + +
+ + + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

+
+
+ + +

+
+ +

+
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/usr/local/www/diag_ipsec_spd.php b/usr/local/www/diag_ipsec_spd.php index 34f2566cb..d5f1b9039 100644 --- a/usr/local/www/diag_ipsec_spd.php +++ b/usr/local/www/diag_ipsec_spd.php @@ -53,85 +53,87 @@ include("head.inc"); $spd = ipsec_dump_spd(); ?> - - - - - - - - - -
- -
-
- - - - - - - - - - - - - - - - - - - - -
- direction - -> - -
-
- - - - - - - - - - - - - - - - - -
in
out
-

-
-
-
+ -

-
- -

+ - - - +
+
+
+ + + +
+ + + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
+ direction + -> + +
+
+ + + + + + + + + + + + + + + + + +
in
out
+

+
+
+ + +

+
+ +

+
+
+
+
+
+
+ + diff --git a/usr/local/www/diag_ipsec_tabs.php b/usr/local/www/diag_ipsec_tabs.php new file mode 100644 index 000000000..c50adc7b8 --- /dev/null +++ b/usr/local/www/diag_ipsec_tabs.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/usr/local/www/diag_limiter_info.php b/usr/local/www/diag_limiter_info.php index b6c0ecc7d..1d0960bb3 100644 --- a/usr/local/www/diag_limiter_info.php +++ b/usr/local/www/diag_limiter_info.php @@ -61,7 +61,7 @@ if($_REQUEST['getactivity']) { include("head.inc"); ?> - + -
-"; - print_info_box($savemsg); - echo "
"; - } - if ($input_errors) - print_input_errors($input_errors); -?> - - - - -
- - - - -
- - -
-
- -
-
-
-
- - - - + + + +
+
+
+
+ + "; + print_info_box($savemsg); + echo "
"; + } + if ($input_errors) + print_input_errors($input_errors); + ?> + +
+ +
+
+ + + + + + \ No newline at end of file diff --git a/usr/local/www/diag_logs.php b/usr/local/www/diag_logs.php index 74d01b17d..fc4b919dd 100755 --- a/usr/local/www/diag_logs.php +++ b/usr/local/www/diag_logs.php @@ -67,71 +67,52 @@ include("head.inc"); ?> - + + - - - - - - - - - -
- -
- -
-
- - - - - - - - - -
-
- " /> -
-
-
+ +
+
+
+ + + +
+ + + +
+
+ + + + + +
+ + +
+
+ + + " /> + + +
- " /> + " />
-
-
-
- - - + + + + + + + + + \ No newline at end of file diff --git a/usr/local/www/diag_logs_auth.php b/usr/local/www/diag_logs_auth.php index 8983d7d3e..8b46de067 100644 --- a/usr/local/www/diag_logs_auth.php +++ b/usr/local/www/diag_logs_auth.php @@ -57,42 +57,37 @@ include("head.inc"); ?> - + + - - - - - -
- -
-
- - - - - - -
-

- "/>
-
-
- - - \ No newline at end of file + +
+
+
+ + + +
+ + + + + +
+
+ +

+
  
+ +
+ " /> +
+ +
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/diag_logs_dhcp.php b/usr/local/www/diag_logs_dhcp.php index f6b70602b..caaf4e91c 100644 --- a/usr/local/www/diag_logs_dhcp.php +++ b/usr/local/www/diag_logs_dhcp.php @@ -62,43 +62,36 @@ include("head.inc"); ?> - + - - - - - -
- -
-
- - - - - - - -
-

- " />
NOTE: Clearing the log file will restart the DHCP daemon.
-
-
- - - + +
+
+
+ + + +
+ + + + + +
+
+ +

+
 
+ +
+ " /> +
+

NOTE: Clearing the log file will restart the DHCP daemon.

+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index 5595fc668..c3a162796 100644 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -124,301 +124,298 @@ $shortcut_section = "firewall"; include("head.inc"); ?> - + + + + + - - - - - - + +
- -
- -
-
- " summary="main area"> - - - - - - - - - - - - - - - - - - - - - - - - ".find_rule_by_number_buffer($filterent['rulenum'],$filterent['tracker'],$filterent['act']).""); +
+
+
- $int = strtolower($filterent['interface']); - $proto = strtolower($filterent['proto']); - if($filterent['version'] == '6') { - $ipproto = "inet6"; - $filterent['srcip'] = "[{$filterent['srcip']}]"; - $filterent['dstip'] = "[{$filterent['dstip']}]"; - } else { - $ipproto = "inet"; - } - - $srcstr = $filterent['srcip'] . get_port_with_service($filterent['srcport'], $proto); - $src_htmlclass = str_replace(array('.', ':'), '-', $filterent['srcip']); - $dststr = $filterent['dstip'] . get_port_with_service($filterent['dstport'], $proto); - $dst_htmlclass = str_replace(array('.', ':'), '-', $filterent['dstip']); - ?> -
- - - - - - - - - - - - - - - - - - -
-
"> -
- - - - - - - - - - - - - - - - - - - - - -
-
-
- /> Pass
- /> Block
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
" />
-
- ', '');?>   -    -
-
-
-
"> -
- - - - - - - - - - - -
-
-
- -
-
-
-
-
-
-
-
-
 
-
" />
-
- ', '');?>   -
-
-
- -
" class="listtopic"> - -
-
- ', outputrule);"> - <?php echo $filterent['act'] .'/'. $filterent['tracker'];?> -
- - Direction=OUT - - - ');" title="" class="ICON-" border="0" src="/themes//images/icons/icon_log.gif" alt="Icon Reverse Resolve with DNS"/> - " title="" onclick="return confirm('')"> - Icon Easy Rule: Add to Block List - ';?> - - ');" title="" class="ICON-" border="0" src="/themes//images/icons/icon_log.gif" alt="Icon Reverse Resolve with DNS"/> - " title="" onclick="return confirm('')"> - Icon Easy Rule: Pass this traffic - ';?> -
-
-
-
- " /> -
-
+ + +
+ + + +
+
+ + + + +
+ +
"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ActionTime and interfaceSource and destination IP AddressSource and destination portProtocolProtocol
+ +
+ + " />
+
+ +
+
+
+
+ + + + +
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + ".find_rule_by_number_buffer($filterent['rulenum'],$filterent['tracker'],$filterent['act']).""); + + $int = strtolower($filterent['interface']); + $proto = strtolower($filterent['proto']); + if($filterent['version'] == '6') { + $ipproto = "inet6"; + $filterent['srcip'] = "[{$filterent['srcip']}]"; + $filterent['dstip'] = "[{$filterent['dstip']}]"; + } else { + $ipproto = "inet"; + } + + $srcstr = $filterent['srcip'] . get_port_with_service($filterent['srcport'], $proto); + $src_htmlclass = str_replace(array('.', ':'), '-', $filterent['srcip']); + $dststr = $filterent['dstip'] . get_port_with_service($filterent['dstport'], $proto); + $dst_htmlclass = str_replace(array('.', ':'), '-', $filterent['dstip']); + ?> + + + + + + + + + + + + + + + + + +
" class="listtopic"> + +
+ ', outputrule);" title=""> + + Direction=OUT + + + ');" title="" class="ICON-" border="0" src="/themes//images/icons/icon_log.gif" alt="Icon Reverse Resolve with DNS"/> + " title="" onclick="return confirm('')"> + Icon Easy Rule: Add to Block List + ';?> + + ');" title="" class="ICON-" border="0" src="/themes//images/icons/icon_log.gif" alt="Icon Reverse Resolve with DNS"/> + " title="" onclick="return confirm('')"> + Icon Easy Rule: Pass this traffic + ';?> +
+
+
+
+
+ + +
+ " /> +
+ +

TCP Flags: F - FIN, S - SYN, A or . - ACK, R - RST, P - PSH, U - URG, E - ECE, W - CWR

+ + + + + + - - - + -

TCP Flags: F - FIN, S - SYN, A or . - ACK, R - RST, P - PSH, U - URG, E - ECE, W - CWR

- - - - - + + \ No newline at end of file diff --git a/usr/local/www/diag_logs_filter_dynamic.php b/usr/local/www/diag_logs_filter_dynamic.php index 02ec32e2b..dfbeea7a8 100755 --- a/usr/local/www/diag_logs_filter_dynamic.php +++ b/usr/local/www/diag_logs_filter_dynamic.php @@ -63,7 +63,7 @@ $shortcut_section = "firewall"; include("head.inc"); ?> - + - - - - - - - -
- -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- ; -
- ', outputrule);"> - <?php echo $filterent['act'];?> - -
-
-
-

: F - FIN, S - SYN, A or . - ACK, R - RST, P - PSH, U - URG, E - ECE, C - CWR

- - - + + +
+
+
+ + + +
+ + + +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ .      +
+ ', outputrule);" title=""> + +
+
+ +

: F - FIN, S - SYN, A or . - ACK, R - RST, P - PSH, U - URG, E - ECE, C - CWR

+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/diag_logs_filter_summary.php b/usr/local/www/diag_logs_filter_summary.php index e4c11e2a8..2a2022d3a 100644 --- a/usr/local/www/diag_logs_filter_summary.php +++ b/usr/local/www/diag_logs_filter_summary.php @@ -164,7 +164,7 @@ foreach ($filterlog as $fe) { } include("head.inc"); ?> - + @@ -181,56 +181,40 @@ include("head.inc"); ?> - - - - - - - -
- -
- -
-
- -
-
- +
+
+
+ + + +
+ + + +
+
+ + + + +


+

-
"; - stat_block($summary, $field , $entriesperblock); - echo "

"; -} -?> -
+
+							
"; + stat_block($summary, $field , $entriesperblock); + echo "

"; + } + ?> +
+
+ + + -
- - - + + diff --git a/usr/local/www/diag_logs_gateways.php b/usr/local/www/diag_logs_gateways.php index df1d25d99..28b43c465 100755 --- a/usr/local/www/diag_logs_gateways.php +++ b/usr/local/www/diag_logs_gateways.php @@ -69,71 +69,52 @@ include("head.inc"); ?> - + + - - - - - - - - - -
- -
- -
-
- - - - - - - - - -
-
- " /> -
-
-
+ +
+
+
+ + + +
+ + + +
+
+ + + + + +
+ + +
+
+ + + " /> + + +
" />
-
-
-
- - - + + + + + + + + + \ No newline at end of file diff --git a/usr/local/www/diag_logs_ipsec.php b/usr/local/www/diag_logs_ipsec.php index 79b63a916..a5c41f1de 100644 --- a/usr/local/www/diag_logs_ipsec.php +++ b/usr/local/www/diag_logs_ipsec.php @@ -62,59 +62,53 @@ $shortcut_section = "ipsec"; include("head.inc"); ?> - + + + - - - - - - - -
- -
-
- - - - - \n"; - $entry_date_time = htmlspecialchars(join(" ", array_slice($logent, 0, 3))); - echo "\n"; - echo "\n"; - echo "\n"; - } - ?> - - - -
" . $entry_date_time . "" . $logent[4] . " " . $logent[5] . "
-
-
- " /> -
-
+ +
+
+
+ + + +
+ + + + + +
+
+ +

+ +
+ + \n"; + $entry_date_time = htmlspecialchars(join(" ", array_slice($logent, 0, 3))); + echo "\n"; + echo "\n"; + echo "\n"; + } + ?> +
" . $entry_date_time . "" . $logent[4] . " " . $logent[5] . "
+
+ +
+ " /> +
+ +
+
+
-
- - - + + + + \ No newline at end of file diff --git a/usr/local/www/diag_logs_ntpd.php b/usr/local/www/diag_logs_ntpd.php index b8ab79608..43025c6dc 100644 --- a/usr/local/www/diag_logs_ntpd.php +++ b/usr/local/www/diag_logs_ntpd.php @@ -57,45 +57,42 @@ include("head.inc"); ?> - + + - - - - - -
- -
-
- - - - - - -
-

-
- " /> -
-
-
-
- - - + +
+
+
+ + + +
+ + + + + +
+
+ +

+ +
+ + +
+
+ +
+ " /> +
+ +
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/diag_logs_openvpn.php b/usr/local/www/diag_logs_openvpn.php index 56dcf518b..790bcf1ac 100644 --- a/usr/local/www/diag_logs_openvpn.php +++ b/usr/local/www/diag_logs_openvpn.php @@ -60,49 +60,43 @@ if ($_POST['clear']) include("head.inc"); ?> - + + + - - - - - - - -
- -
-
- - - - - - - - -
-
-
- " /> -
-
+ +
+
+
+ + + +
+ + + + + +
+
+ +

+ +
+ + +
+
+ +
+ " /> +
+ +
+
+
-
- - - + + + + \ No newline at end of file diff --git a/usr/local/www/diag_logs_pills.php b/usr/local/www/diag_logs_pills.php new file mode 100644 index 000000000..a15432b39 --- /dev/null +++ b/usr/local/www/diag_logs_pills.php @@ -0,0 +1,49 @@ + + +
\ No newline at end of file diff --git a/usr/local/www/diag_logs_ppp.php b/usr/local/www/diag_logs_ppp.php index e9b3279ab..0d5a6ca16 100644 --- a/usr/local/www/diag_logs_ppp.php +++ b/usr/local/www/diag_logs_ppp.php @@ -58,49 +58,43 @@ $pgtitle = array(gettext("Status"),gettext("System logs"),gettext("PPP")); include("head.inc"); ?> - + + + - - - - - - - -
- -
-
- - - - - - - - -
-
-
- " /> -
-
+ +
+
+
+ + + +
+ + + + + +
+
+ +

+ +
+ + +
+
+ +
+ " /> +
+ +
+
+
-
- - - + + + + \ No newline at end of file diff --git a/usr/local/www/diag_logs_relayd.php b/usr/local/www/diag_logs_relayd.php index b7430d220..64d182368 100644 --- a/usr/local/www/diag_logs_relayd.php +++ b/usr/local/www/diag_logs_relayd.php @@ -58,42 +58,43 @@ include("head.inc"); ?> - + + + - - - - - -
- -
-
- - - - - - -
-

-" />
-
-
- - - + +
+
+
+ + + +
+ + + + + +
+
+ +

+ +
+ + +
+
+ +
+ " /> +
+ +
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/diag_logs_resolver.php b/usr/local/www/diag_logs_resolver.php index f083c88a7..de1fa4321 100755 --- a/usr/local/www/diag_logs_resolver.php +++ b/usr/local/www/diag_logs_resolver.php @@ -69,71 +69,52 @@ include("head.inc"); ?> - + + - - - - - - - - - -
- -
- -
-
- - - - - - - - - -
-
- " /> -
-
-
+ +
+
+
+ + + +
+ + + +
+
+ + + + + +
+ + +
+
+ + + " /> + + +
" />
-
-
-
- - - + + + + + + + + + \ No newline at end of file diff --git a/usr/local/www/diag_logs_routing.php b/usr/local/www/diag_logs_routing.php index 0168e3c41..b24868f0e 100644 --- a/usr/local/www/diag_logs_routing.php +++ b/usr/local/www/diag_logs_routing.php @@ -57,54 +57,42 @@ include("head.inc"); ?> - + + - - - - - - - -
- -
- -
-
- - - - - - -
-

-" />
-
-
- - - + +
+
+
+ + + +
+ + + +
+
+ + + + + +
+ + +
+
+ +
+ " /> +
+ +
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/diag_logs_settings.php b/usr/local/www/diag_logs_settings.php index 805c7e3c8..7b87cd67f 100644 --- a/usr/local/www/diag_logs_settings.php +++ b/usr/local/www/diag_logs_settings.php @@ -254,233 +254,232 @@ function check_everything() { //]]> - + -
- - - - - - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Forward/Reverse Display /> -
GUI Log Entries to Display -
-
Log File Size (Bytes) -
- -

- - - . - . -
Log Firewall Default Blocks - /> -
- -
- /> -
- -
- /> -
-
- /> -
-
Web Server Log /> -
-
Raw Logs /> -
-
Filter descriptions - - -
- -
Local Logging onclick="enable_change(false)" /> - -
Reset Logs - " onclick="return confirm('')" /> -

- -
 
- -
- - -

- -
- -
- -
onclick="enable_change(false)" /> -
- - - - - - - - - - - - - - - - - -
 
-
- onclick="check_everything();" /> -

- /> -
- /> -
- /> -
- /> -
- /> -
- /> -
- /> -
- /> -
-
  " onclick="enable_change(true)" /> -
 
- . -
-
-
-
+ +
+
+
+ + + + +
+ + + +
+
+ + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Forward/Reverse Display /> +
GUI Log Entries to Display +
+
Log File Size (Bytes) +
+ +

+ + + . + . +
Log Firewall Default Blocks + /> +
+ +
+ /> +
+ +
+ /> +
+
+ /> +
+
Web Server Log /> +
+
Raw Logs /> +
+
Filter descriptions + + +
+ +
Local Logging onclick="enable_change(false)" /> + +
Reset Logs + " onclick="return confirm('')" /> +

+ +
 
+ +
+ + +

+ +
+ +
+ +
onclick="enable_change(false)" /> +
+ + + + + + + + + + + + + + + + + +
 
+
+ onclick="check_everything();" /> +

+ /> +
+ /> +
+ /> +
+ /> +
+ /> +
+ /> +
+ /> +
+ /> +
+
  " onclick="enable_change(true)" /> +
 
+ . +
+
+
+
+
+
+
+
+
- - - + diff --git a/usr/local/www/diag_logs_tabs.php b/usr/local/www/diag_logs_tabs.php new file mode 100644 index 000000000..9b142b08d --- /dev/null +++ b/usr/local/www/diag_logs_tabs.php @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/usr/local/www/diag_logs_vpn.php b/usr/local/www/diag_logs_vpn.php index d618a5029..8f07213de 100755 --- a/usr/local/www/diag_logs_vpn.php +++ b/usr/local/www/diag_logs_vpn.php @@ -117,78 +117,57 @@ function dump_clog_vpn($logfile, $tail) { include("head.inc"); ?> - + + + + - - - - - - -
- -
- -
-
- - - - - - - - - - - - - -
-
-
- - - " /> -
-
- - - + +
+
+
+ + + +
+ + + +
+
+ + + + + +
+ + + + + + + + + + +
+
+ +
+ + + " /> +
+ + +
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/diag_logs_wireless.php b/usr/local/www/diag_logs_wireless.php index aa5593685..b7ad12c95 100644 --- a/usr/local/www/diag_logs_wireless.php +++ b/usr/local/www/diag_logs_wireless.php @@ -59,54 +59,43 @@ include("head.inc"); ?> - + + - - - - - - - -
- -
- -
-
- - - - - - -
-

-" />
-
-
- - - + +
+
+
+ + + +
+ + + +
+
+ + + + + +
+ + +
+
+ +
+ " /> +
+ + +
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/diag_ndp.php b/usr/local/www/diag_ndp.php index 2a290d428..5e11c40b2 100644 --- a/usr/local/www/diag_ndp.php +++ b/usr/local/www/diag_ndp.php @@ -109,14 +109,10 @@ include("head.inc"); ?> - + -
- loader -

 

-
- - - - -
- - - - - - - - - - - - - - - - -
- {$mac_man[$mac_hi]}"; } - ?> - - - - -
-
- +
+
+ +
+ +
+
+ +
+ + + + + + + + + - - - + + + + + + + + + +
+ + + + + +
+ +
+
+ + + + + +
+ +
+
+ + + + + +
+ +
+
+ + + + + +
+ +
+
+ {$mac_man[$mac_hi]}"; } + ?> + + + + +
+ +
+ +
+
+ +
+ +
+
+ + \ No newline at end of file diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php index 38cb8c274..6e743fd2e 100644 --- a/usr/local/www/diag_packet_capture.php +++ b/usr/local/www/diag_packet_capture.php @@ -221,253 +221,286 @@ if ($_POST) { include("head.inc"); ?> - + - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
- /> -
-
: -
- -
-
- -
-
- -
-
-
-
- -
-
-
- -
-
- -
" . gettext("Enter 0 (zero) for no count limit.");?> -
- -
" . +
+
+
+ +
+
+ + + +
+

+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + + + + + + +
+ +

+
+ /> +

+
:

+
+ +

+
+ +

+
+ +

+
+
+

+
+ + +

+
+ +

+
+ +

" . gettext("Enter 0 (zero) for no count limit.");?>

+
+ +

" . gettext("Note:") . " " . - gettext("This option does not affect the level of detail when downloading the packet capture.");?> -

- /> -
-
: -
  + gettext("This option does not affect the level of detail when downloading the packet capture.");?>

+
+ /> +

+
:

+
  +  "; + else { + echo " "; + } + if (file_exists($fp.$fn) and $processisrunning != true) { + echo " "; + echo ""; + echo "
" . gettext("The packet capture file was last updated:") . " " . date("F jS, Y g:i:s a.", filemtime($fp.$fn)); + } + ?> +
+ +
+
+
+ + +  "; - else { - echo " "; - } - if (file_exists($fp.$fn) and $processisrunning != true) { - echo " "; - echo ""; - echo "
" . gettext("The packet capture file was last updated:") . " " . date("F jS, Y g:i:s a.", filemtime($fp.$fn)); - } -?> -
- - - - - -
-"; - if ($processisrunning == true) - echo("" . gettext("Packet Capture is running.") . "
"); +if ($do_tcpdump) { + $matches = array(); - if ($do_tcpdump) { - $matches = array(); + if (in_array($fam, $fams)) + $matches[] = $fam; - if (in_array($fam, $fams)) - $matches[] = $fam; + if (in_array($proto, $protos)) { + $matches[] = fixup_not($proto); + } - if (in_array($proto, $protos)) { - $matches[] = fixup_not($proto); - } + if ($port != "") + $matches[] = "port ".fixup_not($port); - if ($port != "") - $matches[] = "port ".fixup_not($port); - - if ($host != "") { - $hostmatch = ""; - $hostcount = 0; - foreach ($hosts as $h) { - $h = fixup_host($h, $hostcount++); - if (!empty($h)) - $hostmatch .= " " . $h; - } - if (!empty($hostmatch)) - $matches[] = "({$hostmatch})"; - } - - if ($count != "0" ) { - $searchcount = "-c " . $count; - } else { - $searchcount = ""; - } - - $selectedif = convert_friendly_interface_to_real_interface_name($selectedif); - - if ($action == gettext("Start")) { - $matchstr = implode($matches, " and "); - echo("" . gettext("Packet Capture is running.") . "
"); - $cmd = "/usr/sbin/tcpdump -i {$selectedif} {$disablepromiscuous} {$searchcount} -s {$snaplen} -w {$fp}{$fn} " . escapeshellarg($matchstr); - // Debug - //echo $cmd; - mwexec_bg ($cmd); - } else { - //action = stop - echo("" . gettext("Packet Capture stopped.") . "

" . gettext("Packets Captured:") . "

"); -?> - - - -   -
-
+ if (!empty($hostmatch)) + $matches[] = "({$hostmatch})"; + } + + if ($count != "0" ) { + $searchcount = "-c " . $count; + } else { + $searchcount = ""; + } + + $selectedif = convert_friendly_interface_to_real_interface_name($selectedif); + + if ($action == gettext("Start")) { + $matchstr = implode($matches, " and "); + $title = gettext("Packet Capture is running."); + + $cmd = "/usr/sbin/tcpdump -i {$selectedif} {$disablepromiscuous} {$searchcount} -s {$snaplen} -w {$fp}{$fn} " . escapeshellarg($matchstr); + // Debug + //echo $cmd; + mwexec_bg ($cmd); + } else { + $show_data = true; + //action = stop + $title = gettext("Packet Capture stopped.") . " " . gettext("Packets Captured:"); + } +} + +if (!empty($title)): ?> + +
+
+
+

+
+ +
+ + +

+						
+ + +
+ +
+
+ + + + + + + - - diff --git a/usr/local/www/diag_pf_info.php b/usr/local/www/diag_pf_info.php index de5766798..624ebb91f 100644 --- a/usr/local/www/diag_pf_info.php +++ b/usr/local/www/diag_pf_info.php @@ -58,7 +58,7 @@ if($_REQUEST['getactivity']) { include("head.inc"); ?> - + -
-"; - print_info_box($savemsg); - echo "
"; - } - if ($input_errors) - print_input_errors($input_errors); -?> - - - - -
- - - - -
- - -
-
- -
-
-
-
- - - - + + +
+
+
+
+ + + "; + print_info_box($savemsg); + echo "
"; + } + if ($input_errors) + print_input_errors($input_errors); + ?> + +
+ +
+ +
+ + + + + + \ No newline at end of file diff --git a/usr/local/www/diag_ping.php b/usr/local/www/diag_ping.php index d74feacee..860277302 100644 --- a/usr/local/www/diag_ping.php +++ b/usr/local/www/diag_ping.php @@ -83,34 +83,42 @@ if (!isset($do_ping)) { } include("head.inc"); ?> - + - - -
- -
- - - - - - - - - - - - - - - - -
-
- + + + + + + + + - - - - + + + + - - - - + + + + - - - - - - - + + + + + + +
-
-
-
-
-
  - " /> -
- "; - echo "" . gettext("Ping output") . ":
"; -?> - -"; - $ifscope = ''; - $command = "/sbin/ping"; - if ($ipproto == "ipv6") { - $command .= "6"; - $ifaddr = is_ipaddr($sourceip) ? $sourceip : get_interface_ipv6($sourceip); - if (is_linklocal($ifaddr)) - $ifscope = get_ll_scope($ifaddr); - } else { - $ifaddr = is_ipaddr($sourceip) ? $sourceip : get_interface_ip($sourceip); - } - if ($ifaddr && (is_ipaddr($host) || is_hostname($host))) { - $srcip = "-S" . escapeshellarg($ifaddr); - if (is_linklocal($host) && !strstr($host, "%") && !empty($ifscope)) - $host .= "%{$ifscope}"; - } +
 " />
+ + + + + + + + +
+ - $cmd = "{$command} {$srcip} -c" . escapeshellarg($count) . " " . escapeshellarg($host); - //echo "Ping command: {$cmd}\n"; - system($cmd); - echo(' '); - } - ?> -
  
- -
- - - +
+ +
+

+
+ +
+
+		
+
+						
+
+
+ + + + + + + \ No newline at end of file diff --git a/usr/local/www/diag_pkglogs.php b/usr/local/www/diag_pkglogs.php index b1d65cbcd..46a696638 100755 --- a/usr/local/www/diag_pkglogs.php +++ b/usr/local/www/diag_pkglogs.php @@ -84,55 +84,58 @@ $pgtitle = array(gettext("Status"),gettext("Package logs")); include("head.inc"); ?> - + - - -
-
'; - include("fend.inc"); - exit; - } - $tab_array = array(); - foreach($config['installedpackages']['package'] as $package) { - if(is_array($package['logging'])) { - if(!($logtab = $package['logging']['logtab'])) $logtab = $package['name']; - if($apkg == $package['name']) { - $curtab = $logtab; - $tab_array[] = array(sprintf(gettext("%s"),$logtab), true, "diag_pkglogs.php?pkg=".$package['name']); - } else { - $tab_array[] = array(sprintf(gettext("%s"),$logtab), false, "diag_pkglogs.php?pkg=".$package['name']); - } - } - } - display_top_tabs($tab_array); - ?> - - - -
- - - - - -
-
- + + +
+
+
+ + + +
+ + + +
+ + +
+ + + +
+
+ + +
+
+ +
- - - - - - +
+ + \ No newline at end of file diff --git a/usr/local/www/diag_resetstate.php b/usr/local/www/diag_resetstate.php index bb8af7435..f027bb250 100644 --- a/usr/local/www/diag_resetstate.php +++ b/usr/local/www/diag_resetstate.php @@ -65,72 +65,80 @@ $pgtitle = array(gettext("Diagnostics"), gettext("Reset state")); include("head.inc"); ?> - + + - - -
- - - -
- -
- - - - - - - - - - - - - - - - -
 

- -
-
-
-
-

-
-

-
 

- -
-
-
-
-

-

-
  - " /> -
-
-
- - - + + +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+ + + + + +
+ + + +
+
+
+
+

+
+

+ + +

+ +
+
+
+
+

+

+ + " /> + + +
+
+
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/diag_routes.php b/usr/local/www/diag_routes.php index d62e55af9..68447ecf8 100644 --- a/usr/local/www/diag_routes.php +++ b/usr/local/www/diag_routes.php @@ -73,7 +73,7 @@ $shortcut_section = "routing"; include('head.inc'); ?> - + @@ -89,16 +89,17 @@ include('head.inc'); params += "&resolve=true"; if (section == "IPv6") params += "&IPv6=true"; - var myAjax = new Ajax.Request( - url, + var myAjax = $.ajax( + { - method: 'post', - parameters: params, - onComplete: update_routes_callback + url:url, + type: 'post', + data: params, + success: update_routes_callback }); } - function update_routes_callback(transport) { + function update_routes_callback(data, textStatus, transport) { // First line contains section var responseTextArr = transport.responseText.split("\n"); var section = responseTextArr.shift(); @@ -107,7 +108,7 @@ include('head.inc'); var elements = 8; var tr_class = ''; - var thead = '' + section + '<\/strong><\/td><\/tr>' + "\n"; + var thead = ''; for (var i = 0; i < responseTextArr.length; i++) { if (responseTextArr[i] == "") continue; @@ -144,94 +145,118 @@ include('head.inc'); jQuery('#' + section + ' > tbody').html(tbody); } -//]]> - - - -
-
- - - - - - - - - - - - - - - - - -
- /> -
- -
- -
- -
- -
- -
  -" /> -
-
- -
-
+
+
+
+ +
+ + - - - - - - - -
IPv4
- - - - - - - -
IPv6
+
+ +
+

+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + +
/>  +

+
+

+
+ +

+
  + " /> +

+
+
+
+
+ +
+
+ +
+ +
+ +
+

IPv4

+
+ + + + + +
+
+
+ +
+ +
+ +
+

IPv6

+
+ + + + + +
+
+
+
+
+
-
- - - +include('foot.inc'); +?> \ No newline at end of file diff --git a/usr/local/www/diag_smart.php b/usr/local/www/diag_smart.php index 2cbc60bf1..d45f7293f 100644 --- a/usr/local/www/diag_smart.php +++ b/usr/local/www/diag_smart.php @@ -24,45 +24,22 @@ $closehead = false; include("head.inc"); ?> - - + + +
+
+
+ +
+ + - - - - -
- -
- -
- - - - - - - - - - - - - - - - - - -
-
-
-
-
-
-
- -
  - - " class="formbtn" /> -
-
- -
- - - - - - - - - - - - - - - - - - -
-
-
-
-
-
- -
  - - " class="formbtn" /> -
-
- -
- - - - - - - - - - - - - - - - - - -
-
-
-
- -
  - - " class="formbtn" /> -
-
- -
- - - - - - - - - - - - - - -
- -
  - - " class="formbtn" onclick="return confirm('')" /> -
-
+ + + + + +
+ +
+

+
+ +
+
+
+ + + + + + + + + + + + + + + +
+ + + + + +
+
+ +
  + + " /> +
+
+
+
+
+
+ + +
+ +
+ +
+

+
+ +
+
+
+ + + + + + + + + + + + + + + +
+
+ + + + +
+
+ +
  + + " /> +
+
+
+
+
+
+ + +
+ +
+ +
+

+
+ +
+
+
+ + + + + + + + + + + + + + + +
+
+ + +
+
+ +
  + + " /> +
+
+
+
+
+
+ + +
+ +
+ +
+

+
+ +
+
+
+ + + + + + + + + + + +
+ +
  + + " class="btn btn-primary" onclick="return confirm('')" /> +
+
+
+
+
+
' . gettext("Back") . ''; + echo '
' . gettext("Back") . ''; } ?>
" . $ulmsg . "

\n"; ?> - - - +
+
+ + + + + \ No newline at end of file diff --git a/usr/local/www/diag_sockets.php b/usr/local/www/diag_sockets.php index c3008d721..56fc97a62 100644 --- a/usr/local/www/diag_sockets.php +++ b/usr/local/www/diag_sockets.php @@ -46,7 +46,7 @@ $pgtitle = array(gettext("Diagnostics"),gettext("Sockets")); include('head.inc'); ?> - + -
- - - - - - - - - - -
Information about listening sockets for both IPv4 and IPv6.
For explanation about the meaning of the information listed for each socket click here.
To show information about both listening and connected sockets click this.
+
+
+
+ +
+ +

Information about listening sockets for both IPv4 and IPv6.

+

For explanation about the meaning of the information listed for each socket click here.

+

To show information about both listening and connected sockets click this.

+ + +
+ + - - - -
- - $line) { - if ($i == 0) - $class = 'listhdrr'; - else - $class = 'listlr'; - if (trim($line) == "") - continue; - print("\n"); - $j = 0; - foreach (explode(' ', $line) as $entry) { - if ($entry == '' || $entry == "ADDRESS") continue; - if ($i == 0) - print("\n"); - else - print("\n"); - if ($i > 0) - $class = 'listr'; - $j++; - } - print("\n"); - }?> -
$entry$entry
-
+ +
+ +
+ +
+

+
+ + + $line) { + if ($i == 0) + $class = 'listhdrr'; + else + $class = 'listlr'; + + if (trim($line) == "") + continue; + print("\n"); + $j = 0; + foreach (explode(' ', $line) as $entry) { + if ($entry == '' || $entry == "ADDRESS") continue; + if ($i == 0) + print("\n"); + else + print("\n"); + if ($i > 0) + $class = 'listr'; + $j++; + } + print("\n"); + }?> +
$entry$entry
+
+
-
- - - - - - - - - - - - -
Socket information explanation
-This page show the output for the commands: "sockstat -4lL" and "sockstat -6lL".
+
+ +
+ +
+

Socket information explanation

+
+ +
+

This page show the output for the commands: "sockstat -4lL" and "sockstat -6lL".
Or in case of showing all sockets the output for: "sockstat -4" and "sockstat -6".

-The information listed for each socket is:

USER The user who owns the socket.
COMMAND The command which holds the socket.
PID The process ID of the command which holds the socket.
FD The file descriptor number of the socket.
PROTO The transport protocol associated with the socket for Internet sockets, or the type of socket (stream or data-gram) for UNIX sockets.
ADDRESS (UNIX sockets only) For bound sockets, this is the file-name of the socket. For other sockets, it is the name, PID and file descriptor number of the peer, or ``(none)'' if the socket is neither bound nor connected.
LOCAL ADDRESS (Internet sockets only) The address the local end of the socket is bound to (see getsockname(2)).
FOREIGN ADDRESS (Internet sockets only) The address the foreign end of the socket is bound to (see getpeername(2)).
-
- - - +The information listed for each socket is:

+
+ + + + + + + + + + +
USER The user who owns the socket.
COMMAND The command which holds the socket.
PID The process ID of the command which holds the socket.
FD The file descriptor number of the socket.
PROTO The transport protocol associated with the socket for Internet sockets, or the type of socket (stream or data-gram) for UNIX sockets.
ADDRESS (UNIX sockets only) For bound sockets, this is the file-name of the socket.
For other sockets, it is the name, PID and file descriptor number of the peer, or ``(none)'' if the socket is neither bound nor connected.
LOCAL ADDRESS (Internet sockets only) The address the local end of the socket is bound to (see getsockname(2)).
FOREIGN ADDRESS (Internet sockets only) The address the foreign end of the socket is bound to (see getpeername(2)).
+ +
+ + + + + + \ No newline at end of file diff --git a/usr/local/www/diag_states_summary.php b/usr/local/www/diag_states_summary.php index 3c5e297e4..ec7e94180 100644 --- a/usr/local/www/diag_states_summary.php +++ b/usr/local/www/diag_states_summary.php @@ -144,41 +144,49 @@ function build_port_info($portarr, $proto) { } function print_summary_table($label, $iparr, $sort = TRUE) { ?> - -

- - - - - - - - - - $ipinfo) { ?> - - - - - - - - - $protoinfo) { ?> - - - - - - - - - - - -
# #
    
  
+
+
+
+

+
+ +
+ + + + + + + + + + + $ipinfo) { ?> + + + + + + + + + $protoinfo) { ?> + + + + + + + + + + + +
# #
    
  
+
+
"; include("fbegin.inc"); - +?> +
+
+
+ + + + - - - +
+ + + + + \ No newline at end of file diff --git a/usr/local/www/diag_system_activity.php b/usr/local/www/diag_system_activity.php index cc5cc694a..c02c2062d 100644 --- a/usr/local/www/diag_system_activity.php +++ b/usr/local/www/diag_system_activity.php @@ -52,8 +52,10 @@ if($_REQUEST['getactivity']) { include("head.inc"); ?> - + + + -
-"; - print_info_box($savemsg); - echo "
"; - } - if ($input_errors) - print_input_errors($input_errors); -?> - - - - -
- - - - -
- - -
-
- -
-
-
-
- - - - + + +
+
+
+ +
+ + "; + print_info_box($savemsg); + echo "
"; + } + if ($input_errors) + print_input_errors($input_errors); + ?> + +
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/usr/local/www/diag_system_pftop.php b/usr/local/www/diag_system_pftop.php index 2afcd7b7a..38f5fc70c 100644 --- a/usr/local/www/diag_system_pftop.php +++ b/usr/local/www/diag_system_pftop.php @@ -90,9 +90,9 @@ if($_REQUEST['sorttype'] && in_array($_REQUEST['sorttype'], $sorttypes) } ?> - + -
+ -
-"; - print_info_box($savemsg); - echo "
"; - } - if ($input_errors) - print_input_errors($input_errors); -?> -
- - - - - - - - - -
-
- -
-
-
- -
-
-
- -
-
- - - - -
- - - - -
-
-
-
-
+ + +
+
+
+ +
+ + + +
+ + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + "; + print_info_box($savemsg); + echo "
"; + } + if ($input_errors) + print_input_errors($input_errors); + ?> + +
+ + +
+ + +
- - - + + + - - + + + \ No newline at end of file diff --git a/usr/local/www/diag_tables.php b/usr/local/www/diag_tables.php index e181c80a0..7fdd0eb12 100644 --- a/usr/local/www/diag_tables.php +++ b/usr/local/www/diag_tables.php @@ -95,8 +95,6 @@ include("head.inc"); - -
- - +
+
+
+ +
-

+ + + + + - - - - - - - - - - - - -
- - - - - delete - - -
" . gettext("No entries exist in this table.") . "  " . " " . gettext(" the latest bogon data."); - else - echo "
" . gettext("No entries exist in this table."); -?> + + +
+
+ +
- 0) - if( ($tablename == "bogons") || ($tablename == "bogonsv6") ) { - $last_updated = exec('/usr/bin/grep -i -m 1 -E "^# last updated" /etc/' . escapeshellarg($tablename)); - echo "
 $count " . gettext("entries in this table.") . "  " . " " . gettext(" the latest bogon data.") . "
" . "$last_updated"; - } - else - echo "
" . gettext("Delete") . " " . gettext("all") . " " . "$count " . gettext("entries in this table."); -?> -
- - - - - + + + + + + + + + + + + +
+ + + + + delete + + +
" . gettext("No entries exist in this table.") . "  " . " " . gettext(" the latest bogon data."); + else + echo "
" . gettext("No entries exist in this table."); + ?> + + 0) + if( ($tablename == "bogons") || ($tablename == "bogonsv6") ) { + $last_updated = exec('/usr/bin/grep -i -m 1 -E "^# last updated" /etc/' . escapeshellarg($tablename)); + echo "
 $count " . gettext("entries in this table.") . "  " . " " . gettext(" the latest bogon data.") . "
" . "$last_updated"; + } + else + echo "
" . gettext("Delete") . " " . gettext("all") . " " . "$count " . gettext("entries in this table."); + ?> +
+
+
+ +
+ + + + + + + + \ No newline at end of file diff --git a/usr/local/www/diag_testport.php b/usr/local/www/diag_testport.php index b04a9d74d..14feacdde 100644 --- a/usr/local/www/diag_testport.php +++ b/usr/local/www/diag_testport.php @@ -99,104 +99,128 @@ if (!isset($do_testport)) { } include("head.inc"); ?> - + - -
- + + + + +
+
+
+ +
+ +




- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -

-
- /> -

-
- -
- -

- -
  - " /> -
- "; - echo "" . gettext("Port Test Results") . ":
"; - ?> - - "; - $result = ""; + + + +
+ +
+

+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+
/> +

+
+
+ +

it will result in an error. For example if you force IPv4 and use a hostname that only returns an AAAA IPv6 IP address, it will not work."); ?>

+
 " />
+
+ +
+ +
+ + + + + + +
+ + +
+ +
+

+
+ +
+
+		
+
 					echo htmlspecialchars($result);
 				}
 			}
-			echo ' ' ;
-		}
-		?>
-		
- -
- - - + +?> + + + + + + + + + + \ No newline at end of file diff --git a/usr/local/www/diag_traceroute.php b/usr/local/www/diag_traceroute.php index cbbc1cb7b..dafc0bb20 100644 --- a/usr/local/www/diag_traceroute.php +++ b/usr/local/www/diag_traceroute.php @@ -47,7 +47,7 @@ $pgtitle = array(gettext("Diagnostics"),gettext("Traceroute")); include("head.inc"); ?> - + - -
- - - - - - - - - - - - -
-
- + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + +
-
- -
- -
- /> -
- /> -
  - " /> -
- - - -

- -
-
+
/>
/>
 " />
+ +

+ +

+ +

+ + + + + + + + + +
+ + +
+ +
+

+
+ +
+
+		
 \n";
-	echo "" . gettext("Traceroute output:") . "
\n"; - ob_end_flush(); + + $useicmp = isset($_REQUEST['useicmp']) ? "-I" : ""; + $n = isset($resolve) ? "" : "-n"; + + $command = "/usr/sbin/traceroute"; + if ($ipproto == "ipv6") { + $command .= "6"; + $ifaddr = is_ipaddr($sourceip) ? $sourceip : get_interface_ipv6($sourceip); + } else { + $ifaddr = is_ipaddr($sourceip) ? $sourceip : get_interface_ip($sourceip); + } + + if ($ifaddr && (is_ipaddr($host) || is_hostname($host))) + $srcip = "-s " . escapeshellarg($ifaddr); + + $cmd = "{$command} {$n} {$srcip} -w 2 {$useicmp} -m " . escapeshellarg($ttl) . " " . escapeshellarg($host); + + //echo "Traceroute command: {$cmd}\n"; + system($cmd); + ?> - -"; - $useicmp = isset($_REQUEST['useicmp']) ? "-I" : ""; - $n = isset($resolve) ? "" : "-n"; +
+
+
+
+ + + + - $command = "/usr/sbin/traceroute"; - if ($ipproto == "ipv6") { - $command .= "6"; - $ifaddr = is_ipaddr($sourceip) ? $sourceip : get_interface_ipv6($sourceip); - } else { - $ifaddr = is_ipaddr($sourceip) ? $sourceip : get_interface_ip($sourceip); - } - - if ($ifaddr && (is_ipaddr($host) || is_hostname($host))) - $srcip = "-s " . escapeshellarg($ifaddr); - - $cmd = "{$command} {$n} {$srcip} -w 2 {$useicmp} -m " . escapeshellarg($ttl) . " " . escapeshellarg($host); - - //echo "Traceroute command: {$cmd}\n"; - system($cmd); - echo " "; -} ?> -
- - - - + \ No newline at end of file diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php index 17729b64c..6592d64a4 100644 --- a/usr/local/www/edit.php +++ b/usr/local/www/edit.php @@ -94,7 +94,7 @@ outputJavaScriptFileInline("javascript/base64.js"); ?> - + - - -  
-EOF2; - + echo ""; } function verify_gzip_file($fname) { @@ -312,11 +299,11 @@ function print_info_box_np($msg, $name="apply",$value="", $showapply=false) { $nifty_background = "#FFF"; if(stristr($msg, gettext("apply")) != false || stristr($msg, gettext("save")) != false || stristr($msg, gettext("create")) != false || $showapply) { - $savebutton = ""; - $savebutton .= ""; + $savebutton = "
"; + $savebutton .= ""; if($_POST['if']) $savebutton .= ""; - $savebutton.=""; + $savebutton.="
"; } $nifty_redbox = "#990000"; $nifty_blackbox = "#000000"; @@ -334,39 +321,16 @@ function print_info_box_np($msg, $name="apply",$value="", $showapply=false) { } if(!$savebutton) { - $savebutton = ""; + $savebutton = ''; } echo << - - -
- - - - - {$savebutton} - -
-    exclamation - - {$msg} -
-
-
-

 

-
- - - - +
+ +
EOFnp; } @@ -1028,22 +992,23 @@ function display_top_tabs(& $tab_array, $no_drop_down = false) { echo "//]]>\n"; echo ""; } else { - echo "
\n"; echo "\n"; - echo "
    \n"; + echo "
      \n"; $tabscounter = 0; foreach ($tab_array as $ta) { if ($ta[1] == true) { - echo "
    • {$ta[0]}
    • \n"; + echo "
    • {$ta[0]}
    • \n"; } else { - echo "
    • {$ta[0]}
    • \n"; + echo "
    • {$ta[0]}
    • \n"; } $tabscounter++; } - echo "
    \n
\n"; + echo "\n"; } } + + function add_package_tabs($tabgroup, & $tab_array) { global $config, $g; diff --git a/usr/local/www/halt.php b/usr/local/www/halt.php index cd3de11e1..408fd59dd 100755 --- a/usr/local/www/halt.php +++ b/usr/local/www/halt.php @@ -55,22 +55,36 @@ $pgtitle = array(gettext("Diagnostics"),gettext("Halt system")); include('head.inc'); ?> - + - -
-
-
- -
-

-

- " /> - " /> -

-
- - - - + +
+
+
+
+ + +
+			
+			
+ + + +
+

+ +
+ " /> + " /> +
+

+
+ + +
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc old mode 100755 new mode 100644 index afdee938f..adca9d946 --- a/usr/local/www/head.inc +++ b/usr/local/www/head.inc @@ -8,105 +8,97 @@ $g['theme'] = get_current_theme(); $pagetitle = gentitle( $pgtitle ); ?> - - - - <?php echo($config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pagetitle); ?> - - - - "; - else: - echo ""; - endif; - ?> + + + + + - - "; ?> - - - - - - - - - - - - + - - + + + + + + + + + + + + + + + + + + + \n"; + } + closedir($dh); + } + } + + ?> + + - - \n"; ?> + + + + + \n"; - echo "\t\n"; - } - echo "\t\n"; - echo "\t\n"; - echo "\t\n"; - echo "\t\n"; - if(file_exists("{$g['www_path']}/javascript/global.js")) - echo "\t\n"; - /* - * Find all javascript files that need to be included - * for this page ... from the arrays ... :) - * Coded by: Erik Kristensen - */ - - $dir = trim(basename($_SERVER["SCRIPT_FILENAME"], '.php')); - $path = "{$g['www_path']}/javascript/" . $dir . "/"; - if (is_dir($path)) { - if ($dh = opendir($path)) { - while (($file = readdir($dh)) !== false) { - if (is_dir($file)) - continue; - echo "\t\n"; - } - closedir($dh); - } - } - -if (!isset($closehead)) - echo ""; - + /* If this page is being remotely managed then do not allow the loading of the contents. */ if($config['remote_managed_pages']['item']) { foreach($config['remote_managed_pages']['item'] as $rmp) { if($rmp == $_SERVER['SCRIPT_NAME']) { - include("fbegin.inc"); + //include("fbegin.inc"); print_info_box_np("This page is currently being managed by a remote machine."); - include("fend.inc"); + //include("fend.inc"); exit; } } } - -?> +?> \ No newline at end of file diff --git a/usr/local/www/ifstats.php b/usr/local/www/ifstats.php index 7be2ace35..a1a6f67f5 100644 --- a/usr/local/www/ifstats.php +++ b/usr/local/www/ifstats.php @@ -47,7 +47,7 @@ $realif = get_real_interface($if); if(!$realif) - $realif = $if; // Need for IPsec case interface. + $realif = $if; // Need for IPSec case interface. $ifinfo = pfSense_get_interface_stats($realif); diff --git a/usr/local/www/index.html b/usr/local/www/index.html new file mode 100644 index 000000000..c919b909d --- /dev/null +++ b/usr/local/www/index.html @@ -0,0 +1,24 @@ + + + +
+ + + +

+ Begin installation +

+ + + +
+ + + diff --git a/usr/local/www/javascript/sorttable.js b/usr/local/www/javascript/sorttable.js index f150e56e7..eb8a72387 100644 --- a/usr/local/www/javascript/sorttable.js +++ b/usr/local/www/javascript/sorttable.js @@ -161,7 +161,7 @@ sorttable = { sortfwdind = document.createElement('span'); sortfwdind.id = "sorttable_sortfwdind"; sortfwdind.innerHTML = stIsIE ? ' 6' : ' ▾'; - this.appendChild(sortfwdind); + //this.appendChild(sortfwdind); // build an array to sort. This is a Schwartzian transform thing, // i.e., we "decorate" each row with the actual sort key, diff --git a/usr/local/www/load_balancer_monitor_edit.php b/usr/local/www/load_balancer_monitor_edit.php index d9ef17506..13e8f1c12 100644 --- a/usr/local/www/load_balancer_monitor_edit.php +++ b/usr/local/www/load_balancer_monitor_edit.php @@ -355,7 +355,7 @@ function updateType(t){   " /> - " onclick="window.location.href=''" /> +i " onclick="window.location.href=''" /> diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php index f819fb731..418eb59a7 100644 --- a/usr/local/www/pkg_mgr_installed.php +++ b/usr/local/www/pkg_mgr_installed.php @@ -88,7 +88,7 @@ include("head.inc"); - + - - - + \ No newline at end of file diff --git a/usr/local/www/reboot.php b/usr/local/www/reboot.php index 1a9a52ad1..62c5e31fa 100755 --- a/usr/local/www/reboot.php +++ b/usr/local/www/reboot.php @@ -49,23 +49,34 @@ $pgtitle = array(gettext("Diagnostics"),gettext("Reboot System")); include("head.inc"); ?> - + - - - -
-
-
- -
-

-

- " /> - " /> -

-
- - - - + + +
+
+
+
+ + + + +
+			
+			
+ +
+

+
+ " /> + " /> +
+

+
+ +
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/shortcuts.inc b/usr/local/www/shortcuts.inc index d192c74cc..05b1d6589 100644 --- a/usr/local/www/shortcuts.inc +++ b/usr/local/www/shortcuts.inc @@ -93,7 +93,7 @@ function get_shortcut_main_link($shortcut_section, $addspace = true, $service = break; } if(!empty($link) && ($_SERVER['REQUEST_URI'] != "/{$link}")) - return "{$space}\"plus\""; + return "{$space}Main page"; } function get_shortcut_status_link($shortcut_section, $addspace = true, $service = array()) { @@ -117,14 +117,14 @@ function get_shortcut_status_link($shortcut_section, $addspace = true, $service break; } if(!empty($link)) - return "{$space}\"status\""; + return "{$space}Status"; } function get_shortcut_log_link($shortcut_section, $addspace = true) { global $g, $shortcuts; $space = ($addspace) ? " " : "" ; if(!empty($shortcut_section) && !empty($shortcuts[$shortcut_section]['log'])) { - return "{$space}\"logs\""; + return "{$space}Log"; } } diff --git a/usr/local/www/status_dhcp_leases.php b/usr/local/www/status_dhcp_leases.php index ed1a8c3c8..6d49b4833 100644 --- a/usr/local/www/status_dhcp_leases.php +++ b/usr/local/www/status_dhcp_leases.php @@ -88,8 +88,14 @@ include("head.inc"); ?> - + + +
+
+
+ + 0) { ?> - - - - - - - - -\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; -} - -?> -
{$fspans}{$data['name']}{$fspane}{$fspans}{$data['mystate']}{$fspane}{$fspans}" . adjust_gmt($data['mydate']) . "{$fspane}{$fspans}{$data['peerstate']}{$fspane}{$fspans}" . adjust_gmt($data['peerdate']) . "{$fspane}  
+
+
+
+ + + + + + + + + \n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + } + + ?> +
{$fspans}{$data['name']}{$fspane}{$fspans}{$data['mystate']}{$fspane}{$fspans}" . adjust_gmt($data['mydate']) . "{$fspane}{$fspans}{$data['peerstate']}{$fspane}{$fspans}" . adjust_gmt($data['peerdate']) . "{$fspane}  
+
+
+
-
+
+
+
+ + + + + + + + + + + "; + $fspane = " "; + } else { + $fspans = ""; + $fspane = " "; + } + $lip = ip2ulong($data['ip']); + if ($data['act'] == "static") { + foreach ($config['dhcpd'] as $dhcpif => $dhcpifconf) { + if(is_array($dhcpifconf['staticmap'])) { + foreach ($dhcpifconf['staticmap'] as $staticent) { + if ($data['ip'] == $staticent['ipaddr']) { + $data['if'] = $dhcpif; + break; + } + } + } + /* exit as soon as we have an interface */ + if ($data['if'] != "") + break; + } + } else { + foreach ($config['dhcpd'] as $dhcpif => $dhcpifconf) { + if (!is_array($dhcpifconf['range'])) + continue; + if (($lip >= ip2ulong($dhcpifconf['range']['from'])) && ($lip <= ip2ulong($dhcpifconf['range']['to']))) { + $data['if'] = $dhcpif; + break; + } + } + } + echo "\n"; + echo "\n"; + $mac=$data['mac']; + $mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]); + if ($data['online'] != "online") { + if(isset($mac_man[$mac_hi])){ // Manufacturer for this MAC is defined + echo "\n"; + }else{ + echo "\n"; + } + }else{ + if(isset($mac_man[$mac_hi])){ // Manufacturer for this MAC is defined + echo "\n"; + }else{ + echo "\n"; + } + } + echo "\n"; + if ($data['type'] != "static") { + echo "\n"; + echo "\n"; + } else { + echo "\n"; + echo "\n"; + } + echo "\n"; + echo "\n"; + echo "\n"; + } + } + + ?> +
{$fspans}{$data['ip']}{$fspane}{$fspans}{$mac}
{$mac_man[$mac_hi]}{$fspane}
{$fspans}{$data['mac']}{$fspane}{$fspans}{$mac}
{$mac_man[$mac_hi]}{$fspane}
{$fspans}{$data['mac']}{$fspane}{$fspans}" . htmlentities($data['hostname']) . "{$fspane}{$fspans}" . adjust_gmt($data['start']) . "{$fspane}{$fspans}" . adjust_gmt($data['end']) . "{$fspane}{$fspans} n/a {$fspane}{$fspans} n/a {$fspane}{$fspans}{$data['online']}{$fspane}{$fspans}{$data['act']}{$fspane} "; + if ($data['type'] == "dynamic") { + echo ""; + echo "\"add\" \n"; + } else { + echo "\"add\" \n"; + } + + echo ""; + echo "\"add\" \n"; + + /* Only show the button for offline dynamic leases */ + if (($data['type'] == "dynamic") && ($data['online'] != "online")) { + echo ""; + echo "\"delete\" \n"; + } + echo "
+
+
+
+ + +
- - - - - - - - - - -"; - $fspane = " "; - } else { - $fspans = ""; - $fspane = " "; - } - $lip = ip2ulong($data['ip']); - if ($data['act'] == "static") { - foreach ($config['dhcpd'] as $dhcpif => $dhcpifconf) { - if(is_array($dhcpifconf['staticmap'])) { - foreach ($dhcpifconf['staticmap'] as $staticent) { - if ($data['ip'] == $staticent['ipaddr']) { - $data['if'] = $dhcpif; - break; - } - } - } - /* exit as soon as we have an interface */ - if ($data['if'] != "") - break; - } - } else { - foreach ($config['dhcpd'] as $dhcpif => $dhcpifconf) { - if (!is_array($dhcpifconf['range'])) - continue; - if (($lip >= ip2ulong($dhcpifconf['range']['from'])) && ($lip <= ip2ulong($dhcpifconf['range']['to']))) { - $data['if'] = $dhcpif; - break; - } - } - } - echo "\n"; - echo "\n"; - $mac=$data['mac']; - $mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]); - if ($data['online'] != "online") { - if(isset($mac_man[$mac_hi])){ // Manufacturer for this MAC is defined - echo "\n"; - }else{ - echo "\n"; - } - }else{ - if(isset($mac_man[$mac_hi])){ // Manufacturer for this MAC is defined - echo "\n"; - }else{ - echo "\n"; - } - } - echo "\n"; - if ($data['type'] != "static") { - echo "\n"; - echo "\n"; - } else { - echo "\n"; - echo "\n"; - } - echo "\n"; - echo "\n"; - echo "\n"; - } -} - -?> -
{$fspans}{$data['ip']}{$fspane}{$fspans}{$mac}
{$mac_man[$mac_hi]}{$fspane}
{$fspans}{$data['mac']}{$fspane}{$fspans}{$mac}
{$mac_man[$mac_hi]}{$fspane}
{$fspans}{$data['mac']}{$fspane}{$fspans}" . htmlentities($data['hostname']) . "{$fspane}{$fspans}" . adjust_gmt($data['start']) . "{$fspane}{$fspans}" . adjust_gmt($data['end']) . "{$fspane}{$fspans} n/a {$fspane}{$fspans} n/a {$fspane}{$fspans}{$data['online']}{$fspane}{$fspans}{$data['act']}{$fspane} "; - if ($data['type'] == "dynamic") { - echo ""; - echo "\"add\" \n"; - } else { - echo "\"add\" \n"; - } +
+ + + + " /> + + + " /> + +
+ +

?

+ - echo ""; - echo "\"add\" \n"; + + + + - /* Only show the button for offline dynamic leases */ - if (($data['type'] == "dynamic") && ($data['online'] != "online")) { - echo ""; - echo "\"delete\" \n"; - } - echo "
-
-
- - - -" /> - - -" /> - -
- -

?

- - - - - + \ No newline at end of file diff --git a/usr/local/www/status_dhcpv6_leases.php b/usr/local/www/status_dhcpv6_leases.php index 9eeda114b..55808111e 100644 --- a/usr/local/www/status_dhcpv6_leases.php +++ b/usr/local/www/status_dhcpv6_leases.php @@ -94,8 +94,14 @@ include("head.inc"); ?> - + + +
+
+
+ + $ifarr) { if ($_GET['order']) usort($leases, "leasecmp"); + + + + /* only print pool status when we have one */ if(count($pools) > 0) { ?> - - - - - - - - -\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; -} -?> -
{$fspans}{$data['name']}{$fspane}{$fspans}{$data['mystate']}{$fspane}{$fspans}" . adjust_gmt($data['mydate']) . "{$fspane}{$fspans}{$data['peerstate']}{$fspane}{$fspans}" . adjust_gmt($data['peerdate']) . "{$fspane}  
+
+
+
+ + + + + + + + + \n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + } + + ?> +
{$fspans}{$data['name']}{$fspane}{$fspans}{$data['mystate']}{$fspane}{$fspans}" . adjust_gmt($data['mydate']) . "{$fspane}{$fspans}{$data['peerstate']}{$fspane}{$fspans}" . adjust_gmt($data['peerdate']) . "{$fspane}  
+
+
+
-
+
+
+
+ + + + + + + + + + + + "; + $fspane = " "; + } else { + $fspans = ""; + $fspane = " "; + } + + if ($data['act'] == "static") { + foreach ($config['dhcpdv6'] as $dhcpif => $dhcpifconf) { + if(is_array($dhcpifconf['staticmap'])) { + foreach ($dhcpifconf['staticmap'] as $staticent) { + if ($data['ip'] == $staticent['ipaddr']) { + $data['if'] = $dhcpif; + break; + } + } + } + /* exit as soon as we have an interface */ + if ($data['if'] != "") + break; + } + } else { + $data['if'] = convert_real_interface_to_friendly_interface_name(guess_interface_from_ip($data['ip'])); + } + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + if ($data['type'] != "static") { + echo "\n"; + echo "\n"; + } else { + echo "\n"; + echo "\n"; + } + echo "\n"; + echo "\n"; + + if ($data['type'] == "dynamic") { + echo "\n"; + } else { + echo "\n"; + } + + /* Only show the button for offline dynamic leases */ + if (($data['type'] == "dynamic") && ($data['online'] != "online")) { + echo "\n"; + } + echo "\n"; + } + } + ?> +
{$fspans}{$data['ip']}{$fspane}{$fspans}{$data['iaid']}{$fspane}{$fspans}{$data['duid']}{$fspane}{$fspans}"; + if (!empty($data['hostname'])) { + echo htmlentities($data['hostname']) . "
"; + } + + $mac=trim($ndpdata[$data['ip']]['mac']); + if (!empty($mac)) { + $mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]); + print htmlentities($mac); + if(isset($mac_man[$mac_hi])){ print "
{$mac_man[$mac_hi]}"; } + } + + echo "{$fspane} 
{$fspans}" . adjust_gmt($data['start']) . "{$fspane}{$fspans}" . adjust_gmt($data['end']) . "{$fspane}{$fspans} n/a {$fspane}{$fspans} n/a {$fspane}{$fspans}{$data['online']}{$fspane}{$fspans}{$data['act']}{$fspane}"; + echo "\"add\""; + echo "\"add\""; + echo "\"delete\"
+
+
+
+ + +
+
+ +
+

Delegated Prefixes

+
+ +
+ + + + + + + + + + "; + $fspane = " "; + } else { + $fspans = ""; + $fspane = " "; + } + + if ($data['act'] == "static") { + foreach ($config['dhcpdv6'] as $dhcpif => $dhcpifconf) { + if(is_array($dhcpifconf['staticmap'])) { + foreach ($dhcpifconf['staticmap'] as $staticent) { + if ($data['ip'] == $staticent['ipaddr']) { + $data['if'] = $dhcpif; + break; + } + } + } + /* exit as soon as we have an interface */ + if ($data['if'] != "") + break; + } + } else { + $data['if'] = convert_real_interface_to_friendly_interface_name(guess_interface_from_ip($data['ip'])); + } + echo "\n"; + if ($mappings[$data['iaid'] . $data['duid']]) { + $dip = "
Routed To: {$mappings[$data['iaid'] . $data['duid']]}"; + } + echo "\n"; + echo "\n"; + echo "\n"; + if ($data['type'] != "static") { + echo "\n"; + echo "\n"; + } else { + echo "\n"; + echo "\n"; + } + echo "\n"; + echo "\n"; + } + } + ?> +
{$fspans}{$data['prefix']}{$dip}{$fspane}{$fspans}{$data['iaid']}{$fspane}{$fspans}{$data['duid']}{$fspane}{$fspans}" . adjust_gmt($data['start']) . "{$fspane}{$fspans}" . adjust_gmt($data['end']) . "{$fspane}{$fspans} n/a {$fspane}{$fspans} n/a {$fspane}{$fspans}{$data['act']}{$fspane}
+
+
+
+ +
- - - - - - - - - - - -"; - $fspane = " "; - } else { - $fspans = ""; - $fspane = " "; - } + + + + + " /> + + + " /> + + + +

?

+ - if ($data['act'] == "static") { - foreach ($config['dhcpdv6'] as $dhcpif => $dhcpifconf) { - if(is_array($dhcpifconf['staticmap'])) { - foreach ($dhcpifconf['staticmap'] as $staticent) { - if ($data['ip'] == $staticent['ipaddr']) { - $data['if'] = $dhcpif; - break; - } - } - } - /* exit as soon as we have an interface */ - if ($data['if'] != "") - break; - } - } else { - $data['if'] = convert_real_interface_to_friendly_interface_name(guess_interface_from_ip($data['ip'])); - } - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - if ($data['type'] != "static") { - echo "\n"; - echo "\n"; - } else { - echo "\n"; - echo "\n"; - } - echo "\n"; - echo "\n"; - - if ($data['type'] == "dynamic") { - echo "\n"; - } else { - echo "\n"; - } - - /* Only show the button for offline dynamic leases */ - if (($data['type'] == "dynamic") && ($data['online'] != "online")) { - echo "\n"; - } - echo "\n"; - } -} -?> -
{$fspans}{$data['ip']}{$fspane}{$fspans}{$data['iaid']}{$fspane}{$fspans}{$data['duid']}{$fspane}{$fspans}"; - if (!empty($data['hostname'])) { - echo htmlentities($data['hostname']) . "
"; - } + + + + - $mac=trim($ndpdata[$data['ip']]['mac']); - if (!empty($mac)) { - $mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]); - print htmlentities($mac); - if(isset($mac_man[$mac_hi])){ print "
{$mac_man[$mac_hi]}"; } - } - - echo "{$fspane} 
{$fspans}" . adjust_gmt($data['start']) . "{$fspane}{$fspans}" . adjust_gmt($data['end']) . "{$fspane}{$fspans} n/a {$fspane}{$fspans} n/a {$fspane}{$fspans}{$data['online']}{$fspane}{$fspans}{$data['act']}{$fspane}"; - echo "\"add\""; - echo "\"add\""; - echo "\"delete\"
-
-

Delegated Prefixes

- - - - - - - - - -"; - $fspane = " "; - } else { - $fspans = ""; - $fspane = " "; - } - - if ($data['act'] == "static") { - foreach ($config['dhcpdv6'] as $dhcpif => $dhcpifconf) { - if(is_array($dhcpifconf['staticmap'])) { - foreach ($dhcpifconf['staticmap'] as $staticent) { - if ($data['ip'] == $staticent['ipaddr']) { - $data['if'] = $dhcpif; - break; - } - } - } - /* exit as soon as we have an interface */ - if ($data['if'] != "") - break; - } - } else { - $data['if'] = convert_real_interface_to_friendly_interface_name(guess_interface_from_ip($data['ip'])); - } - echo "\n"; - if ($mappings[$data['iaid'] . $data['duid']]) { - $dip = "
Routed To: {$mappings[$data['iaid'] . $data['duid']]}"; - } - echo "\n"; - echo "\n"; - echo "\n"; - if ($data['type'] != "static") { - echo "\n"; - echo "\n"; - } else { - echo "\n"; - echo "\n"; - } - echo "\n"; - echo "\n"; - } -} -?> -
{$fspans}{$data['prefix']}{$dip}{$fspane}{$fspans}{$data['iaid']}{$fspane}{$fspans}{$data['duid']}{$fspane}{$fspans}" . adjust_gmt($data['start']) . "{$fspane}{$fspans}" . adjust_gmt($data['end']) . "{$fspane}{$fspans} n/a {$fspane}{$fspans} n/a {$fspane}{$fspans}{$data['act']}{$fspane}
-
-
- - - -" /> - - -" /> - -
- -

?

- - - - - + \ No newline at end of file diff --git a/usr/local/www/status_filter_reload.php b/usr/local/www/status_filter_reload.php index 9b0471669..599fe1cf7 100644 --- a/usr/local/www/status_filter_reload.php +++ b/usr/local/www/status_filter_reload.php @@ -65,29 +65,46 @@ if($_POST['syncfilter']) { include("head.inc"); ?> - + -
-
- - -     - - -
-


-
- -
- -
-
- -
- -
.
+
+
+
+ + + +
+ +
+
+
+
+ + +      + + +
+


+ +
+ +
+ +
+
+ +
+ +
.
+
+
+
+
+
+
- - - - + diff --git a/usr/local/www/status_gateway_groups.php b/usr/local/www/status_gateway_groups.php index 29677c6bd..0001763ad 100755 --- a/usr/local/www/status_gateway_groups.php +++ b/usr/local/www/status_gateway_groups.php @@ -55,111 +55,124 @@ include("head.inc"); ?> - + + - - - - -
- -
-
- - - - - - - - - - + + + + +
- - - - - +
+
+ + + +
+ + + +
+
- echo "
"; - foreach($priorities as $number => $tier) { - echo ""; - } - echo "\n"; - - /* inverse gateway group to gateway priority */ - $priority_arr = array(); - foreach($gateway_group['item'] as $item) { - $itemsplit = explode("|", $item); - $priority_arr[$itemsplit[1]][] = $itemsplit[0]; - } - ksort($priority_arr); - $p = 1; - foreach($priority_arr as $number => $tier) { - /* for each priority process the gateways */ - foreach($tier as $member) { - /* we always have $priority_count fields */ - echo ""; - $c = 1; - while($c <= $priority_count) { - $monitor = lookup_gateway_monitor_ip_by_name($member); - if($p == $c) { - $status = $gateways_status[$monitor]['status']; - if (stristr($status, "down")) { - $online = gettext("Offline"); - $bgcolor = "#F08080"; // lightcoral - } elseif (stristr($status, "loss")) { - $online = gettext("Warning, Packetloss"); - $bgcolor = "#F0E68C"; // khaki - } elseif (stristr($status, "delay")) { - $online = gettext("Warning, Latency"); - $bgcolor = "#F0E68C"; // khaki - } elseif ($status == "none") { - $online = gettext("Online"); - $bgcolor = "#90EE90"; // lightgreen - } else { - $online = gettext("Gathering data"); - $bgcolor = "#ADD8E6"; // lightblue +
+ + +
" . sprintf(gettext("Tier %s"), $number) . "
+ + + + + + + + + - - - + $priority_count = count($priorities); + ksort($priorities); + + echo ""; + foreach($priorities as $number => $tier) { + echo ""; + } + echo "\n"; + + /* inverse gateway group to gateway priority */ + $priority_arr = array(); + foreach($gateway_group['item'] as $item) { + $itemsplit = explode("|", $item); + $priority_arr[$itemsplit[1]][] = $itemsplit[0]; + } + ksort($priority_arr); + $p = 1; + foreach($priority_arr as $number => $tier) { + /* for each priority process the gateways */ + foreach($tier as $member) { + /* we always have $priority_count fields */ + echo ""; + $c = 1; + while($c <= $priority_count) { + $monitor = lookup_gateway_monitor_ip_by_name($member); + if($p == $c) { + $status = $gateways_status[$monitor]['status']; + if (stristr($status, "down")) { + $online = gettext("Offline"); + $bgcolor = "#F08080"; // lightcoral + } elseif (stristr($status, "loss")) { + $online = gettext("Warning, Packetloss"); + $bgcolor = "#F0E68C"; // khaki + } elseif (stristr($status, "delay")) { + $online = gettext("Warning, Latency"); + $bgcolor = "#F0E68C"; // khaki + } elseif ($status == "none") { + $online = gettext("Online"); + $bgcolor = "#90EE90"; // lightgreen + } else { + $online = gettext("Gathering data"); + $bgcolor = "#ADD8E6"; // lightblue + } + echo ""; + } else { + echo ""; + } + $c++; + } + echo "\n"; + } + $p++; + } + ?> +
+ + + + +  ". htmlspecialchars($member) .", $online "; - } else { - echo ""; - } - $c++; - } - echo "\n"; - } - $p++; - } - ?> -
 
-
-   -
" . sprintf(gettext("Tier %s"), $number) . "
 ". htmlspecialchars($member) .", $online  
+
+   +
+
+ + + + + + -
-
- - - - - - + diff --git a/usr/local/www/status_gateways.php b/usr/local/www/status_gateways.php index 858a179ed..f48df2d62 100644 --- a/usr/local/www/status_gateways.php +++ b/usr/local/www/status_gateways.php @@ -53,108 +53,121 @@ $shortcut_section = "gateways"; include("head.inc"); ?> - - - - - - -
- -
-
- - - - - - - - - - - $gateway) { - ?> - - - - - - - - - - -
- - - - - - - - - - - - - - "; - ?> -
 $online 
"; - $lastchange = $gateways_status[$gname]['lastcheck']; - if(!empty($lastchange)) { - echo gettext("Last check:") . '
' . $lastchange; - } - echo "
-
-
-
+ - - - + + +
+
+
+ + + +
+ + + +
+
+ +
+ + + + + + + + + + + + + $gateway) { + ?> + + + + + + + + + +
+ + + + + + + + + + + + + + "; + ?> +
 $online 
"; + $lastchange = $gateways_status[$gname]['lastcheck']; + if(!empty($lastchange)) { + echo gettext("Last check:") . '
' . $lastchange; + } + echo "
+ +
+
+
+
+
+
+
+
+ + diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php index 745780421..11082323f 100644 --- a/usr/local/www/status_graph.php +++ b/usr/local/www/status_graph.php @@ -116,7 +116,7 @@ include("head.inc"); ?> - + - - + \ No newline at end of file diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php index 4e10fe118..cf8d18d8a 100644 --- a/usr/local/www/status_interfaces.php +++ b/usr/local/www/status_interfaces.php @@ -62,413 +62,434 @@ include("head.inc"); ?> - + - - $ifname): - $ifinfo = get_interface_info($ifdescr); - // Load MAC-Manufacturer table - $mac_man = load_mac_manufacturer_table(); -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- (, ) -
- -
- DHCP - -
- - -    - - -
-
- DHCP6 - -
- - -    - - -
-
-
- - -    - - -
-
-
- - -    - - -
-
-
- - -    - - -
-
-
- - - - - " /> - - - " /> - - -
-
- -
- -
- -
- -
- -
- kbit/s -
- kbit/s -
- kbit/s -
- kbit/s -
- " . $mac . " - " . htmlspecialchars($mac_man[$mac_hi]); print ""; } - else {print htmlspecialchars($mac);} - ?> -
- -   -
- -
- - -
- -   -
- -   -
- -
- - -
- "; - } - ?> -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- "; - echo $interrupt_sec . " " . gettext("rate"); - ?> -
-
+
+
+ +
+ +
+
+ +
+ + + $ifname): + $ifinfo = get_interface_info($ifdescr); + // Load MAC-Manufacturer table + $mac_man = load_mac_manufacturer_table(); + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ (, ) +
+ +
+ DHCP + +
+ + +    + + +
+
+ DHCP6 + +
+ + +    + + +
+
+
+ + +    + + +
+
+
+ + +    + + +
+
+
+ + +    + + +
+
+
+ + + + + " /> + + + " /> + + +
+
+ +
+ +
+ +
+ +
+ +
+ kbit/s +
+ kbit/s +
+ kbit/s +
+ kbit/s +
+ " . $mac . " - " . htmlspecialchars($mac_man[$mac_hi]); print ""; } + else {print htmlspecialchars($mac);} + ?> +
+ +   +
+ +
+ + +
+ +   +
+ +   +
+ +
+ + +
+ "; + } + ?> +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ "; + echo $interrupt_sec . " " . gettext("rate"); + ?> +
+ +
+

','')?>


+
+
+
+
+ +
+
+
-','')?> - - - - + \ No newline at end of file diff --git a/usr/local/www/status_lb_pool.php b/usr/local/www/status_lb_pool.php index 0e39316e9..3745e925c 100644 --- a/usr/local/www/status_lb_pool.php +++ b/usr/local/www/status_lb_pool.php @@ -106,123 +106,137 @@ if ($_POST) { } ?> - - -
-
-"));?>
- - - - - -
- -
-
- - - - - - - - - - - - - - - - - - - - -
- - - - - - "; - switch ($pool['mode']) { - case 'loadbalance': - echo "\n"; - break; - case 'failover': - echo "\n"; - break; - } - echo ""; - } - } - ?> -
 {$server['ip']['addr']}:{$pool['port']}  "; -# echo " {$server['ip']['addr']}:{$pool['port']} "; - if($server['ip']['avail']) - echo " ({$server['ip']['avail']}) "; - echo " 
-
- - - -
- " /> - " /> -
-
-
-
- - - + + + + +
+
+
+ +
+ "));?> + + +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + "; + switch ($pool['mode']) { + case 'loadbalance': + echo "\n"; + break; + case 'failover': + echo "\n"; + break; + } + echo ""; + } + } + ?> +
 {$server['ip']['addr']}:{$pool['port']}  "; + # echo " {$server['ip']['addr']}:{$pool['port']} "; + if($server['ip']['avail']) + echo " ({$server['ip']['avail']}) "; + echo " 
+
+ + + +
+ + " /> + " /> + +
+
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/status_lb_vs.php b/usr/local/www/status_lb_vs.php index 5ea0af455..798dfc8e9 100644 --- a/usr/local/www/status_lb_vs.php +++ b/usr/local/www/status_lb_vs.php @@ -57,89 +57,105 @@ $pgtitle = array(gettext("Status"),gettext("Load Balancer"),gettext("Virtual Ser include("head.inc"); ?> - - - - - - -
- -
-
- - - - - - - - - - - - - - - - - - -
- - - -
-
- - "; - } - } - } - ?> -
{$server}
-
- - -
- Last: {$rdr_a[$vsent['name']]['last']}\n"; - if (!empty($rdr_a[$vsent['name']]['average'])) - echo "
Average: {$rdr_a[$vsent['name']]['average']}\n"; - ?> -
- -
-
-
- - - + + + + +
+
+
+ +
+ "));?> + + +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ + "; + } + } + } + ?> +
{$server}
+
+ + +
+ Last: {$rdr_a[$vsent['name']]['last']}\n"; + if (!empty($rdr_a[$vsent['name']]['average'])) + echo "
Average: {$rdr_a[$vsent['name']]['average']}\n"; + ?> +
+ +
+
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/status_ntpd.php b/usr/local/www/status_ntpd.php index 1bda7a40d..49a27afbf 100644 --- a/usr/local/www/status_ntpd.php +++ b/usr/local/www/status_ntpd.php @@ -160,112 +160,129 @@ $pgtitle = array(gettext("Status"),gettext("NTP")); $shortcut_section = "ntp"; include("head.inc"); ?> - + + + - - -
- - -
Network Time Protocol Status
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Statistics unavailable because ntpq and ntpdc queries are disabled in the NTP service settings. -
- No peers found, is the ntp service running?. -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - ' . gettext("Clock Altitude") . ''; $gps_goo_lnk++;}?> - ' . gettext("Satellites") . ''; $gps_goo_lnk++;}?> - - - - - - - ' . $gps_alt . ' ' . $gps_alt_unit . '';}?> - '; - if (isset($gps_satview)) {echo 'in view ' . intval($gps_satview);} - if (isset($gps_sat) && isset($gps_satview)) {echo ', ';} - if (isset($gps_sat)) {echo 'in use ' . $gps_sat;} - echo ''; - } - ?> - - - - - -
(° ) (° )
Google Maps Link
- -
- - - + + + +
+
+ +
+ +
+
+
+

Network Time Protocol Status

+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Statistics unavailable because ntpq and ntpdc queries are disabled in the NTP service settings. +
+ No peers found, is the ntp service running?. +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + ' . gettext("Clock Altitude") . ''; $gps_goo_lnk++;}?> + ' . gettext("Satellites") . ''; $gps_goo_lnk++;}?> + + + + + + + ' . $gps_alt . ' ' . $gps_alt_unit . '';}?> + + + + + + +
(° ) (° ) + +
Google Maps Link
+ +
+
+
+
+
+
+
+ + diff --git a/usr/local/www/status_openvpn.php b/usr/local/www/status_openvpn.php index 726f5d70d..13ee59406 100644 --- a/usr/local/www/status_openvpn.php +++ b/usr/local/www/status_openvpn.php @@ -107,9 +107,10 @@ $clients = openvpn_get_active_clients(); include("head.inc"); ?> -"> + + - + - - - - - - - - "> - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - + +
+
+ +
+ +
+
+
+

Network Time Protocol Status

+
+ +
+ + + + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + "> + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + " + title="" alt="delete" /> +
+ + + + +
+ +
+
 
+
+ +
+ " /> - +

+
+ + + + + + + + + +
+ + +
+ + + + + + + + + +
+ +
+ + + + + + + + + + + + + + "> + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+
+
+ + +
+ + + + + + + + +
+ +
+ + + + + + + + + + + + + + "> + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+
+
+ + + " . gettext("NOTE") . ": " . gettext("If you have custom options that override the management features of OpenVPN on a client or server, they will cause that OpenVPN instance to not work correctly with this status page."); + } + + if ((empty($clients)) && (empty($servers)) && (empty($sk_servers))) { + echo gettext("No OpenVPN instance defined"); + } + ?> + + + + + + + + - -
- - - - - - - - - - - - - " - title="" alt="delete" /> -
- - - - -
- -
-
 
- - - - -
-" /> - -

-
- - - - - - - - - -
- - -
- - - - - - - - - -
- -
- - - - - - - - - - - - - - "> - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
- -
-
-
- - -
- - - - - - - - -
- -
- - - - - - - - - - - - - - "> - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
- -
-
-
- -" . gettext("NOTE") . ": " . gettext("If you have custom options that override the management features of OpenVPN on a client or server, they will cause that OpenVPN instance to not work correctly with this status page."); -} - -if ((empty($clients)) && (empty($servers)) && (empty($sk_servers))) { - echo gettext("No OpenVPN instance defined"); -} -?> - - - + - - + + + \ No newline at end of file diff --git a/usr/local/www/status_queues.php b/usr/local/www/status_queues.php index 04252ee92..1a2471d89 100644 --- a/usr/local/www/status_queues.php +++ b/usr/local/www/status_queues.php @@ -124,69 +124,94 @@ $pgtitle = array(gettext("Status"),gettext("Traffic shaper"),gettext("Queues")); $shortcut_section = "trafficshaper"; include("head.inc"); ?> - + -"; - exit;} -?> - -
- - - - - - - - - - - - - - - - - - -
- - -
-

- :
- .
- . -

+ + +
+
+ +
+ +
+
+ + +
+

+
+ + +
+

+
+ + + + + +
+
+ + + + + + + + + + + + + +
+ + +
+
+ +

+ :
+ .
+ . +

+
+ + + +
+
+
+
+
+ + - - - - + + - - - - - + + - - - + window.setTimeout('update_graph_images()', 355000); + //]]> + + +
+
+
- - - - - - - +
+ + diff --git a/usr/local/www/status_rrd_graph_settings.php b/usr/local/www/status_rrd_graph_settings.php index 4c3e35a7b..2c5d55a85 100644 --- a/usr/local/www/status_rrd_graph_settings.php +++ b/usr/local/www/status_rrd_graph_settings.php @@ -120,141 +120,105 @@ $pgtitle = array(gettext("Status"),gettext("RRD Graphs")); include("head.inc"); ?> - - - - -
- - - - - - - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- onclick="enable_change(false)" /> - -
- - -
- - -
- - -
  - " onclick="enable_change(true)" /> -
  - " onclick="return confirm('')" /> -
 
- -
-
-
-
- - - + + + + +
+
+
+ + + + +
+ + + +
+
+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ +
+ +

+
+ +

+
+ +

+
  + " onclick="enable_change(true)" /> + " onclick="return confirm('')" /> +
+
+ +


+ + +

+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/status_rrd_graph_tabs.php b/usr/local/www/status_rrd_graph_tabs.php new file mode 100644 index 000000000..a06615a25 --- /dev/null +++ b/usr/local/www/status_rrd_graph_tabs.php @@ -0,0 +1,42 @@ + \ No newline at end of file diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php index c08f773fa..b143852f1 100755 --- a/usr/local/www/status_services.php +++ b/usr/local/www/status_services.php @@ -69,61 +69,74 @@ include("head.inc"); ?> - + - - -
- - - - - - - - - - 0) { - uasort($services, "service_name_compare"); - foreach($services as $service) { - if (empty($service['name'])) - continue; - if (empty($service['description'])) - $service['description'] = get_pkg_descr($service['name']); - echo "\n"; - echo "\n"; - // if service is running then listr else listbg - $bgclass = null; - if (get_service_status($service)) - $bgclass = "listr"; - else - $bgclass = "listbg"; - echo "\n"; - echo "\n"; - } -} else { - echo "\n"; -} - -?> - -
" . $service['name'] . "" . $service['description'] . "" . get_service_status_icon($service, true, true) . "" . get_service_control_links($service); - $scut = get_shortcut_by_service_name($service['name']); - if (!empty($scut)) { - echo get_shortcut_main_link($scut, true, $service); - echo get_shortcut_status_link($scut, true, $service); - echo get_shortcut_log_link($scut, true); - } - echo "
" . gettext("No services found") . " .
-
- - - - +
+
+
+ + + +
+ +
+
+ +
+ + + + + + + + + + 0) { + uasort($services, "service_name_compare"); + foreach($services as $service) { + if (empty($service['name'])) + continue; + if (empty($service['description'])) + $service['description'] = get_pkg_descr($service['name']); + echo "\n"; + echo "\n"; + // if service is running then listr else listbg + $bgclass = null; + if (get_service_status($service)) + $bgclass = "listr"; + else + $bgclass = "listbg"; + echo "\n"; + echo "\n"; + } + } else { + echo "\n"; + } + + ?> + +
" . $service['name'] . "" . $service['description'] . "" . get_service_status_icon($service, true, true) . "" . get_service_control_links($service); + $scut = get_shortcut_by_service_name($service['name']); + if (!empty($scut)) { + echo get_shortcut_main_link($scut, true, $service); + echo get_shortcut_status_link($scut, true, $service); + echo get_shortcut_log_link($scut, true); + } + echo "
" . gettext("No services found") . " .
+
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/status_upnp.php b/usr/local/www/status_upnp.php index 72c939800..6a30811d9 100644 --- a/usr/local/www/status_upnp.php +++ b/usr/local/www/status_upnp.php @@ -59,67 +59,76 @@ $pgtitle = array(gettext("Status"),gettext("UPnP & NAT-PMP Status")); $shortcut_section = "upnp"; include("head.inc"); ?> - + - - -
- - - - - - - -
-
- " /> . -
-
- - - - - - - - - (.*) port (.*)/", $rdr_entry, $matches)) - $rdr_proto = $matches[2]; - $rdr_port = $matches[3]; - $rdr_label =$matches[4]; - $rdr_ip = $matches[5]; - $rdr_iport = $matches[6]; - ?> - - - - - - - - -
- - - - - - - - - -
-
-
- - - + + +
+
+ +
+ + + + +
+
+ + +
+

+
+ + + +
+ + + + + + + + + + (.*) port (.*)/", $rdr_entry, $matches)) + $rdr_proto = $matches[2]; + $rdr_port = $matches[3]; + $rdr_label =$matches[4]; + $rdr_ip = $matches[5]; + $rdr_iport = $matches[6]; + ?> + + + + + + + + +
+ + + + + + + + + +
+
+ +
+ " /> . +
+ + +
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/system.php b/usr/local/www/system.php index c5cfe5209..d26f34d2e 100644 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -284,241 +284,263 @@ include("head.inc"); ?> - - -
- - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - -
- firewall -
-
-
- - -
- -
-
-
- - - - - - - - - - - - - -
- - - - - -
-
- - -
- -
- -
- -
- /> - - - -
- -
-
- /> - - - -
- -
-
- -
- - - -
- -
- - - -
- - - - -
 
  - - - - . - -
 
  - " /> -
-
-
-
- - - + + + + +
+
+ +
+ +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ firewall +
+
+
+ + +
+ +
+
+ + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + + +
+ +
+ +
+ +
+ /> + + + +
+ +
+
+ /> + + + +
+ +
+ +
+ +
+ + + +
+ +
+ + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + +
  + + + + . + +
  + " /> +
+
+
+ +
+
+ +
+ +
+
+ + diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php index 4982b66a4..f736b3226 100644 --- a/usr/local/www/system_advanced_admin.php +++ b/usr/local/www/system_advanced_admin.php @@ -271,350 +271,362 @@ include("head.inc"); ?> - - - -function prot_change() { + +
+
+ +
+ +
+ + + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + onclick="prot_change()" /> + +     + onclick="prot_change()" /> + + +
+ + + + +
+ +
+ +
+ + + +
+ +
+ + + +
+ /> + +
+ +
+ /> + +
+ +
+ /> + +
+ +
+ + /> + +
+ + +
+ /> + +
+ DNS Rebinding attacks. " . + "This blocks private IP responses from your configured DNS servers. Check this box to disable this protection if it interferes with " . + "webConfigurator access or name resolution in your environment. "); ?> +
+ +
+ +
+ +
+ /> + +
+ Wikipedia."); ?> +
+ /> + +
+ +
+ " . sprintf(gettext("This option has been automatically disabled because a conflicting cryptographic accelerator card has been detected (%s)."), $hwcrypto) . "

"; + } ?> + Wikipedia."); ?> +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ /> + +
+ /> + +
+ + + +
+ +
+ +
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ /> + + null modem serial cable or adapter is required to use the serial console."); ?> +
+ bps +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+ /> + +
+ +
 
 " />
- if (document.iform.https_proto.checked) - document.getElementById("ssl_opts").style.display=""; - else - document.getElementById("ssl_opts").style.display="none"; -} +
+ +
+ +
+
+ +
+ +
+
-//]]> - - -
- - - - - - - -
- -
-
- - -   - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - onclick="prot_change()" /> - -     - onclick="prot_change()" /> - - -
- - - - -
- -
- -
- - - -
- -
- - - -
- /> - -
- -
- /> - -
- -
- /> - -
- -
- - /> - -
- - -
- /> - -
- DNS Rebinding attacks. " . - "This blocks private IP responses from your configured DNS servers. Check this box to disable this protection if it interferes with " . - "webConfigurator access or name resolution in your environment. "); ?> -
- -
- -
- -
- /> - -
- Wikipedia."); ?> -
- /> - -
- -
- " . sprintf(gettext("This option has been automatically disabled because a conflicting cryptographic accelerator card has been detected (%s)."), $hwcrypto) . "

"; - } ?> - Wikipedia."); ?> -
 
- /> - -
- /> - -
- - - -
- -
- -
 
- /> - - null modem serial cable or adapter is required to use the serial console."); ?> -
- bps -
-
- -
-
 
- /> - -
- -
 
 " />
 
-
-
-
- "; ?> - - + + - - + + + + + + + +
+
+ +
+ +
+ + + +
- +
+ + + + + + + /> + +
+
+ +
. +
+ + + + + + /> + +
+ + + + + + +
+ +
+ +
+ +
+
+ + + + + + + +
+ +
+ + + + + + + +
+ +
+ + + + + + + + + + + + /> + +
+ +
+ + + + Disable Auto-added VPN rules + + /> + +
+ + + + + + Disable reply-to + + /> + +
+ +
+ + + + Disable Negate rules + + /> + +
+ +
+ + + + + + +
+ +
+ + + + + + + /> + +
+ +
+ + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + 1): ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +

+ +

+ +

+ +
+
+ +

+ +
+ /> + +

+ +

+ +
+ /> + +
+ +

+ +
+ + +
+ + + + + + + + +
 " />
+ +
+ + + +
+ +
+ + + + + -var descs=new Array(5); -descs[0]=""; -descs[1]=""; -descs[2]=""; -descs[3]=""; - -function update_description(itemnum) { - document.forms[0].info.value=descs[itemnum]; - -} - -//]]> - - - -
- - - - - - - -
- -
-
- - -   - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1): ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- /> -
- -
- /> -
- -
- -
- - -
- -
- /> - -
-
- -
. -
-
- /> - -
-
- -
- -
- -
- -
-
- -
- -
- -
- -
- -
- -
- - - - - - -
- /> - -
- -
-
Disable Auto-added VPN rules - /> - -
- - -
Disable reply-to - /> - -
- -
-
Disable Negate rules - /> - -
- -
-
- -
- -
- -
- /> - -
- -
-
 
- -
- -
 
- -
- -

- -

- -

- -
-
- -

- -
- /> - -

- -

- -
- /> - -
- -

- -
- - -
 
 " />
-
-
-
- - - - + diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php index abfdda50c..a454153fa 100644 --- a/usr/local/www/system_advanced_misc.php +++ b/usr/local/www/system_advanced_misc.php @@ -78,10 +78,6 @@ $pconfig['powerd_battery_mode'] = "hadp"; if (!empty($config['system']['powerd_battery_mode'])) $pconfig['powerd_battery_mode'] = $config['system']['powerd_battery_mode']; -$pconfig['powerd_normal_mode'] = "hadp"; -if (!empty($config['system']['powerd_normal_mode'])) - $pconfig['powerd_normal_mode'] = $config['system']['powerd_normal_mode']; - $crypto_modules = array('glxsb' => gettext("AMD Geode LX Security Block"), 'aesni' => gettext("AES-NI CPU-based Acceleration")); @@ -167,7 +163,6 @@ if ($_POST) { $config['system']['powerd_ac_mode'] = $_POST['powerd_ac_mode']; $config['system']['powerd_battery_mode'] = $_POST['powerd_battery_mode']; - $config['system']['powerd_normal_mode'] = $_POST['powerd_normal_mode']; if($_POST['crypto_hardware']) $config['system']['crypto_hardware'] = $_POST['crypto_hardware']; @@ -247,191 +242,185 @@ include("head.inc"); ?> - - - -
- - - - - - - -
- -
-
- - -   - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + +
+
+ +
+ +
+ + + +
+ + + +
+ +
- " class="formfld unknown" /> -
- -
- " class="formfld unknown" /> -
- -
- " class="formfld unknown" /> -
- -
- " class="formfld unknown" /> -
- -
- onclick="sticky_checked(this)" /> -
- -
- " class="formfld unknown" /> -
- -
- /> -
- -
 
- /> -
-
-  :  - -    -  :  - -
-  :  - -

- -
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ " class="formfld unknown" /> +
+ +
+ " class="formfld unknown" /> +
+ +
+ " class="formfld unknown" /> +
+ +
+ " class="formfld unknown" /> +
+ +
+ onclick="sticky_checked(this)" /> +
+ +
+ " class="formfld unknown" /> +
+ +
+ /> +
+ +
+ + + + + + + + + + + + + +
+ /> +
+
+  :  + +    +  :  + +

+ +
+ + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
 
- -
- -

- -
 
  - VPN > IPsec on the Advanced Settings tab."); ?> -
 
- /> -
- -
 
- /> -
- -
- /> -
- -
- /> -
- -
- onclick="tmpvar_checked(this)" /> -
- -
- " class="formfld unknown" /> MB -
- -
- " class="formfld unknown" /> MB -
- -
- - -
- -
-
-
- - -
- -
-
-
 
- -
- -
 
- /> -
- -
  - " /> -
-
-
-
+ + + + + + + + + + + + + + + +
+ +
+ +

+ +
+ + + + + + + + + + + + + + +
  + VPN > IPsec on the Advanced Settings tab."); ?> +
+ + + + + + + + + + + + + + + +
+ /> +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ /> +
+ +
+ /> +
+ +
+ /> +
+ +
+ onclick="tmpvar_checked(this)" /> +
+ +
+ " class="formfld unknown" /> MB +
+ +
+ " class="formfld unknown" /> MB +
+ +
+ + +
+ +
+
+
+ + +
+ +
+
+
+ + + + + + + + + + + + + + + +
+ +
+ +
+ - - - + + + + + + + + + + + + + + + + + + + +
+ /> +
+ +
  + " /> +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/usr/local/www/system_advanced_network.php b/usr/local/www/system_advanced_network.php index 24114904c..e1c9070ed 100644 --- a/usr/local/www/system_advanced_network.php +++ b/usr/local/www/system_advanced_network.php @@ -159,191 +159,192 @@ include("head.inc"); ?> - - - - + + + + - -
- - - - - - - -
- -
-
- - -   - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+
+ +
+ +
+ + + +
-
- - - - - - - - - - -*/ -?> - - - - - - - -
- onclick="enable_change(false)" /> -
-
-
-
-
- onclick="enable_change(false)" /> -
-
-
-  :  - -
- /> -
-
-
 
- /> -
- -
- /> -
- -
-   - -
- /> -
- -
-   - -
- /> -
- -
-   - -
- /> -
- -
 
Flowtable support
Enable Flowtable - /> - Enable flowtable support
- Enables infrastructure for caching flows as a means of accelerating L3 and L2 lookups - as well as providing stateful load balancing when used with RADIX_MPATH.
-
 
 " />
-
-
-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
+ onclick="enable_change(false)" /> +
+
+
+
+
+ onclick="enable_change(false)" /> +
+
+
+  :  + +
+ /> +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ + ?> + +
+ /> +
+ +
+ /> +
+ +
+   + +
+ /> +
+ +
+   + +
+ /> +
+ +
+   + +
+ /> +
+ +
 
Flowtable support
Enable Flowtable + /> + Enable flowtable support
+ Enables infrastructure for caching flows as a means of accelerating L3 and L2 lookups + as well as providing stateful load balancing when used with RADIX_MPATH.
+
+ + + + + + +
 " />
+ +
+ +
+ + + + + + + + + - - - + \ No newline at end of file diff --git a/usr/local/www/system_advanced_notifications.php b/usr/local/www/system_advanced_notifications.php index 2ead28d17..29ec969ac 100644 --- a/usr/local/www/system_advanced_notifications.php +++ b/usr/local/www/system_advanced_notifications.php @@ -165,189 +165,206 @@ include("head.inc"); ?> - - -
- -
- - - - - - - -
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- checked="checked" />
- -
- ' />
- -
- ' />
- -
- ' />
- -
- ' />
- -
-   - - -
-
 
- checked="checked" />
- -
- ' />
- -
- ' />
- -
- />Enable SMTP over SSL/TLS
- />Enable STARTTLS
-
- ' />
- -
- ' />
- -
- ' />
- -
- ' />
- -
-   - - -
-
 
- /> - -
- -
 
-   - - -
-
-
-
+ + + + +
+
+ +
+ +
+ +
+ +
+ + + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ checked="checked" />
+ +
+ ' />
+ +
+ ' />
+ +
+ ' />
+ +
+ ' />
+ +
+   + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ checked="checked" />
+ +
+ ' />
+ +
+ ' />
+ +
+ />Enable SMTP over SSL/TLS
+ />Enable STARTTLS
+
+ ' />
+ +
+ ' />
+ +
+ ' />
+ +
+ ' />
+ +
+   + + +
+
 
+ + + + + + + + + + + + + + + + + + + + + + +
+ /> + +
+ +
 
+   + + +
+ +
+ +
+
+
+
+
+
+ - - - + + + diff --git a/usr/local/www/system_advanced_sysctl.php b/usr/local/www/system_advanced_sysctl.php index 7dcf3dfcf..214c19056 100644 --- a/usr/local/www/system_advanced_sysctl.php +++ b/usr/local/www/system_advanced_sysctl.php @@ -130,147 +130,142 @@ include("head.inc"); ?> - + -
- -
- - - - - - - - - - - - - -
- -
-
- - -   - - -
-
-
- - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
- - - - - ')"> - - -
-
- - - - - -
- - - -
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
  - " /> - " onclick="window.location.href=''" /> - - - -
-
-
-
- - - + + + +
+
+ +
+ +
+ +
+ +
+ + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +
+ + + + + ')" class="btn btn-default"> + + +
+
+ + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
  + " /> + " onclick="window.location.href=''" /> + + + + +
+
+ + +
+ +
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/system_advanced_tabs.php b/usr/local/www/system_advanced_tabs.php new file mode 100644 index 000000000..665f5212e --- /dev/null +++ b/usr/local/www/system_advanced_tabs.php @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/usr/local/www/system_camanager.php b/usr/local/www/system_camanager.php index 57057e127..7ddb99727 100644 --- a/usr/local/www/system_camanager.php +++ b/usr/local/www/system_camanager.php @@ -304,11 +304,12 @@ if ($_POST) { include("head.inc"); ?> -"> +"> + + - - - - - - - - -
- -
-
+ + +
+
+ +
+ + + +
+ + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +

+ +
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
:   + +
:   + +   + +   + +
:   + +   + +   + +
:   + +   + +   + +
:   + +   + +   + +
:   + +   + +   + +
+
+ + + + + + +
  + " /> + + + +
+
+ + + + + + + + + + + + + + + + + " . gettext("self-signed") . ""; + else + $issuer_name = "" . gettext("external") . ""; + $subj = htmlspecialchars($subj); + $issuer = htmlspecialchars($issuer); + $certcount = 0; + + $issuer_ca = lookup_ca($ca['caref']); + if ($issuer_ca) + $issuer_name = $issuer_ca['descr']; + + // TODO : Need gray certificate icon + + if($ca['prv']) { + $caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png"; + $internal = "YES"; + + } else { + $caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png"; + $internal = "NO"; + } + foreach ($a_cert as $cert) + if ($cert['caref'] == $ca['refid']) + $certcount++; + foreach ($a_ca as $cert) + if ($cert['caref'] == $ca['refid']) + $certcount++; + ?> + + + + + + + + + + + + + + + + + +
+ + + + + +
+ CA + + +
+
   
+ + + + + + + + + + + +
 :
 :
+
+ + " alt="" width="17" height="17" border="0" /> + + + " alt="" width="17" height="17" border="0" /> + + + + " alt="" width="17" height="17" border="0" /> + + + ')"> + " alt="" width="17" height="17" border="0" /> + +
+ + " alt="" width="17" height="17" border="0" /> + +
+

+ +

+
+ + + - -
- - - - - - - - - - - - - - - - -
- -
- -
+
+
+
+
+
- - - - - - - - - - - - - - - - - - - - - - - -
- -
- -

- -
- -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - -
- -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
:   - -
:   - -   - -   - -
:   - -   - -   - -
:   - -   - -   - -
:   - -   - -   - -
:   - -   - -   - -
-
- - - - - - -
  - " /> - - - -
- - - - - - - - - - - - - - " . gettext("self-signed") . ""; - else - $issuer_name = "" . gettext("external") . ""; - $subj = htmlspecialchars($subj); - $issuer = htmlspecialchars($issuer); - $certcount = 0; - - $issuer_ca = lookup_ca($ca['caref']); - if ($issuer_ca) - $issuer_name = $issuer_ca['descr']; - - // TODO : Need gray certificate icon - - if($ca['prv']) { - $caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png"; - $internal = "YES"; - - } else { - $caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png"; - $internal = "NO"; - } - foreach ($a_cert as $cert) - if ($cert['caref'] == $ca['refid']) - $certcount++; - foreach ($a_ca as $cert) - if ($cert['caref'] == $ca['refid']) - $certcount++; - ?> - - - - - - - - - - - - - - - - -
- - - - - -
- CA - - -
-
   
- - - - - - - - - - - -
 :
 :
-
- - " alt="" width="17" height="17" border="0" /> - - - " alt="" width="17" height="17" border="0" /> - - - - " alt="" width="17" height="17" border="0" /> - - - ')"> - " alt="" width="17" height="17" border="0" /> - -
- - " alt="" width="17" height="17" border="0" /> - -
-

- -

-
- - - -
-
- - - + \ No newline at end of file diff --git a/usr/local/www/system_certmanager.php b/usr/local/www/system_certmanager.php index 0772ae69c..e7ecb66e5 100644 --- a/usr/local/www/system_certmanager.php +++ b/usr/local/www/system_certmanager.php @@ -468,7 +468,7 @@ if ($_POST) { include("head.inc"); ?> -"> +"> - - - - - - +
- -
-
+ + +
+
+ +
+ +
+ + + +
-
- + +
@@ -624,40 +619,41 @@ function internalca_change() {
- - - - - - - - - - - - - - - - +
- -
- -
- -
- -
+ + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ +
- - - - - - - - +
+ + + + + + + @@ -849,170 +845,173 @@ function internalca_change() {
- - - - - - - - - - - - - - - - - - - +
- - bits -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
:   - -
:   - -   - ex: -   - -
:   - -   - ex: -   - -
:   - -   - ex: -   - -
:   - -   - ex: -   - -
:   - -   - ex: -   - -
-
+ + + + + + + + + + + + + + + + + + +
+ + bits +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
:   + +
:   + +   + ex: +   + +
:   + +   + ex: +   + +
:   + +   + ex: +   + +
:   + +   + ex: +   + +
:   + +   + ex: +   + +
+
- - - - - - - - - - - +
- - - - -
+ + + + + + + + + + +
+ + + + +
- +
  - " /> + " /> @@ -1024,7 +1023,7 @@ function internalca_change() { - +
> - -
@@ -1065,7 +1064,7 @@ function internalca_change() { "response subject verification. "); ?>
- " /> + " /> @@ -1077,14 +1076,17 @@ function internalca_change() { - - - - - - - - +
+ + + + + + + + + + '; ?> - -
- CA + @@ -1141,7 +1142,7 @@ function internalca_change() {    
- +
@@ -1178,37 +1179,47 @@ function internalca_change() { - + @@ -1216,6 +1227,7 @@ function internalca_change() { +
  : - - " alt="" width="17" height="17" border="0" /> - - - " alt="" width="17" height="17" border="0" /> - - - " alt="" width="17" height="17" border="0" /> - - - ')"> - " alt="" width="17" height="17" border="0" /> - - - -   - - " alt="" width="17" height="17" border="0" /> - - + + + + + + + + + + + + +
+ "> + + + + "> + + + + "> + + + + ')" title=""> + + + + "> + + +
- - " alt="" width="17" height="17" border="0" /> + " class="btn btn-primary"> +
 
@@ -1224,7 +1236,7 @@ function internalca_change() {
- + - - + \ No newline at end of file diff --git a/usr/local/www/system_crlmanager.php b/usr/local/www/system_crlmanager.php index 35794f661..2eb38a5f1 100644 --- a/usr/local/www/system_crlmanager.php +++ b/usr/local/www/system_crlmanager.php @@ -249,411 +249,405 @@ if ($_POST) { include("head.inc"); ?> -"> - - -function method_change() { - method = document.iform.method.value; - - switch (method) { - case "internal": - document.getElementById("existing").style.display="none"; - document.getElementById("internal").style.display=""; - break; - case "existing": - document.getElementById("existing").style.display=""; - document.getElementById("internal").style.display="none"; - break; - } -} - -//]]> - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
+ +
+
+ +
+ +
+ + + +
- - - - - - - - - - - - - - - - -
- -
- -
- -
- - - - - - - - - - - - - -
- -
- -
- - - - - - - - - - - - - - - - -
- -
- -
- -
- -
- - - - - - -
  - " /> - - - -
- +
+ + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ +
+ + + + + + +
  + " /> + + + +
+
- -
- - - - - - - - - - - - - - - - - -
- -
- -
-
  - " /> - - -
-
+ + +
+ + + + + + + + + + + + + + + + + +
+ +
+ +
+
  + " /> + + +
+
- -
- - - - - - - - - - - - - - - - - - - - $cert): - $name = htmlspecialchars($cert['descr']); - ?> - - - - - - - - - - - - - - - - - - - -
-      -  
- - - - - - - ')"> - " alt="" width="17" height="17" border="0" /> - -
-      -  
- : - : - - - - - " /> -  
-
+ + +
+ + + + + + + + + + + + + + + + + + + + $cert): + $name = htmlspecialchars($cert['descr']); + ?> + + + + + + + + + + + + + + + + + + + +
+      +  
+ + + + + + + " onclick="return confirm('')" class="btn btn-default"> + + +
+      +  
+ : + : + + + + + " /> +  
+
+ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-

- -

-
+

+ +

+
+ + + + + +
+ CA + + +
+
+ + + " alt="" width="17" height="17" border="0" /> + + + + " alt="" width="17" height="17" border="0" /> + + +
+ + "> + + + + "> + + + + "> + + + + ')" class="btn btn-default"> + "> + + +
 
- $i = 0; - foreach($a_ca as $ca): - $name = htmlspecialchars($ca['descr']); + - if($ca['prv']) { - $cainternal = "YES"; - } else - $cainternal = "NO"; - ?> -
- - - - - -
- CA - - -
-
- - - " alt="" width="17" height="17" border="0" /> - - - - " alt="" width="17" height="17" border="0" /> - - -
- - " alt="" width="17" height="17" border="0" /> - - - - " alt="" width="17" height="17" border="0" /> - - - - " alt="" width="17" height="17" border="0" /> - - - - ')"> - " alt="" width="17" height="17" border="0" /> - - -
 
+ + + + + - - - -
- - - + diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index 37fdf9309..677595aac 100644 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -202,115 +202,131 @@ $pgtitle = array(gettext("System"),gettext("Firmware")); include("head.inc"); ?> - -
- - - - - - "") print_info_box($fwinfo); ?> - -" . $sig_warning . "
" . gettext("This means that the image you uploaded " . - "is not an official/supported image and may lead to unexpected behavior or security " . - "compromises. Only install images that come from sources that you trust, and make sure ". - "that the image has not been tampered with.") . "

". - gettext("Do you want to install this image anyway (on your own risk)?"); -print_info_box($sig_warning); -if(stristr($_FILES['ulfile']['name'],"nanobsd")) - echo "\n"; -?> - " /> - " /> - - - - - - - - -
- -
-
- - - - - - - - - - - - - - - -
  - - - " /> -
- -
- - " /> -
  - - - -
- - -
- - " /> - - - - -
  - - - - -
-
-
- -
- -
-
-
+ - - -
- - + + + +
+
+ +
+ + + "") print_info_box($fwinfo); ?> + +
+ + + +
+ +
+ + + + + + + " . $sig_warning . "
" . gettext("This means that the image you uploaded " . + "is not an official/supported image and may lead to unexpected behavior or security " . + "compromises. Only install images that come from sources that you trust, and make sure ". + "that the image has not been tampered with.") . "

". + gettext("Do you want to install this image anyway (on your own risk)?"); + + print_info_box($sig_warning); + + if(stristr($_FILES['ulfile']['name'],"nanobsd")) + echo "\n"; + ?> + + " /> + " /> + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  + + + " /> +
+ +
+ + " /> +
  + + + +
+ + +
+ + " /> + + + + +
  + + + + + +
+
+
+ +
+ + +
+ + + + +
+ +
+
+
+
+
+ diff --git a/usr/local/www/system_firmware_auto.php b/usr/local/www/system_firmware_auto.php index 47e9761fd..f133c2eef 100755 --- a/usr/local/www/system_firmware_auto.php +++ b/usr/local/www/system_firmware_auto.php @@ -63,77 +63,77 @@ include("head.inc"); ?> - - - - - + -
- - - - - - - -
- -
- - - - -
- - - - -
- + +
+
+ +
+ +
+ + + +
-
- - - - -
- - -
- -
-
-
- - - -
- - -
-
-
-
+
- + + + + +
+ + + + +
+ + + + + + + +
+ + +
+ +
+
+
+ + + +
+ + +
+
+
+ + + + + + + + + - - - diff --git a/usr/local/www/system_firmware_check.php b/usr/local/www/system_firmware_check.php index d09bda60f..58249cae6 100644 --- a/usr/local/www/system_firmware_check.php +++ b/usr/local/www/system_firmware_check.php @@ -51,67 +51,80 @@ include("head.inc"); ?> - + -
- - - - - - - -
- -
- - - - - - - -
- - + +
+
+ +
+ +
+ + + +
+ + + +
+ +
+ + + +
+ + + + + + + + +
+ + +
+ +
+
+
+ + + + + + + " /> +
+ + + + -
- - -
- -
-
-
- - - - - " /> -
-
+ + + + + + +

@@ -192,8 +205,7 @@ $txt .= " " . gettext("New version") .": ". htmlspecialchars($remote_version $txt .= " " . gettext("Update source") .": ". $updater_url . "\\n"; update_output_window($txt); ?> +

- - - - + + diff --git a/usr/local/www/system_firmware_restorefullbackup.php b/usr/local/www/system_firmware_restorefullbackup.php index 7d635bf3f..9838bc29e 100644 --- a/usr/local/www/system_firmware_restorefullbackup.php +++ b/usr/local/www/system_firmware_restorefullbackup.php @@ -106,90 +106,101 @@ include("head.inc"); ?> - + - - -

-

- -" . gettext("The firewall is now rebooting."));?>
-
- -
- - - - - - - -
- -
-
- - - - - - - -"; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - } - if($counter == 0) { - echo ""; - echo ""; - echo ""; - } -?> - - - -
"; - echo " $arf"; - echo ""; - echo date ("F d Y H:i:s", filemtime($arf)); - echo ""; - echo format_bytes($size); - echo ""; - echo ""; - echo gettext("Delete"); - echo " | "; - echo ""; - echo gettext("Download"); - echo ""; - echo "
"; - echo gettext("Could not locate any previous backups."); - echo "
-  
- -
- " /> -
-
-
-
+ + +
+
+ +
+ +
+ + + +
+ +

+ +

+ + " . gettext("The firewall is now rebooting."));?>
+
+ + + +
+ + + + + + + + + + + + + + "; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + if($counter == 0) { + echo ""; + echo ""; + echo ""; + } + ?> + + + + + + +
"; + echo " $arf"; + echo ""; + echo date ("F d Y H:i:s", filemtime($arf)); + echo ""; + echo format_bytes($size); + echo ""; + echo ""; + echo gettext("Delete"); + echo " | "; + echo ""; + echo gettext("Download"); + echo ""; + echo "
"; + echo gettext("Could not locate any previous backups."); + echo "
+  
+ +
+ " /> +
+
+ +
+
+
+
+
- - - - + diff --git a/usr/local/www/system_firmware_settings.php b/usr/local/www/system_firmware_settings.php index c79d959d5..5d08344b0 100644 --- a/usr/local/www/system_firmware_settings.php +++ b/usr/local/www/system_firmware_settings.php @@ -101,173 +101,205 @@ function enable_altfirmwareurl(enable_over) { //]]> - - + - -
- - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

-
- />
- - -
- - -
- -
-
 
- /> -
- -
- /> -
- -
 
- /> -
- -
- - -
- -
- - -
- - -
- - -
- - -
- -
  - " /> -
-
- - - + +
+
+ +
+ +
+ + + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + +
+ +

+
+ />
+ + +
+ + +
+ +
+
+ + + + + + + + + + + + + + + + + + + +
+ /> +
+ +
+ /> +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ /> +
+ +
+ + +
+ +
+ + +
+ + +
+ + +
+ + +
+ +
+ + + + + + + +
  + " /> +
+ +
+ +
+ +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/usr/local/www/system_firmware_tabs.php b/usr/local/www/system_firmware_tabs.php new file mode 100644 index 000000000..5b3ea6c52 --- /dev/null +++ b/usr/local/www/system_firmware_tabs.php @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/usr/local/www/system_gateways.php b/usr/local/www/system_gateways.php index 58de70001..edc92c070 100644 --- a/usr/local/www/system_gateways.php +++ b/usr/local/www/system_gateways.php @@ -185,220 +185,231 @@ include("head.inc"); ?> - - - -
- - -

-" . gettext("You must apply the changes in order for them to take effect."));?>

- - - - - - - - -
- -
-
- - - - - - - - - - - -"; - $i = 0; - foreach ($a_gateways as $gateway): - if (isset($gateway['disabled']) || isset($gateway['inactive'])) { - $textss = ""; - $iconfn = "pass_d"; - } else { - $textss = ""; - $iconfn = "pass"; - } -?> - - - - - - - - - - - - - - - - -
   - - - - - -
- - add - -
-
- - - -   - - - - " alt="icon" /> - - - " alt="icon" /> - - - " alt="icon" /> - - -(default)"; - echo $textse; -?> - - - - - - - - - - - - - - - - - - - - - - - - -
- - edit - - - ')"> - delete - -
- - add - -
-
- - - - - -
- - " border="0" alt="delete" /> - - " - onclick="return confirm('')" /> - - - - edit - -
-
-
-
-
- - - + + + + + + +
+
+ +
+ + " . gettext("You must apply the changes in order for them to take effect.")); + ?> + +
+ + + +
+ +
+ +
+ + + + + + + + + + + + + + + + "; + $i = 0; + foreach ($a_gateways as $gateway): + if (isset($gateway['disabled']) || isset($gateway['inactive'])) { + $textss = ""; + $iconfn = "pass_d"; + } else { + $textss = ""; + $iconfn = "pass"; + } + ?> + + + + + + + + + + + + + + + + + + +
  + + + + + +
+ + add + +
+
+ + + + +   + + + + " alt="icon" /> + + + " alt="icon" /> + + + " alt="icon" /> + + + (default)"; + echo $textse; + ?> + + + + + + + + + + + + + + + + + + + + + + + + +
+ + edit + + + ')"> + delete + +
+ + add + +
+
+ + + + + +
+ + " border="0" alt="delete" /> + + " + onclick="return confirm('')" /> + + + + edit + +
+
+ +
+ +
+
+
+
+
+
+ + \ No newline at end of file diff --git a/usr/local/www/system_gateways_tabs.php b/usr/local/www/system_gateways_tabs.php new file mode 100644 index 000000000..e69de29bb diff --git a/usr/local/www/system_hasync.php b/usr/local/www/system_hasync.php index 17eff6255..d0ba41bb2 100755 --- a/usr/local/www/system_hasync.php +++ b/usr/local/www/system_hasync.php @@ -101,259 +101,284 @@ $pgtitle = array(gettext("System"),gettext("High Availability Sync")); $shortcut_section = "carp"; include("head.inc"); ?> - + + -
- - - - -
-
+ + +
+
+ +
+ +
+
+ +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
State Synchronization Settings (pfsync)
Synchronize States - /> -
- pfsync transfers state insertion, update, and deletion messages between firewalls. Each firewall sends these messages out via multicast on a specified interface, using the PFSYNC protocol (IP Protocol 240). It also listens on that interface for similar messages from other firewalls, and imports them into the local state table.

This setting should be enabled on all members of a failover group.

NOTE: Clicking save will force a configuration sync if it is enabled! (see Configuration Synchronization Settings below)

-
Synchronize Interface - -
- If Synchronize States is enabled, it will utilize this interface for communication.
- NOTE: We recommend setting this to a interface other than LAN! A dedicated interface works the best.
- NOTE: You must define a IP on each machine participating in this failover group.
- NOTE: You must have an IP assigned to the interface on any participating sync nodes. -
pfsync Synchronize Peer IP - ' /> -
- Setting this option will force pfsync to synchronize its state table to this IP address. The default is directed multicast. -
 
Configuration Synchronization Settings (XMLRPC Sync)
Synchronize Config to IP - ' /> -
- Enter the IP address of the firewall to which the selected configuration sections should be synchronized.
-
- NOTE: XMLRPC sync is currently only supported over connections using the same protocol and port as this system - make sure the remote system's port and protocol are set accordingly!
-
- NOTE: Do not use the Synchronize Config to IP and password option on backup cluster members! -
Remote System Username - ' /> -
- Enter the webConfigurator username of the system entered above for synchronizing your configuration.
-
- NOTE: Do not use the Synchronize Config to IP and username option on backup cluster members! -
Remote System Password - ' /> -
- Enter the webConfigurator password of the system entered above for synchronizing your configuration.
-
- NOTE: Do not use the Synchronize Config to IP and password option on backup cluster members! -
Synchronize Users and Groups - /> -
- When this option is enabled, this system will automatically sync the users and groups over to the other HA host when changes are made. -
Synchronize Auth Servers - /> -
- When this option is enabled, this system will automatically sync the authentication servers (e.g. LDAP, RADIUS) over to the other HA host when changes are made. -
Synchronize Certificates - /> -
- When this option is enabled, this system will automatically sync the Certificate Authorities, Certificates, and Certificate Revocation Lists over to the other HA host when changes are made. -
Synchronize rules - /> -
- When this option is enabled, this system will automatically sync the firewall rules to the other HA host when changes are made. -
Synchronize Firewall Schedules - /> -
- When this option is enabled, this system will automatically sync the firewall schedules to the other HA host when changes are made. -
Synchronize aliases - /> -
- When this option is enabled, this system will automatically sync the aliases over to the other HA host when changes are made. -
Synchronize NAT - /> -
- When this option is enabled, this system will automatically sync the NAT rules over to the other HA host when changes are made. -
Synchronize IPsec - /> -
- When this option is enabled, this system will automatically sync the IPsec configuration to the other HA host when changes are made. -
Synchronize OpenVPN - /> -
- When this option is enabled, this system will automatically sync the OpenVPN configuration to the other HA host when changes are made. Using this option implies "Synchronize Certificates" as they are required for OpenVPN. -
Synchronize DHCPD - /> -
- When this option is enabled, this system will automatically sync the DHCP Server settings over to the other HA host when changes are made. This only applies to DHCP for IPv4. -
Synchronize Wake on LAN - /> -
- When this option is enabled, this system will automatically sync the WoL configuration to the other HA host when changes are made. -
Synchronize Static Routes - /> -
- When this option is enabled, this system will automatically sync the Static Route configuration to the other HA host when changes are made. -
Synchronize Load Balancer - /> -
- When this option is enabled, this system will automatically sync the Load Balancer configuration to the other HA host when changes are made. -
Synchronize Virtual IPs - /> -
- When this option is enabled, this system will automatically sync the CARP Virtual IPs to the other HA host when changes are made. -
Synchronize traffic shaper(queues) - /> -
- When this option is enabled, this system will automatically sync the traffic shaper configuration for queues to the other HA host when changes are made. -
Synchronize traffic shaper(limiter) - /> -
- When this option is enabled, this system will automatically sync the traffic shaper configuration for limiters to the other HA host when changes are made. -
Synchronize traffic shaper(layer7) - /> -
- When this option is enabled, this system will automatically sync the traffic shaper configuration for layer7 to the other HA host when changes are made. -
Synchronize DNS Forwarder - /> -
- When this option is enabled, this system will automatically sync the DNS Forwarder configuration to the other HA host when changes are made. -
Synchronize Captive Portal - /> -
- When this option is enabled, this system will automatically sync the Captive Portal configuration to the other HA host when changes are made. -
 
  - - - " onclick="window.location.href=''" /> -
- -
-
-
- - - +
+ + + + + + + + + + + + + + + + + + + + + + + + +
State Synchronization Settings (pfsync)
Synchronize States + /> +
+ pfsync transfers state insertion, update, and deletion messages between firewalls. Each firewall sends these messages out via multicast on a specified interface, using the PFSYNC protocol (IP Protocol 240). It also listens on that interface for similar messages from other firewalls, and imports them into the local state table.

This setting should be enabled on all members of a failover group.

NOTE: Clicking save will force a configuration sync if it is enabled! (see Configuration Synchronization Settings below)

+
Synchronize Interface + +
+ If Synchronize States is enabled, it will utilize this interface for communication.
+ NOTE: We recommend setting this to a interface other than LAN! A dedicated interface works the best.
+ NOTE: You must define a IP on each machine participating in this failover group.
+ NOTE: You must have an IP assigned to the interface on any participating sync nodes. +
pfsync Synchronize Peer IP + ' /> +
+ Setting this option will force pfsync to synchronize its state table to this IP address. The default is directed multicast. +
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Configuration Synchronization Settings (XMLRPC Sync)
Synchronize Config to IP + ' /> +
+ Enter the IP address of the firewall to which the selected configuration sections should be synchronized.
+
+ NOTE: XMLRPC sync is currently only supported over connections using the same protocol and port as this system - make sure the remote system's port and protocol are set accordingly!
+
+ NOTE: Do not use the Synchronize Config to IP and password option on backup cluster members! +
Remote System Username + ' /> +
+ Enter the webConfigurator username of the system entered above for synchronizing your configuration.
+
+ NOTE: Do not use the Synchronize Config to IP and username option on backup cluster members! +
Remote System Password + ' /> +
+ Enter the webConfigurator password of the system entered above for synchronizing your configuration.
+
+ NOTE: Do not use the Synchronize Config to IP and password option on backup cluster members! +
Synchronize Users and Groups + /> +
+ When this option is enabled, this system will automatically sync the users and groups over to the other HA host when changes are made. +
Synchronize Auth Servers + /> +
+ When this option is enabled, this system will automatically sync the authentication servers (e.g. LDAP, RADIUS) over to the other HA host when changes are made. +
Synchronize Certificates + /> +
+ When this option is enabled, this system will automatically sync the Certificate Authorities, Certificates, and Certificate Revocation Lists over to the other HA host when changes are made. +
Synchronize rules + /> +
+ When this option is enabled, this system will automatically sync the firewall rules to the other HA host when changes are made. +
Synchronize Firewall Schedules + /> +
+ When this option is enabled, this system will automatically sync the firewall schedules to the other HA host when changes are made. +
Synchronize aliases + /> +
+ When this option is enabled, this system will automatically sync the aliases over to the other HA host when changes are made. +
Synchronize NAT + /> +
+ When this option is enabled, this system will automatically sync the NAT rules over to the other HA host when changes are made. +
Synchronize IPsec + /> +
+ When this option is enabled, this system will automatically sync the IPsec configuration to the other HA host when changes are made. +
Synchronize OpenVPN + /> +
+ When this option is enabled, this system will automatically sync the OpenVPN configuration to the other HA host when changes are made. Using this option implies "Synchronize Certificates" as they are required for OpenVPN. +
Synchronize DHCPD + /> +
+ When this option is enabled, this system will automatically sync the DHCP Server settings over to the other HA host when changes are made. This only applies to DHCP for IPv4. +
Synchronize Wake on LAN + /> +
+ When this option is enabled, this system will automatically sync the WoL configuration to the other HA host when changes are made. +
Synchronize Static Routes + /> +
+ When this option is enabled, this system will automatically sync the Static Route configuration to the other HA host when changes are made. +
Synchronize Load Balancer + /> +
+ When this option is enabled, this system will automatically sync the Load Balancer configuration to the other HA host when changes are made. +
Synchronize Virtual IPs + /> +
+ When this option is enabled, this system will automatically sync the CARP Virtual IPs to the other HA host when changes are made. +
Synchronize traffic shaper(queues) + /> +
+ When this option is enabled, this system will automatically sync the traffic shaper configuration for queues to the other HA host when changes are made. +
Synchronize traffic shaper(limiter) + /> +
+ When this option is enabled, this system will automatically sync the traffic shaper configuration for limiters to the other HA host when changes are made. +
Synchronize traffic shaper(layer7) + /> +
+ When this option is enabled, this system will automatically sync the traffic shaper configuration for layer7 to the other HA host when changes are made. +
Synchronize DNS Forwarder + /> +
+ When this option is enabled, this system will automatically sync the DNS Forwarder configuration to the other HA host when changes are made. +
Synchronize Captive Portal + /> +
+ When this option is enabled, this system will automatically sync the Captive Portal configuration to the other HA host when changes are made. +
 
  + + + " onclick="window.location.href=''" /> +
+
+ + + + + + + + + + + + + diff --git a/usr/local/www/system_manager_tabs.php b/usr/local/www/system_manager_tabs.php new file mode 100644 index 000000000..34f719e7b --- /dev/null +++ b/usr/local/www/system_manager_tabs.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/usr/local/www/system_tabs.php b/usr/local/www/system_tabs.php new file mode 100644 index 000000000..21b1ee841 --- /dev/null +++ b/usr/local/www/system_tabs.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.eot b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.eot new file mode 100644 index 000000000..fd6630a61 Binary files /dev/null and b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.eot differ diff --git a/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.otf b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.otf new file mode 100755 index 000000000..597072f58 Binary files /dev/null and b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.otf differ diff --git a/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.svg b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.svg new file mode 100644 index 000000000..31d477b8f --- /dev/null +++ b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.svg @@ -0,0 +1,5882 @@ + + + + +Created by FontXChange 20110222 at Wed Oct 15 12:25:40 2014 + By Nick Noordijk +Copyright 2010, 2012 Adobe Systems Incorporated. All Rights Reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.woff b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.woff new file mode 100644 index 000000000..2fbc3f8ec Binary files /dev/null and b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.woff differ diff --git a/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Regular/SourceSansPro-Regular.eot b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Regular/SourceSansPro-Regular.eot new file mode 100644 index 000000000..0828b5a41 Binary files /dev/null and b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Regular/SourceSansPro-Regular.eot differ diff --git a/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Regular/SourceSansPro-Regular.otf b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Regular/SourceSansPro-Regular.otf new file mode 100755 index 000000000..38941ae72 Binary files /dev/null and b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Regular/SourceSansPro-Regular.otf differ diff --git a/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Regular/SourceSansPro-Regular.svg b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Regular/SourceSansPro-Regular.svg new file mode 100644 index 000000000..c894564e8 --- /dev/null +++ b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Regular/SourceSansPro-Regular.svg @@ -0,0 +1,6184 @@ + + + + +Created by FontXChange 20110222 at Wed Oct 15 12:25:40 2014 + By Nick Noordijk +Copyright 2010, 2012 Adobe Systems Incorporated. All Rights Reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Regular/SourceSansPro-Regular.woff b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Regular/SourceSansPro-Regular.woff new file mode 100644 index 000000000..9ae0af8b6 Binary files /dev/null and b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Regular/SourceSansPro-Regular.woff differ diff --git a/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.eot b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.eot new file mode 100644 index 000000000..18dd23d83 Binary files /dev/null and b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.eot differ diff --git a/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.otf b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.otf new file mode 100755 index 000000000..fd41bcf1c Binary files /dev/null and b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.otf differ diff --git a/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.svg b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.svg new file mode 100644 index 000000000..e342d8fe9 --- /dev/null +++ b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.svg @@ -0,0 +1,6126 @@ + + + + +Created by FontXChange 20110222 at Wed Oct 15 12:25:40 2014 + By Nick Noordijk +Copyright 2010, 2012 Adobe Systems Incorporated. All Rights Reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.woff b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.woff new file mode 100644 index 000000000..ae0fecd9c Binary files /dev/null and b/usr/local/www/themes/opnsense/assets/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.woff differ diff --git a/usr/local/www/themes/opnsense/assets/fonts/bootstrap/glyphicons-halflings-regular.eot b/usr/local/www/themes/opnsense/assets/fonts/bootstrap/glyphicons-halflings-regular.eot new file mode 100755 index 000000000..4a4ca865d Binary files /dev/null and b/usr/local/www/themes/opnsense/assets/fonts/bootstrap/glyphicons-halflings-regular.eot differ diff --git a/usr/local/www/themes/opnsense/assets/fonts/bootstrap/glyphicons-halflings-regular.svg b/usr/local/www/themes/opnsense/assets/fonts/bootstrap/glyphicons-halflings-regular.svg new file mode 100755 index 000000000..e3e2dc739 --- /dev/null +++ b/usr/local/www/themes/opnsense/assets/fonts/bootstrap/glyphicons-halflings-regular.svg @@ -0,0 +1,229 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/usr/local/www/themes/opnsense/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf b/usr/local/www/themes/opnsense/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf new file mode 100755 index 000000000..67fa00bf8 Binary files /dev/null and b/usr/local/www/themes/opnsense/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf differ diff --git a/usr/local/www/themes/opnsense/assets/fonts/bootstrap/glyphicons-halflings-regular.woff b/usr/local/www/themes/opnsense/assets/fonts/bootstrap/glyphicons-halflings-regular.woff new file mode 100755 index 000000000..8c54182aa Binary files /dev/null and b/usr/local/www/themes/opnsense/assets/fonts/bootstrap/glyphicons-halflings-regular.woff differ diff --git a/usr/local/www/themes/opnsense/assets/javascripts/bootstrap-sprockets.js b/usr/local/www/themes/opnsense/assets/javascripts/bootstrap-sprockets.js new file mode 100755 index 000000000..1abde496e --- /dev/null +++ b/usr/local/www/themes/opnsense/assets/javascripts/bootstrap-sprockets.js @@ -0,0 +1,12 @@ +//= require ./bootstrap/affix +//= require ./bootstrap/alert +//= require ./bootstrap/button +//= require ./bootstrap/carousel +//= require ./bootstrap/collapse +//= require ./bootstrap/dropdown +//= require ./bootstrap/tab +//= require ./bootstrap/transition +//= require ./bootstrap/scrollspy +//= require ./bootstrap/modal +//= require ./bootstrap/tooltip +//= require ./bootstrap/popover diff --git a/usr/local/www/themes/opnsense/assets/javascripts/bootstrap.js b/usr/local/www/themes/opnsense/assets/javascripts/bootstrap.js new file mode 100755 index 000000000..30409f488 --- /dev/null +++ b/usr/local/www/themes/opnsense/assets/javascripts/bootstrap.js @@ -0,0 +1,2107 @@ +/* ======================================================================== + * Bootstrap: affix.js v3.2.0 + * http://getbootstrap.com/javascript/#affix + * ======================================================================== + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // AFFIX CLASS DEFINITION + // ====================== + + var Affix = function (element, options) { + this.options = $.extend({}, Affix.DEFAULTS, options) + + this.$target = $(this.options.target) + .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this)) + .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this)) + + this.$element = $(element) + this.affixed = + this.unpin = + this.pinnedOffset = null + + this.checkPosition() + } + + Affix.VERSION = '3.2.0' + + Affix.RESET = 'affix affix-top affix-bottom' + + Affix.DEFAULTS = { + offset: 0, + target: window + } + + Affix.prototype.getPinnedOffset = function () { + if (this.pinnedOffset) return this.pinnedOffset + this.$element.removeClass(Affix.RESET).addClass('affix') + var scrollTop = this.$target.scrollTop() + var position = this.$element.offset() + return (this.pinnedOffset = position.top - scrollTop) + } + + Affix.prototype.checkPositionWithEventLoop = function () { + setTimeout($.proxy(this.checkPosition, this), 1) + } + + Affix.prototype.checkPosition = function () { + if (!this.$element.is(':visible')) return + + var scrollHeight = $(document).height() + var scrollTop = this.$target.scrollTop() + var position = this.$element.offset() + var offset = this.options.offset + var offsetTop = offset.top + var offsetBottom = offset.bottom + + if (typeof offset != 'object') offsetBottom = offsetTop = offset + if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element) + if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element) + + var affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ? false : + offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? 'bottom' : + offsetTop != null && (scrollTop <= offsetTop) ? 'top' : false + + if (this.affixed === affix) return + if (this.unpin != null) this.$element.css('top', '') + + var affixType = 'affix' + (affix ? '-' + affix : '') + var e = $.Event(affixType + '.bs.affix') + + this.$element.trigger(e) + + if (e.isDefaultPrevented()) return + + this.affixed = affix + this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null + + this.$element + .removeClass(Affix.RESET) + .addClass(affixType) + .trigger($.Event(affixType.replace('affix', 'affixed'))) + + if (affix == 'bottom') { + this.$element.offset({ + top: scrollHeight - this.$element.height() - offsetBottom + }) + } + } + + + // AFFIX PLUGIN DEFINITION + // ======================= + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.affix') + var options = typeof option == 'object' && option + + if (!data) $this.data('bs.affix', (data = new Affix(this, options))) + if (typeof option == 'string') data[option]() + }) + } + + var old = $.fn.affix + + $.fn.affix = Plugin + $.fn.affix.Constructor = Affix + + + // AFFIX NO CONFLICT + // ================= + + $.fn.affix.noConflict = function () { + $.fn.affix = old + return this + } + + + // AFFIX DATA-API + // ============== + + $(window).on('load', function () { + $('[data-spy="affix"]').each(function () { + var $spy = $(this) + var data = $spy.data() + + data.offset = data.offset || {} + + if (data.offsetBottom) data.offset.bottom = data.offsetBottom + if (data.offsetTop) data.offset.top = data.offsetTop + + Plugin.call($spy, data) + }) + }) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: alert.js v3.2.0 + * http://getbootstrap.com/javascript/#alerts + * ======================================================================== + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // ALERT CLASS DEFINITION + // ====================== + + var dismiss = '[data-dismiss="alert"]' + var Alert = function (el) { + $(el).on('click', dismiss, this.close) + } + + Alert.VERSION = '3.2.0' + + Alert.prototype.close = function (e) { + var $this = $(this) + var selector = $this.attr('data-target') + + if (!selector) { + selector = $this.attr('href') + selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 + } + + var $parent = $(selector) + + if (e) e.preventDefault() + + if (!$parent.length) { + $parent = $this.hasClass('alert') ? $this : $this.parent() + } + + $parent.trigger(e = $.Event('close.bs.alert')) + + if (e.isDefaultPrevented()) return + + $parent.removeClass('in') + + function removeElement() { + // detach from parent, fire event then clean up data + $parent.detach().trigger('closed.bs.alert').remove() + } + + $.support.transition && $parent.hasClass('fade') ? + $parent + .one('bsTransitionEnd', removeElement) + .emulateTransitionEnd(150) : + removeElement() + } + + + // ALERT PLUGIN DEFINITION + // ======================= + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.alert') + + if (!data) $this.data('bs.alert', (data = new Alert(this))) + if (typeof option == 'string') data[option].call($this) + }) + } + + var old = $.fn.alert + + $.fn.alert = Plugin + $.fn.alert.Constructor = Alert + + + // ALERT NO CONFLICT + // ================= + + $.fn.alert.noConflict = function () { + $.fn.alert = old + return this + } + + + // ALERT DATA-API + // ============== + + $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: button.js v3.2.0 + * http://getbootstrap.com/javascript/#buttons + * ======================================================================== + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // BUTTON PUBLIC CLASS DEFINITION + // ============================== + + var Button = function (element, options) { + this.$element = $(element) + this.options = $.extend({}, Button.DEFAULTS, options) + this.isLoading = false + } + + Button.VERSION = '3.2.0' + + Button.DEFAULTS = { + loadingText: 'loading...' + } + + Button.prototype.setState = function (state) { + var d = 'disabled' + var $el = this.$element + var val = $el.is('input') ? 'val' : 'html' + var data = $el.data() + + state = state + 'Text' + + if (data.resetText == null) $el.data('resetText', $el[val]()) + + $el[val](data[state] == null ? this.options[state] : data[state]) + + // push to event loop to allow forms to submit + setTimeout($.proxy(function () { + if (state == 'loadingText') { + this.isLoading = true + $el.addClass(d).attr(d, d) + } else if (this.isLoading) { + this.isLoading = false + $el.removeClass(d).removeAttr(d) + } + }, this), 0) + } + + Button.prototype.toggle = function () { + var changed = true + var $parent = this.$element.closest('[data-toggle="buttons"]') + + if ($parent.length) { + var $input = this.$element.find('input') + if ($input.prop('type') == 'radio') { + if ($input.prop('checked') && this.$element.hasClass('active')) changed = false + else $parent.find('.active').removeClass('active') + } + if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change') + } + + if (changed) this.$element.toggleClass('active') + } + + + // BUTTON PLUGIN DEFINITION + // ======================== + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.button') + var options = typeof option == 'object' && option + + if (!data) $this.data('bs.button', (data = new Button(this, options))) + + if (option == 'toggle') data.toggle() + else if (option) data.setState(option) + }) + } + + var old = $.fn.button + + $.fn.button = Plugin + $.fn.button.Constructor = Button + + + // BUTTON NO CONFLICT + // ================== + + $.fn.button.noConflict = function () { + $.fn.button = old + return this + } + + + // BUTTON DATA-API + // =============== + + $(document).on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) { + var $btn = $(e.target) + if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') + Plugin.call($btn, 'toggle') + e.preventDefault() + }) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: carousel.js v3.2.0 + * http://getbootstrap.com/javascript/#carousel + * ======================================================================== + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // CAROUSEL CLASS DEFINITION + // ========================= + + var Carousel = function (element, options) { + this.$element = $(element).on('keydown.bs.carousel', $.proxy(this.keydown, this)) + this.$indicators = this.$element.find('.carousel-indicators') + this.options = options + this.paused = + this.sliding = + this.interval = + this.$active = + this.$items = null + + this.options.pause == 'hover' && this.$element + .on('mouseenter.bs.carousel', $.proxy(this.pause, this)) + .on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) + } + + Carousel.VERSION = '3.2.0' + + Carousel.DEFAULTS = { + interval: 5000, + pause: 'hover', + wrap: true + } + + Carousel.prototype.keydown = function (e) { + switch (e.which) { + case 37: this.prev(); break + case 39: this.next(); break + default: return + } + + e.preventDefault() + } + + Carousel.prototype.cycle = function (e) { + e || (this.paused = false) + + this.interval && clearInterval(this.interval) + + this.options.interval + && !this.paused + && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) + + return this + } + + Carousel.prototype.getItemIndex = function (item) { + this.$items = item.parent().children('.item') + return this.$items.index(item || this.$active) + } + + Carousel.prototype.to = function (pos) { + var that = this + var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active')) + + if (pos > (this.$items.length - 1) || pos < 0) return + + if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid" + if (activeIndex == pos) return this.pause().cycle() + + return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos])) + } + + Carousel.prototype.pause = function (e) { + e || (this.paused = true) + + if (this.$element.find('.next, .prev').length && $.support.transition) { + this.$element.trigger($.support.transition.end) + this.cycle(true) + } + + this.interval = clearInterval(this.interval) + + return this + } + + Carousel.prototype.next = function () { + if (this.sliding) return + return this.slide('next') + } + + Carousel.prototype.prev = function () { + if (this.sliding) return + return this.slide('prev') + } + + Carousel.prototype.slide = function (type, next) { + var $active = this.$element.find('.item.active') + var $next = next || $active[type]() + var isCycling = this.interval + var direction = type == 'next' ? 'left' : 'right' + var fallback = type == 'next' ? 'first' : 'last' + var that = this + + if (!$next.length) { + if (!this.options.wrap) return + $next = this.$element.find('.item')[fallback]() + } + + if ($next.hasClass('active')) return (this.sliding = false) + + var relatedTarget = $next[0] + var slideEvent = $.Event('slide.bs.carousel', { + relatedTarget: relatedTarget, + direction: direction + }) + this.$element.trigger(slideEvent) + if (slideEvent.isDefaultPrevented()) return + + this.sliding = true + + isCycling && this.pause() + + if (this.$indicators.length) { + this.$indicators.find('.active').removeClass('active') + var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)]) + $nextIndicator && $nextIndicator.addClass('active') + } + + var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid" + if ($.support.transition && this.$element.hasClass('slide')) { + $next.addClass(type) + $next[0].offsetWidth // force reflow + $active.addClass(direction) + $next.addClass(direction) + $active + .one('bsTransitionEnd', function () { + $next.removeClass([type, direction].join(' ')).addClass('active') + $active.removeClass(['active', direction].join(' ')) + that.sliding = false + setTimeout(function () { + that.$element.trigger(slidEvent) + }, 0) + }) + .emulateTransitionEnd($active.css('transition-duration').slice(0, -1) * 1000) + } else { + $active.removeClass('active') + $next.addClass('active') + this.sliding = false + this.$element.trigger(slidEvent) + } + + isCycling && this.cycle() + + return this + } + + + // CAROUSEL PLUGIN DEFINITION + // ========================== + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.carousel') + var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option) + var action = typeof option == 'string' ? option : options.slide + + if (!data) $this.data('bs.carousel', (data = new Carousel(this, options))) + if (typeof option == 'number') data.to(option) + else if (action) data[action]() + else if (options.interval) data.pause().cycle() + }) + } + + var old = $.fn.carousel + + $.fn.carousel = Plugin + $.fn.carousel.Constructor = Carousel + + + // CAROUSEL NO CONFLICT + // ==================== + + $.fn.carousel.noConflict = function () { + $.fn.carousel = old + return this + } + + + // CAROUSEL DATA-API + // ================= + + $(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) { + var href + var $this = $(this) + var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7 + if (!$target.hasClass('carousel')) return + var options = $.extend({}, $target.data(), $this.data()) + var slideIndex = $this.attr('data-slide-to') + if (slideIndex) options.interval = false + + Plugin.call($target, options) + + if (slideIndex) { + $target.data('bs.carousel').to(slideIndex) + } + + e.preventDefault() + }) + + $(window).on('load', function () { + $('[data-ride="carousel"]').each(function () { + var $carousel = $(this) + Plugin.call($carousel, $carousel.data()) + }) + }) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: collapse.js v3.2.0 + * http://getbootstrap.com/javascript/#collapse + * ======================================================================== + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // COLLAPSE PUBLIC CLASS DEFINITION + // ================================ + + var Collapse = function (element, options) { + this.$element = $(element) + this.options = $.extend({}, Collapse.DEFAULTS, options) + this.transitioning = null + + if (this.options.parent) this.$parent = $(this.options.parent) + if (this.options.toggle) this.toggle() + } + + Collapse.VERSION = '3.2.0' + + Collapse.DEFAULTS = { + toggle: true + } + + Collapse.prototype.dimension = function () { + var hasWidth = this.$element.hasClass('width') + return hasWidth ? 'width' : 'height' + } + + Collapse.prototype.show = function () { + if (this.transitioning || this.$element.hasClass('in')) return + + var startEvent = $.Event('show.bs.collapse') + this.$element.trigger(startEvent) + if (startEvent.isDefaultPrevented()) return + + var actives = this.$parent && this.$parent.find('> .panel > .in') + + if (actives && actives.length) { + var hasData = actives.data('bs.collapse') + if (hasData && hasData.transitioning) return + Plugin.call(actives, 'hide') + hasData || actives.data('bs.collapse', null) + } + + var dimension = this.dimension() + + this.$element + .removeClass('collapse') + .addClass('collapsing')[dimension](0) + + this.transitioning = 1 + + var complete = function () { + this.$element + .removeClass('collapsing') + .addClass('collapse in')[dimension]('') + this.transitioning = 0 + this.$element + .trigger('shown.bs.collapse') + } + + if (!$.support.transition) return complete.call(this) + + var scrollSize = $.camelCase(['scroll', dimension].join('-')) + + this.$element + .one('bsTransitionEnd', $.proxy(complete, this)) + .emulateTransitionEnd(350)[dimension](this.$element[0][scrollSize]) + } + + Collapse.prototype.hide = function () { + if (this.transitioning || !this.$element.hasClass('in')) return + + var startEvent = $.Event('hide.bs.collapse') + this.$element.trigger(startEvent) + if (startEvent.isDefaultPrevented()) return + + var dimension = this.dimension() + + this.$element[dimension](this.$element[dimension]())[0].offsetHeight + + this.$element + .addClass('collapsing') + .removeClass('collapse') + .removeClass('in') + + this.transitioning = 1 + + var complete = function () { + this.transitioning = 0 + this.$element + .trigger('hidden.bs.collapse') + .removeClass('collapsing') + .addClass('collapse') + } + + if (!$.support.transition) return complete.call(this) + + this.$element + [dimension](0) + .one('bsTransitionEnd', $.proxy(complete, this)) + .emulateTransitionEnd(350) + } + + Collapse.prototype.toggle = function () { + this[this.$element.hasClass('in') ? 'hide' : 'show']() + } + + + // COLLAPSE PLUGIN DEFINITION + // ========================== + + function Plugin(option) { + return this.each(function () { + var $this = $(this) + var data = $this.data('bs.collapse') + var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) + + if (!data && options.toggle && option == 'show') option = !option + if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))) + if (typeof option == 'string') data[option]() + }) + } + + var old = $.fn.collapse + + $.fn.collapse = Plugin + $.fn.collapse.Constructor = Collapse + + + // COLLAPSE NO CONFLICT + // ==================== + + $.fn.collapse.noConflict = function () { + $.fn.collapse = old + return this + } + + + // COLLAPSE DATA-API + // ================= + + $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) { + var href + var $this = $(this) + var target = $this.attr('data-target') + || e.preventDefault() + || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7 + var $target = $(target) + var data = $target.data('bs.collapse') + var option = data ? 'toggle' : $this.data() + var parent = $this.attr('data-parent') + var $parent = parent && $(parent) + + if (!data || !data.transitioning) { + if ($parent) $parent.find('[data-toggle="collapse"][data-parent="' + parent + '"]').not($this).addClass('collapsed') + $this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed') + } + + Plugin.call($target, option) + }) + +}(jQuery); + +/* ======================================================================== + * Bootstrap: dropdown.js v3.2.0 + * http://getbootstrap.com/javascript/#dropdowns + * ======================================================================== + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // DROPDOWN CLASS DEFINITION + // ========================= + + var backdrop = '.dropdown-backdrop' + var toggle = '[data-toggle="dropdown"]' + var Dropdown = function (element) { + $(element).on('click.bs.dropdown', this.toggle) + } + + Dropdown.VERSION = '3.2.0' + + Dropdown.prototype.toggle = function (e) { + var $this = $(this) + + if ($this.is('.disabled, :disabled')) return + + var $parent = getParent($this) + var isActive = $parent.hasClass('open') + + clearMenus() + + if (!isActive) { + if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) { + // if mobile we use a backdrop because click events don't delegate + $('