- Timestamp:
- Feb 3, 2024, 11:21:34 PM (11 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r960 r963 1 1 <?php 2 2 3 $Revision = 96 0; // Subversion revision3 $Revision = 963; // Subversion revision 4 4 $DatabaseRevision = 957; // SQL structure revision 5 $ReleaseTime = strtotime('202 3-12-29');5 $ReleaseTime = strtotime('2024-02-03'); -
trunk/Modules/News/NewsPage.php
r958 r963 361 361 if (substr($Index, 0, 8) == 'category') $Select .= '-'.substr($Index, 8); 362 362 } 363 $Select = Core::Cast($this->System)->Config['Web']['RootFolder'].'/aktuality/rss/?select='.substr($Select, 1); 364 $Output = 'Výsledný RSS kanál: <a href="'.$Select.'">'.$Select.'</a>'; 363 if ($Select != '') 364 { 365 $Select = Core::Cast($this->System)->Config['Web']['RootFolder'].'/aktuality/rss/?select='.substr($Select, 1); 366 $Output = 'Výsledný RSS kanál: <a href="'.$Select.'">'.$Select.'</a>'; 367 } else 368 { 369 $Output = 'Nevybrána žádná kategorie pro vytvoření RSS kanálu.'; 370 } 365 371 } else 366 372 { … … 409 415 { 410 416 $Where = ''; 411 $Parts = explode('-', $_GET['select']); 412 foreach ($Parts as $Part) 413 { 414 if (is_numeric($Part)) $Where .= 'OR (`Category`='.($Part * 1).')'; 415 } 416 $Where = substr($Where, 2); 417 $Parts = array_filter(explode('-', $_GET['select'])); 418 if (count($Parts) > 0) 419 { 420 foreach ($Parts as $Part) 421 { 422 if (is_numeric($Part)) $Where .= 'OR (`Category`='.($Part * 1).')'; 423 } 424 if (strlen($Where) > 2) $Where = substr($Where, 2); 425 else $Where = 1; 426 } else $Where = 1; 417 427 } else $Where = 1; 418 428 -
trunk/Modules/User/UserModel.php
r954 r963 245 245 setcookie('LoginUserId', $Row['Id'], time()+365*24*60*60, $this->System->Link('/')); 246 246 setcookie('LoginHash', sha1($Row['Id'].$StayLoggedSalt), time()+365*24*60*60, $this->System->Link('/')); 247 } else { 247 } else 248 { 248 249 setcookie('LoginUserId', '', time() - 3600, $this->System->Link('/')); 249 250 setcookie('LoginHash', '', time() - 3600, $this->System->Link('/')); … … 255 256 } 256 257 } else $Result = USER_NOT_REGISTRED; 258 259 // Wait some minimal time if not able to log in to avoid brute forcing passwords 260 if ($Result != USER_LOGGED_IN) sleep(1); 261 257 262 return $Result; 258 263 }
Note:
See TracChangeset
for help on using the changeset viewer.