Changeset 878
- Timestamp:
- Jun 25, 2020, 10:21:26 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UpdateTrace.php
r874 r878 2109 2109 $Manager->Execute('UPDATE `NetworkSubnet` SET `MaskIPv6`=64 WHERE `AddressRangeIPv6` != ""'); 2110 2110 $Manager->Execute('UPDATE `NetworkSubnet` SET `AddressRangeIPv6` = REPLACE(`AddressRangeIPv6`, "/64", "")'); 2111 } 2112 2113 function UpdateTo878($Manager) 2114 { 2115 $Manager->Execute('ALTER TABLE `NewsImport` ADD `Method` VARCHAR(255) NOT NULL AFTER `Category`;'); 2116 $Manager->Execute('ALTER TABLE `NewsImport` ADD PRIMARY KEY (`Id`);'); 2117 $Manager->Execute('ALTER TABLE `NewsImport` MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT;'); 2111 2118 } 2112 2119 … … 2211 2218 867 => array('Revision' => 869, 'Function' => 'UpdateTo869'), 2212 2219 869 => array('Revision' => 870, 'Function' => 'UpdateTo870'), 2220 870 => array('Revision' => 878, 'Function' => 'UpdateTo878'), 2213 2221 ); 2214 2222 } -
trunk/Application/Version.php
r877 r878 1 1 <?php 2 2 3 $Revision = 87 7; // Subversion revision4 $DatabaseRevision = 87 0; // SQL structure revision5 $ReleaseTime = strtotime('2020-0 4-25');3 $Revision = 878; // Subversion revision 4 $DatabaseRevision = 878; // SQL structure revision 5 $ReleaseTime = strtotime('2020-06-25'); -
trunk/Modules/News/News.php
r874 r878 2 2 3 3 include_once(dirname(__FILE__).'/NewsPage.php'); 4 include_once(dirname(__FILE__).'/NewsSource.php'); 5 include_once(dirname(__FILE__).'/Import/Vismo.php'); 4 6 5 7 function CategoryItemCompare($Item1, $Item2) … … 37 39 { 38 40 $this->System->RegisterPage('aktuality', 'PageNews'); 41 $this->System->RegisterPage(array('aktuality', 'aktualizace'), 'PageNewsUpdate'); 39 42 $this->System->FormManager->RegisterClass('News', array( 40 43 'Title' => 'Aktualita', -
trunk/Modules/News/NewsPage.php
r874 r878 432 432 } 433 433 } 434 435 class PageNewsUpdate extends Page 436 { 437 function __construct($System) 438 { 439 parent::__construct($System); 440 $this->FullTitle = 'Aktualizace aktualit'; 441 $this->ShortTitle = 'Aktualizace aktualit'; 442 $this->ParentClass = 'PageNews'; 443 } 444 445 function Show() 446 { 447 $NewsSources = new NewsSources(); 448 $NewsSources->Database = $this->Database; 449 if (array_key_exists('i', $_GET)) $Output = $NewsSources->Parse($_GET['i']); 450 else $Output = $NewsSources->Parse(); 451 return $Output; 452 } 453 } 454 -
trunk/Modules/User/UserModel.php
r874 r878 283 283 } else 284 284 { 285 $this->PermissionGroupCache[$GroupId] = array(); 286 285 287 // If no permission combination exists in cache, do new check of database items 286 288 $DbResult = $this->Database->select('PermissionGroupAssignment', '*', '(`Group`="'.$GroupId. 287 289 '") AND (`AssignedGroup` IS NOT NULL)'); 288 $DbRow = array(); 289 while ($DbRow[] = $DbResult->fetch_array()); 290 $this->PermissionGroupCache[$GroupId] = $DbRow; 290 while ($DbRow = $DbResult->fetch_array()) 291 { 292 $this->PermissionGroupCache[$GroupId][] = $DbRow; 293 } 291 294 $PermissionExists = true; 292 295 }
Note:
See TracChangeset
for help on using the changeset viewer.