From 06bfdd53f6263fa1a0586daa58f2efbf79bde26c Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 20 Jun 2011 10:40:32 -0400 Subject: Add missing theme images. --- .../_corporate/images/icons/icon_system-group-grey.png | Bin 0 -> 1566 bytes .../themes/_corporate/images/icons/icon_system-group.png | Bin 0 -> 3128 bytes .../_corporate/images/icons/icon_system-user-grey.png | Bin 0 -> 1107 bytes .../themes/_corporate/images/icons/icon_system-user.png | Bin 0 -> 2084 bytes .../images/icons/icon_system-group-grey.png | Bin 0 -> 1566 bytes .../pfsense-dropdown/images/icons/icon_system-group.png | Bin 0 -> 3128 bytes .../images/icons/icon_system-user-grey.png | Bin 0 -> 1107 bytes .../pfsense-dropdown/images/icons/icon_system-user.png | Bin 0 -> 2084 bytes .../pfsense/images/icons/icon_system-group-grey.png | Bin 0 -> 1566 bytes .../themes/pfsense/images/icons/icon_system-group.png | Bin 0 -> 3128 bytes .../pfsense/images/icons/icon_system-user-grey.png | Bin 0 -> 1107 bytes .../www/themes/pfsense/images/icons/icon_system-user.png | Bin 0 -> 2084 bytes 12 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_system-group-grey.png create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_system-group.png create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_system-user-grey.png create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_system-user.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-group-grey.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-group.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-user-grey.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-user.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_system-group-grey.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_system-group.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_system-user-grey.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_system-user.png diff --git a/usr/local/www/themes/_corporate/images/icons/icon_system-group-grey.png b/usr/local/www/themes/_corporate/images/icons/icon_system-group-grey.png new file mode 100644 index 0000000..d7b964d Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_system-group-grey.png differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_system-group.png b/usr/local/www/themes/_corporate/images/icons/icon_system-group.png new file mode 100644 index 0000000..1c974f2 Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_system-group.png differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_system-user-grey.png b/usr/local/www/themes/_corporate/images/icons/icon_system-user-grey.png new file mode 100644 index 0000000..2f6047d Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_system-user-grey.png differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_system-user.png b/usr/local/www/themes/_corporate/images/icons/icon_system-user.png new file mode 100644 index 0000000..ef82156 Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_system-user.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-group-grey.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-group-grey.png new file mode 100644 index 0000000..d7b964d Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-group-grey.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-group.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-group.png new file mode 100644 index 0000000..1c974f2 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-group.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-user-grey.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-user-grey.png new file mode 100644 index 0000000..2f6047d Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-user-grey.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-user.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-user.png new file mode 100644 index 0000000..ef82156 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system-user.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_system-group-grey.png b/usr/local/www/themes/pfsense/images/icons/icon_system-group-grey.png new file mode 100644 index 0000000..d7b964d Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_system-group-grey.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_system-group.png b/usr/local/www/themes/pfsense/images/icons/icon_system-group.png new file mode 100644 index 0000000..1c974f2 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_system-group.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_system-user-grey.png b/usr/local/www/themes/pfsense/images/icons/icon_system-user-grey.png new file mode 100644 index 0000000..2f6047d Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_system-user-grey.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_system-user.png b/usr/local/www/themes/pfsense/images/icons/icon_system-user.png new file mode 100644 index 0000000..ef82156 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_system-user.png differ -- cgit v1.1 From c880d03296fd49776acc983664e17bee2792fbc3 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 20 Jun 2011 14:57:35 -0400 Subject: Fix ovpn-linkup so it writes out the proper gateway IP in all cases. (For some reason -n wasn't working properly, plus $5 is the right parameter for the remote IP here) --- usr/local/sbin/ovpn-linkup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/sbin/ovpn-linkup b/usr/local/sbin/ovpn-linkup index 613822c..b613a9a 100755 --- a/usr/local/sbin/ovpn-linkup +++ b/usr/local/sbin/ovpn-linkup @@ -2,10 +2,10 @@ # let the configuration system know that the ip has changed. #/usr/local/sbin/pfSctl -c "interface newip $interface" -if [ -n $route_vpn_gateway ]; then +if [ "" != "$route_vpn_gateway" ]; then /bin/echo $route_vpn_gateway > /tmp/$1_router else - /bin/echo $4 > /tmp/$1_router + /bin/echo $5 > /tmp/$1_router fi /usr/bin/touch /tmp/$1up # reload filter -- cgit v1.1 From 90ecc0b62f8b363d9497b4754133738edb9bc633 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 20 Jun 2011 16:06:26 -0400 Subject: Disable state killing in VPN down scripts. --- usr/local/sbin/ovpn-linkdown | 2 +- usr/local/sbin/ppp-linkdown | 2 +- usr/local/sbin/vpn-linkdown | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/local/sbin/ovpn-linkdown b/usr/local/sbin/ovpn-linkdown index 112317f..b300aed 100755 --- a/usr/local/sbin/ovpn-linkdown +++ b/usr/local/sbin/ovpn-linkdown @@ -1,5 +1,5 @@ #!/bin/sh -/sbin/pfctl -b $4 -b $5 +# /sbin/pfctl -b $4 -b $5 # delete the node just in case mpd cannot do that /bin/rm -f /var/etc/nameserver_$1 /bin/rm -f /tmp/$1_router diff --git a/usr/local/sbin/ppp-linkdown b/usr/local/sbin/ppp-linkdown index f6a78b9..1170d2f 100755 --- a/usr/local/sbin/ppp-linkdown +++ b/usr/local/sbin/ppp-linkdown @@ -6,7 +6,7 @@ fi if [ -f "/tmp/${interface}_defaultgw" ]; then route delete default $4 fi -/sbin/pfctl -b $3 -b $4 +# /sbin/pfctl -b $3 -b $4 # delete the node just in case mpd cannot do that /usr/sbin/ngctl shutdown $1: if [ -f "/var/etc/nameserver_$1" ]; then diff --git a/usr/local/sbin/vpn-linkdown b/usr/local/sbin/vpn-linkdown index e67a8a0..1d533cb 100755 --- a/usr/local/sbin/vpn-linkdown +++ b/usr/local/sbin/vpn-linkdown @@ -2,4 +2,4 @@ # record logout /usr/bin/logger -p local3.info "logout,$1,$4,$5" -/sbin/pfctl -b $3 -b $4 +# /sbin/pfctl -b $3 -b $4 -- cgit v1.1 From c76ce920982ea0549ff88f4df99db3e4b05d0816 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 20 Jun 2011 18:29:33 -0400 Subject: Remove ioncube --- etc/rc.php_ini_setup | 2 -- 1 file changed, 2 deletions(-) diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index 99efc39..5a138ed 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -116,8 +116,6 @@ PHPMODULES="$PHPMODULES zmq" PHPMODULES="$PHPMODULES ssh2" # pfSense extensions PHPMODULES="$PHPMODULES pfSense" -# ion cube -PHPMODULES="$PHPMODULES ioncube_loader" # Modules previously included. # can be turned on by touching -- cgit v1.1 From 8ef700da28a954c3233bc96c142e64afce1bd1b9 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 20 Jun 2011 18:53:57 -0400 Subject: Add 'dynamodules' for zend_extension and zend_extension_ts. /etc/php_dynamodules_zend and /etc/php_dynamodules_zend_ts directories --- etc/rc.php_ini_setup | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index 5a138ed..657c2d4 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -117,6 +117,9 @@ PHPMODULES="$PHPMODULES ssh2" # pfSense extensions PHPMODULES="$PHPMODULES pfSense" +PHP_ZEND_MODULES="" +PHP_ZEND_MODULES_TS="" + # Modules previously included. # can be turned on by touching # /etc/php_dynamodules/$modulename @@ -183,6 +186,18 @@ if [ -d /etc/php_dynamodules ]; then PHPMODULES="$PHPMODULES $DYNA_MODULES" fi +# Read in zend modules +if [ -d /etc/php_dynamodules_zend ]; then + DYNA_MODULES=`/bin/ls /etc/php_dynamodules/` + PHP_ZEND_MODULES="$PHP_ZEND_MODULES $DYNA_MODULES" +fi + +# Read in zend threaded modules +if [ -d /etc/php_dynamodules_zend_ts ]; then + DYNA_MODULES=`/bin/ls /etc/php_dynamodules/` + PHP_ZEND_MODULES_TS="$PHP_ZEND_MODULES $DYNA_MODULES" +fi + # Loop through and generate modules to load. # Take into account modules built into php. for EXT in $PHPMODULES; do @@ -201,6 +216,22 @@ for EXT in $PHPMODULES; do fi done +# Zend modules +for EXT in $PHP_ZEND_MODULES; do + # Ensure extension exists before adding. + if [ -f "${EXTENSIONSDIR}${EXT}.so" ]; then + echo "zend_extension=${EXT}.so" >> /usr/local/lib/php.ini + fi +done + +# Zend threaded modules +for EXT in $PHP_ZEND_MODULES_TS; do + # Ensure extension exists before adding. + if [ -f "${EXTENSIONSDIR}${EXT}.so" ]; then + echo "zend_extension_ts=${EXT}.so" >> /usr/local/lib/php.ini + fi +done + # Get amount of ram installed on this system RAM=`/sbin/sysctl hw.realmem | /usr/bin/awk '{print $2/1000000}' | /usr/bin/awk -F '.' '{print $1}'` export RAM -- cgit v1.1 From 5b9afe1e797362e932c21f929fdb77dcfef44d17 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 20 Jun 2011 19:55:22 -0400 Subject: mkdir zend modules --- etc/rc.php_ini_setup | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index 657c2d4..0135e9c 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -179,6 +179,12 @@ EOF if [ ! -d /etc/php_dynamodules ]; then /bin/mkdir /etc/php_dynamodules fi +if [ ! -d /etc/php_dynamodules_zend ]; then + /bin/mkdir /etc/php_dynamodules_zend +fi +if [ ! -d /etc/php_dynamodules_zend_ts ]; then + /bin/mkdir /etc/php_dynamodules_zend_ts +fi # Read in dynamodules if [ -d /etc/php_dynamodules ]; then -- cgit v1.1 From 7cca77de28652ca92a901be6da2e8ad86259ce16 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 21 Jun 2011 07:08:05 +0000 Subject: Kill olsrd if it is not enabled. Reported-by: http://forum.pfsense.org/index.php/topic,37931.0.html --- etc/inc/services.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/etc/inc/services.inc b/etc/inc/services.inc index d5c9ada..6913498 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -978,8 +978,11 @@ function setup_wireless_olsr() { conf_mount_rw(); foreach($config['installedpackages']['olsrd']['config'] as $olsrd) { $olsr_enable = $olsrd['enable']; - if($olsr_enable <> "on") + if($olsr_enable <> "on") { + if (is_process_running("olsrd")) + mwexec("/usr/bin/killall olsrd", true); return; + } $fd = fopen("{$g['varetc_path']}/olsr.conf", "w"); if($olsrd['announcedynamicroute'] or $olsrd['enableannounce'] == "on") { @@ -1241,7 +1244,7 @@ EODAD; fclose($fd); } - if(is_process_running("olsrd")) + if (is_process_running("olsrd")) mwexec("/usr/bin/killall olsrd", true); sleep(2); -- cgit v1.1 From a6c85b8b670836063ce2dda4a67d2f721c226a7f Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 21 Jun 2011 08:26:12 -0400 Subject: More icons missing from certain themes... --- usr/local/www/themes/_corporate/images/icons/favicon.ico | Bin 0 -> 1406 bytes .../www/themes/_corporate/images/icons/icon_advanced.gif | Bin 0 -> 306 bytes .../themes/_corporate/images/icons/icon_advanced_s.gif | Bin 0 -> 314 bytes .../themes/_corporate/images/icons/icon_alias_host.gif | Bin 0 -> 348 bytes .../themes/_corporate/images/icons/icon_alias_net.gif | Bin 0 -> 331 bytes .../themes/_corporate/images/icons/icon_alias_port.gif | Bin 0 -> 346 bytes .../themes/_corporate/images/icons/icon_alias_url.gif | Bin 0 -> 314 bytes .../_corporate/images/icons/icon_alias_url_reload.gif | Bin 0 -> 1111 bytes .../www/themes/_corporate/images/icons/icon_chain.png | Bin 0 -> 161 bytes .../www/themes/_corporate/images/icons/icon_ifalias.gif | Bin 0 -> 315 bytes .../themes/_corporate/images/icons/icon_ifalias_d.gif | Bin 0 -> 315 bytes .../www/themes/_corporate/images/icons/icon_info_pkg.gif | Bin 0 -> 1131 bytes .../www/themes/_corporate/images/icons/icon_right.gif | Bin 0 -> 1117 bytes .../_corporate/images/icons/icon_system_lock_screen.png | Bin 0 -> 1841 bytes .../themes/_corporate/images/icons/icon_wzd_nsaved.png | Bin 0 -> 512 bytes .../themes/_corporate/images/icons/icon_wzd_saved.png | Bin 0 -> 399 bytes usr/local/www/themes/_corporate/images/icons/in.gif | Bin 0 -> 177 bytes usr/local/www/themes/_corporate/images/icons/in_d.gif | Bin 0 -> 190 bytes usr/local/www/themes/_corporate/images/icons/out.gif | Bin 0 -> 179 bytes usr/local/www/themes/_corporate/images/icons/out_d.gif | Bin 0 -> 189 bytes .../www/themes/code-red/images/icons/icon_advanced.gif | Bin 0 -> 306 bytes .../www/themes/code-red/images/icons/icon_advanced_s.gif | Bin 0 -> 314 bytes .../www/themes/code-red/images/icons/icon_chain.png | Bin 0 -> 161 bytes .../www/themes/metallic/images/icons/icon_chain.png | Bin 0 -> 161 bytes .../www/themes/nervecenter/images/icons/icon_chain.png | Bin 0 -> 161 bytes .../www/themes/pfsense-dropdown/images/icons/favicon.ico | Bin 0 -> 1406 bytes .../pfsense-dropdown/images/icons/icon_alias_host.gif | Bin 0 -> 348 bytes .../pfsense-dropdown/images/icons/icon_alias_net.gif | Bin 0 -> 331 bytes .../pfsense-dropdown/images/icons/icon_alias_port.gif | Bin 0 -> 346 bytes .../pfsense-dropdown/images/icons/icon_alias_url.gif | Bin 0 -> 314 bytes .../images/icons/icon_alias_url_reload.gif | Bin 0 -> 1111 bytes .../themes/pfsense-dropdown/images/icons/icon_chain.png | Bin 0 -> 161 bytes .../pfsense-dropdown/images/icons/icon_flag_de.png | Bin 0 -> 114 bytes .../pfsense-dropdown/images/icons/icon_flag_en.png | Bin 0 -> 618 bytes .../pfsense-dropdown/images/icons/icon_flag_es.png | Bin 0 -> 281 bytes .../pfsense-dropdown/images/icons/icon_flag_pt_BR.png | Bin 0 -> 502 bytes .../pfsense-dropdown/images/icons/icon_frmfld_cert.png | Bin 0 -> 1528 bytes .../pfsense-dropdown/images/icons/icon_frmfld_file.png | Bin 0 -> 687 bytes .../pfsense-dropdown/images/icons/icon_frmfld_group.png | Bin 0 -> 748 bytes .../pfsense-dropdown/images/icons/icon_frmfld_host.png | Bin 0 -> 513 bytes .../pfsense-dropdown/images/icons/icon_frmfld_imp.png | Bin 0 -> 644 bytes .../pfsense-dropdown/images/icons/icon_frmfld_mail.png | Bin 0 -> 371 bytes .../pfsense-dropdown/images/icons/icon_frmfld_pwd.png | Bin 0 -> 620 bytes .../pfsense-dropdown/images/icons/icon_frmfld_search.png | Bin 0 -> 593 bytes .../pfsense-dropdown/images/icons/icon_frmfld_time.png | Bin 0 -> 646 bytes .../images/icons/icon_frmfld_unknown.png | Bin 0 -> 487 bytes .../pfsense-dropdown/images/icons/icon_frmfld_url.png | Bin 0 -> 704 bytes .../pfsense-dropdown/images/icons/icon_frmfld_user.png | Bin 0 -> 654 bytes .../pfsense-dropdown/images/icons/icon_ifalias.gif | Bin 0 -> 315 bytes .../pfsense-dropdown/images/icons/icon_ifalias_d.gif | Bin 0 -> 315 bytes .../pfsense-dropdown/images/icons/icon_info_pkg.gif | Bin 0 -> 1131 bytes .../pfsense-dropdown/images/icons/icon_plus_bl.gif | Bin 0 -> 1096 bytes .../pfsense-dropdown/images/icons/icon_plus_bl_p.gif | Bin 0 -> 1079 bytes .../themes/pfsense-dropdown/images/icons/icon_plus_p.gif | Bin 0 -> 1087 bytes .../images/icons/icon_system_lock_screen.png | Bin 0 -> 1841 bytes .../pfsense-dropdown/images/icons/icon_system_logout.png | Bin 0 -> 2087 bytes .../pfsense-dropdown/images/icons/icon_trapped.gif | Bin 0 -> 1101 bytes .../pfsense-dropdown/images/icons/icon_wzd_nsaved.png | Bin 0 -> 512 bytes .../pfsense-dropdown/images/icons/icon_wzd_saved.png | Bin 0 -> 399 bytes .../www/themes/pfsense-dropdown/images/icons/in.gif | Bin 0 -> 177 bytes .../www/themes/pfsense-dropdown/images/icons/in_d.gif | Bin 0 -> 190 bytes .../www/themes/pfsense-dropdown/images/icons/out.gif | Bin 0 -> 179 bytes .../www/themes/pfsense-dropdown/images/icons/out_d.gif | Bin 0 -> 189 bytes usr/local/www/themes/pfsense/images/icons/favicon.ico | Bin 0 -> 1406 bytes .../www/themes/pfsense/images/icons/icon_alias_host.gif | Bin 0 -> 348 bytes .../www/themes/pfsense/images/icons/icon_alias_net.gif | Bin 0 -> 331 bytes .../www/themes/pfsense/images/icons/icon_alias_port.gif | Bin 0 -> 346 bytes .../www/themes/pfsense/images/icons/icon_alias_url.gif | Bin 0 -> 314 bytes .../pfsense/images/icons/icon_alias_url_reload.gif | Bin 0 -> 1111 bytes usr/local/www/themes/pfsense/images/icons/icon_chain.png | Bin 0 -> 161 bytes .../www/themes/pfsense/images/icons/icon_flag_de.png | Bin 0 -> 114 bytes .../www/themes/pfsense/images/icons/icon_flag_en.png | Bin 0 -> 618 bytes .../www/themes/pfsense/images/icons/icon_flag_es.png | Bin 0 -> 281 bytes .../www/themes/pfsense/images/icons/icon_flag_pt_BR.png | Bin 0 -> 502 bytes .../www/themes/pfsense/images/icons/icon_frmfld_cert.png | Bin 0 -> 1528 bytes .../www/themes/pfsense/images/icons/icon_frmfld_file.png | Bin 0 -> 687 bytes .../themes/pfsense/images/icons/icon_frmfld_group.png | Bin 0 -> 748 bytes .../www/themes/pfsense/images/icons/icon_frmfld_host.png | Bin 0 -> 513 bytes .../www/themes/pfsense/images/icons/icon_frmfld_imp.png | Bin 0 -> 644 bytes .../www/themes/pfsense/images/icons/icon_frmfld_mail.png | Bin 0 -> 371 bytes .../www/themes/pfsense/images/icons/icon_frmfld_pwd.png | Bin 0 -> 620 bytes .../themes/pfsense/images/icons/icon_frmfld_search.png | Bin 0 -> 593 bytes .../www/themes/pfsense/images/icons/icon_frmfld_time.png | Bin 0 -> 646 bytes .../themes/pfsense/images/icons/icon_frmfld_unknown.png | Bin 0 -> 487 bytes .../www/themes/pfsense/images/icons/icon_frmfld_url.png | Bin 0 -> 704 bytes .../www/themes/pfsense/images/icons/icon_frmfld_user.png | Bin 0 -> 654 bytes .../www/themes/pfsense/images/icons/icon_ifalias.gif | Bin 0 -> 315 bytes .../www/themes/pfsense/images/icons/icon_ifalias_d.gif | Bin 0 -> 315 bytes .../www/themes/pfsense/images/icons/icon_plus_bl.gif | Bin 0 -> 1096 bytes .../www/themes/pfsense/images/icons/icon_plus_bl_p.gif | Bin 0 -> 1079 bytes .../www/themes/pfsense/images/icons/icon_plus_p.gif | Bin 0 -> 1087 bytes .../pfsense/images/icons/icon_system_lock_screen.png | Bin 0 -> 1841 bytes .../themes/pfsense/images/icons/icon_system_logout.png | Bin 0 -> 2087 bytes .../www/themes/pfsense/images/icons/icon_trapped.gif | Bin 0 -> 1101 bytes .../www/themes/pfsense/images/icons/icon_wzd_nsaved.png | Bin 0 -> 512 bytes .../www/themes/pfsense/images/icons/icon_wzd_saved.png | Bin 0 -> 399 bytes usr/local/www/themes/pfsense/images/icons/in.gif | Bin 0 -> 177 bytes usr/local/www/themes/pfsense/images/icons/in_d.gif | Bin 0 -> 190 bytes usr/local/www/themes/pfsense/images/icons/out.gif | Bin 0 -> 179 bytes usr/local/www/themes/pfsense/images/icons/out_d.gif | Bin 0 -> 189 bytes .../www/themes/the_wall/images/icons/icon_chain.png | Bin 0 -> 161 bytes 101 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 usr/local/www/themes/_corporate/images/icons/favicon.ico create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_advanced.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_advanced_s.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_alias_host.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_alias_net.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_alias_port.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_alias_url.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_alias_url_reload.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_chain.png create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_ifalias.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_ifalias_d.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_info_pkg.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_right.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_system_lock_screen.png create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_wzd_nsaved.png create mode 100644 usr/local/www/themes/_corporate/images/icons/icon_wzd_saved.png create mode 100644 usr/local/www/themes/_corporate/images/icons/in.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/in_d.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/out.gif create mode 100644 usr/local/www/themes/_corporate/images/icons/out_d.gif create mode 100644 usr/local/www/themes/code-red/images/icons/icon_advanced.gif create mode 100644 usr/local/www/themes/code-red/images/icons/icon_advanced_s.gif create mode 100644 usr/local/www/themes/code-red/images/icons/icon_chain.png create mode 100644 usr/local/www/themes/metallic/images/icons/icon_chain.png create mode 100644 usr/local/www/themes/nervecenter/images/icons/icon_chain.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/favicon.ico create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_host.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_net.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_port.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_url.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_url_reload.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_chain.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_de.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_en.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_es.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_pt_BR.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_cert.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_file.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_group.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_host.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_imp.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_mail.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_pwd.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_search.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_time.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_unknown.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_url.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_user.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_ifalias.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_ifalias_d.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_info_pkg.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_plus_bl.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_plus_bl_p.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_plus_p.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_system_lock_screen.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_system_logout.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_trapped.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_wzd_nsaved.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/icon_wzd_saved.png create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/in.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/in_d.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/out.gif create mode 100644 usr/local/www/themes/pfsense-dropdown/images/icons/out_d.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/favicon.ico create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_alias_host.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_alias_net.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_alias_port.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_alias_url.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_alias_url_reload.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_chain.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_flag_de.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_flag_en.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_flag_es.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_flag_pt_BR.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_frmfld_cert.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_frmfld_file.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_frmfld_group.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_frmfld_host.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_frmfld_imp.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_frmfld_mail.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_frmfld_pwd.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_frmfld_search.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_frmfld_time.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_frmfld_unknown.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_frmfld_url.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_frmfld_user.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_ifalias.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_ifalias_d.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_plus_bl.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_plus_bl_p.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_plus_p.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_system_lock_screen.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_system_logout.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_trapped.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_wzd_nsaved.png create mode 100644 usr/local/www/themes/pfsense/images/icons/icon_wzd_saved.png create mode 100644 usr/local/www/themes/pfsense/images/icons/in.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/in_d.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/out.gif create mode 100644 usr/local/www/themes/pfsense/images/icons/out_d.gif create mode 100644 usr/local/www/themes/the_wall/images/icons/icon_chain.png diff --git a/usr/local/www/themes/_corporate/images/icons/favicon.ico b/usr/local/www/themes/_corporate/images/icons/favicon.ico new file mode 100644 index 0000000..3440bf2 Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/favicon.ico differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_advanced.gif b/usr/local/www/themes/_corporate/images/icons/icon_advanced.gif new file mode 100644 index 0000000..3ede1ff Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_advanced.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_advanced_s.gif b/usr/local/www/themes/_corporate/images/icons/icon_advanced_s.gif new file mode 100644 index 0000000..b233549 Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_advanced_s.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_alias_host.gif b/usr/local/www/themes/_corporate/images/icons/icon_alias_host.gif new file mode 100644 index 0000000..ad43e17 Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_alias_host.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_alias_net.gif b/usr/local/www/themes/_corporate/images/icons/icon_alias_net.gif new file mode 100644 index 0000000..abd1b8b Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_alias_net.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_alias_port.gif b/usr/local/www/themes/_corporate/images/icons/icon_alias_port.gif new file mode 100644 index 0000000..4acf2aa Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_alias_port.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_alias_url.gif b/usr/local/www/themes/_corporate/images/icons/icon_alias_url.gif new file mode 100644 index 0000000..660571e Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_alias_url.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_alias_url_reload.gif b/usr/local/www/themes/_corporate/images/icons/icon_alias_url_reload.gif new file mode 100644 index 0000000..55c1c4a Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_alias_url_reload.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_chain.png b/usr/local/www/themes/_corporate/images/icons/icon_chain.png new file mode 100644 index 0000000..12db07a Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_chain.png differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_ifalias.gif b/usr/local/www/themes/_corporate/images/icons/icon_ifalias.gif new file mode 100644 index 0000000..0c569a7 Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_ifalias.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_ifalias_d.gif b/usr/local/www/themes/_corporate/images/icons/icon_ifalias_d.gif new file mode 100644 index 0000000..faa84d4 Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_ifalias_d.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_info_pkg.gif b/usr/local/www/themes/_corporate/images/icons/icon_info_pkg.gif new file mode 100644 index 0000000..cd3a532 Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_info_pkg.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_right.gif b/usr/local/www/themes/_corporate/images/icons/icon_right.gif new file mode 100644 index 0000000..fdf2d8b Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_right.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_system_lock_screen.png b/usr/local/www/themes/_corporate/images/icons/icon_system_lock_screen.png new file mode 100644 index 0000000..30f306d Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_system_lock_screen.png differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_wzd_nsaved.png b/usr/local/www/themes/_corporate/images/icons/icon_wzd_nsaved.png new file mode 100644 index 0000000..21cb27d Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_wzd_nsaved.png differ diff --git a/usr/local/www/themes/_corporate/images/icons/icon_wzd_saved.png b/usr/local/www/themes/_corporate/images/icons/icon_wzd_saved.png new file mode 100644 index 0000000..ab82946 Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/icon_wzd_saved.png differ diff --git a/usr/local/www/themes/_corporate/images/icons/in.gif b/usr/local/www/themes/_corporate/images/icons/in.gif new file mode 100644 index 0000000..f1da771 Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/in.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/in_d.gif b/usr/local/www/themes/_corporate/images/icons/in_d.gif new file mode 100644 index 0000000..18e26be Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/in_d.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/out.gif b/usr/local/www/themes/_corporate/images/icons/out.gif new file mode 100644 index 0000000..1a1d1d5 Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/out.gif differ diff --git a/usr/local/www/themes/_corporate/images/icons/out_d.gif b/usr/local/www/themes/_corporate/images/icons/out_d.gif new file mode 100644 index 0000000..879f1da Binary files /dev/null and b/usr/local/www/themes/_corporate/images/icons/out_d.gif differ diff --git a/usr/local/www/themes/code-red/images/icons/icon_advanced.gif b/usr/local/www/themes/code-red/images/icons/icon_advanced.gif new file mode 100644 index 0000000..3ede1ff Binary files /dev/null and b/usr/local/www/themes/code-red/images/icons/icon_advanced.gif differ diff --git a/usr/local/www/themes/code-red/images/icons/icon_advanced_s.gif b/usr/local/www/themes/code-red/images/icons/icon_advanced_s.gif new file mode 100644 index 0000000..b233549 Binary files /dev/null and b/usr/local/www/themes/code-red/images/icons/icon_advanced_s.gif differ diff --git a/usr/local/www/themes/code-red/images/icons/icon_chain.png b/usr/local/www/themes/code-red/images/icons/icon_chain.png new file mode 100644 index 0000000..12db07a Binary files /dev/null and b/usr/local/www/themes/code-red/images/icons/icon_chain.png differ diff --git a/usr/local/www/themes/metallic/images/icons/icon_chain.png b/usr/local/www/themes/metallic/images/icons/icon_chain.png new file mode 100644 index 0000000..12db07a Binary files /dev/null and b/usr/local/www/themes/metallic/images/icons/icon_chain.png differ diff --git a/usr/local/www/themes/nervecenter/images/icons/icon_chain.png b/usr/local/www/themes/nervecenter/images/icons/icon_chain.png new file mode 100644 index 0000000..12db07a Binary files /dev/null and b/usr/local/www/themes/nervecenter/images/icons/icon_chain.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/favicon.ico b/usr/local/www/themes/pfsense-dropdown/images/icons/favicon.ico new file mode 100644 index 0000000..3440bf2 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/favicon.ico differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_host.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_host.gif new file mode 100644 index 0000000..ad43e17 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_host.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_net.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_net.gif new file mode 100644 index 0000000..abd1b8b Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_net.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_port.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_port.gif new file mode 100644 index 0000000..4acf2aa Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_port.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_url.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_url.gif new file mode 100644 index 0000000..660571e Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_url.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_url_reload.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_url_reload.gif new file mode 100644 index 0000000..55c1c4a Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_alias_url_reload.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_chain.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_chain.png new file mode 100644 index 0000000..12db07a Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_chain.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_de.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_de.png new file mode 100644 index 0000000..069cbbe Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_de.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_en.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_en.png new file mode 100644 index 0000000..bd7f9a5 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_en.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_es.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_es.png new file mode 100644 index 0000000..434776c Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_es.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_pt_BR.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_pt_BR.png new file mode 100644 index 0000000..f786349 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_flag_pt_BR.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_cert.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_cert.png new file mode 100644 index 0000000..48a34b6 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_cert.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_file.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_file.png new file mode 100644 index 0000000..48a9ed2 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_file.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_group.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_group.png new file mode 100644 index 0000000..7d929c0 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_group.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_host.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_host.png new file mode 100644 index 0000000..867ef2c Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_host.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_imp.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_imp.png new file mode 100644 index 0000000..f667cfc Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_imp.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_mail.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_mail.png new file mode 100644 index 0000000..d2d4548 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_mail.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_pwd.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_pwd.png new file mode 100644 index 0000000..06b53a1 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_pwd.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_search.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_search.png new file mode 100644 index 0000000..33de926 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_search.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_time.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_time.png new file mode 100644 index 0000000..aa8300a Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_time.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_unknown.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_unknown.png new file mode 100644 index 0000000..1857d0e Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_unknown.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_url.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_url.png new file mode 100644 index 0000000..cf56792 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_url.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_user.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_user.png new file mode 100644 index 0000000..e00eebe Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_frmfld_user.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_ifalias.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_ifalias.gif new file mode 100644 index 0000000..0c569a7 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_ifalias.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_ifalias_d.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_ifalias_d.gif new file mode 100644 index 0000000..faa84d4 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_ifalias_d.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_info_pkg.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_info_pkg.gif new file mode 100644 index 0000000..cd3a532 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_info_pkg.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_plus_bl.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_plus_bl.gif new file mode 100644 index 0000000..8dcd7c0 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_plus_bl.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_plus_bl_p.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_plus_bl_p.gif new file mode 100644 index 0000000..0c79849 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_plus_bl_p.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_plus_p.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_plus_p.gif new file mode 100644 index 0000000..eb41284 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_plus_p.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system_lock_screen.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system_lock_screen.png new file mode 100644 index 0000000..30f306d Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system_lock_screen.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system_logout.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system_logout.png new file mode 100644 index 0000000..9bbb6c7 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_system_logout.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_trapped.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_trapped.gif new file mode 100644 index 0000000..ffeb2cd Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_trapped.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_wzd_nsaved.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_wzd_nsaved.png new file mode 100644 index 0000000..21cb27d Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_wzd_nsaved.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/icon_wzd_saved.png b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_wzd_saved.png new file mode 100644 index 0000000..ab82946 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/icon_wzd_saved.png differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/in.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/in.gif new file mode 100644 index 0000000..f1da771 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/in.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/in_d.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/in_d.gif new file mode 100644 index 0000000..18e26be Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/in_d.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/out.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/out.gif new file mode 100644 index 0000000..1a1d1d5 Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/out.gif differ diff --git a/usr/local/www/themes/pfsense-dropdown/images/icons/out_d.gif b/usr/local/www/themes/pfsense-dropdown/images/icons/out_d.gif new file mode 100644 index 0000000..879f1da Binary files /dev/null and b/usr/local/www/themes/pfsense-dropdown/images/icons/out_d.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/favicon.ico b/usr/local/www/themes/pfsense/images/icons/favicon.ico new file mode 100644 index 0000000..3440bf2 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/favicon.ico differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_alias_host.gif b/usr/local/www/themes/pfsense/images/icons/icon_alias_host.gif new file mode 100644 index 0000000..ad43e17 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_alias_host.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_alias_net.gif b/usr/local/www/themes/pfsense/images/icons/icon_alias_net.gif new file mode 100644 index 0000000..abd1b8b Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_alias_net.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_alias_port.gif b/usr/local/www/themes/pfsense/images/icons/icon_alias_port.gif new file mode 100644 index 0000000..4acf2aa Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_alias_port.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_alias_url.gif b/usr/local/www/themes/pfsense/images/icons/icon_alias_url.gif new file mode 100644 index 0000000..660571e Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_alias_url.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_alias_url_reload.gif b/usr/local/www/themes/pfsense/images/icons/icon_alias_url_reload.gif new file mode 100644 index 0000000..55c1c4a Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_alias_url_reload.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_chain.png b/usr/local/www/themes/pfsense/images/icons/icon_chain.png new file mode 100644 index 0000000..12db07a Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_chain.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_flag_de.png b/usr/local/www/themes/pfsense/images/icons/icon_flag_de.png new file mode 100644 index 0000000..069cbbe Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_flag_de.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_flag_en.png b/usr/local/www/themes/pfsense/images/icons/icon_flag_en.png new file mode 100644 index 0000000..bd7f9a5 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_flag_en.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_flag_es.png b/usr/local/www/themes/pfsense/images/icons/icon_flag_es.png new file mode 100644 index 0000000..434776c Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_flag_es.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_flag_pt_BR.png b/usr/local/www/themes/pfsense/images/icons/icon_flag_pt_BR.png new file mode 100644 index 0000000..f786349 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_flag_pt_BR.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_frmfld_cert.png b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_cert.png new file mode 100644 index 0000000..48a34b6 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_cert.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_frmfld_file.png b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_file.png new file mode 100644 index 0000000..48a9ed2 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_file.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_frmfld_group.png b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_group.png new file mode 100644 index 0000000..7d929c0 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_group.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_frmfld_host.png b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_host.png new file mode 100644 index 0000000..867ef2c Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_host.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_frmfld_imp.png b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_imp.png new file mode 100644 index 0000000..f667cfc Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_imp.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_frmfld_mail.png b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_mail.png new file mode 100644 index 0000000..d2d4548 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_mail.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_frmfld_pwd.png b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_pwd.png new file mode 100644 index 0000000..06b53a1 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_pwd.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_frmfld_search.png b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_search.png new file mode 100644 index 0000000..33de926 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_search.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_frmfld_time.png b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_time.png new file mode 100644 index 0000000..aa8300a Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_time.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_frmfld_unknown.png b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_unknown.png new file mode 100644 index 0000000..1857d0e Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_unknown.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_frmfld_url.png b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_url.png new file mode 100644 index 0000000..cf56792 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_url.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_frmfld_user.png b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_user.png new file mode 100644 index 0000000..e00eebe Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_frmfld_user.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_ifalias.gif b/usr/local/www/themes/pfsense/images/icons/icon_ifalias.gif new file mode 100644 index 0000000..0c569a7 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_ifalias.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_ifalias_d.gif b/usr/local/www/themes/pfsense/images/icons/icon_ifalias_d.gif new file mode 100644 index 0000000..faa84d4 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_ifalias_d.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_plus_bl.gif b/usr/local/www/themes/pfsense/images/icons/icon_plus_bl.gif new file mode 100644 index 0000000..8dcd7c0 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_plus_bl.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_plus_bl_p.gif b/usr/local/www/themes/pfsense/images/icons/icon_plus_bl_p.gif new file mode 100644 index 0000000..0c79849 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_plus_bl_p.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_plus_p.gif b/usr/local/www/themes/pfsense/images/icons/icon_plus_p.gif new file mode 100644 index 0000000..eb41284 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_plus_p.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_system_lock_screen.png b/usr/local/www/themes/pfsense/images/icons/icon_system_lock_screen.png new file mode 100644 index 0000000..30f306d Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_system_lock_screen.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_system_logout.png b/usr/local/www/themes/pfsense/images/icons/icon_system_logout.png new file mode 100644 index 0000000..9bbb6c7 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_system_logout.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_trapped.gif b/usr/local/www/themes/pfsense/images/icons/icon_trapped.gif new file mode 100644 index 0000000..ffeb2cd Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_trapped.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_wzd_nsaved.png b/usr/local/www/themes/pfsense/images/icons/icon_wzd_nsaved.png new file mode 100644 index 0000000..21cb27d Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_wzd_nsaved.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/icon_wzd_saved.png b/usr/local/www/themes/pfsense/images/icons/icon_wzd_saved.png new file mode 100644 index 0000000..ab82946 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/icon_wzd_saved.png differ diff --git a/usr/local/www/themes/pfsense/images/icons/in.gif b/usr/local/www/themes/pfsense/images/icons/in.gif new file mode 100644 index 0000000..f1da771 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/in.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/in_d.gif b/usr/local/www/themes/pfsense/images/icons/in_d.gif new file mode 100644 index 0000000..18e26be Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/in_d.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/out.gif b/usr/local/www/themes/pfsense/images/icons/out.gif new file mode 100644 index 0000000..1a1d1d5 Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/out.gif differ diff --git a/usr/local/www/themes/pfsense/images/icons/out_d.gif b/usr/local/www/themes/pfsense/images/icons/out_d.gif new file mode 100644 index 0000000..879f1da Binary files /dev/null and b/usr/local/www/themes/pfsense/images/icons/out_d.gif differ diff --git a/usr/local/www/themes/the_wall/images/icons/icon_chain.png b/usr/local/www/themes/the_wall/images/icons/icon_chain.png new file mode 100644 index 0000000..12db07a Binary files /dev/null and b/usr/local/www/themes/the_wall/images/icons/icon_chain.png differ -- cgit v1.1 From f81cbdad2989a7da6ab4725a1b249b86570a3b35 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 21 Jun 2011 11:44:47 -0400 Subject: Use correct directory --- etc/rc.php_ini_setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index 0135e9c..295dbfc 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -194,13 +194,13 @@ fi # Read in zend modules if [ -d /etc/php_dynamodules_zend ]; then - DYNA_MODULES=`/bin/ls /etc/php_dynamodules/` + DYNA_MODULES=`/bin/ls /etc/php_dynamodules_zend/` PHP_ZEND_MODULES="$PHP_ZEND_MODULES $DYNA_MODULES" fi # Read in zend threaded modules if [ -d /etc/php_dynamodules_zend_ts ]; then - DYNA_MODULES=`/bin/ls /etc/php_dynamodules/` + DYNA_MODULES=`/bin/ls /etc/php_dynamodules_zend_ts/` PHP_ZEND_MODULES_TS="$PHP_ZEND_MODULES $DYNA_MODULES" fi -- cgit v1.1 From 490615d3bc187e108cbdc8d13f30c9dda6edfbd5 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 21 Jun 2011 12:08:04 -0400 Subject: Add custom boot early hook --- etc/rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/rc b/etc/rc index 75fa7bf..b5a143f 100755 --- a/etc/rc +++ b/etc/rc @@ -359,6 +359,12 @@ if [ "$PLATFORM" = "pfSense" ]; then /usr/local/bin/php -q /etc/ecl.php fi +if [ -f /etc/rc.custom_boot_early ]; then + /bin/echo -n "Launching /etc/rc.custom_boot_early..."; + /etc/rc.custom_boot_early + echo "Done" +fi + nohup /usr/bin/nice -n20 /usr/local/sbin/check_reload_status # let the PHP-based configuration subsystem set up the system now -- cgit v1.1 From 1015b3a966c39d5cf1bd58e4f6225fffd14091c1 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Tue, 21 Jun 2011 19:44:05 +0200 Subject: If no event_address in globals.inc specified assume the default. Also fixed whitespaces. --- etc/inc/util.inc | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/etc/inc/util.inc b/etc/inc/util.inc index b165fec..9906ae5 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -139,6 +139,9 @@ function unlock($cfglckkey = 0) { function send_event($cmd) { global $g; + if(!isset($g['event_address'])) + $g['event_address'] = "unix:///var/run/check_reload_status"; + $try = 0; while ($try < 3) { $fd = @fsockopen($g['event_address']); @@ -156,20 +159,23 @@ function send_event($cmd) { } function send_multiple_events($cmds) { - global $g; + global $g; + if(!isset($g['event_address'])) + $g['event_address'] = "unix:///var/run/check_reload_status"; + if (!is_array($cmds)) return; - $fd = fsockopen($g['event_address']); - if ($fd) { + $fd = fsockopen($g['event_address']); + if ($fd) { foreach ($cmds as $cmd) { - fwrite($fd, $cmd); - $resp = fread($fd, 4096); - if ($resp != "OK\n") - log_error("send_event: sent {$cmd} got {$resp}"); + fwrite($fd, $cmd); + $resp = fread($fd, 4096); + if ($resp != "OK\n") + log_error("send_event: sent {$cmd} got {$resp}"); } - fclose($fd); - } + fclose($fd); + } } function refcount_init($reference) { -- cgit v1.1 From 5bbd08e191f9f12351d5c49a39d0b5b7879103f7 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Tue, 21 Jun 2011 20:05:51 +0200 Subject: More whitespace fixes. --- etc/inc/util.inc | 393 +++++++++++++++++++++++++++---------------------------- 1 file changed, 194 insertions(+), 199 deletions(-) diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 9906ae5..683a1d8 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -45,14 +45,14 @@ function isvalidpid($pid) { $output = ""; exec("/bin/pgrep -F {$pid}", $output, $retval); - return (intval($retval) == 0); + return (intval($retval) == 0); } function is_process_running($process) { $output = ""; exec("/bin/pgrep -ax {$process}", $output, $retval); - return (intval($retval) == 0); + return (intval($retval) == 0); } function isvalidproc($proc) { @@ -408,10 +408,10 @@ function is_ipaddroralias($ipaddr) { if (is_alias($ipaddr)) { if (is_array($config['aliases']['alias'])) { foreach ($config['aliases']['alias'] as $alias) { - if ($alias['name'] == $ipaddr && $alias['type'] != "port") + if ($alias['name'] == $ipaddr && $alias['type'] != "port") return true; } - } + } return false; } else return is_ipaddr($ipaddr); @@ -436,7 +436,6 @@ function is_subnet($subnet) { /* returns true if $subnet is a valid subnet in CIDR format or an alias thereof */ function is_subnetoralias($subnet) { - global $aliastable; if (isset($aliastable[$subnet]) && is_subnet($aliastable[$subnet])) @@ -490,7 +489,7 @@ function is_port($port) { $tmpports = explode(":", $port); foreach($tmpports as $tmpport) { if (getservbyname($tmpport, "tcp") || getservbyname($tmpport, "udp")) - continue; + continue; if (!ctype_digit($tmpport)) return false; else if ((intval($tmpport) < 1) || (intval($tmpport) > 65535)) @@ -501,28 +500,28 @@ function is_port($port) { /* returns true if $portrange is a valid TCP/UDP portrange (":") */ function is_portrange($portrange) { - $ports = explode(":", $portrange); + $ports = explode(":", $portrange); - if(count($ports) == 2 && is_port($ports[0]) && is_port($ports[1])) - return true; - else - return false; + if(count($ports) == 2 && is_port($ports[0]) && is_port($ports[1])) + return true; + else + return false; } /* returns true if $port is a valid port number or an alias thereof */ function is_portoralias($port) { global $config; - if (is_alias($port)) { - if (is_array($config['aliases']['alias'])) { - foreach ($config['aliases']['alias'] as $alias) { - if ($alias['name'] == $port && $alias['type'] == "port") - return true; - } - } - return false; - } else - return is_port($port); + if (is_alias($port)) { + if (is_array($config['aliases']['alias'])) { + foreach ($config['aliases']['alias'] as $alias) { + if ($alias['name'] == $port && $alias['type'] == "port") + return true; + } + } + return false; + } else + return is_port($port); } /* returns true if $val is a valid shaper bandwidth value */ @@ -537,37 +536,37 @@ function get_configured_carp_interface_list() { $iflist = array(); if(is_array($config['virtualip']['vip'])) { - $viparr = &$config['virtualip']['vip']; - foreach ($viparr as $vip) { - switch ($vip['mode']) { - case "carp": - case "carpdev-dhcp": - $vipif = "vip" . $vip['vhid']; - $iflist[$vipif] = $vip['subnet']; - break; - } - } - } + $viparr = &$config['virtualip']['vip']; + foreach ($viparr as $vip) { + switch ($vip['mode']) { + case "carp": + case "carpdev-dhcp": + $vipif = "vip" . $vip['vhid']; + $iflist[$vipif] = $vip['subnet']; + break; + } + } + } return $iflist; } /* return the configured IP aliases list */ function get_configured_ip_aliases_list() { - global $config; + global $config; - $alias_list=array(); + $alias_list=array(); - if(is_array($config['virtualip']['vip'])) { - $viparr = &$config['virtualip']['vip']; - foreach ($viparr as $vip) { - if ($vip['mode']=="ipalias") { - $alias_list[$vip['subnet']] = $vip['interface']; - } - } - } + if(is_array($config['virtualip']['vip'])) { + $viparr = &$config['virtualip']['vip']; + foreach ($viparr as $vip) { + if ($vip['mode']=="ipalias") { + $alias_list[$vip['subnet']] = $vip['interface']; + } + } + } - return $alias_list; + return $alias_list; } @@ -717,7 +716,7 @@ function get_interface_list($mode = "active", $keyby = "physical", $vfaces = "") $ifstatus = preg_grep('/status:/', $ifconfig); foreach($ifstatus as $status) { $int = array_shift($intlist); - if(stristr($status, "active")) $upints[] = $int; + if(stristr($status, "active")) $upints[] = $int; } break; default: @@ -734,9 +733,9 @@ function get_interface_list($mode = "active", $keyby = "physical", $vfaces = "") array_shift($ipinfo); foreach($linkinfo as $link) { $friendly = ""; - $alink = explode(" ", $link); - $ifname = rtrim(trim($alink[0]), '*'); - /* trim out all numbers before checking for vfaces */ + $alink = explode(" ", $link); + $ifname = rtrim(trim($alink[0]), '*'); + /* trim out all numbers before checking for vfaces */ if (!in_array(array_shift(preg_split('/\d/', $ifname)), $vfaces) && !stristr($ifname, "_vlan") && !stristr($ifname, "_wlan")) { $toput = array( @@ -773,9 +772,9 @@ function get_interface_list($mode = "active", $keyby = "physical", $vfaces = "") } break; } - } - } - return $iflist; + } + } + return $iflist; } /****f* util/log_error @@ -787,12 +786,12 @@ function get_interface_list($mode = "active", $keyby = "physical", $vfaces = "") * null ******/ function log_error($error) { - global $g; - $page = $_SERVER['SCRIPT_NAME']; - syslog(LOG_WARNING, "$page: $error"); - if ($g['debug']) - syslog(LOG_WARNING, var_dump(debug_backtrace())); - return; + global $g; + $page = $_SERVER['SCRIPT_NAME']; + syslog(LOG_WARNING, "$page: $error"); + if ($g['debug']) + syslog(LOG_WARNING, var_dump(debug_backtrace())); + return; } /****f* util/log_auth @@ -804,12 +803,12 @@ function log_error($error) { * null ******/ function log_auth($error) { - global $g; - $page = $_SERVER['SCRIPT_NAME']; - syslog(LOG_AUTH, "$page: $error"); - if ($g['debug']) - syslog(LOG_WARNING, var_dump(debug_backtrace())); - return; + global $g; + $page = $_SERVER['SCRIPT_NAME']; + syslog(LOG_AUTH, "$page: $error"); + if ($g['debug']) + syslog(LOG_WARNING, var_dump(debug_backtrace())); + return; } /****f* util/exec_command @@ -823,9 +822,9 @@ function log_auth($error) { * This function returns the command's stdout and stderr. ******/ function exec_command($command) { - $output = array(); - exec($command . ' 2>&1 ', $output); - return(implode("\n", $output)); + $output = array(); + exec($command . ' 2>&1 ', $output); + return(implode("\n", $output)); } /* wrapper for exec() */ @@ -841,7 +840,7 @@ function mwexec($command, $mute = false) { $garbage = exec("$command 2>&1", $oarr, $retval); if(isset($config['system']['developerspew'])) - $mute = false; + $mute = false; if(($retval <> 0) && ($mute === false)) { $output = implode(" ", $oarr); log_error("The command '$command' returned exit code '$retval', the output was '$output' "); @@ -851,7 +850,6 @@ function mwexec($command, $mute = false) { /* wrapper for exec() in background */ function mwexec_bg($command) { - global $g; if ($g['debug']) { @@ -874,7 +872,6 @@ function unlink_if_exists($fn) { } /* make a global alias table (for faster lookups) */ function alias_make_table($config) { - global $aliastable; $aliastable = array(); @@ -888,7 +885,6 @@ function alias_make_table($config) { } /* check if an alias exists */ function is_alias($name) { - global $aliastable; return isset($aliastable[$name]); @@ -896,7 +892,6 @@ function is_alias($name) { /* expand a host or network alias, if necessary */ function alias_expand($name) { - global $aliastable; if (isset($aliastable[$name])) @@ -1027,21 +1022,21 @@ function mac_format($clientmac) { function resolve_retry($hostname, $retries = 5) { - if (is_ipaddr($hostname)) - return $hostname; + if (is_ipaddr($hostname)) + return $hostname; - for ($i = 0; $i < $retries; $i++) { - $ip = gethostbyname($hostname); + for ($i = 0; $i < $retries; $i++) { + $ip = gethostbyname($hostname); - if ($ip && $ip != $hostname) { - /* success */ - return $ip; - } + if ($ip && $ip != $hostname) { + /* success */ + return $ip; + } - sleep(1); - } + sleep(1); + } - return false; + return false; } function format_bytes($bytes) { @@ -1057,9 +1052,9 @@ function format_bytes($bytes) { } function update_filter_reload_status($text) { - global $g; + global $g; - file_put_contents("{$g['varrun_path']}/filter_reload_status", $text); + file_put_contents("{$g['varrun_path']}/filter_reload_status", $text); } /****f* util/return_dir_as_array @@ -1071,35 +1066,35 @@ function update_filter_reload_status($text) { * $dir_array - array containing the directory's contents. This array will be empty if the path specified is invalid. ******/ function return_dir_as_array($dir) { - $dir_array = array(); - if (is_dir($dir)) { - if ($dh = opendir($dir)) { - while (($file = readdir($dh)) !== false) { - $canadd = 0; - if($file == ".") $canadd = 1; - if($file == "..") $canadd = 1; - if($canadd == 0) - array_push($dir_array, $file); - } - closedir($dh); - } - } - return $dir_array; + $dir_array = array(); + if (is_dir($dir)) { + if ($dh = opendir($dir)) { + while (($file = readdir($dh)) !== false) { + $canadd = 0; + if($file == ".") $canadd = 1; + if($file == "..") $canadd = 1; + if($canadd == 0) + array_push($dir_array, $file); + } + closedir($dh); + } + } + return $dir_array; } function run_plugins($directory) { - global $config, $g; - - /* process packager manager custom rules */ - $files = return_dir_as_array($directory); - if (is_array($files)) { - foreach ($files as $file) { - if (stristr($file, ".sh") == true) - mwexec($directory . $file . " start"); - else if (!is_dir($directory . "/" . $file) && stristr($file,".inc")) - require_once($directory . "/" . $file); - } + global $config, $g; + + /* process packager manager custom rules */ + $files = return_dir_as_array($directory); + if (is_array($files)) { + foreach ($files as $file) { + if (stristr($file, ".sh") == true) + mwexec($directory . $file . " start"); + else if (!is_dir($directory . "/" . $file) && stristr($file,".inc")) + require_once($directory . "/" . $file); } + } } /* @@ -1107,13 +1102,13 @@ function run_plugins($directory) { * create directory if it doesn't already exist and isn't a file! */ function safe_mkdir($path, $mode=0755) { - global $g; + global $g; - if (!is_file($path) && !is_dir($path)) { - return @mkdir($path, $mode, true); - } else { - return false; - } + if (!is_file($path) && !is_dir($path)) { + return @mkdir($path, $mode, true); + } else { + return false; + } } /* @@ -1121,15 +1116,15 @@ function safe_mkdir($path, $mode=0755) { * create directory tree recursively (mkdir -p) */ function make_dirs($path, $mode = 0755) { - $base = ''; - foreach (explode('/', $path) as $dir) { - $base .= "/$dir"; - if (!is_dir($base)) { - if (!@mkdir($base, $mode)) - return false; - } - } - return true; + $base = ''; + foreach (explode('/', $path) as $dir) { + $base .= "/$dir"; + if (!is_dir($base)) { + if (!@mkdir($base, $mode)) + return false; + } + } + return true; } /* @@ -1200,57 +1195,57 @@ function set_sysctl($values) { * [0]real and [1]available */ function get_memory() { - $matches = ""; - if(file_exists("/var/log/dmesg.boot")) - $mem = `cat /var/log/dmesg.boot | grep memory`; - else - $mem = `dmesg -a | grep memory`; - if (preg_match_all("/avail memory.* \((.*)MB\)/", $mem, $matches)) - return array($matches[1][0], $matches[1][0]); - if(!$real && !$avail) { - $real = trim(`sysctl hw.physmem | cut -d' ' -f2`); - $avail = trim(`sysctl hw.realmem | cut -d' ' -f2`); - /* convert from bytes to megabytes */ - return array(($real/1048576),($avail/1048576)); - } + $matches = ""; + if(file_exists("/var/log/dmesg.boot")) + $mem = `cat /var/log/dmesg.boot | grep memory`; + else + $mem = `dmesg -a | grep memory`; + if (preg_match_all("/avail memory.* \((.*)MB\)/", $mem, $matches)) + return array($matches[1][0], $matches[1][0]); + if(!$real && !$avail) { + $real = trim(`sysctl hw.physmem | cut -d' ' -f2`); + $avail = trim(`sysctl hw.realmem | cut -d' ' -f2`); + /* convert from bytes to megabytes */ + return array(($real/1048576),($avail/1048576)); + } } function mute_kernel_msgs() { - global $config; - // Do not mute serial console. The kernel gets very very cranky - // and will start dishing you cannot control tty errors. - if(trim(file_get_contents("/etc/platform")) == "nanobsd") - return; - if($config['system']['enableserial']) - return; - exec("/sbin/conscontrol mute on"); + global $config; + // Do not mute serial console. The kernel gets very very cranky + // and will start dishing you cannot control tty errors. + if(trim(file_get_contents("/etc/platform")) == "nanobsd") + return; + if($config['system']['enableserial']) + return; + exec("/sbin/conscontrol mute on"); } function unmute_kernel_msgs() { - global $config; - // Do not mute serial console. The kernel gets very very cranky - // and will start dishing you cannot control tty errors. - if(trim(file_get_contents("/etc/platform")) == "nanobsd") - return; - exec("/sbin/conscontrol mute off"); + global $config; + // Do not mute serial console. The kernel gets very very cranky + // and will start dishing you cannot control tty errors. + if(trim(file_get_contents("/etc/platform")) == "nanobsd") + return; + exec("/sbin/conscontrol mute off"); } function start_devd() { global $g; - exec("/sbin/devd"); - sleep(1); + exec("/sbin/devd"); + sleep(1); } function is_interface_vlan_mismatch() { - global $config, $g; + global $config, $g; - if (is_array($config['vlans']['vlan'])) { - foreach ($config['vlans']['vlan'] as $vlan) { - if (does_interface_exist($vlan['if']) == false) + if (is_array($config['vlans']['vlan'])) { + foreach ($config['vlans']['vlan'] as $vlan) { + if (does_interface_exist($vlan['if']) == false) return true; - } - } + } + } return false; } @@ -1297,7 +1292,7 @@ function carp_sync_client() { * true/false ******/ function isAjax() { - return isset ($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'; + return isset ($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'; } /****f* util/timeout @@ -1457,51 +1452,51 @@ function is_file_included($file = "") { This function was borrowed from a comment on PHP.net at the following URL: http://www.php.net/manual/en/function.array-merge-recursive.php#73843 */ -function array_merge_recursive_unique($array0, $array1) -{ - $arrays = func_get_args(); - $remains = $arrays; +function array_merge_recursive_unique($array0, $array1) { + + $arrays = func_get_args(); + $remains = $arrays; - // We walk through each arrays and put value in the results (without - // considering previous value). - $result = array(); + // We walk through each arrays and put value in the results (without + // considering previous value). + $result = array(); - // loop available array - foreach($arrays as $array) { + // loop available array + foreach($arrays as $array) { - // The first remaining array is $array. We are processing it. So - // we remove it from remaing arrays. + // The first remaining array is $array. We are processing it. So + // we remove it from remaing arrays. array_shift($remains); - // We don't care non array param, like array_merge since PHP 5.0. - if(is_array($array)) { - // Loop values - foreach($array as $key => $value) { - if(is_array($value)) { - // we gather all remaining arrays that have such key available - $args = array(); - foreach($remains as $remain) { - if(array_key_exists($key, $remain)) { - array_push($args, $remain[$key]); - } - } - - if(count($args) > 2) { - // put the recursion - $result[$key] = call_user_func_array(__FUNCTION__, $args); - } else { - foreach($value as $vkey => $vval) { - $result[$key][$vkey] = $vval; - } - } - } else { - // simply put the value - $result[$key] = $value; - } - } - } - } - return $result; + // We don't care non array param, like array_merge since PHP 5.0. + if(is_array($array)) { + // Loop values + foreach($array as $key => $value) { + if(is_array($value)) { + // we gather all remaining arrays that have such key available + $args = array(); + foreach($remains as $remain) { + if(array_key_exists($key, $remain)) { + array_push($args, $remain[$key]); + } + } + + if(count($args) > 2) { + // put the recursion + $result[$key] = call_user_func_array(__FUNCTION__, $args); + } else { + foreach($value as $vkey => $vval) { + $result[$key][$vkey] = $vval; + } + } + } else { + // simply put the value + $result[$key] = $value; + } + } + } + } + return $result; } ?> -- cgit v1.1 From 9c881f26b5e09bef0904a58fb83956a2d4ba1896 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 21 Jun 2011 14:55:23 -0400 Subject: Add extension directory --- etc/rc.php_ini_setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index 295dbfc..8ac861c 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -226,7 +226,7 @@ done for EXT in $PHP_ZEND_MODULES; do # Ensure extension exists before adding. if [ -f "${EXTENSIONSDIR}${EXT}.so" ]; then - echo "zend_extension=${EXT}.so" >> /usr/local/lib/php.ini + echo "${EXTENSIONSDIR}/zend_extension=${EXT}.so" >> /usr/local/lib/php.ini fi done @@ -234,7 +234,7 @@ done for EXT in $PHP_ZEND_MODULES_TS; do # Ensure extension exists before adding. if [ -f "${EXTENSIONSDIR}${EXT}.so" ]; then - echo "zend_extension_ts=${EXT}.so" >> /usr/local/lib/php.ini + echo "${EXTENSIONSDIR}/zend_extension_ts=${EXT}.so" >> /usr/local/lib/php.ini fi done -- cgit v1.1 From 140331035067961dc083493502a8932fe6699250 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 21 Jun 2011 15:04:02 -0400 Subject: Fix copy and pasto --- etc/rc.php_ini_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index 8ac861c..d92e70b 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -201,7 +201,7 @@ fi # Read in zend threaded modules if [ -d /etc/php_dynamodules_zend_ts ]; then DYNA_MODULES=`/bin/ls /etc/php_dynamodules_zend_ts/` - PHP_ZEND_MODULES_TS="$PHP_ZEND_MODULES $DYNA_MODULES" + PHP_ZEND_MODULES_TS="$PHP_ZEND_MODULES_TS $DYNA_MODULES" fi # Loop through and generate modules to load. -- cgit v1.1 From adc4bdcc47ca73deac02725c7bfdd07ac5eeb684 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 21 Jun 2011 15:13:48 -0400 Subject: Set extension name correctly.. Duh! --- etc/rc.php_ini_setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index d92e70b..670411c 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -226,7 +226,7 @@ done for EXT in $PHP_ZEND_MODULES; do # Ensure extension exists before adding. if [ -f "${EXTENSIONSDIR}${EXT}.so" ]; then - echo "${EXTENSIONSDIR}/zend_extension=${EXT}.so" >> /usr/local/lib/php.ini + echo "zend_extension=${EXTENSIONSDIR}/${EXT}.so" >> /usr/local/lib/php.ini fi done @@ -234,7 +234,7 @@ done for EXT in $PHP_ZEND_MODULES_TS; do # Ensure extension exists before adding. if [ -f "${EXTENSIONSDIR}${EXT}.so" ]; then - echo "${EXTENSIONSDIR}/zend_extension_ts=${EXT}.so" >> /usr/local/lib/php.ini + echo "zend_extension_ts=${EXTENSIONSDIR}/${EXT}.so" >> /usr/local/lib/php.ini fi done -- cgit v1.1 From f27526cd2982f3da3108ed09000df8f4a51eea81 Mon Sep 17 00:00:00 2001 From: Evgeny Yurchenko Date: Tue, 21 Jun 2011 03:59:32 -0400 Subject: Do not store CA and CERT in config unless needed. Will allow deleting unused certs. --- usr/local/www/vpn_ipsec_phase1.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php index 69cb438..31ce5e9 100644 --- a/usr/local/www/vpn_ipsec_phase1.php +++ b/usr/local/www/vpn_ipsec_phase1.php @@ -139,6 +139,11 @@ if ($_POST) { /* input validation */ $method = $pconfig['authentication_method']; + // Unset ca and cert if not required to avaoid storing in config + if ($method == "pre_shared_key" || method == "xauth_psk_server"){ + unset($pconfig['caref']); + unset($pconfig['certref']); + } // Only require PSK here for normal PSK tunnels (not mobile) or xauth. // For RSA methods, require the CA/Cert. -- cgit v1.1 From 68d1632c2af1fe3d6c9dc36b4bda5bf81b986f25 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Wed, 22 Jun 2011 16:39:26 +0200 Subject: New line missing after pkg is extracted. --- etc/inc/pkg-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index ebc2df2..660d442 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -491,7 +491,7 @@ function pkg_fetch_recursive($pkgname, $filename, $dependlevel = 0, $base_url = update_output_window($static_output); } } - $static_output .= " (extracting)"; + $static_output .= " (extracting)\n"; update_output_window($static_output); $slaveout = ""; exec("/usr/bin/tar --fast-read -O -f {$fetchto} -x +CONTENTS 2>&1", $slaveout); -- cgit v1.1 From 91c31339104f424dad3de75f815697994b68a7c3 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Wed, 22 Jun 2011 19:19:41 +0200 Subject: Revert "Correct displaying any availble default value." This reverts commit 01c170c4612a4afdbaa2d6e9bf98552dddc1cde3. --- usr/local/www/pkg_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index 9f883cd..64b1fa9 100755 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -464,7 +464,7 @@ if ($pkg['tabs'] <> "") { $value = $_POST[$fieldname]; if (is_array($value)) $value = implode(',', $value); } else { - if (isset($id) && $a_pkg[$id] && $a_pkg[$id][$fieldname]) + if (isset($id) && $a_pkg[$id]) $value = $a_pkg[$id][$fieldname]; else $value = $pkga['default_value']; -- cgit v1.1 From ff629977e3d45c1d41fc12449e647abd8b780241 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 22 Jun 2011 14:50:55 -0400 Subject: Properly generate a subnet based on the range of IPs for PPTP clients. Bonus: fix off-by-one math error in the NAT code that does the same thing. Fixes #1614 --- etc/inc/filter.inc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 38ab773..b62f7ce 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1349,7 +1349,7 @@ function filter_nat_rules_generate() { } /* PPTP subnet */ if(($config['pptpd']['mode'] == "server" ) && is_private_ip($config['pptpd']['remoteip'])) { - $pptp_subnets = ip_range_to_subnet_array($config['pptpd']['remoteip'], long2ip32(ip2long($config['pptpd']['remoteip'])+$config['pptpd']['n_pptp_units'])); + $pptp_subnets = ip_range_to_subnet_array($config['pptpd']['remoteip'], long2ip32(ip2long($config['pptpd']['remoteip'])+($config['pptpd']['n_pptp_units']-1))); $numberofnathosts += count($pptp_subnets); $tonathosts .= implode(" ", $pptp_subnets) . " "; } @@ -1622,7 +1622,7 @@ function filter_generate_user_rule_arr($rule) { } function filter_generate_address(& $rule, $target = "source", $isnat = false) { - global $FilterIflist; + global $FilterIflist, $config; $src = ""; if(isset($rule[$target]['any'])) { @@ -1664,9 +1664,8 @@ function filter_generate_address(& $rule, $target = "source", $isnat = false) { $src = "{$lansa}/{$lansn}"; break; case 'pptp': - $pptpsa = gen_subnet($FilterIflist['pptp']['sa'], $FilterIflist['pptp']['sn']); - $pptpsn = $FilterIflist['pptp']['sn']; - $src = "{$pptpsa}/{$pptpsn}"; + $pptp_subnets = ip_range_to_subnet_array($config['pptpd']['remoteip'], long2ip32(ip2long($config['pptpd']['remoteip'])+($config['pptpd']['n_pptp_units']-1))); + $src = "{ " . implode(" ", $pptp_subnets) . " }"; break; case 'pppoe': /* XXX: This needs to be fixed somehow! */ -- cgit v1.1 From e0ed1aa3bdb7f4ade846500caf936d082aff01d0 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 22 Jun 2011 21:25:35 +0000 Subject: The fix of Ticket #1341 broke the FQDN aliases with only one hostname entry, reported-by: http://forum.pfsense.org/index.php/topic,38051.0.html. Fix this regression by properly handling this cases. --- etc/inc/filter.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index b62f7ce..6f91660 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -558,7 +558,8 @@ function filter_generate_aliases() { $tableaddrs = "{$addrlist}{$extralias}"; if(empty($tableaddrs)) { $aliases .= "table <{$aliased['name']}> persist\n"; - $after_filter_configure_run[] = "/sbin/pfctl -T flush -t " . escapeshellarg($aliased['name']); + if (empty($aliased['address'])) + $after_filter_configure_run[] = "/sbin/pfctl -T flush -t " . escapeshellarg($aliased['name']); } else $aliases .= "table <{$aliased['name']}> { {$addrlist}{$extralias} } \n"; -- cgit v1.1 From efea79691de94e696b97c2c4092eaf07c350882e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 23 Jun 2011 11:11:29 -0400 Subject: Backup rrdtool binaries during package reinstallation. Currently that is the onlyp package that can be clobbered by others. We will rework this completely in a future version when we adopt PBIs. --- etc/inc/pkg-utils.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 660d442..a5ced57 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -321,6 +321,7 @@ function uninstall_package($pkg_name) { $static_output .= "Backing up libraries... "; update_output_window($static_output); exec("/usr/bin/tar czPf /tmp/pkg_libs.tgz `/bin/cat /etc/pfSense_md5.txt | /usr/bin/grep 'local/lib' | /usr/bin/awk '{ print $2 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d')' -f1`"); + exec("/usr/bin/tar czPf /tmp/pkg_bins.tgz `/bin/cat /etc/pfSense_md5.txt | /usr/bin/grep 'rrdtool' | /usr/bin/awk '{ print $2 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d')' -f1`"); $static_output .= "\n"; } } @@ -345,7 +346,9 @@ function uninstall_package($pkg_name) { $static_output .= "Cleaning up... "; update_output_window($static_output); exec("/usr/bin/tar xzPfU /tmp/pkg_libs.tgz -C /"); - @unlink("/tmp/pkg_libs.tgz"); + exec("/usr/bin/tar xzPfU /tmp/pkg_bins.tgz -C /"); + @unlink("/tmp/pkg_libs.tgz"); + @unlink("/tmp/pkg_bins.tgz"); } } @@ -1190,4 +1193,4 @@ function pkg_reinstall_all() { } } -?> +?> \ No newline at end of file -- cgit v1.1 From cb6630e5b527cb17df5f75eac362add5d8bdf9de Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 23 Jun 2011 11:14:06 -0400 Subject: Loosen grep for rrd --- etc/inc/pkg-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index a5ced57..78a9463 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -321,7 +321,7 @@ function uninstall_package($pkg_name) { $static_output .= "Backing up libraries... "; update_output_window($static_output); exec("/usr/bin/tar czPf /tmp/pkg_libs.tgz `/bin/cat /etc/pfSense_md5.txt | /usr/bin/grep 'local/lib' | /usr/bin/awk '{ print $2 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d')' -f1`"); - exec("/usr/bin/tar czPf /tmp/pkg_bins.tgz `/bin/cat /etc/pfSense_md5.txt | /usr/bin/grep 'rrdtool' | /usr/bin/awk '{ print $2 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d')' -f1`"); + exec("/usr/bin/tar czPf /tmp/pkg_bins.tgz `/bin/cat /etc/pfSense_md5.txt | /usr/bin/grep 'rrd' | /usr/bin/awk '{ print $2 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d')' -f1`"); $static_output .= "\n"; } } -- cgit v1.1 From d2a08a06eb568ff9495e8dab0662fdc08f976d93 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 23 Jun 2011 11:34:31 -0400 Subject: Add small comment about rrd binaries --- etc/inc/pkg-utils.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 78a9463..8bf9515 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -316,6 +316,7 @@ function uninstall_package($pkg_name) { // Back up /usr/local/lib libraries first if // not running from the builder code. + // also take into account rrd binaries if(!$builder_package_install) { if(!file_exists("/tmp/pkg_libs.tgz")) { $static_output .= "Backing up libraries... "; -- cgit v1.1 From ca4acbcdd84195c9917363fceabcd4b5294bf1d0 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 23 Jun 2011 14:08:38 -0400 Subject: After an interface mismatch and apply actually show when we are rebooting instead of the same message that the interface mismatch exists when really the system is rebooting. --- usr/local/www/interfaces_assign.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index 3e35b0e..88efcbd 100755 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -154,9 +154,10 @@ if (is_array($config['openvpn'])) { } if ($_POST['apply']) { - if (file_exists("/var/run/interface_mismatch_reboot_needed")) + if (file_exists("/var/run/interface_mismatch_reboot_needed")) { system_reboot(); - else { + $rebootingnow = true; + } else { write_config(); $retval = 0; @@ -370,11 +371,14 @@ if ($_GET['act'] == "add" && (count($config['interfaces']) < count($portlist))) include("head.inc"); if(file_exists("/var/run/interface_mismatch_reboot_needed")) - if ($_POST) - $savemsg = gettext("Reboot is needed. Please apply the settings in order to reboot."); - else + if ($_POST) { + if($rebootingnow) + $savemsg = gettext("The system is now rebooting. Please wait."); + else + $savemsg = gettext("Reboot is needed. Please apply the settings in order to reboot."); + } else { $savemsg = gettext("Interface mismatch detected. Please resolve the mismatch and click Save. The firewall will reboot afterwards."); - + } ?> -- cgit v1.1 From 95c8cf48f9bd72da5371aa01a03a070885411dbf Mon Sep 17 00:00:00 2001 From: Evgeny Yurchenko Date: Thu, 23 Jun 2011 19:02:34 -0400 Subject: Intermediate CAs and openssl_xxx() error checking in CA management. --- etc/inc/certs.inc | 42 ++++++++++++++++++++++++ usr/local/www/system_camanager.php | 67 +++++++++++++++++++++++++++++++++++--- 2 files changed, 105 insertions(+), 4 deletions(-) diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc index 3595f45..67a3540 100644 --- a/etc/inc/certs.inc +++ b/etc/inc/certs.inc @@ -186,6 +186,48 @@ function ca_create(& $ca, $keylen, $lifetime, $dn) { return true; } +function ca_inter_create(& $ca, $keylen, $lifetime, $dn, $caref) { + // Create Intermediate Certificate Authority + $signing_ca =& lookup_ca($caref); + if (!$signing_ca) + return false; + + $signing_ca_res_crt = openssl_x509_read(base64_decode($signing_ca['crt'])); + $signing_ca_res_key = openssl_pkey_get_private(array(0 => base64_decode($signing_ca['prv']) , 1 => "")); + if (!$signing_ca_res_crt || !$signing_ca_res_key) return false; + $signing_ca_serial = ++$signing_ca['serial']; + + $args = array( + "digest_alg" => "sha1", + "private_key_bits" => (int)$keylen, + "private_key_type" => OPENSSL_KEYTYPE_RSA, + "encrypt_key" => false); + + // generate a new key pair + $res_key = openssl_pkey_new($args); + if (!$res_key) return false; + + // generate a certificate signing request + $res_csr = openssl_csr_new($dn, $res_key, $args); + if (!$res_csr) return false; + + // Sign the certificate + $res_crt = openssl_csr_sign($res_csr, $signing_ca_res_crt, $signing_ca_res_key, $lifetime, $args, $signing_ca_serial); + if (!$res_crt) return false; + + // export our certificate data + if (!openssl_pkey_export($res_key, $str_key) || + !openssl_x509_export($res_crt, $str_crt)) + return false; + + // return our ca information + $ca['crt'] = base64_encode($str_crt); + $ca['prv'] = base64_encode($str_key); + $ca['serial'] = 0; + + return true; +} + function cert_import(& $cert, $crt_str, $key_str) { $cert['crt'] = base64_encode($crt_str); diff --git a/usr/local/www/system_camanager.php b/usr/local/www/system_camanager.php index a4b60af..92a129a 100644 --- a/usr/local/www/system_camanager.php +++ b/usr/local/www/system_camanager.php @@ -42,7 +42,8 @@ require_once("certs.inc"); $ca_methods = array( "existing" => gettext("Import an existing Certificate Authority"), - "internal" => gettext("Create an internal Certificate Authority")); + "internal" => gettext("Create an internal Certificate Authority"), + "intermediate" => gettext("Create an intermediate Certificate Authority")); $ca_keylens = array( "512", "1024", "2048", "4096"); @@ -154,7 +155,7 @@ if ($act == "expkey") { if ($_POST) { - $input_errors = array(); + unset($input_errors); $pconfig = $_POST; /* input validation */ @@ -183,6 +184,22 @@ if ($_POST) { gettext("Distinguished name Email Address"), gettext("Distinguished name Common Name")); } + if ($pconfig['method'] == "intermediate") { + $reqdfields = explode(" ", + "descr caref keylen lifetime dn_country dn_state dn_city ". + "dn_organization dn_email dn_commonname"); + $reqdfieldsn = array( + gettext("Descriptive name"), + gettext("Signing Certificate Authority"), + gettext("Key length"), + gettext("Lifetime"), + gettext("Distinguished name Country Code"), + gettext("Distinguished name State or Province"), + gettext("Distinguished name City"), + gettext("Distinguished name Organization"), + gettext("Distinguished name Email Address"), + gettext("Distinguished name Common Name")); + } do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); if ($pconfig['method'] != "existing") @@ -229,7 +246,7 @@ if ($_POST) { if ($pconfig['method'] == "existing") ca_import($ca, $pconfig['cert'], $pconfig['key'], $pconfig['serial']); - if ($pconfig['method'] == "internal") { + else if ($pconfig['method'] == "internal") { $dn = array( 'countryName' => $pconfig['dn_country'], 'stateOrProvinceName' => $pconfig['dn_state'], @@ -239,6 +256,23 @@ if ($_POST) { 'commonName' => $pconfig['dn_commonname']); ca_create($ca, $pconfig['keylen'], $pconfig['lifetime'], $dn); } + else if ($pconfig['method'] == "intermediate") { + $dn = array( + 'countryName' => $pconfig['dn_country'], + 'stateOrProvinceName' => $pconfig['dn_state'], + 'localityName' => $pconfig['dn_city'], + 'organizationName' => $pconfig['dn_organization'], + 'emailAddress' => $pconfig['dn_email'], + 'commonName' => $pconfig['dn_commonname']); + $old_err_level = error_reporting(0); /* otherwise openssl_ functions throw warings directly to a page screwing menu tab */ + if (!ca_inter_create($ca, $pconfig['keylen'], $pconfig['lifetime'], $dn, $pconfig['caref'])){ + while($ssl_err = openssl_error_string()){ + $input_errors = array(); + array_push($input_errors, "openssl library returns: " . $ssl_err); + } + } + error_reporting($old_err_level); + } } if (isset($id) && $a_ca[$id]) @@ -246,7 +280,8 @@ if ($_POST) { else $a_ca[] = $ca; - write_config(); + if (!$input_errors) + write_config(); // pfSenseHeader("system_camanager.php"); } @@ -268,10 +303,17 @@ function method_change() { case 0: document.getElementById("existing").style.display=""; document.getElementById("internal").style.display="none"; + document.getElementById("intermediate").style.display="none"; break; case 1: document.getElementById("existing").style.display="none"; document.getElementById("internal").style.display=""; + document.getElementById("intermediate").style.display="none"; + break; + case 2: + document.getElementById("existing").style.display="none"; + document.getElementById("internal").style.display=""; + document.getElementById("intermediate").style.display=""; break; } } @@ -385,6 +427,23 @@ function method_change() { + + + + + + -- cgit v1.1 From 1b6d9fa59cdc3a284497abb0bfa415741c258d10 Mon Sep 17 00:00:00 2001 From: Evgeny Yurchenko Date: Thu, 23 Jun 2011 20:05:35 -0400 Subject: Internal CA creation error handling added. --- etc/inc/certs.inc | 8 ++++++-- usr/local/www/system_camanager.php | 11 ++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc index 67a3540..b1203cf 100644 --- a/etc/inc/certs.inc +++ b/etc/inc/certs.inc @@ -167,16 +167,20 @@ function ca_create(& $ca, $keylen, $lifetime, $dn) { // generate a new key pair $res_key = openssl_pkey_new($args); + if (!$res_key) return false; // generate a certificate signing request $res_csr = openssl_csr_new($dn, $res_key, $args); + if (!$res_csr) return false; // self sign the certificate $res_crt = openssl_csr_sign($res_csr, null, $res_key, $lifetime, $args); + if (!$res_crt) return false; // export our certificate data - openssl_pkey_export($res_key, $str_key); - openssl_x509_export($res_crt, $str_crt); + if (!openssl_pkey_export($res_key, $str_key) || + !openssl_x509_export($res_crt, $str_crt)) + return false; // return our ca information $ca['crt'] = base64_encode($str_crt); diff --git a/usr/local/www/system_camanager.php b/usr/local/www/system_camanager.php index 92a129a..9a18c87 100644 --- a/usr/local/www/system_camanager.php +++ b/usr/local/www/system_camanager.php @@ -243,6 +243,7 @@ if ($_POST) { if (!empty($pconfig['key'])) $ca['prv'] = base64_encode($pconfig['key']); } else { + $old_err_level = error_reporting(0); /* otherwise openssl_ functions throw warings directly to a page screwing menu tab */ if ($pconfig['method'] == "existing") ca_import($ca, $pconfig['cert'], $pconfig['key'], $pconfig['serial']); @@ -254,7 +255,12 @@ if ($_POST) { 'organizationName' => $pconfig['dn_organization'], 'emailAddress' => $pconfig['dn_email'], 'commonName' => $pconfig['dn_commonname']); - ca_create($ca, $pconfig['keylen'], $pconfig['lifetime'], $dn); + if (!ca_create($ca, $pconfig['keylen'], $pconfig['lifetime'], $dn)){ + while($ssl_err = openssl_error_string()){ + $input_errors = array(); + array_push($input_errors, "openssl library returns: " . $ssl_err); + } + } } else if ($pconfig['method'] == "intermediate") { $dn = array( @@ -264,15 +270,14 @@ if ($_POST) { 'organizationName' => $pconfig['dn_organization'], 'emailAddress' => $pconfig['dn_email'], 'commonName' => $pconfig['dn_commonname']); - $old_err_level = error_reporting(0); /* otherwise openssl_ functions throw warings directly to a page screwing menu tab */ if (!ca_inter_create($ca, $pconfig['keylen'], $pconfig['lifetime'], $dn, $pconfig['caref'])){ while($ssl_err = openssl_error_string()){ $input_errors = array(); array_push($input_errors, "openssl library returns: " . $ssl_err); } } - error_reporting($old_err_level); } + error_reporting($old_err_level); } if (isset($id) && $a_ca[$id]) -- cgit v1.1 From 22b380aa6f4b7401b887945262a2e595d03dac26 Mon Sep 17 00:00:00 2001 From: Evgeny Yurchenko Date: Thu, 23 Jun 2011 20:28:31 -0400 Subject: Internal cert and CSR creation error handling added. --- etc/inc/certs.inc | 16 ++++++++++++---- usr/local/www/system_certmanager.php | 23 +++++++++++++++++++---- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc index b1203cf..6ab448b 100644 --- a/etc/inc/certs.inc +++ b/etc/inc/certs.inc @@ -259,6 +259,7 @@ function cert_create(& $cert, $caref, $keylen, $lifetime, $dn) { $ca_str_key = base64_decode($ca['prv']); $ca_res_crt = openssl_x509_read($ca_str_crt); $ca_res_key = openssl_pkey_get_private(array(0 => $ca_str_key, 1 => "")); + if(!$ca_res_key) return false; $ca_serial = ++$ca['serial']; $args = array( @@ -269,17 +270,21 @@ function cert_create(& $cert, $caref, $keylen, $lifetime, $dn) { // generate a new key pair $res_key = openssl_pkey_new($args); + if(!$res_key) return false; // generate a certificate signing request $res_csr = openssl_csr_new($dn, $res_key, $args); + if(!$res_csr) return false; // self sign the certificate $res_crt = openssl_csr_sign($res_csr, $ca_res_crt, $ca_res_key, $lifetime, $args, $ca_serial); + if(!$res_crt) return false; // export our certificate data - openssl_pkey_export($res_key, $str_key); - openssl_x509_export($res_crt, $str_crt); + if (!openssl_pkey_export($res_key, $str_key) || + !openssl_x509_export($res_crt, $str_crt)) + return false; // return our certificate information $cert['caref'] = $caref; @@ -299,13 +304,16 @@ function csr_generate(& $cert, $keylen, $dn) { // generate a new key pair $res_key = openssl_pkey_new($args); + if(!$res_key) return false; // generate a certificate signing request $res_csr = openssl_csr_new($dn, $res_key, $args); + if(!$res_csr) return false; // export our request data - openssl_pkey_export($res_key, $str_key); - openssl_csr_export($res_csr, $str_csr); + if (!openssl_pkey_export($res_key, $str_key) || + !openssl_csr_export($res_csr, $str_csr)) + return false; // return our request information $cert['csr'] = base64_encode($str_csr); diff --git a/usr/local/www/system_certmanager.php b/usr/local/www/system_certmanager.php index 87b8d91..355621b 100644 --- a/usr/local/www/system_certmanager.php +++ b/usr/local/www/system_certmanager.php @@ -240,6 +240,8 @@ if ($_POST) { $cert['descr'] = $pconfig['descr']; + $old_err_level = error_reporting(0); /* otherwise openssl_ functions throw warings directly to a page screwing menu tab */ + if ($pconfig['method'] == "import") cert_import($cert, $pconfig['cert'], $pconfig['key']); @@ -252,8 +254,13 @@ if ($_POST) { 'emailAddress' => $pconfig['dn_email'], 'commonName' => $pconfig['dn_commonname']); - cert_create($cert, $pconfig['caref'], $pconfig['keylen'], - $pconfig['lifetime'], $dn); + if (!cert_create($cert, $pconfig['caref'], $pconfig['keylen'], + $pconfig['lifetime'], $dn)){ + while($ssl_err = openssl_error_string()){ + $input_errors = array(); + array_push($input_errors, "openssl library returns: " . $ssl_err); + } + } } if ($pconfig['method'] == "external") { @@ -265,8 +272,15 @@ if ($_POST) { 'emailAddress' => $pconfig['csr_dn_email'], 'commonName' => $pconfig['csr_dn_commonname']); - csr_generate($cert, $pconfig['csr_keylen'], $dn); + if(!csr_generate($cert, $pconfig['csr_keylen'], $dn)){ + while($ssl_err = openssl_error_string()){ + $input_errors = array(); + array_push($input_errors, "openssl library returns: " . $ssl_err); + } + } } + error_reporting($old_err_level); + if (isset($id) && $a_cert[$id]) $a_cert[$id] = $cert; else @@ -275,7 +289,8 @@ if ($_POST) { $a_user[$userid]['cert'][] = $cert['refid']; } - write_config(); + if (!$input_errors) + write_config(); if ($userid) pfSenseHeader("system_usermanager.php?act=edit&id={$userid}"); -- cgit v1.1 From 5ca13f69b79ab1e461e7a689d7d02a8c2c0794eb Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 24 Jun 2011 12:10:51 +0000 Subject: Import error handling to avoid errors. --- etc/inc/certs.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc index 6ab448b..3f655b1 100644 --- a/etc/inc/certs.inc +++ b/etc/inc/certs.inc @@ -338,7 +338,7 @@ function csr_get_subject($str_crt, $decode = true) { $components = openssl_csr_get_subject($str_crt); - if (!is_array($components)) + if (empty($components) || !is_array($components)) return "unknown"; ksort($components); @@ -360,7 +360,7 @@ function cert_get_subject($str_crt, $decode = true) { $inf_crt = openssl_x509_parse($str_crt); $components = $inf_crt['subject']; - if (!is_array($components)) + if (empty($components) || !is_array($components)) return "unknown"; ksort($components); @@ -410,9 +410,10 @@ function cert_get_issuer($str_crt, $decode = true) { $inf_crt = openssl_x509_parse($str_crt); $components = $inf_crt['issuer']; - ksort($components); - if (!is_array($components)) + if (empty($components) || !is_array($components)) return "unknown"; + + ksort($components); foreach ($components as $a => $v) { if (!strlen($issuer)) $issuer = "{$a}={$v}"; -- cgit v1.1 From 506514e77bf9823f965e70f6a1c9d8cdefd6413b Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 24 Jun 2011 10:52:28 -0400 Subject: Add LB monitor types to config during upgrade, or they will be missing from boxes upgraded from 1.2.3. --- etc/inc/upgrade_config.inc | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 29f0ac0..9b349d3 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -842,6 +842,46 @@ function upgrade_044_to_045() { function upgrade_045_to_046() { global $config; + /* Load up monitors that are in the default config for 2.0 but not in 1.2.3 + thus wouldn't be in an upgraded config. */ + $config['load_balancer']['monitor_type'] = array ( + array ( 'name' => 'ICMP', + 'type' => 'icmp', + 'descr' => 'ICMP', + 'options' => '', + ), + array ( 'name' => 'TCP', + 'type' => 'tcp', + 'descr' => 'Generic TCP', + 'options' => '', + ), + array ( 'name' => 'HTTP', + 'type' => 'http', + 'descr' => 'Generic HTTP', + 'options' => + array ( 'path' => '/', + 'host' => '', + 'code' => '200', + ), + ), + array ( 'name' => 'HTTPS', + 'type' => 'https', + 'descr' => 'Generic HTTPS', + 'options' => + array ( 'path' => '/', + 'host' => '', + 'code' => '200', + ), + ), + array ( 'name' => 'SMTP', + 'type' => 'send', + 'descr' => 'Generic SMTP', + 'options' => + array ( 'send' => 'EHLO nosuchhost', + 'expect' => '250-', + ), + ), + ); /* Upgrade load balancer from slb to relayd */ if (is_array($config['load_balancer']['virtual_server']) && count($config['load_balancer']['virtual_server'])) { $vs_a = &$config['load_balancer']['virtual_server']; -- cgit v1.1 From 01599e5e95cdc329ccb062fe0837b216af67b2cc Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 24 Jun 2011 19:05:58 +0000 Subject: Remove nohup from the calling for check_reload_status since it may cause issues to the processes that get forked from it. --- etc/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc b/etc/rc index b5a143f..f8194ac 100755 --- a/etc/rc +++ b/etc/rc @@ -365,7 +365,7 @@ if [ -f /etc/rc.custom_boot_early ]; then echo "Done" fi -nohup /usr/bin/nice -n20 /usr/local/sbin/check_reload_status +/usr/bin/nice -n20 /usr/local/sbin/check_reload_status # let the PHP-based configuration subsystem set up the system now echo -n "Launching the init system..." -- cgit v1.1 From 5a7cc1f9e9a94c0bf479cd498e5a51b8fce27511 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 24 Jun 2011 19:09:07 +0000 Subject: No need to use nohup when using mwexec_bg since it calls nohup itself. Also use fullpath to executables. --- etc/inc/openvpn.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index edd22be..5e4dd1e 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -161,7 +161,7 @@ function openvpn_port_next($prot) { function openvpn_get_cipherlist() { $ciphers = array(); - $cipher_out = shell_exec('openvpn --show-ciphers | grep "default key" | awk \'{print $1, "(" $2 "-" $3 ")";}\''); + $cipher_out = shell_exec('/usr/local/sbin/openvpn --show-ciphers | /usr/bin/grep "default key" | /usr/bin/awk \'{print $1, "(" $2 "-" $3 ")";}\''); $cipher_lines = explode("\n", trim($cipher_out)); sort($cipher_lines); foreach ($cipher_lines as $line) { @@ -606,7 +606,7 @@ function openvpn_restart($mode, $settings) { /* start the new process */ $fpath = $g['varetc_path']."/openvpn/{$mode_id}.conf"; - mwexec_bg("nohup openvpn --config {$fpath}"); + mwexec_bg("/usr/local/sbin/openvpn --config {$fpath}"); if (!$g['booting']) send_event("filter reload"); -- cgit v1.1 From 0da02ef5d99de2c04846934b0cd7504e9e880eec Mon Sep 17 00:00:00 2001 From: Evgeny Yurchenko Date: Sun, 26 Jun 2011 00:36:40 -0400 Subject: Bug #1615. Half-fix. --- usr/local/www/status_rrd_graph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php index 4505a02..e548530 100755 --- a/usr/local/www/status_rrd_graph.php +++ b/usr/local/www/status_rrd_graph.php @@ -607,7 +607,7 @@ function get_dates($curperiod, $graph) { } /* generate update events utilizing prototype $('') feature */ echo "\n"; - echo "\t\t\$('{$graph}-{$curoption}-{$curdatabase}').src='status_rrd_graph_img.php?start={$start}&end={$end}&graph={$graph}&database={$curdatabase}&style={$curstyle}&tmp=' + randomid;\n"; + echo "\t\t\$('{$graph}-{$curoption}-{$curdatabase}').src='status_rrd_graph_img.php?start={$start}&graph={$graph}&database={$curdatabase}&style={$curstyle}&tmp=' + randomid;\n"; } } ?> -- cgit v1.1 From 9bc27ae5326e86be8e63c395307e9e5eb12b485a Mon Sep 17 00:00:00 2001 From: jim-p Date: Sun, 26 Jun 2011 18:51:11 -0400 Subject: Fix off-by-one in OpenVPN "local" to "ipaddr" conversion. --- etc/inc/upgrade_config.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 9b349d3..1b9ed17 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -1602,7 +1602,7 @@ function upgrade_051_to_052() { $assigned = true; continue; } else if (substr($tmpstr, 0, 5) == "local") { - $localip = substr($tmpstr, 6); + $localip = substr($tmpstr, 5); $server['ipaddr'] = str_replace("\n", "", $localip); } else $cstmopts[] = $tmpcstmopt; @@ -1704,7 +1704,7 @@ function upgrade_051_to_052() { $assigned = true; continue; } else if (substr($tmpstr, 0, 5) == "local") { - $localip = substr($tmpstr, 6); + $localip = substr($tmpstr, 5); $client['ipaddr'] = str_replace("\n", "", $localip); } else $cstmopts[] = $tmpcstmopt; -- cgit v1.1 From ae26b02e74f466f1c0efaf86fae2fef54a1e60e5 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Mon, 27 Jun 2011 03:59:17 -0400 Subject: send lighttpd a KILL in restart_webgui, once I've seen the former way result in a never ending stream of .... never killing it, and others have reported the same. a killall -9 sufficed in those instances to kill it, so this should resolve. --- etc/rc.restart_webgui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.restart_webgui b/etc/rc.restart_webgui index e74f201..05eab12 100755 --- a/etc/rc.restart_webgui +++ b/etc/rc.restart_webgui @@ -10,7 +10,7 @@ require("rrd.inc"); echo "Restarting webConfigurator..."; -sigkillbyname("lighttpd", "INT"); +sigkillbyname("lighttpd", "KILL"); while (is_process_running("lighttpd")) { echo '.'; -- cgit v1.1 From e4b9d53bd3be0b399af0d760fdbdf06a6eaa86bc Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Mon, 27 Jun 2011 16:57:43 +0200 Subject: Be consistent with upper and lowercase. --- usr/local/www/firewall_rules_edit.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index acebe3c..97493bf 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -639,7 +639,7 @@ include("head.inc"); -
+


-

+

@@ -1142,7 +1142,7 @@ include("head.inc"); -
+

@@ -1162,7 +1162,7 @@ include("head.inc");
> >
- +
-- cgit v1.1 From d30afa6092c0abd129fd72aa59437b7673cfceb0 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 27 Jun 2011 12:09:22 -0400 Subject: In upgrade code for server load balancing, set redirect_mode. Also in the backend code, assume redirect_mode as the default if it's not set. --- etc/inc/upgrade_config.inc | 2 ++ etc/inc/vslb.inc | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 1b9ed17..8159638 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -897,6 +897,8 @@ function upgrade_045_to_046() { } /* Convert sitedown entries to pools and re-attach */ for ($i = 0; isset($vs_a[$i]); $i++) { + /* Set mode while we're here. */ + $vs_a[$i]['mode'] = "redirect_mode"; if (isset($vs_a[$i]['sitedown'])) { $pool = array(); $pool['type'] = 'server'; diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc index 980bcd0..c26b785 100644 --- a/etc/inc/vslb.inc +++ b/etc/inc/vslb.inc @@ -237,7 +237,19 @@ function relayd_configure() { if(is_array($vs_a)) { for ($i = 0; isset($vs_a[$i]); $i++) { switch($vs_a[$i]['mode']) { - case 'redirect_mode': { + case 'relay': + $conf .= "relay \"{$vs_a[$i]['name']}\" {\n"; + $conf .= " listen on {$vs_a[$i]['ipaddr']} port {$vs_a[$i]['port']}\n"; + $conf .= " protocol \"{$vs_a[$i]['relay_protocol']}\"\n"; + $conf .= " forward to <{$vs_a[$i]['pool']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} \n"; + + if (isset($vs_a[$i]['sitedown']) && strlen($vs_a[$i]['sitedown']) > 0) + $conf .= " forward to <{$vs_a[$i]['sitedown']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} \n"; + $conf .= "}\n"; + break; + /* Default to Redirect Mode */ + case 'redirect_mode': + default: $conf .= "redirect \"{$vs_a[$i]['name']}\" {\n"; $conf .= " listen on {$vs_a[$i]['ipaddr']} port {$vs_a[$i]['port']}\n"; $conf .= " forward to <{$vs_a[$i]['pool']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} \n"; @@ -251,18 +263,6 @@ function relayd_configure() { $conf .= "}\n"; break; - } - case 'relay': { - $conf .= "relay \"{$vs_a[$i]['name']}\" {\n"; - $conf .= " listen on {$vs_a[$i]['ipaddr']} port {$vs_a[$i]['port']}\n"; - $conf .= " protocol \"{$vs_a[$i]['relay_protocol']}\"\n"; - $conf .= " forward to <{$vs_a[$i]['pool']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} \n"; - - if (isset($vs_a[$i]['sitedown']) && strlen($vs_a[$i]['sitedown']) > 0) - $conf .= " forward to <{$vs_a[$i]['sitedown']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} \n"; - $conf .= "}\n"; - break; - } } } } -- cgit v1.1 From 39e268c4fd3c5e5da461dc24bc2445eceb28360c Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 27 Jun 2011 13:11:41 -0400 Subject: Add a button to reset the RRD data (rm's rrd files and reinitializes). --- usr/local/www/status_rrd_graph_settings.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/usr/local/www/status_rrd_graph_settings.php b/usr/local/www/status_rrd_graph_settings.php index a4b562e..85061ba 100755 --- a/usr/local/www/status_rrd_graph_settings.php +++ b/usr/local/www/status_rrd_graph_settings.php @@ -62,8 +62,11 @@ $periods = array("absolute" => gettext("Absolute Timespans"), "current" => gettext("Current Period"), "previous" => gettext("Previous Period")); -if ($_POST) { - +if ($_POST['ResetRRD']) { + mwexec('/bin/rm /var/db/rrd/*'); + $retval = enable_rrd_graphing(); + $savemsg = "RRD data has been cleared. New RRD files have been generated."; +} elseif ($_POST) { unset($input_errors); $pconfig = $_POST; @@ -223,6 +226,12 @@ include("head.inc"); + + + + - +
  + " onclick="return confirm('')"> +
 
Date: Mon, 27 Jun 2011 14:05:01 -0400 Subject: Bail out of ipsec_get_phase1_dst if there is no remote gateway, else it falls into running resolve_retry() with invalid parameters causing a long delay in returning. --- etc/inc/ipsec.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index 7371702..07c4869 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -144,7 +144,8 @@ function ipsec_get_phase1_src(& $ph1ent) { */ function ipsec_get_phase1_dst(& $ph1ent) { global $g; - + if (!$ph1ent['remote-gateway']) + return false; $rg = $ph1ent['remote-gateway']; if (!is_ipaddr($rg)) { if(! $g['booting']) -- cgit v1.1 From f257c139312002e38468012137f93eb8230cec38 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 27 Jun 2011 14:42:25 -0400 Subject: Don't do a csrf check when downloading packet capture, see http://forum.pfsense.org/index.php/topic,37794.0.html - also exit after sending the file to the user to avoid partial broken page loads after downloading a packet capture. --- usr/local/www/diag_packet_capture.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php index 2ffba1d..df482e2 100644 --- a/usr/local/www/diag_packet_capture.php +++ b/usr/local/www/diag_packet_capture.php @@ -35,6 +35,9 @@ ##|*MATCH=diag_packet_capture.php* ##|-PRIV +if ($_POST['downloadbtn'] == gettext("Download Capture")) + $nocsrf = true; + $pgtitle = array(gettext("Diagnostics"), gettext("Packet Capture")); require_once("guiconfig.inc"); require_once("pfsense-utils.inc"); @@ -92,6 +95,7 @@ if ($_POST) { header("Content-Disposition: attachment; filename=$fn"); header("Content-Length: $fs"); readfile($fp.$fn); + exit; } } else { $do_tcpdump = false; -- cgit v1.1 From b0d6223f89007156e93fa6bb76fe92f9300b11b3 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 27 Jun 2011 19:01:43 +0000 Subject: When editing a vlan and chaning its tag id and the vlan is assigned correct even the interface name of the assignment otherwise we result in breaking the install. --- usr/local/www/interfaces_vlan_edit.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/usr/local/www/interfaces_vlan_edit.php b/usr/local/www/interfaces_vlan_edit.php index 08f1a53..b6cea47 100755 --- a/usr/local/www/interfaces_vlan_edit.php +++ b/usr/local/www/interfaces_vlan_edit.php @@ -98,11 +98,16 @@ if ($_POST) { if (!$input_errors) { if (isset($id) && $a_vlans[$id]) { if (($a_vlans[$id]['if'] != $_POST['if']) || ($a_vlans[$id]['tag'] != $_POST['tag'])) { - if (!empty($a_vlans[$id]['vlanif'])) + if (!empty($a_vlans[$id]['vlanif'])) { + $confif = convert_real_interface_to_friendly_interface_name($vlan['vlanif']); // Destroy previous vlan pfSense_interface_destroy($a_vlans[$id]['vlanif']); - else + } else { pfSense_interface_destroy("{$a_vlans[$id]['if']}_vlan{$a_vlans[$id]['tag']}"); + $confif = convert_real_interface_to_friendly_interface_name("{$a_vlans[$id]['if']}_vlan{$a_vlans[$id]['tag']}"); + } + if ($confif <> "") + $config['interfaces'][$confif]['if'] = "{$_POST['if']}_vlan{$_POST['tag']}"; } } $vlan = array(); @@ -122,7 +127,6 @@ if ($_POST) { write_config(); - $confif = convert_real_interface_to_friendly_interface_name($vlan['vlanif']); if ($confif <> "") interface_configure($confif); -- cgit v1.1 From ca1a3fc230880beae13ea37c2f71218951eb622e Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 27 Jun 2011 20:43:58 +0000 Subject: Clean up leftover code not needed for anything. --- usr/local/www/services_captiveportal_hostname_edit.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/usr/local/www/services_captiveportal_hostname_edit.php b/usr/local/www/services_captiveportal_hostname_edit.php index a199341..cc09459 100755 --- a/usr/local/www/services_captiveportal_hostname_edit.php +++ b/usr/local/www/services_captiveportal_hostname_edit.php @@ -118,17 +118,11 @@ if ($_POST) { $ip['bw_up'] = $_POST['bw_up']; if ($_POST['bw_down']) $ip['bw_down'] = $_POST['bw_down']; - if (isset($id) && $a_allowedhostnames[$id]) { - $oldip = $a_allowedhostnames[$id]['hostname']; - if (!empty($a_allowedhostnames[$id]['sn'])) - $oldip .= "/{$a_allowedhostnames[$id]['sn']}"; + if (isset($id) && $a_allowedhostnames[$id]) $a_allowedhostnames[$id] = $ip; - } else { - $oldip = $ip['hostname']; - if (!empty($$ip['sn'])) - $oldip .= "/{$$ip['sn']}"; + else $a_allowedhostnames[] = $ip; - } + allowedhostnames_sort(); write_config(); -- cgit v1.1 From 0818baf72ec8c5936a4ef0d8d7a54710389ed39b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 27 Jun 2011 16:45:42 -0400 Subject: Adding patch for pfearly hook from Andrew Thompson --- etc/inc/filter.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 6f91660..81b3080 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -277,8 +277,6 @@ function filter_configure_sync() { $rules .= "set limit table-entries {$config['system']['maximumtableentries']}\n"; } - //$rules .= discover_pkg_rules("pfearly"); - // Configure flowtable support if enabled. flowtable_configure(); @@ -2049,7 +2047,7 @@ function filter_rules_generate() { $pptpdcfg = $config['pptpd']; $ipfrules = ""; - //$ipfrules .= discover_pkg_rules("filter"); + $ipfrules .= discover_pkg_rules("pfearly"); /* relayd */ $ipfrules .= "anchor \"relayd/*\"\n"; @@ -2372,6 +2370,7 @@ EOD; $rule_arr = array_merge($rule_arr1,$rule_arr2); $ipfrules .= "\n# User-defined rules follow\n"; + $ipfrules .= "\nanchor \"userrules/*\"\n"; /* Generate user rule lines */ foreach($rule_arr as $rule) { if(isset($rule['disabled'])) -- cgit v1.1 From 48f55356be998abeed4a0f257dbd3ffd8e40bfdb Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Tue, 28 Jun 2011 11:03:54 +0200 Subject: Consistency of NOTE vs Note as through the rest of the webGUI. --- usr/local/www/system_advanced_admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php index 4965fb9..d1150a2 100644 --- a/usr/local/www/system_advanced_admin.php +++ b/usr/local/www/system_advanced_admin.php @@ -267,7 +267,7 @@ function prot_change() {
-   +  
-- cgit v1.1 From 9338cf353e6e707788674ef37a4ba436dde868c3 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Tue, 28 Jun 2011 12:59:01 +0200 Subject: Note consistency and gettext() added. --- usr/local/www/system_certmanager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/system_certmanager.php b/usr/local/www/system_certmanager.php index 355621b..6b0d81e 100644 --- a/usr/local/www/system_certmanager.php +++ b/usr/local/www/system_certmanager.php @@ -955,7 +955,7 @@ function internalca_change() {
 NOTE: You can only delete a certificate if it is not currently in use.
-- cgit v1.1 From beaab62274becfd51117d6f84d7b2db93c89b80e Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Tue, 28 Jun 2011 13:10:24 +0200 Subject: More text consistency. --- usr/local/www/system_authservers.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/local/www/system_authservers.php b/usr/local/www/system_authservers.php index fad6b34..b6b1097 100644 --- a/usr/local/www/system_authservers.php +++ b/usr/local/www/system_authservers.php @@ -543,9 +543,9 @@ function select_clicked() { "> -
-
-
+
+
+
-- cgit v1.1 From 03d7297b79edb65b79a76c9ea56db793bd5bbf94 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Tue, 28 Jun 2011 15:17:03 +0200 Subject: Use correct table header class. --- usr/local/www/diag_routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/diag_routes.php b/usr/local/www/diag_routes.php index f8e2926..2a61223 100644 --- a/usr/local/www/diag_routes.php +++ b/usr/local/www/diag_routes.php @@ -86,7 +86,7 @@ include('head.inc'); $name = ($tabindex == 0 ? 'IPv4' : 'IPv6'); ?> - + $line) { if ($i == 0) continue; -- cgit v1.1 From 9ed6c9ac73a7610dbc90e063ba665cd9aa569279 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Tue, 28 Jun 2011 16:22:49 +0200 Subject: Make text cosmetics consistent and close off missing tag. --- usr/local/www/diag_traceroute.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/www/diag_traceroute.php b/usr/local/www/diag_traceroute.php index 6c9df57..91736df 100755 --- a/usr/local/www/diag_traceroute.php +++ b/usr/local/www/diag_traceroute.php @@ -114,7 +114,7 @@ if (!isset($do_traceroute)) {
-

+

"; echo("
" . gettext("Traceroute output:") . "
"); @@ -133,7 +133,7 @@ if (!isset($do_traceroute)) {

  - +
-- cgit v1.1 From e8c8891d0c787f656bc5147b4fac21f3e2746b8a Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 28 Jun 2011 11:19:08 -0400 Subject: Fix typo --- usr/local/www/system_advanced_misc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php index 2264365..c31bc92 100644 --- a/usr/local/www/system_advanced_misc.php +++ b/usr/local/www/system_advanced_misc.php @@ -339,7 +339,7 @@ function maxmss_checked(obj) { - + /> -- cgit v1.1 From 3cedb66fdb85d35f49ec1f180a73a2bc7c120c07 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 28 Jun 2011 19:11:32 +0000 Subject: Correctly display page title --- usr/local/www/status_captiveportal_test.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/local/www/status_captiveportal_test.php b/usr/local/www/status_captiveportal_test.php index c6d1dab..576a019 100644 --- a/usr/local/www/status_captiveportal_test.php +++ b/usr/local/www/status_captiveportal_test.php @@ -42,9 +42,10 @@ require("shaper.inc"); require("captiveportal.inc"); require_once("voucher.inc"); +$pgtitle = array(gettext("Status"), gettext("Captive portal"), gettext("Test Vouchers")); + include("head.inc"); include("fbegin.inc"); -$pgtitle = array(gettext("Status"), gettext("Captive portal"), gettext("Test Vouchers")); ?>

-- cgit v1.1 From 84924e76c44950387e387af7927f63d5822dfda4 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 28 Jun 2011 19:26:41 +0000 Subject: Add proper checks in auth code for testing if the section has been set in the config. Also do the same in the ugprade code --- etc/inc/auth.inc | 16 ++++++++++------ etc/inc/upgrade_config.inc | 6 ++++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 239d7de..92c3538 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -193,9 +193,11 @@ function & getUserEntry($name) { function & getUserEntryByUID($uid) { global $debug, $config; - foreach ($config['system']['user'] as & $user) - if ($user['uid'] == $uid) - return $user; + + if (is_array($config['system']['user'])) + foreach ($config['system']['user'] as & $user) + if ($user['uid'] == $uid) + return $user; return false; } @@ -208,9 +210,11 @@ function & getGroupEntry($name) { function & getGroupEntryByGID($gid) { global $debug, $config; - foreach ($config['system']['group'] as & $group) - if ($group['gid'] == $gid) - return $group; + + if (is_array($config['system']['group'])) + foreach ($config['system']['group'] as & $group) + if ($group['gid'] == $gid) + return $group; return false; } diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 8159638..685cb13 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -1341,6 +1341,8 @@ function upgrade_048_to_049() { $all['gid'] = 1998; $all['member'] = array(); + if (!is_array($config['system']['user'])) + $config['system']['user'] = array(); if (!is_array($config['system']['group'])) $config['system']['group'] = array(); @@ -1392,6 +1394,9 @@ function upgrade_048_to_049() { function upgrade_049_to_050() { global $config; + + if (!is_array($config['system']['user'])) + $config['system']['user'] = array(); /* update user privileges */ foreach ($config['system']['user'] as & $user) { $privs = array(); @@ -2098,6 +2103,7 @@ function upgrade_055_to_056() { function upgrade_056_to_057() { global $config; + if (!is_array($config['system']['user'])) $config['system']['user'] = array(); /* migrate captivate portal to user manager */ -- cgit v1.1