Project

General

Profile

« Previous | Next » 

Revision 84e5047d

Added by Scott Ullrich over 18 years ago

Silence eclipse warnings

View differences:

etc/inc/captiveportal.inc
953 953

  
954 954
function get_next_ipfw_ruleno($rulenos_start = 10000, $rulenos_range_max = 9899) {
955 955

  
956
	$fwrules = "";
957
	$matches = "";
956 958
	exec("/sbin/ipfw show", $fwrules);
957 959
	foreach ($fwrules as $fwrule) {
958 960
		preg_match("/^(\d+)\s+/", $fwrule, $matches);
......
978 980

  
979 981
function captiveportal_get_next_ipfw_ruleno($rulenos_start = 10000, $rulenos_range_max = 9899) {
980 982

  
983
	$fwrules = "";
984
	$matches = "";
981 985
	exec("/sbin/ipfw show", $fwrules);
982 986
	foreach ($fwrules as $fwrule) {
983 987
		preg_match("/^(\d+)\s+/", $fwrule, $matches);
......
1014 1018
    $volume['input_pkts'] = $volume['input_bytes'] = $volume['output_pkts'] = $volume['output_bytes'] = 0 ;
1015 1019

  
1016 1020
    // Ingress
1021
    $ipfw = "";
1022
    $matches = "";
1017 1023
    exec("/sbin/ipfw show {$ruleno}", $ipfw);
1018 1024
    preg_match("/(\d+)\s+(\d+)\s+(\d+)\s+.*/", $ipfw[0], $matches);
1019 1025
    $volume['input_pkts'] = $matches[2];
......
1037 1043
 */
1038 1044
function getNasID()
1039 1045
{
1046
    $nasId = "";
1040 1047
    exec("/bin/hostname", $nasId);
1041 1048
    if(!$nasId[0])
1042 1049
        $nasId[0] = "pfSense";
etc/inc/filter.inc
783 783
			update_filter_reload_status("Creating NAT rule {$rule['descr']}");
784 784

  
785 785
			/* if item is an alias, expand */
786
			$extport = "";
786 787
			unset($extport);
787 788
			if(alias_expand($rule['external-port']))
788 789
				$extport[0] = alias_expand_value($rule['external-port']);
......
1253 1254

  
1254 1255
		if ($rule['source']['network'] && strstr($rule['source']['network'], "opt")) {
1255 1256
			if (!array_key_exists($rule['source']['network'], $optcfg)) {
1257
				$optmatch = "";
1256 1258
				if(preg_match("/opt([0-999])/", $rule['source']['network'], $optmatch)) {
1257 1259
					$real_opt_int = convert_friendly_interface_to_real_interface_name("opt" . $optmatch[1]);
1258 1260
					$opt_ip = find_interface_ip($real_opt_int);
etc/inc/interfaces.inc
1594 1594
function get_interface_mac($interface) {
1595 1595

  
1596 1596
        /* build interface list with netstat */
1597
        $linkinfo = "";
1597 1598
        exec("/usr/bin/netstat -I $interface -nW -f link", $linkinfo);
1598 1599
        array_shift($linkinfo);
1599 1600
        $alink = preg_split("/\s+/", $linkinfo[0]);

Also available in: Unified diff