Changeset 617


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.
Location:
trunk/Modules/NetworkConfigRouterOS
Files:
9 edited

Legend:

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

    r569 r617  
    22
    33if(isset($_SERVER['REMOTE_ADDR'])) die();
    4 include_once(dirname(__FILE__).'/../../../Common/Global.php');
    5 include_once(dirname(__FILE__).'/../Routerboard.php');
     4include_once(dirname(__FILE__).'/../../../Application/System.php');
     5$System = new System();
     6$System->ShowPage = false;
     7$System->Run();
    68$Path = array('ip', 'dhcp-server', 'lease');
    79
  • trunk/Modules/NetworkConfigRouterOS/Generators/DNS.php

    r596 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();
    78$Path = array('ip', 'dns', 'static');
    89
  • trunk/Modules/NetworkConfigRouterOS/Generators/FirewallFilter.php

    r548 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();
    78$Path = array('ip', 'firewall', 'filter');
    89
  • trunk/Modules/NetworkConfigRouterOS/Generators/FirewallMangle.php

    r548 r617  
    55$ClassesEnabled = 1;
    66$SessionDisable = true;
    7 include_once(dirname(__FILE__).'/../../../Common/Global.php');
    8 include_once(dirname(__FILE__).'/../Routerboard.php');
    9 include_once('Common.php');
     7include_once(dirname(__FILE__).'/../../../Application/System.php');
     8$System = new System();
     9$System->ShowPage = false;
     10$System->Run();
    1011$PathFirewall = array('ip', 'firewall', 'mangle');
    1112
  • trunk/Modules/NetworkConfigRouterOS/Generators/FirewallNAT.php

    r615 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();
    78$Path = array('ip', 'firewall', 'nat');
    89
  • trunk/Modules/NetworkConfigRouterOS/Generators/Netwatch.php

    r548 r617  
    22
    33if(isset($_SERVER['REMOTE_ADDR'])) die();
    4 include_once(dirname(__FILE__).'/../../../Common/Global.php');
    5 include_once(dirname(__FILE__).'/../Routerboard.php');
     4include_once(dirname(__FILE__).'/../../../Application/System.php');
     5$System = new System();
     6$System->ShowPage = false;
     7$System->Run();
    68$Path = array('tool', 'netwatch');
    79
  • 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    }
  • trunk/Modules/NetworkConfigRouterOS/Generators/Queue.php

    r555 r617  
    55$ClassesEnabled = 1;
    66$SessionDisable = true;
    7 include_once(dirname(__FILE__).'/../../../Common/Global.php');
    8 include_once(dirname(__FILE__).'/../Routerboard.php');
    9 include_once('Common.php');
     7include_once(dirname(__FILE__).'/../../../Application/System.php');
     8$System = new System();
     9$System->ShowPage = false;
     10$System->Run();
    1011$PathQueue = array('queue', 'tree');
    1112
  • trunk/Modules/NetworkConfigRouterOS/NetworkConfigRouterOS.php

    r586 r617  
    11<?php
     2
     3include_once(dirname(__FILE__).'/Routerboard.php');
     4include_once(dirname(__FILE__).'/Generators/Common.php');
    25
    36class ModuleNetworkConfigRouterOS extends AppModule
Note: See TracChangeset for help on using the changeset viewer.