- Timestamp:
- Dec 23, 2013, 4:18:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/Generators/NetwatchImport.php
r575 r617 2 2 3 3 if(isset($_SERVER['REMOTE_ADDR'])) die(); 4 include_once(dirname(__FILE__).'/../../../Common/Global.php'); 5 include_once(dirname(__FILE__).'/../Routerboard.php'); 6 include_once('Common.php'); 4 include_once(dirname(__FILE__).'/../../../Application/System.php'); 5 $System = new System(); 6 $System->ShowPage = false; 7 $System->Run(); 8 7 9 $Path = array('tool', 'netwatch'); 8 10 $Period = 60; // every 60 seconds … … 27 29 { 28 30 $DbResult = $System->Database->update('NetworkInterface', '`LocalIP` = "'.$Properties['host'].'"', 29 array('Online' => $Online, 'LastOnline' => TimeToMysqlDateTime($StartTime)));31 array('Online' => 1, 'LastOnline' => TimeToMysqlDateTime($StartTime))); 30 32 } 31 33 }
Note:
See TracChangeset
for help on using the changeset viewer.