- Timestamp:
- Nov 23, 2008, 11:16:08 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
system/netwatch_import.php
r111 r113 27 27 } 28 28 } 29 if($Properties['status'] == 'up') $Online = 1; else $Online = 0; 29 if($Properties['status'] == 'up') 30 { 31 $Online = 1; 32 $Values = array('online' => $Online, 'last_online' => 'NOW()'); 33 } else 34 { 35 $Online = 0; 36 $Values = array('online' => $Online); 37 } 30 38 31 $DbResult = $Database->update('hosts', 'IP="'.$Properties['host'].'"', array('online' => $Online));39 $DbResult = $Database->update('hosts', 'IP="'.$Properties['host'].'"', $Values); 32 40 if($Online == 1) 33 41 {
Note:
See TracChangeset
for help on using the changeset viewer.