Changeset 738 for trunk/temp/test.php


Ignore:
Timestamp:
Apr 14, 2015, 10:20:16 PM (10 years ago)
Author:
chronos
Message:
  • Removed: Spaces on end of line.
  • Modified: Tabs converted to spaces.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/temp/test.php ΒΆ

    r705 r738  
    1111while($DbRow = $DbResult->fetch_assoc())
    1212{
    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']);
     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']);
    2020
    21           $Addr->AddressFromString($SubnetParts[0]);
     21    $Addr->AddressFromString($SubnetParts[0]);
    2222    $Addr->EncodeMAC($DbRow['MAC']);
    2323    echo($Addr->AddressToString().' '.$DbRow['MAC']."\n");
    2424
    25           $System->Database->update('NetworkInterface', 'Id='.$DbRow['Id'], array('IPv6' => $Addr->AddressToString()));
    26         }
     25    $System->Database->update('NetworkInterface', 'Id='.$DbRow['Id'], array('IPv6' => $Addr->AddressToString()));
     26  }
    2727}
Note: See TracChangeset for help on using the changeset viewer.