summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/page.inc.php
Commit message (Collapse)AuthorAgeFilesLines
* [locationinfo] Add panel query API, add option to mark panels as publicSimon Rettberg2026-01-201-6/+9
| | | | | | 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] Fix undefined array key accessSimon Rettberg2025-08-131-0/+1
|
* Implicitly nullable types are deprecated in PHP 8.3, make explicitSimon Rettberg2025-08-011-1/+1
|
* [locationinfo] Make sure older browsers work by using proper JavaScriptSimon Rettberg2025-07-251-1/+2
| | | | | Not funny made-up words like async and let and random keyboard smashing of the "." key.
* [locationinfo] Parametrize panel type configurationSimon Rettberg2025-07-181-189/+69Star
| | | | | | | | | | | | | | | | | 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-62/+118
|
* [locations] Cleanup Location classSimon Rettberg2025-07-071-10/+15
| | | | | | | | | | 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).
* Add audit logging of POST actionsSimon Rettberg2025-05-221-4/+4
|
* [locationinfo] URLpanel: Browser accept-language and screen rotationSimon Rettberg2025-05-201-1/+10
| | | | | Add configuration options to specify screen rotation and languages the browser will request from web servers via Accept-Language header.
* [locationinfo] Put upgrade/cleanup code in distinct function and extendSimon Rettberg2024-11-141-7/+1Star
|
* [locationinfo] Add support for FirefoxSimon Rettberg2024-11-131-1/+3
|
* Fix more type errors, stricter typingSimon Rettberg2023-11-151-1/+1
|
* [locationinfo] Fix infoscreen after type annotation updateSimon Rettberg2023-11-151-2/+2
|
* Add function param/return types, fix a lot more phpstorm complaintsSimon Rettberg2023-11-141-16/+26
|
* Roundup of issues reported by PHPStormSimon Rettberg2023-11-021-50/+36Star
| | | | Mostly redundant checks, logic errors, dead code, etc.
* [locationinfo] text-muted for "inherited" up-arrowSimon Rettberg2023-10-061-0/+1
|
* [locationinfo] Fix: Panels with deleted rooms are invisible in listSimon Rettberg2023-03-291-4/+15
|
* [locationinfo] Add Slider to configure browser zoom in URL panelSimon Rettberg2022-12-061-0/+2
| | | | Closes #3915
* [locationinfo] Add typesSimon Rettberg2022-05-231-1/+2
|
* [inc/Util] Add types, move error printing functions to their own classSimon Rettberg2022-05-021-1/+1
|
* Moderize Database handlingSimon Rettberg2021-05-111-6/+6
| | | | | | | * 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
* [locationinfo] "show hostname" cannot be overridden per locationSimon Rettberg2020-11-041-1/+0Star
|
* [locationinfo] Fix: api.php access in redirect mode not workingSimon Rettberg2020-11-041-1/+5
| | | | | | | Also get rid of slx-admin prefix / {{dirprefix}}. We now have only one variable to be filled in the template, namely {{api}}, which should also make sure that accessing other module's API is not possible. Matching rewrite rules should land in setup-scripts soon.
* [locationinfo] Remove unused javascriptSimon Rettberg2020-11-031-46/+64
| | | | | | | Most javascript was needed for editing the opening times of locations. Some javascript was still used to fill the now disabled input forms for display only. This is now done server-side, and the input fields have been replaced by a simple table.
* [locationinfo] Relative paths for assets in rewrite modeSimon Rettberg2020-10-221-2/+2
| | | | | | In conjunction with the proper reqrite rule, this makes it possible to entirely server the info panel from a dedicated virtual directory, in our case, /panel/
* [locationinfo] URLPANEL: Allow black- and whitelist simultaneouslySimon Rettberg2020-10-211-4/+12
| | | | References #3790
* [baseconfig_bwlp/locationinfo] Add SLX_TTY_SWITCHSimon Rettberg2020-10-201-0/+2
| | | | | | | | 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
* [locations] Migrate openingtimes from infoscreen to locations moduleChristian Hofmaier2020-09-081-87/+10Star
| | | | | - move openingtimes from infoscreen db to locations db - read-only openingtimes in infoscreen
* [locationinfo] Fix overriding "show hostnames" not being savedSimon Rettberg2020-09-081-1/+2
|
* [locationinfo] His: Switch from SOAP to iCalSimon Rettberg2020-09-081-1/+2
| | | | | | | | | iCal downloads are much faster in more revent HisInOne versions, while the SOAP API will make cobbling together a time table for a specific room even more complicated in the next release (2020.12). Switch to iCal for now and see how it goes. TODO: Create a generic iCal backend module based on this.
* [locationinfo] Add option to show hostnamesSimon Rettberg2020-06-291-1/+3
|
* [locationinfo] less lovely javascript more not so lovely phpChristian Hofmaier2019-12-041-2/+18
| | | | - same function just in backend
* [locationinfo] add new kiosk-mode options to url-panelsChristian Hofmaier2019-11-271-0/+19
| | | | | | | - guest / guest+user login - browser selection - interactive mode - bookmarks
* [locationinfo] fix wrong value shown on config-site for old panelsChristian Hofmaier2019-10-291-2/+2
|
* [locationinfo] Make switching per room workChristian Hofmaier2019-10-261-1/+2
|
* [locationinfo] Add ability to select the start day of the calendarUdo Walter2019-07-161-0/+3
|
* [locationinfo] UI reworkChristian Hofmaier2019-03-261-2/+22
| | | | | | | | - add Icons to Buttons - override config for specific room - change roomplanner switch with dropdown menu - new texts for roomplanner dropdown - when roomplanner is empty show empty green box instead of red 0
* Introduce JS helper for bootstrap confirm dialogs on button-submitSimon Rettberg2019-03-251-10/+14
|
* [locationinfo] Add black/whitelist stuff for URL panelsSimon Rettberg2019-03-141-0/+4
|
* [locationinfo] Add error log for backendsSimon Rettberg2019-03-071-5/+38
|
* [locationinfo] use set config language for panelsChristian Hofmaier2019-01-221-2/+2
|
* [locationinfo] set roomplanner default on false for existing panelsChristian Hofmaier2019-01-081-0/+3
| | | | - if panel is already existing without roomplanner value in database
* [locationinfo] roomplaner -> roomplannerSimon Rettberg2018-12-051-4/+4
|
* [locationinfo] add new settings for panels (counter, updaterate)Christian Hofmaier2018-12-031-2/+16
| | | | | | | | - 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] Don't pad with ... but ' 'Simon Rettberg2018-04-251-2/+2
|
* [locationinfo] Activate runmode module before callingSimon Rettberg2018-04-251-1/+3
|
* [locationinfo] Delete according runmode entries when a panel gets deletedSimon Rettberg2018-04-031-0/+1
|
* [locationinfo] Use User::assertPermission()Simon Rettberg2018-04-031-2/+1Star
|
* [locationinfo] Properly check permissions when saving new panelSimon Rettberg2018-03-291-1/+7
|
* [locationinfo] Fix permission checking: Add missing return statementSimon Rettberg2018-03-291-0/+1
|