Changeset 569


Ignore:
Timestamp:
Sep 16, 2013, 11:31:25 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Základní statické generování DNS záznamů do RouterOS. Původní soubor generování pro Linux přesunut do NetworkConfigLinux.
Location:
trunk
Files:
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Common/Version.php

    r568 r569  
    11<?php
    22
    3 $Revision = 568; // Subversion revision
     3$Revision = 569; // Subversion revision
    44$DatabaseRevision = 565; // SQL structure revision
    5 $ReleaseTime = '2013-09-08';
     5$ReleaseTime = '2013-09-16';
  • trunk/Modules/NetworkConfigLinux/Generators/DNS.php

    r568 r569  
    121121
    122122// Local records
    123 $DbResult = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.LocalIP <> ""');
     123$DbResult = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface '.
     124  'JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.LocalIP <> ""');
    124125while($Interface = $DbResult->fetch_assoc())
    125126{
     
    130131
    131132// External records in internal server
    132 $DbResult = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.ExternalIP <> ""');
     133$DbResult = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface '.
     134  'JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.ExternalIP <> ""');
    133135while($Interface = $DbResult->fetch_assoc())
    134136{
     
    140142// CZFree records in internal server
    141143/*
    142 $DbResult = $Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.CZFreeIP <> ""');
     144$DbResult = $Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface '.
     145  'JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.CZFreeIP <> ""');
    143146while($Interface = $DbResult->fetch_assoc())
    144147{
     
    176179);
    177180
    178 $DbResult = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.ExternalIP != ""');
     181$DbResult = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface '.
     182  'JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.ExternalIP != ""');
    179183while($Interface = $DbResult->fetch_assoc())
    180184{
     
    214218
    215219// Hosts
    216 $DbResult = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.LocalIP != ""');
     220$DbResult = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface '.
     221  'JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.LocalIP != ""');
    217222while($Interface = $DbResult->fetch_assoc())
    218223{
     
    251256
    252257// Hosts
    253 $DbResult = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.LocalIP != ""');
     258$DbResult = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface '.
     259  'JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.LocalIP != ""');
    254260while($Interface = $DbResult->fetch_assoc())
    255261{
  • trunk/Modules/NetworkConfigRouterOS/Generators/DHCP.php

    r548 r569  
    1818  $Items = array();
    1919  $Server = 'dhcp'.$Subnet['Id'];
    20   $DbResult2 = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM `NetworkInterface` LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE '.
    21   ' CompareNetworkPrefix(INET_ATON(LocalIP), INET_ATON("'.$Subnet['AddressRange'].'"), '.$Subnet['Mask'].') AND (`MAC` != "00:00:00:00:00:00") ORDER BY `LocalIP`');
     20  $DbResult2 = $System->Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM `NetworkInterface` '.
     21    ' LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE '.
     22    ' CompareNetworkPrefix(INET_ATON(LocalIP), INET_ATON("'.$Subnet['AddressRange'].'"), '.$Subnet['Mask'].') AND (`MAC` != "00:00:00:00:00:00") ORDER BY `LocalIP`');
    2223  while($Interface = $DbResult2->fetch_assoc())
    2324  {
  • trunk/Modules/TimeMeasure/Graph.php

    r548 r569  
    11<?php
    2 
    3 include_once(dirname(__FILE__).'/../../Base/View.php');
    4 include_once(dirname(__FILE__).'/../Model/Measure.php');
    52
    63class GraphView extends View
  • trunk/Modules/TimeMeasure/Main.php

    r548 r569  
    11<?php
    22
    3 include_once(dirname(__FILE__).'/../../Base/View.php');
    4 
    5 class MainView extends View
     3class MainPage extends Page
    64{
    75  var $Months = array('', 'Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec');
     
    169167    $Output .= '<img alt="Graf" src="?M=Graph&amp;Measure='.$_SESSION['Measure'].'&amp;From='.$_SESSION['TimeStart'].'&amp;To='.$_SESSION['TimeEnd'].'&amp;Width='.$this->Config['Application']['GraphSize']['Width'].'&amp;Height='.$this->Config['Application']['GraphSize']['Height'].'&amp;Differential='.$_SESSION['Differential'].'" width="'.$this->Config['Application']['GraphSize']['Width'].'" height="'.$this->Config['Application']['GraphSize']['Height'].'"><br>';
    170168    $Output .= '<a href="?Measure='.$_SESSION['Measure'].'&amp;TimeStart='.$_SESSION['TimeStart'].'&amp;TimeEnd='.$_SESSION['TimeEnd'].'&amp;TimeSpecify=1&amp;Differential='.$_SESSION['Differential'].'">Odkaz na vybraný graf</a><br>';
    171 //print_r(GetValues($Measure, $TimeStart, $TimeEnd));
    172169    return($Output);
    173170  }
  • trunk/Modules/TimeMeasure/Measure.php

    r548 r569  
    11<?php
    2 
    3 include_once(dirname(__FILE__).'/../../Base/Model.php');
    42
    53class Measure extends Model
  • trunk/Modules/TimeMeasure/TimeMeasure.php

    r565 r569  
    11<?php
     2
     3include_once(dirname(__FILE__).'/Measure.php');
     4include_once(dirname(__FILE__).'/Graph.php');
     5include_once(dirname(__FILE__).'/Main.php');
    26
    37class ModuleTimeMeasure extends AppModule
Note: See TracChangeset for help on using the changeset viewer.