Changeset 215


Ignore:
Timestamp:
May 11, 2009, 9:59:42 PM (16 years ago)
Author:
george
Message:
  • Opraveno: Nevkládat nepoužitá zařízení do sledování online stavu.
Location:
trunk/system
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/system/generators/dns.php

    r213 r215  
    8787    $Name = $Interface['DeviceName'];
    8888    if($Interface['Name'] != '') $Name .= '-'.$Interface['Name'];
    89     $Name = strtolower($Name.'-ext');
     89    $Name = strtolower($Name);
    9090    $IP = explode('.', $Interface['LocalIP']);
    9191    fputs($File, $IP[3]."\tIN\tPTR\t".strtolower($Name).".zdechov.net.\n");
  • trunk/system/generators/netwatch.php

    r213 r215  
    1616    $I = explode('.', $Subnet['AddressRange']);
    1717    $I = $I[2];
    18     $DbResult2 = $Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE (NetworkInterface.LocalIP LIKE "192.168.'.$I.'.%") ORDER BY NetworkInterface.LocalIP');
     18    $DbResult2 = $Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE (NetworkInterface.LocalIP LIKE "192.168.'.$I.'.%") AND (NetworkDevice.Used = 1) ORDER BY NetworkInterface.LocalIP');
    1919    while($Interface = $DbResult2->fetch_assoc())
    2020    {
  • trunk/system/netwatch_import.php

    r214 r215  
    2020  foreach($Output as $Row)
    2121  {
    22     $Row = substr($Row, 6);
     22    $Row = substr($Row, 5);
    2323    $RowParts = explode(' ', $Row);
    2424    $Properties = array();
Note: See TracChangeset for help on using the changeset viewer.