Ignore:
Timestamp:
Jan 24, 2010, 7:48:22 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Aktualizace online stavu zařízení. * Upraveno: Změna veřejného sekundárního DNS serveru.
File:
1 edited

Legend:

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

    r264 r273  
    4141        if($DbResult2->num_rows == 0) $Database->query('REPLACE INTO NetworkInterfaceStat (NetworkInterface, Time) VALUES ("'.$InterfaceId.'", DATE_FORMAT(NOW(), "%Y-%m-%d %H:00:00"))');         
    4242        $Database->query('UPDATE NetworkInterfaceStat SET PingCount = PingCount + 1 WHERE (NetworkInterface="'.$InterfaceId.'") AND (Time = DATE_FORMAT(NOW(), "%Y-%m-%d %H:00:00"))');
     43       
    4344      }
    4445    }
     
    5455  if($DbRow['SUM(Online)'] > 0) $Online = 1; else $Online = 0; 
    5556  $Database->update('NetworkDevice', 'Id='.$Device['Id'], array('Online' => $Online));
     57  if($Online == 1) $Database->update('NetworkDevice', 'Id='.$Device['Id'], array('LastOnline' => 'NOW()'));
    5658}
    5759
Note: See TracChangeset for help on using the changeset viewer.