Changeset 507 for trunk/system/generators/dhcp.php
- Timestamp:
- Apr 1, 2013, 7:14:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/dhcp.php
r440 r507 5 5 include('../routerboard.php'); 6 6 $Path = array('ip', 'dhcp-server', 'lease'); 7 $Database = &$System->Database; 7 8 8 9 $Routerboard = new Routerboard(); … … 20 21 $DbResult2 = $Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM `NetworkInterface` LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE '. 21 22 ' CompareNetworkPrefix(INET_ATON(LocalIP), INET_ATON("'.$Subnet['AddressRange'].'"), '.$Subnet['Mask'].') AND (`MAC` != "00:00:00:00:00:00") ORDER BY `LocalIP`'); 22 //echo($Database->error);23 23 while($Interface = $DbResult2->fetch_assoc()) 24 24 {
Note:
See TracChangeset
for help on using the changeset viewer.