Changeset 983
- Timestamp:
- Apr 22, 2026, 10:11:45 PM (4 hours ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
Application/Version.php (modified) (1 diff)
-
Common/Form/Form.php (modified) (1 diff)
-
Modules/IS/IS.php (modified) (1 diff)
-
Modules/NetworkConfigRouterOS/Generators/FirewallNAT.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r981 r983 1 1 <?php 2 2 3 $Revision = 98 1; // Subversion revision3 $Revision = 983; // Subversion revision 4 4 $DatabaseRevision = 970; // SQL structure revision 5 $ReleaseTime = strtotime('2026- 12-01');5 $ReleaseTime = strtotime('2026-04-22'); -
trunk/Common/Form/Form.php
r948 r983 210 210 else $SourceTable = '`'.$this->Definition['Table'].'` AS `TX`'; 211 211 $DbResult = $this->Database->query('SELECT '.$Columns.' FROM '.$SourceTable.' WHERE `TX`.`Id`='.$Id); 212 $DbRow = $DbResult->fetch_array(); 213 foreach ($this->Definition['Items'] as $Index => $Item) 214 { 215 if (!array_key_exists($Item['Type'], $this->FormManager->FormTypes) or 216 (array_key_exists($Item['Type'], $this->FormManager->FormTypes) and 217 ($this->FormManager->FormTypes[$Item['Type']]['Type'] != 'ManyToOne'))) 218 { 219 $UseType = $this->GetItemType($Item); 220 $this->Values[$Index] = $this->FormManager->Type->ExecuteTypeEvent($UseType, 'OnLoadDb', 221 array('Value' => $DbRow[$Index], 'Name' => $Index, 222 'Type' => $Item['Type'], 'Values' => $this->Values)); 223 $this->ValuesFilter[$Index] = $DbRow[$Index.'_Filter']; 224 } 225 } 212 if ($DbResult->num_rows == 1) 213 { 214 $DbRow = $DbResult->fetch_array(); 215 foreach ($this->Definition['Items'] as $Index => $Item) 216 { 217 if (!array_key_exists($Item['Type'], $this->FormManager->FormTypes) or 218 (array_key_exists($Item['Type'], $this->FormManager->FormTypes) and 219 ($this->FormManager->FormTypes[$Item['Type']]['Type'] != 'ManyToOne'))) 220 { 221 $UseType = $this->GetItemType($Item); 222 $this->Values[$Index] = $this->FormManager->Type->ExecuteTypeEvent($UseType, 'OnLoadDb', 223 array('Value' => $DbRow[$Index], 'Name' => $Index, 224 'Type' => $Item['Type'], 'Values' => $this->Values)); 225 $this->ValuesFilter[$Index] = $DbRow[$Index.'_Filter']; 226 } 227 } 228 } else throw new Exception('Item '.$Id.' not found'); 226 229 } 227 230 -
trunk/Modules/IS/IS.php
r980 r983 464 464 $Form->SetClass($Table); 465 465 $this->Title .= ' - '.$Form->Definition['Title'].' položka'; 466 $Form->LoadValuesFromDatabase($Id); 466 try 467 { 468 $Form->LoadValuesFromDatabase($Id); 469 } catch (Exception $E) 470 { 471 return $this->SystemMessage('Chyba', 'Položka '.$Id.' nenalezena.'); 472 } 467 473 $Form->OnSubmit = '?a=view'; 468 474 $Output = $Form->ShowViewForm(); -
trunk/Modules/NetworkConfigRouterOS/Generators/FirewallNAT.php
r929 r983 35 35 //$Items[] = array('chain' => 'inet-out', 'dst-address' => '172.16.1.1/30', 'action' => 'accept', 'comment' => 'Local_subnet'); 36 36 //$Items[] = array('chain' => 'inet-in', 'dst-address' => '172.16.1.1/30', 'action' => 'accept', 'comment' => 'Local_subnet'); 37 38 // Redirect ping from warp to inext test network 39 $Items[] = array('chain' => 'inet-out', 'src-address' => '10.145.64.23', 'dst-address' => '172.20.195.192/29', 'protocol' => 'icmp', 40 'action' => 'src-nat', 'to-addresses' => '172.20.195.197', 'comment' => 'warp_ping_inext'); 37 41 38 42 $DbResult = $this->Database->query('SELECT `Member`.*, `Subject`.`Name` FROM `Member` '.
Note:
See TracChangeset
for help on using the changeset viewer.
