Ignore:
Timestamp:
Apr 6, 2020, 11:17:40 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code format.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigRouterOS/Generators/DHCP.php

    r861 r873  
    1414
    1515    $DbResult = $this->Database->query('SELECT * FROM `NetworkSubnet` WHERE `Configure`=1');
    16     while($Subnet = $DbResult->fetch_assoc())
     16    while ($Subnet = $DbResult->fetch_assoc())
    1717    {
    1818      echo($Subnet['DHCP']);
     
    2424        'WHERE CompareNetworkPrefix(INET_ATON(`LocalIP`), INET_ATON("'.$Subnet['AddressRange'].'"), '.$Subnet['Mask'].') '.
    2525        'AND (`MAC` != "00:00:00:00:00:00") ORDER BY `LocalIP`');
    26       while($Interface = $DbResult2->fetch_assoc())
     26      while ($Interface = $DbResult2->fetch_assoc())
    2727      {
    2828        $Name = $Interface['DeviceName'];
    29         if($Interface['Name'] != '') $Name .= '-'.$Interface['Name'];
     29        if ($Interface['Name'] != '') $Name .= '-'.$Interface['Name'];
    3030        $Items[] = array('mac-address' => $Interface['MAC'], 'address' => $Interface['LocalIP'], 'server' => $Server, 'comment' => $Name, 'lease-time' => '1d');
    3131      }
Note: See TracChangeset for help on using the changeset viewer.