Changeset 273 for trunk/system


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.
Location:
trunk/system/generators
Files:
2 edited

Legend:

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

    r261 r273  
    166166  'BaseDir' => '/var/named/external/',
    167167  'MailServer' => array('centrala.'.$BaseDomain),
    168   'NameServer' => array('gw-hajda.inext.cz', 'ns1.vcsweb.com', 'ns1.twisted4life.com'),
     168  'NameServer' => array('gw-hajda.inext.cz', 'ns0.xname.org', 'ns1.twisted4life.com'),
    169169  'ReverseNameServer' => array('gw-hajda.inext.cz', 'inext.inext.cz'),
    170170  'Host' => array(),
  • 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.