Changeset 276 for trunk/system/generators/netwatch_import.php
- Timestamp:
- Jan 24, 2010, 9:21:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/netwatch_import.php
r275 r276 4 4 include('../../global.php'); 5 5 include('../routerboard.php'); 6 include('common.php'); 6 7 $Path = array('tool', 'netwatch'); 7 8 … … 17 18 foreach($List as $Properties) 18 19 { 19 $NewAddress = new NetworkAddressIPv4(); 20 $NewAddress->AddressFromString($Subnet['AddressRange']); 21 $NewAddress->Prefix = $Subnet['Mask']; 22 if($NewAddress->Contain($Properties['host'])) 20 $SubnetAddress = new NetworkAddressIPv4(); 21 $SubnetAddress->AddressFromString($Subnet['AddressRange']); 22 $SubnetAddress->Prefix = $Subnet['Mask']; 23 $Address = new NetworkAddressIPv4(); 24 $Address->AddressFromString($Properties['host']); 25 $Address->Prefix = 32; 26 if($SubnetAddress->Contain($Address)) 23 27 { 24 28 //echo($Properties['host'].', ');
Note:
See TracChangeset
for help on using the changeset viewer.