- Timestamp:
- Feb 19, 2021, 12:03:36 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r903 r904 1 1 <?php 2 2 3 $Revision = 90 3; // Subversion revision3 $Revision = 904; // Subversion revision 4 4 $DatabaseRevision = 901; // SQL structure revision 5 5 $ReleaseTime = strtotime('2021-02-19'); -
trunk/Modules/Contract/Contract.php
r902 r904 185 185 $IpAddress = $NetworkInterface['LocalIP']; 186 186 $MacAddress = $NetworkInterface['MAC']; 187 $NetMask = ''; 188 $DefaultGateway = ''; 187 188 $DbResult = $this->Database->query('SELECT * FROM NetworkSubnet '. 189 'WHERE CompareNetworkPrefix(INET_ATON("'.$IpAddress.'"), INET_ATON(`AddressRange`), `Mask`)'); 190 if ($DbResult->num_rows > 0) 191 { 192 $Subnet = $DbResult->fetch_assoc(); 193 $DefaultGateway = $Subnet['Gateway']; 194 $NetworkAddressIPv4 = new NetworkAddressIPv4(); 195 $NetworkAddressIPv4->Prefix = $Subnet['Mask']; 196 $NetworkAddressIPv4->Address = $NetworkAddressIPv4->GetNetMask(); 197 $NetMask = $NetworkAddressIPv4->AddressToString(); 198 } else die('Subnet not found.'); 199 189 200 $Interface = 'Ethernet'; 190 201 $PrimaryDNS = '10.145.64.8'; … … 291 302 '<strong>II. Poskytované služby:</strong><br/>'. 292 303 '<table width="100%" border="1">'. 293 '<tr><td width="50%" aling="center">Zvolený typ (tarif) služby:</td><td width="50%">'.NotBlank($ServiceType).'</td></tr>'.304 '<tr><td width="50%">Zvolený typ (tarif) služby:</td><td>'.NotBlank($ServiceType).'</td></tr>'. 294 305 '</table>'. 295 306 '<br/>'. … … 320 331 '<br/><br/><br/><br/>'. 321 332 '<table width="100%">'. 322 '<tr><td width="50%" ali ng="center">odběratel</td><td width="50%">dodavatel</td></tr>'.333 '<tr><td width="50%" align="center">odběratel</td><td width="50%" align="center">dodavatel</td></tr>'. 323 334 '</table>'. 324 335 '</td></tr>'.
Note:
See TracChangeset
for help on using the changeset viewer.