summaryrefslogtreecommitdiffstats
path: root/inc
Commit message (Collapse)AuthorAgeFilesLines
* [permissionmanager] Implement permissions:Simon Rettberg2018-02-191-1/+1
| | | | | | | Permissinmanager is now protected by permissions. In order to prevent complete lockout, the user with userid == 1 will always be able to edit and assign permissions. (TODO: Communicate this somehow)
* [inc/User] assertPermission(): Don't redirect if it's an ajax callSimon Rettberg2018-02-161-0/+4
|
* [inc/User] getAllowedLocations(): Support cross-module checkingSimon Rettberg2018-02-151-2/+6
|
* [inc/Permission] Add readonly stringSimon Rettberg2018-02-141-2/+2
|
* Global: Only show "Warning" badge at the top if user can view event log,Simon Rettberg2018-02-142-2/+9
| | | | also hide warnings on the main page from modules the user has no access to
* [inc/Permission] Add parameter to helper; fix for querying foreign moduleSimon Rettberg2018-02-141-2/+11
|
* Permissions: Introduce helper functions for common tasksSimon Rettberg2018-02-092-2/+47
| | | | | | | assertPermission ensures the user has a given permission and halts execution otherwise. addGlobalTags is a helper to fill an array for the rendering process with tags associated with (missing) permissions.
* Merge branch 'master' into permission-managerSimon Rettberg2018-02-092-9/+53
|\
| * [inc/User] Add locationid 0 to allowed locations in fallback modeSimon Rettberg2018-02-081-2/+5
| |
| * [inc/User] Removed unecessary logging lineSteffen Ritter2018-01-111-1/+0Star
| |
| * [inc/Database] Add profiling info (timing, query count)Simon Rettberg2018-01-041-6/+48
| |
* | [statistics] added permissions to view client logs;Udo Walter2018-01-181-2/+0Star
|/ | | | | removed unused query arguments from Paginate::exec (caused an error if query arguments that are actually used in the query are passed to Paginate::exec)
* [inc/Database] Support nested arrays in querySimon Rettberg2017-12-211-1/+10
|
* Fix A LOT of type problems, logic flaws, uninitialized variables etc.Simon Rettberg2017-12-1611-52/+130
| | | | | 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/Render] Fix lang_ matching regexp (spaces)Simon Rettberg2017-12-041-3/+3
|
* [inc/Util] Add helper to pretty-print timestampSimon Rettberg2017-12-011-0/+24
|
* [inc/User] Fix getAllowedLocations for legacy permission managerSimon Rettberg2017-12-011-0/+2
|
* [inc/User] Fix permission compat to old systemSimon Rettberg2017-12-011-1/+3
|
* Merge branch 'master' into permission-managerSimon Rettberg2017-12-014-63/+29Star
|\
| * [inc/Paginate] Use Count(*) instead of SQL_CALC_FOUND_ROWS, which is fasterSimon Rettberg2017-11-292-58/+12Star
| | | | | | | | Most of the time.
| * [inc/Database] Do EXPLAIN SELECT at shutdown so we don't interfere with ↵Simon Rettberg2017-11-291-2/+15
| | | | | | | | SQL_CAL_FOUND_ROWS
| * [js] Move all our fixes into one file, add browser history/URL fix for messagesSimon Rettberg2017-11-291-3/+2Star
| | | | | | | | | | Hides all the ugly message[]= entries from the URL string, so copy/paste won't show the message out of context again
* | Merge remote-tracking branch 'origin/master' into permission-managerUdo Walter2017-11-214-26/+28
|\| | | | | | | | | | | # Conflicts: # modules-available/backup/templates/_page.html # style/default.css
| * [inc/Taskmanager] Fix phpdocSimon Rettberg2017-11-131-1/+1
| |
| * [inc/Download] Keep curl handle open for connection reuseSimon Rettberg2017-11-131-15/+19
| |
| * [inc/event] Don't try to start DozmodLauncher task - doesn't existSimon Rettberg2017-11-031-4/+0Star
| |
| * [inc/module] Fix sorting bug, show errors in debug mode, add optional param ↵Simon Rettberg2017-11-031-6/+8
| | | | | | | | to isAvailable()
* | Merge remote-tracking branch 'origin/master' into permission-managerUdo Walter2017-09-019-26/+263
|\|
| * [inc/Download] Delete temp file for response headerSimon Rettberg2017-07-251-0/+1
| |
| * [inc/Util] Fix: Print trace in CLI mode againSimon Rettberg2017-06-231-1/+1
| |
| * [inc/Database] Only fall back to global ignoreError setting if param was omittedSimon Rettberg2017-06-231-9/+9
| |
| * [inc/Util] Add randomUuid() functionSimon Rettberg2017-06-101-0/+28
| |
| * [inc/event] Retry mounting vmstore on bootupSimon Rettberg2017-06-071-6/+20
| |
| * cron: Clear stucklist on rebootSimon Rettberg2017-05-172-0/+15
| |
| * Remove debug loggingSimon Rettberg2017-05-101-3/+0Star
| |
| * Add support to declare multiple css/js per module with loading condition:Simon Rettberg2017-05-102-8/+45
| | | | | | | | | | | | | | | | | | A css/js can be declared to only load if the module in question is the page module being rendered, or to always be loaded even if the module is just a dependency. The second case is useful for plugin type modules. See one of the config.json files updated in this commit on how to specify css/js to load. true = always load, false = only if page module.
| * [inc/Database] Add slow query debugging outputSimon Rettberg2017-05-101-0/+48
| |
| * [weninterface] Improve color list a bitSimon Rettberg2017-05-101-2/+21
| |
| * [webinterface] Allow customizing page title prefix and logo bgcolorSimon Rettberg2017-05-091-1/+18
| |
| * [webinterface] Log user out when disabling HTTPS to prevent lockoutSimon Rettberg2017-05-051-2/+7
| |
| * [inc/Database] Add ::queryAll()Simon Rettberg2017-04-241-0/+14
| |
| * [inc/Dictionary] Add $returnTagOnMissing to :translateFile()Simon Rettberg2017-04-191-2/+2
| |
| * [inc/Database] Support expanding nested arraysSimon Rettberg2017-04-191-0/+42
| | | | | | | | | | | | | | In parametrized queries, you can now pass an array as an argument. This will result in the arguments being expanded to :a1,:a2,:a3 which is suitable for "IN (:slist)" constructs.
* | [permissionmanager] added possibility to get a list of allowed locations for ↵Udo Walter2017-04-251-4/+13
| | | | | | | | a given permission + bugfixes
* | Merge branches 'master' and 'permission-manager' of ↵Christian Hofmaier2017-04-124-26/+137
|\| | | | | | | git.openslx.org:openslx-ng/slx-admin into permission-manager
| * [inc/Util] Improve traceError() outputSimon Rettberg2017-04-071-15/+32
| |
| * [inc/Database] Add helper function to run INSERT and retrieve keysSimon Rettberg2017-04-071-0/+94
| |
| * [inc/Download] Properly return final HTTP status code for redirected requestsSimon Rettberg2017-03-211-6/+6
| |