Changeset 976
- Timestamp:
- Jun 30, 2025, 3:24:41 PM (7 hours ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r975 r976 1 1 <?php 2 2 3 $Revision = 97 5; // Subversion revision3 $Revision = 976; // Subversion revision 4 4 $DatabaseRevision = 970; // SQL structure revision 5 5 $ReleaseTime = strtotime('2025-06-30'); -
trunk/Modules/Document/Document.php
r901 r976 120 120 $DbResult = $this->Database->query('SELECT * FROM `DocumentLineSequence` WHERE '. 121 121 '`DocumentLine`='.$Id.' AND `FinanceYear`='.$FinanceYear['Id']); 122 $Sequence = $DbResult->fetch_assoc(); 122 if ($DbResult->num_rows > 0) 123 { 124 $Sequence = $DbResult->fetch_assoc(); 125 } else 126 { 127 $Sequence = array('DocumentLine' => $Id, 'FinanceYear' => $FinanceYear['Id'], 128 'NextNumber' => 1, 'YearPrefix' => 1); 129 $Sequence['Id'] = $this->Database->insert('DocumentLineSequence', $Sequence); 130 } 123 131 124 132 if ($Sequence['YearPrefix'] == 1) 125 133 { 126 134 $Result = $DocumentLine['Shortcut'].$Sequence['NextNumber'].'/'.$FinanceYear['Year']; 127 } else $Result = $DocumentLine['Shortcut'].$Sequence['NextNumber']; 135 } else 136 { 137 $Result = $DocumentLine['Shortcut'].$Sequence['NextNumber']; 138 } 128 139 129 140 $this->Database->query('UPDATE `DocumentLineSequence` SET `NextNumber` = `NextNumber` + 1 '. -
trunk/Modules/NetworkConfigRouterOS/Generators/Signal.php
r975 r976 21 21 //$Routerboard->Port = 8729; 22 22 $Routerboard->Connect($Device['LocalIP'], $this->System->Config['API']['UserName'], $this->System->Config['API']['Password']); 23 if (!$Routerboard->Connected) continue; 24 25 $Queries = array_merge($Queries, $this->ReadWireless($Device, $Routerboard)); 26 $Queries = array_merge($Queries, $this->ReadWireless60G($Device, $Routerboard)); 23 if ($Routerboard->Connected) 24 { 25 $Queries = array_merge($Queries, $this->ReadWireless($Device, $Routerboard)); 26 $Queries = array_merge($Queries, $this->ReadWireless60G($Device, $Routerboard)); 27 } 27 28 echo("\n"); 28 29 } -
trunk/Modules/NetworkTopology/NetworkTopology.php
r912 r976 25 25 function ShowImage(): string 26 26 { 27 $this-> SimplePage = true;28 $this->FormatHTML = false;27 $this->RawPage = true; 28 Core::Cast($this->System)->BaseView->FormatHTML = false; 29 29 30 30 if (array_key_exists('debug', $_GET)) $debug = $_GET['debug']; -
trunk/Modules/News/NewsPage.php
r964 r976 252 252 $RowTotal = $DbResult->fetch_array(); 253 253 $PageMax = $RowTotal[0]; 254 if (array_key_exists('page', $_GET) ) $Page = $_GET['page'];255 else $Page = 0; //round($PageMax/$PerPage);254 if (array_key_exists('page', $_GET) and is_numeric($_GET['page'])) $Page = $_GET['page'] * 1; 255 else $Page = 0; 256 256 $Output .= '<strong>Seznam aktualit kategorie '.$Category['Caption'].':</strong><div style="font-size: small;">'; 257 257 $Output .= PagesList('?category='.$Category['Id'].'&page=', $Page, $PageMax, $PerPage); … … 400 400 { 401 401 $this->RawPage = true; 402 $this->FormatHTML = false;402 Core::Cast($this->System)->BaseView->FormatHTML = false; 403 403 Header('Content-Type: text/xml'); 404 404 … … 424 424 if (strlen($Where) > 2) $Where = substr($Where, 2); 425 425 else $Where = 1; 426 } else $Where = 1; 426 } else $Where = 1; 427 427 } else $Where = 1; 428 428 -
trunk/Packages/Common/Base.php
r952 r976 18 18 19 19 public function __debugInfo() 20 { 21 $Vars = get_object_vars($this); 20 { 21 $Vars = get_object_vars($this); 22 22 unset($Vars['System'], $Vars['Database']); 23 23 return $Vars;
Note:
See TracChangeset
for help on using the changeset viewer.