Ignore:
Timestamp:
Sep 16, 2013, 11:31:25 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Základní statické generování DNS záznamů do RouterOS. Původní soubor generování pro Linux přesunut do NetworkConfigLinux.
File:
1 edited

Legend:

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

    r548 r569  
    1818  $Items = array();
    1919  $Server = 'dhcp'.$Subnet['Id'];
    20   $DbResult2 = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM `NetworkInterface` LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE '.
    21   ' CompareNetworkPrefix(INET_ATON(LocalIP), INET_ATON("'.$Subnet['AddressRange'].'"), '.$Subnet['Mask'].') AND (`MAC` != "00:00:00:00:00:00") ORDER BY `LocalIP`');
     20  $DbResult2 = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM `NetworkInterface` '.
     21    ' LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE '.
     22    ' CompareNetworkPrefix(INET_ATON(LocalIP), INET_ATON("'.$Subnet['AddressRange'].'"), '.$Subnet['Mask'].') AND (`MAC` != "00:00:00:00:00:00") ORDER BY `LocalIP`');
    2223  while($Interface = $DbResult2->fetch_assoc())
    2324  {
Note: See TracChangeset for help on using the changeset viewer.