summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/locationinfo.inc.php
Commit message (Collapse)AuthorAgeFilesLines
* [locationinfo] Add panel query API, add option to mark panels as publicSimon Rettberg2026-01-201-0/+1
| | | | | | This adds the option to query a JSON of all available info panels. In addition, info panels can be marked as public/private, and only public panels will be returned in the JSON.
* [locationinfo] Overhaul caching and prefetching of calendarsSimon Rettberg2025-08-071-27/+64
| | | | | | | | | Prefetching of calendars now happens asynchronously in the background, for all calendars that are still being displayed somewhere, and where a certain age threshold is reached. This avoids slow and seemingly hanging requests for updated calendar data, and for panels that are often requested ad-hoc by users it increases chances that the calendar can be served from cache.
* [locationinfo] Don't fetch ALL calendars when using cacheSimon Rettberg2025-07-311-2/+6
|
* [locationinfo] Parametrize panel type configurationSimon Rettberg2025-07-181-90/+171
| | | | | | | | | | | | | | | | | Avoids a lot of copy and paste and duplicate work in php and html part, for example explicitly handling every config variable for a specific panel when displaying the config dialog, when saving the config, and when loading the config for displaying the panel. This also parametrizes enums, limits and ranges, so dropdowns can be rendered automatically, validity of selected option can be checked, and putting numeric settings into bounds all happens generically. Edit dialog for DEFAULT panel is still completely custom, as it has too much special sauce going on with the room config overrides. URL-panel is half-half, but SUMMARY and UPCOMING are entirely generic now.
* [locationinfo] Add UPCOMING panel typeSimon Rettberg2025-07-141-1/+142
|
* [locations] Cleanup Location classSimon Rettberg2025-07-071-2/+3
| | | | | | | | | | 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).
* [locationinfo] Change $forceCached to a flexible timeout approachSimon Rettberg2025-02-131-5/+14
| | | | | | We can now give a precise deadline until which the backend(s) will try to update stale calendar data, and just return cached data for all the entries where no time was left.
* [locationinfo] Remove redundant checkSimon Rettberg2024-11-141-7/+5Star
|
* [locationinfo] Put upgrade/cleanup code in distinct function and extendSimon Rettberg2024-11-141-0/+37
|
* [locationinfo] Add support for FirefoxSimon Rettberg2024-11-131-1/+2
|
* Add function param/return types, fix a lot more phpstorm complaintsSimon Rettberg2023-11-141-5/+6
|
* [locationinfo] Change "broken" timeout from 21 to 30 daysSimon Rettberg2023-01-051-1/+1
|
* [locationinfo] Add Slider to configure browser zoom in URL panelSimon Rettberg2022-12-061-0/+1
| | | | Closes #3915
* [statistics] Per-location usage stats; include active lecture countSimon Rettberg2022-12-021-0/+100
|
* [locationinfo] Add missing default keys for panelsSimon Rettberg2021-05-061-0/+2
|
* [locationinfo] URLPANEL: Allow black- and whitelist simultaneouslySimon Rettberg2020-10-211-2/+2
| | | | References #3790
* [baseconfig_bwlp/locationinfo] Add SLX_TTY_SWITCHSimon Rettberg2020-10-201-0/+1
| | | | | | | | This will be used (to be implemented client side) to diallow tty switching from within the X session, as the exam mode currently already does. References #3793
* [locationinfo] Add option to show hostnamesSimon Rettberg2020-06-291-0/+1
|
* [locationinfo] add new kiosk-mode options to url-panelsChristian Hofmaier2019-11-271-0/+4
| | | | | | | - guest / guest+user login - browser selection - interactive mode - bookmarks
* [sysconfig/runmode] Remove "noSysconfig" functionalitySimon Rettberg2019-11-121-45/+0Star
| | | | Was of limited use and not properly implemented anyways.
* [locationinfo] fix overrides reference is null errorChristian Hofmaier2019-03-281-0/+1
| | | | - the switch for activating override for a room is now working correctly
* [locationinfo] Add black/whitelist stuff for URL panelsSimon Rettberg2019-03-141-15/+24
|
* [locationinfo] Add error log for backendsSimon Rettberg2019-03-071-1/+16
|
* [locationinfo] roomplaner -> roomplannerSimon Rettberg2018-12-051-2/+2
|
* [locationinfo] Prevent undefined index accessSimon Rettberg2018-12-041-5/+7
|
* [locationinfo] add new settings for panels (counter, updaterate)Christian Hofmaier2018-12-031-3/+4
| | | | | | | | - setting: consider only clients in roomplaner, instead of ip range - add option to set update rate in summary panels - directly initialize when mode is "only calendar" - Set counter to "-" if room has ongoing event - fix some spelling / unused code
* [locationinfo] Default language to slx-admin session language for new panelSimon Rettberg2018-04-251-2/+2
|
* [locationinfo] URL: Add field to specify reload interval in minutesSimon Rettberg2018-01-111-0/+3
|
* Fix A LOT of type problems, logic flaws, uninitialized variables etc.Simon Rettberg2017-12-161-2/+0Star
| | | | | Most of them were found by phpstorm, so I put in some time and went through the list, fixing quite a bunch of them.
* [locationinfo] Native panels should ignore SSL errors for now ...Simon Rettberg2017-12-051-5/+2Star
| | | | Until we can push self-signed certs to the client for validation
* [locationinfo] Reworked summary-panel to the new panel uuid stuff.Jannik Schönartz2017-11-301-16/+60
|
* [statistics] Introduce state column to get rid of complicated state ↵Simon Rettberg2017-11-281-9/+3Star
| | | | | | determination This also adds support for the STANDBY state
* [locationinfo] Set SLX_AUTOLOGIN in configSimon Rettberg2017-11-141-0/+1
|
* [locationinfo] Make panel accessible via slxadmin, add URL type panelSimon Rettberg2017-07-251-2/+14
|
* [runmode] Tweaks, support NO_CONFIG and systemd targetSimon Rettberg2017-07-121-0/+8
|
* [locationinfo] Support runmode moduleSimon Rettberg2017-07-061-0/+11
|
* [locationinfo] Frontend mostly working again...Simon Rettberg2017-06-161-9/+1Star
|
* [locationinfo] slxadmin part done, todo: frontend+apiSimon Rettberg2017-06-131-0/+23
|
* [locationinfo] Rename tables to use module name as prefix; room -> locationSimon Rettberg2017-04-201-2/+2
|
* [locationinfo] Use Location helper for getRoomTree, check backend validity ↵Simon Rettberg2017-04-181-0/+24
| | | | in getCalendar
* [locationinfo] Refactor the main viewSimon Rettberg2017-04-131-1/+1
| | | | | | | - Simplify javascript - Remove client count and locationid column from view, not useful for the average user - Remove/simplify queries, use Location helper more to deal with locations
* Changed pc states 0 = IDLE, 1 = OCCUPIED, 2 = OFF, 3 = BROKENJannik Schönartz2017-03-271-4/+4
|
* Locationinfo: Added Comments to the functions.Jannik Schönartz2017-03-211-0/+6
|
* Locationinfo: Reformat code.Jannik Schönartz2017-03-151-2/+2
|
* API: Adde a method for multi handle ids and a method for returning the room ↵Jannik Schönartz2017-01-291-0/+1
| | | | tree.
* [locationinfo] Take lastboot into account when calcing pc stateSimon Rettberg2017-01-201-4/+7
|
* [locationinfo] Fix formattingSimon Rettberg2017-01-181-20/+20
|
* [locationinfo] Remove hack in LocationInfo::getPcState()Simon Rettberg2017-01-181-4/+5
|
* Locationinfo: Fixed a bug where the api was sending the json with wrong ↵Jannik Schönartz2016-12-061-2/+2
| | | | information. Disabled pcState 2/3 because it's not working in the test environment because lastseen does not refresh.
* Locationinfo: Added ServertableJannik Schönartz2016-12-051-0/+28