Changeset 617
- Timestamp:
- Dec 23, 2013, 4:18:04 PM (11 years ago)
- Location:
- trunk/Modules/NetworkConfigRouterOS
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/Generators/DHCP.php
r569 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'); 4 include_once(dirname(__FILE__).'/../../../Application/System.php'); 5 $System = new System(); 6 $System->ShowPage = false; 7 $System->Run(); 6 8 $Path = array('ip', 'dhcp-server', 'lease'); 7 9 -
trunk/Modules/NetworkConfigRouterOS/Generators/DNS.php
r596 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(); 7 8 $Path = array('ip', 'dns', 'static'); 8 9 -
trunk/Modules/NetworkConfigRouterOS/Generators/FirewallFilter.php
r548 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(); 7 8 $Path = array('ip', 'firewall', 'filter'); 8 9 -
trunk/Modules/NetworkConfigRouterOS/Generators/FirewallMangle.php
r548 r617 5 5 $ClassesEnabled = 1; 6 6 $SessionDisable = true; 7 include_once(dirname(__FILE__).'/../../../Common/Global.php'); 8 include_once(dirname(__FILE__).'/../Routerboard.php'); 9 include_once('Common.php'); 7 include_once(dirname(__FILE__).'/../../../Application/System.php'); 8 $System = new System(); 9 $System->ShowPage = false; 10 $System->Run(); 10 11 $PathFirewall = array('ip', 'firewall', 'mangle'); 11 12 -
trunk/Modules/NetworkConfigRouterOS/Generators/FirewallNAT.php
r615 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(); 7 8 $Path = array('ip', 'firewall', 'nat'); 8 9 -
trunk/Modules/NetworkConfigRouterOS/Generators/Netwatch.php
r548 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'); 4 include_once(dirname(__FILE__).'/../../../Application/System.php'); 5 $System = new System(); 6 $System->ShowPage = false; 7 $System->Run(); 6 8 $Path = array('tool', 'netwatch'); 7 9 -
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 } -
trunk/Modules/NetworkConfigRouterOS/Generators/Queue.php
r555 r617 5 5 $ClassesEnabled = 1; 6 6 $SessionDisable = true; 7 include_once(dirname(__FILE__).'/../../../Common/Global.php'); 8 include_once(dirname(__FILE__).'/../Routerboard.php'); 9 include_once('Common.php'); 7 include_once(dirname(__FILE__).'/../../../Application/System.php'); 8 $System = new System(); 9 $System->ShowPage = false; 10 $System->Run(); 10 11 $PathQueue = array('queue', 'tree'); 11 12 -
trunk/Modules/NetworkConfigRouterOS/NetworkConfigRouterOS.php
r586 r617 1 1 <?php 2 3 include_once(dirname(__FILE__).'/Routerboard.php'); 4 include_once(dirname(__FILE__).'/Generators/Common.php'); 2 5 3 6 class ModuleNetworkConfigRouterOS extends AppModule
Note:
See TracChangeset
for help on using the changeset viewer.