Changeset 569
- Timestamp:
- Sep 16, 2013, 11:31:25 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Version.php
r568 r569 1 1 <?php 2 2 3 $Revision = 56 8; // Subversion revision3 $Revision = 569; // Subversion revision 4 4 $DatabaseRevision = 565; // SQL structure revision 5 $ReleaseTime = '2013-09- 08';5 $ReleaseTime = '2013-09-16'; -
trunk/Modules/NetworkConfigLinux/Generators/DNS.php
r568 r569 121 121 122 122 // 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 <> ""'); 124 125 while($Interface = $DbResult->fetch_assoc()) 125 126 { … … 130 131 131 132 // 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 <> ""'); 133 135 while($Interface = $DbResult->fetch_assoc()) 134 136 { … … 140 142 // CZFree records in internal server 141 143 /* 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 <> ""'); 143 146 while($Interface = $DbResult->fetch_assoc()) 144 147 { … … 176 179 ); 177 180 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 != ""'); 179 183 while($Interface = $DbResult->fetch_assoc()) 180 184 { … … 214 218 215 219 // 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 != ""'); 217 222 while($Interface = $DbResult->fetch_assoc()) 218 223 { … … 251 256 252 257 // 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 != ""'); 254 260 while($Interface = $DbResult->fetch_assoc()) 255 261 { -
trunk/Modules/NetworkConfigRouterOS/Generators/DHCP.php
r548 r569 18 18 $Items = array(); 19 19 $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`'); 22 23 while($Interface = $DbResult2->fetch_assoc()) 23 24 { -
trunk/Modules/TimeMeasure/Graph.php
r548 r569 1 1 <?php 2 3 include_once(dirname(__FILE__).'/../../Base/View.php');4 include_once(dirname(__FILE__).'/../Model/Measure.php');5 2 6 3 class GraphView extends View -
trunk/Modules/TimeMeasure/Main.php
r548 r569 1 1 <?php 2 2 3 include_once(dirname(__FILE__).'/../../Base/View.php'); 4 5 class MainView extends View 3 class MainPage extends Page 6 4 { 7 5 var $Months = array('', 'Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec'); … … 169 167 $Output .= '<img alt="Graf" src="?M=Graph&Measure='.$_SESSION['Measure'].'&From='.$_SESSION['TimeStart'].'&To='.$_SESSION['TimeEnd'].'&Width='.$this->Config['Application']['GraphSize']['Width'].'&Height='.$this->Config['Application']['GraphSize']['Height'].'&Differential='.$_SESSION['Differential'].'" width="'.$this->Config['Application']['GraphSize']['Width'].'" height="'.$this->Config['Application']['GraphSize']['Height'].'"><br>'; 170 168 $Output .= '<a href="?Measure='.$_SESSION['Measure'].'&TimeStart='.$_SESSION['TimeStart'].'&TimeEnd='.$_SESSION['TimeEnd'].'&TimeSpecify=1&Differential='.$_SESSION['Differential'].'">Odkaz na vybraný graf</a><br>'; 171 //print_r(GetValues($Measure, $TimeStart, $TimeEnd));172 169 return($Output); 173 170 } -
trunk/Modules/TimeMeasure/Measure.php
r548 r569 1 1 <?php 2 3 include_once(dirname(__FILE__).'/../../Base/Model.php');4 2 5 3 class Measure extends Model -
trunk/Modules/TimeMeasure/TimeMeasure.php
r565 r569 1 1 <?php 2 3 include_once(dirname(__FILE__).'/Measure.php'); 4 include_once(dirname(__FILE__).'/Graph.php'); 5 include_once(dirname(__FILE__).'/Main.php'); 2 6 3 7 class ModuleTimeMeasure extends AppModule
Note:
See TracChangeset
for help on using the changeset viewer.