summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/inc
Commit message (Collapse)AuthorAgeFilesLines
* [locations] Fix falsy checksSimon Rettberg2025-12-031-6/+6
| | | | Thanks Junie AI
* [locations] Fix inverted logic bugSimon Rettberg2025-07-241-1/+1
|
* [locations] Location::getLocations(): Add "checked" string for convenienceSimon Rettberg2025-07-081-0/+2
|
* [locations] Cleanup Location classSimon Rettberg2025-07-073-193/+197
| | | | | | | | | | There was a mess of functions which mostly, but not quite, did the same things. Get rid of a couple of them and fix call sites to use alternative ones that also fit the job. While at it, add phpdoc and comments to the remaining functions, trying to clarify what they were designed for. Lastly, the return type of functions that retrieve a location id has been changed from false|int to ?int (nullable types are just nicer).
* [locations/statistics] More type safety, array key checksSimon Rettberg2024-01-181-1/+1
|
* [locations] Fix wrong variable type errorSimon Rettberg2023-12-041-4/+4
|
* Fix more type errors, stricter typingSimon Rettberg2023-11-151-8/+3Star
|
* Add function param/return types, fix a lot more phpstorm complaintsSimon Rettberg2023-11-144-47/+43Star
|
* Roundup of issues reported by PHPStormSimon Rettberg2023-11-022-3/+2Star
| | | | Mostly redundant checks, logic errors, dead code, etc.
* [locations] cleanup: Hide/disable move button if action not availableSimon Rettberg2023-05-121-4/+1Star
| | | | | | Hide the button entirely if there are no movable machines in the displayed list. Disable the button as long as the user selected at least one unmovable machine.
* [statistics] Per-location usage stats; include active lecture countSimon Rettberg2022-12-021-1/+1
|
* [inc/Util] Add types, move error printing functions to their own classSimon Rettberg2022-05-021-2/+2
|
* [locations/remoteaccess] Add option to veto remoteaccess modeSimon Rettberg2022-04-291-2/+31
| | | | | | | 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.
* Formatting/minor refactoringSimon Rettberg2022-04-191-1/+7
|
* [locations/passthrough] Make location assignment recusiveSimon Rettberg2022-03-091-0/+5
| | | | | Properly show inherited passthough groups in location list, disable inherited passthrough groups in selection dialog.
* [locations] Modularize additional column handlingSimon Rettberg2022-03-091-0/+24
| | | | | Additional columns are now added through a hook, moving specialized code where it belongs.
* [locations/minilinux] Minor cleanups and fixesSimon Rettberg2021-06-241-0/+1
|
* Moderize Database handlingSimon Rettberg2021-05-113-4/+4
| | | | | | | * Auto-convert to utf8mb4_unicode_520_ci * Use foreach instead of while to loop over results * Drop useless statement caching * Keep emulated prepares, as we sometimes loop over nested queries
* [locations/rebootcontrol] Inherit openingtimes for WOL/shutdownSimon Rettberg2021-03-191-0/+28
| | | | | | | | | | The opening times schedule is now inherited to child locations, so it's easy to toggle WOL or shutdown for individual rooms in a building, where you only have to set the opening times once for the entire building. As of now, WOL and shutdown settings are *not* inherited to child locations, as I'm not sure if you always want to inherit those by default. Closes #3710
* [locations] Add missing array keySimon Rettberg2020-04-211-1/+2
|
* [locations] Don't consider *false* a valid fixed location idSimon Rettberg2020-01-171-0/+2
|
* [locations] Fix $selected array breakageSimon Rettberg2020-01-101-2/+8
| | | | | Fixes places like "edit exam" which wouldn't show already selected locations.
* [baseconfig] Overhaul hook systemSimon Rettberg2019-11-051-15/+13Star
| | | | | | This enables us to finally properly show the inheritance flow of all the config variables when editing the baseconfig for a certain location or machine.
* [statistics/baseconfig] Allow per-machine configvar overridesSimon Rettberg2019-10-312-19/+31
|
* [locations] Refine location matching checksSimon Rettberg2019-08-012-21/+28
|
* [locations] Add warnings/cleanup for bad machine to roomplan mappingsSimon Rettberg2019-07-313-74/+223
|
* [locations] Optimize some functions in Location classSimon Rettberg2019-07-292-22/+28
| | | | | | | * Casts are faster than settype. * Check if assoc location cache is already populated. * getLocationRootChain can use the parents array from that location instead of building the array from scratch.
* [roomplanner] Support creating recursive/composed roomsSimon Rettberg2019-07-231-1/+3
|
* [statistics/locations] Add locationid constraints; update on deleteSimon Rettberg2019-04-031-7/+20
| | | | | We didn't update subnetlocationid when deleting a location, leading to machines pointing to invalid locations.
* [locations] Fix invalid array accessSimon Rettberg2019-01-021-1/+1
|
* [locations] One permission for direct subnet editing; restructure handling a bitSimon Rettberg2018-02-141-1/+1
|
* [location] WTF?Simon Rettberg2017-12-011-2/+1Star
|
* Merge branch 'master' into permission-managerSimon Rettberg2017-12-011-0/+25
|\
| * [roomplanner] Refactor to use runmodeSimon Rettberg2017-11-301-0/+25
| |
* | Merge remote-tracking branch 'origin/master' into permission-managerUdo Walter2017-11-211-24/+32
|\| | | | | | | | | | | # Conflicts: # modules-available/backup/templates/_page.html # style/default.css
| * [dozmod] Improve location & exam mode detectionSimon Rettberg2017-11-141-4/+13
| |
| * [locations] Missing typecast for locationidSimon Rettberg2017-11-031-1/+1
| |
| * [locations] fix missing locationId on ip/uuid ...Jonathan Bauer2017-09-051-19/+18Star
| | | | | | | | | | ... when the client's ip falls within a known range but its uuid has not been recorded yet and the client requests its config by uuid.
* | [locations] implemented new permission systemUdo Walter2017-10-031-1/+2
|/
* [locations] Add/improve commentsSimon Rettberg2017-07-131-6/+6
|
* [locationinfo] Location edit part done so farSimon Rettberg2017-06-121-0/+41
|
* [locationinfo] Started rewrite for panel-based approachSimon Rettberg2017-06-101-0/+5
|
* [locations] Make Location::buildTree() public again for nowSimon Rettberg2017-05-171-1/+1
|
* Merge branch 'master' into location-info-panelSimon Rettberg2017-04-271-0/+16
|\
| * [baseconfig] Display inherited value and source when editing module specific ↵Simon Rettberg2017-04-261-0/+16
| | | | | | | | | | | | | | | | settings This optionally requires a callback to find the inheritance source in the module in question. The locations module was updated accordingly. This implements #3120
* | [locations] Make Location::getTree() publicSimon Rettberg2017-04-181-1/+1
| |
* | [locations] Return recursive list of children in getLocationsAssoc()Simon Rettberg2017-04-131-2/+8
|/
* [statistics/locations] Update/set subnetlocationid field in DB if the DB has ↵Simon Rettberg2017-01-111-0/+35
| | | | been updated
* [statistics/locations/..] Cache calculated locationid of machine in machine ↵Simon Rettberg2016-12-061-47/+106
| | | | | | | | | | | | | | | table We now have three columns for the locationid: - subnetlocationid Updated whenever the clientip of a client changes on bootup, or when locations/subnets are edited in the locations module. - fixedlocationid Takes the role of the old locationid field - set when a machine is placed in a room via roomplanner, set to NULL otherwise. - locationid Set to fixedlocationid if it's not NULL, to subnetlocationid otherwise. The field is updated by a BEFORE UPDATE trigger.
* [locations/statistics] Make machine counting more consistentSimon Rettberg2016-09-091-1/+4
|