Commit Graph
215 Commits
Author SHA1 Message Date
Waleed Hassan f785693d06 Set outage metadata headers before echoing injected warning-bar code to avoid headers-already-sent 2026-07-13 09:50:31 +01:00
Waleed Hassan 4976c5c3b6 Add missing default_metadata key to get_config_defaults() to avoid undefined property when creating a new outage 2026-07-13 09:50:24 +01:00
Waleed Hassan 789a1c1163 Fix CI codechecker: wrap long line, fix class closing brace placement, update matching test expectations 2026-07-13 09:47:24 +01:00
Waleed Hassan a6e465b7a3 WR #490867 auth_outage Review changes - avoid mutating svgicons before a redirect and update tests for the access key and svgicons changes 2026-07-12 23:45:42 +01:00
Waleed Hassan 1b2979f8e6 WR #490867 auth_outage Review changes - code cleanup: fix exception chaining, remove dead code, code style fixes, initialise variable, add missing PHPDoc, add database indexes 2026-07-12 22:15:41 +01:00
Waleed Hassan 6aad6d37ba WR #490867 auth_outage Review changes - sanitise header metadata and file request parameters, restrict served mime types, guard warning bar css output, move svgicons config change out of constructor, add missing form field types 2026-07-12 22:15:41 +01:00
Waleed Hassan 675ec899f4 WR #490867 auth_outage Review changes - add capability check to preview.php and escape outage title/description output in info page and renderer, validate access key parameter before use 2026-07-12 22:15:41 +01:00
Tomo Tsuyuki 40fccef237 Revert "Fix URL is blocked message when not behind a proxy/load balancer"
This reverts commit 51db933862.
2026-06-18 12:00:11 +10:00
abhinavgandham e653bc4365 Removed maintenance later code in outagelib so that site does not go into hard cli mode when outage starts. 2026-01-22 19:48:35 +11:00
abhinavgandham 74de81ef7c Fixed PHPUnit test errors and failures. 2026-01-22 19:48:35 +11:00
abhinavgandham 5e0a3c015d Modified unit tests to remove autostart, and quickstart guide and readme. 2026-01-22 19:48:35 +11:00
abhinavgandham bf51ff6de9 Version bump and codechecker fixes. 2026-01-22 19:48:35 +11:00
abhinavgandham 6ca7cb6d7e Issue #390: Reverted new 'Force off' option and dropdown conversion. 2026-01-22 19:48:35 +11:00
Peter Burnett 2a7556eb75 chore: ci Fixes 2026-01-19 13:56:09 +10:00
Peter Burnett 425ef963fb Issue 387: Add metadata header to outage pages 2026-01-19 13:26:06 +10:00
abhinavgandham fdd5569324 Formatting fixes. 2026-01-15 14:10:23 +10:00
abhinavgandham a32c923aaa Included logic for 'Force off' setting. 2026-01-15 14:00:45 +10:00
abhinavgandham 1183420b3b Issue #390: Code cleanup to fix code standards codesniffer errors. 2026-01-12 15:08:32 +10:00
Brendan Heywood 77ee908aed Improve comments when blocked 2025-10-22 14:19:54 +11:00
jasondendulk 611c7a000c Issue #378: Add install check to before_standard_top_of_body_html_generation() 2025-09-16 08:54:15 +10:00
Sasha Anastasi b01dd8723e remove superfluous conditional 2025-02-20 14:17:15 +13:00
Sasha Anastasi 99452cb4f3 outagelib: adjust exception trigger for phpunit10 2025-02-20 13:01:11 +13:00
Rossco Hellmans 51db933862 Fix URL is blocked message when not behind a proxy/load balancer
When there is no proxy/load balancer and curlsecurityblockedhosts is set to
default (i.e. has 127.0.0.1 in it) fetching the outage page will result in
a "The URL is blocked." message. This resolves that issue by passing
ignoresecurity to the curl object.
2025-02-10 16:36:34 +10:00
djarrancotleanu 0114db359b Issue #358: Use pix_icon to render icons 2025-01-30 10:50:43 +10:00
Niko Hoogeveen 3f79129774 Issue #358: Added some extra styling for outage icons 2025-01-28 15:02:34 -05:00
djarrancotleanu 68959e336d Fix #350: Do not setcookie during unit tests 2024-11-25 15:42:36 +10:00
Jwalit Shah e01fa3797e [#347] Fix typo in the title link 2024-10-16 11:49:56 +11:00
Rossco Hellmans c5485849d5 Fix: make access key and allowed ips OR conditional
Access keys and allowed IPs should be indpendant of each other and when
at least one of them is satisfied the user should be allowed in.
2024-09-27 12:34:47 +10:00
Matthew Hilton bfa9569e3b [#340] Access key exclusion method 2024-08-19 14:31:14 +10:00
Matthew Hilton 97b118593d cleanup: fixup to match coding standards 2024-08-05 15:22:03 +10:00
Benjamin Walker 541b2d4407 Implement new hook callbacks #334 2024-05-21 14:13:16 +10:00
ScottVerbeek 94afadac9d issue #146: display icon for calendar event 2024-01-05 13:22:12 +10:00
Srdjan 4aa5976ea8 Make Moodle linter happy. Mainly tests. 2023-07-04 15:04:30 +10:00
michaelkotlyar 755dcf8152 Improve date format method compatiability for PHP 8.1 2023-06-12 16:12:11 +12:00
Qihui Chan 89e2621bf6 Fix failed Github CI tests 2022-12-20 22:12:05 +10:00
Qihui Chan 9473db8c6e Modify unit tests to declare expected output 2022-12-20 16:58:57 +10:00
Qihui Chan b9cbf015ac Add logging for maint mode config 2022-12-20 16:58:57 +10:00
Qihui Chan b95fb97af5 Issue#308 Freeze the autostart in form if it is set in admin level config 2022-12-20 14:48:48 +10:00
Peterburnett 12f43447b7 Merge pull request #299 from catalyst/MOODLE_39_STABLE_ISSUE209
Issue#209 Remove as much db calls as possible in outage plugin
2022-07-26 14:21:45 +10:00
Qihui Chan 5465e5fe40 Issue#209 Remove db calls in get_active of outage 2022-07-25 11:13:25 +10:00
Sasha Anastasi fe18931334 clibase.php: replace hardcoded admin userid 2022-07-22 10:34:52 +12:00
Jason den Dulk c64a33c345 Issue #288: Split allowed IPs settings into two.
Merge two settings when accessing config.
Bump version.
2022-04-28 09:47:58 +10:00
Anupama Dharmajan 1f5927c394 Add reusable workflows 2022-01-13 15:38:29 +11:00
Dmitrii Metelkin 94fc6fb540 Bypass permissions check when generating a static page to fix #263 2021-09-02 15:44:37 +10:00
Peter Burnett 34a716226e Raised time limit for page generation 2021-07-28 10:09:00 +10:00
Andrew Madden 7c9bb96f1a Closes #256 Add capability to control viewing outage info 2021-06-23 11:23:08 +10:00
Kateryna Degtyariova 17463f0d3e Fix #234 pick up images from inline style background image. 2021-05-31 14:15:00 +10:00
Dan Marsden 207223fc2d Merge pull request #250 from jcharaoui/fix-class-curl-not-found
Include filelib.php to fix class not found exception, fix #247
2021-05-06 10:22:40 +12:00
Dan Marsden 1f03af1968 Fix order of abstract/public - coding guideline failure. 2021-05-05 13:18:11 +12:00
Jerome Charaoui 84ad9759f4 Include filelib.php to fix class not found exception 2021-04-11 11:44:44 -04:00