Ignore:
Timestamp:
Dec 23, 2013, 4:18:04 PM (11 years ago)
Author:
chronos
Message:
  • Opraveno: Skripty pro generování nastavení správně nepoužívali třídu System.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigRouterOS/Generators/NetwatchImport.php

    r575 r617  
    22
    33if(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');
     4include_once(dirname(__FILE__).'/../../../Application/System.php');
     5$System = new System();
     6$System->ShowPage = false;
     7$System->Run();
     8
    79$Path = array('tool', 'netwatch');
    810$Period = 60; // every 60 seconds
     
    2729      {
    2830        $DbResult = $System->Database->update('NetworkInterface', '`LocalIP` = "'.$Properties['host'].'"',
    29           array('Online' => $Online, 'LastOnline' => TimeToMysqlDateTime($StartTime)));
     31          array('Online' => 1, 'LastOnline' => TimeToMysqlDateTime($StartTime)));
    3032      }
    3133    }
Note: See TracChangeset for help on using the changeset viewer.