summaryrefslogtreecommitdiffstats
path: root/inc/util.inc.php
Commit message (Collapse)AuthorAgeFilesLines
* [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
|
* config module structure completed. Many other fixes. Hidden pw field support.Simon Rettberg2015-01-201-0/+17
|
* Return status code 500 on Util::traceError()Simon Rettberg2014-11-281-0/+28
|
* Added proxy server settingsSimon Rettberg2014-11-181-18/+1Star
|
* [i18n] Sanity checks, introduced subdir for template language filesSimon Rettberg2014-08-141-0/+20
|
* New SysConfig module for adding a logoSimon Rettberg2014-06-271-82/+17Star
|
* Try to autpmatically detect server ip on init-apiSimon Rettberg2014-06-231-16/+48
|
* Reboot functionality on system status pageSimon Rettberg2014-06-061-1/+1
|