Changeset 924
- Timestamp:
- May 10, 2022, 10:09:23 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Types/TimeDiff.php
r887 r924 9 9 if ($Item['Value'] == null) $Output = ''; 10 10 else { 11 $Output = sprintf('%02d', floor($Item['Value'] / 3600 % 24)).':'.12 sprintf('%02d', floor($Item['Value'] / 60 % 60)).':'.13 sprintf('%02d', floor($Item['Value'] % 60));11 $Output = sprintf('%02d', floor($Item['Value'] / 3600) % 24).':'. 12 sprintf('%02d', floor($Item['Value'] / 60) % 60).':'. 13 sprintf('%02d', floor($Item['Value']) % 60); 14 14 $Days = floor($Item['Value'] / (60 * 60 * 24)); 15 15 if ($Days > 0) $Output = $Days.' dnů '.$Output; -
trunk/Modules/User/UserModel.php
r922 r924 40 40 function GetSalt(): string 41 41 { 42 mt_srand( microtime(true) * 100000 + memory_get_usage(true));42 mt_srand(intval(microtime(true)) * 100000 + memory_get_usage(true)); 43 43 return sha1(uniqid(mt_rand(), true)); 44 44 }
Note:
See TracChangeset
for help on using the changeset viewer.