Changeset 738 for trunk/temp/test.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/temp/test.php ΒΆ
r705 r738 11 11 while($DbRow = $DbResult->fetch_assoc()) 12 12 { 13 14 15 16 17 18 19 13 $DbResult2 = $System->Database->select('NetworkSubnet', 'AddressRangeIPv6', 14 'CompareNetworkPrefix(INET_ATON(AddressRange), INET_ATON("'.$DbRow['LocalIP'].'"), Mask) AND 15 (AddressRangeIPv6 != "")'); 16 if($DbResult2->num_rows > 0) 17 { 18 $Subnet = $DbResult2->fetch_assoc(); 19 $SubnetParts = explode('/', $Subnet['AddressRangeIPv6']); 20 20 21 21 $Addr->AddressFromString($SubnetParts[0]); 22 22 $Addr->EncodeMAC($DbRow['MAC']); 23 23 echo($Addr->AddressToString().' '.$DbRow['MAC']."\n"); 24 24 25 26 25 $System->Database->update('NetworkInterface', 'Id='.$DbRow['Id'], array('IPv6' => $Addr->AddressToString())); 26 } 27 27 }
Note:
See TracChangeset
for help on using the changeset viewer.