diff options
author | Bill Marquette <billm@pfsense.org> | 2005-05-15 22:38:44 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-05-15 22:38:44 +0000 |
commit | 0884ea0ab284e787c370d2880611c106e3626d28 (patch) | |
tree | 51fdf6c568cf7839054c57a7ef33f6a3efb4ccf2 /usr/local/www/guiconfig.inc | |
parent | 23a8ad04474bfdba690024314ccf2097b8ee754f (diff) | |
download | pfsense-0884ea0ab284e787c370d2880611c106e3626d28.zip pfsense-0884ea0ab284e787c370d2880611c106e3626d28.tar.gz |
Remove more duplicate code
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 78b0f7c..119a172 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -675,4 +675,13 @@ function pconfig_to_address(&$adr, $padr, $pmask, $pnot=false, $pbeginport=0, $p } } +function is_specialnet($net) { + global $specialsrcdst; + + if (in_array($net, $specialsrcdst) || strstr($net, "opt")) + return true; + else + return false; +} + ?> |