summaryrefslogtreecommitdiffstats
path: root/inc/util.inc.php
Commit message (Collapse)AuthorAgeFilesLines
* [webinterface] Add support for ACME, add option to redirect to cert domainSimon Rettberg2024-10-081-0/+40
|
* [sysconfig] Add button to assign module to multiple configsSimon Rettberg2024-07-191-2/+3
| | | | | This extends and reuses the assignment dialog that pops up at the end of the process where you create a new module.
* [inc/Util] filesize: Fix calculating number of decimals to displaySimon Rettberg2024-05-291-3/+3
|
* Remove 32bit supportSimon Rettberg2023-11-151-5/+1Star
| | | | | | | int is always the native word size, and we don't really test anything on 32bit OSes anymore. 32bit support already required ugly workarounds in the past for large file sizes and ip2long, so we can finally get rid of those and just put an initial check in install.php.
* Fix more type errors, stricter typingSimon Rettberg2023-11-151-16/+16
|
* Add function param/return types, fix a lot more phpstorm complaintsSimon Rettberg2023-11-141-16/+25
|
* [inc/Dictionary] Add locale-aware number formatting methodSimon Rettberg2022-11-151-3/+3
|
* [inc/Util] Remove leading space in formatDuration() when < 24hSimon Rettberg2022-05-171-1/+2
|
* [eventlog] Cast numeric values to int explicitly, in case they are ''Simon Rettberg2022-05-131-1/+1
|
* [inc/Util] Add types, move error printing functions to their own classSimon Rettberg2022-05-021-183/+38Star
|
* [locations/remoteaccess] Add option to veto remoteaccess modeSimon Rettberg2022-04-291-1/+13
| | | | | | | Remoteaccess mode can now be forced to be disabled for individual locations in locations module, either unconditionally, or whenever the openingtimes schedule says the room is open. A reboot will be triggered whenever the room opens/closes to force clients into the proper runmode.
* [main+Session] Move session from /tmp/ to session tableSimon Rettberg2021-05-111-1/+0Star
|
* Fix deprecated curly braces string indexing (PHP 7.4)Simon Rettberg2021-03-251-1/+1
|
* [inc/Util] formatDuration: Add leading zeroSimon Rettberg2020-08-271-1/+7
| | | | | Conditionally add leading zero to years, months, days if we printed the next-larger unit already, for beeter display in tables.
* [serversetup-bwlp-ipxe/statistics] Sanitize strings from clientsSimon Rettberg2020-07-311-0/+33
| | | | | | Some string from the clients might not be well suited for utf-8 representation. Add wrapper functions that clean utf-8 strings, or convert ANSI strings to UTF-8 while removing problematic chars.
* [inc/Util] Fix rounding based on OS bitnessSimon Rettberg2020-01-141-1/+6
|
* [inc/Util] Fix rounding of large (float) valuesSimon Rettberg2020-01-101-1/+1
|
* Fix some typos (found by codespell)Stefan Weil2019-12-141-1/+1
| | | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* [inc/Render] Add qstr_urlencode as global mustache varSimon Rettberg2019-12-131-2/+2
|
* [inc/Util] Add method to agressively unset a cookieSimon Rettberg2019-10-311-0/+20
| | | | | This tries to work around problems with the cookie path and trailing slashes.
* [inc/Util] Simplify user download functionSimon Rettberg2019-10-181-13/+2Star
|
* [serversetup-bwlp-ipxe] UI/UX tweaksSimon Rettberg2019-10-171-0/+12
| | | | | | * Decluttered bootentry View in menu editor * Show details for hook bootentry in menu editor * Buttons for "save and reload" in menu/bootentry editor
* [dnbd3] Show image idle time in proxy detailsSimon Rettberg2019-02-211-0/+21
|
* [inc/Util] readableFileSize: support input in KB/MB/...Simon Rettberg2019-01-281-2/+3
|
* [inc/Util] Improve prettyTime year cutoff logicSimon Rettberg2019-01-021-3/+3
| | | | Closes #3518
* [inc/Util] readableFileSize: Remove superfluous round()Simon Rettberg2018-03-211-1/+1
|
* [inc/Util] readableFileSize: Use thin space, determine decimals after divisionSimon Rettberg2018-03-211-5/+9
|
* [inc/Util] Print profiling info to error_log on redirectSimon Rettberg2018-03-051-0/+7
|
* Fix A LOT of type problems, logic flaws, uninitialized variables etc.Simon Rettberg2017-12-161-14/+19
| | | | | Most of them were found by phpstorm, so I put in some time and went through the list, fixing quite a bunch of them.
* [inc/Util] prettyTime: return '???' if given timestamp is 0 or not a numberSimon Rettberg2017-12-041-0/+3
|
* [inc/Util] Util::redirect() can now be told to redirect to $_POST['redirect']Simon Rettberg2017-12-041-2/+8
|
* [inc/Util] Add helper to pretty-print timestampSimon Rettberg2017-12-011-0/+24
|
* [inc/Util] Fix: Print trace in CLI mode againSimon Rettberg2017-06-231-1/+1
|
* [inc/Util] Add randomUuid() functionSimon Rettberg2017-06-101-0/+28
|
* [inc/Util] Improve traceError() outputSimon Rettberg2017-04-071-15/+32
|
* Fix a couple of warnings and notices from error.logSimon Rettberg2017-03-211-1/+1
|
* [statistics_reporting] Overhaul remote reporting structure; default to offSimon Rettberg2017-01-191-0/+52
|
* [sysconfig] Improve binddn parsing for AD wizardSimon Rettberg2016-10-271-4/+0Star
|
* [Util] traceError: Use error_log for AJAX calls, just like APISimon Rettberg2016-09-081-1/+1
|
* [util] Also escape the print_r output when rendering HTMLSimon Rettberg2016-08-151-1/+1
|
* [util] traceError(): Don't output html junk if running via CLISimon Rettberg2016-08-151-3/+31
|
* Fix minor issues in exams install hook, taskmanager callback logicSimon Rettberg2016-08-121-0/+1
|
* [util] Made traceError output prettier by using HTMLSimon Rettberg2016-07-131-15/+49
|
* Fix CSRF token checking; improve token/sid generationSimon Rettberg2016-05-191-3/+3
|
* Get baseconfig ready for modularizationSimon Rettberg2016-05-131-0/+13
|
* Migrated messages to modulesSimon Rettberg2016-05-101-4/+4
|
* [clientlog] Fix bootup db insert querySimon Rettberg2015-12-221-0/+3
|
* [ldap/ad] Figure out proper spelling of search baseSimon Rettberg2015-09-181-0/+4
|
* Config.tgz improvements, automatic rebuilds etc.Simon Rettberg2015-01-291-0/+13
|
* Add configtgz class. Fix dozens of bugsSimon Rettberg2015-01-261-0/+40
|