Commit Graph

139 Commits

Author SHA1 Message Date
Mikhail Golenkov
587bd3a311 Fix Cancel button on Edit form. 2020-02-04 17:41:08 +11:00
Mikhail Golenkov
a906f993f0 Add conditions before calling update_maintenance_later() #172. 2020-02-04 17:03:47 +11:00
Mikhail Golenkov
1e7d035a9b Show warning if outage editing will trigger re-enabling maintenance mode #172. 2020-02-04 17:02:59 +11:00
Mikhail Golenkov
acda7557d1 Do not check event calendar capability when running cli/finish.php #170 2020-02-04 13:39:02 +11:00
Alexander
e56cdf4ed3 Accept unix time for --start CLI option 2020-01-22 10:28:07 +13:00
Michael Palimaka
9c7eb1b681 Send custom HTTP header when in maintenance mode 2019-05-29 12:08:21 +10:00
Kristian Ringer
92ad2f5db5 Clean up outages from additionalhtmltopofbody 2019-05-24 16:56:03 +10:00
Brendan Heywood
dec4c7bf53 Fixed ipwhitelist escaping issue #150 2019-03-28 14:32:20 +11:00
Nathan Nguyen
38f838d84e Turn off check_wwwroot_accessible on admin pages other than outage setting page 2018-12-03 14:36:54 +11:00
Nathan Nguyen
df649c8133 change relative link to absolute link 2018-11-30 10:40:43 +11:00
Ilya Tregubov
54045d5ce1 Incease timeout to prevent settings page throwing error (from time to time) 2018-10-11 11:15:04 +11:00
Dan Marsden
ceb9e065b9 Use correct check for behat running. 2018-10-05 14:21:03 +13:00
Dan Marsden
3639883d30 Don't use curl when running behat tests to get page outage.
Behat step improvements.
2018-10-05 13:45:08 +13:00
Dan Marsden
49bdb687c3 Fix #120 increase timeout values to prevent ci failures. 2018-10-05 10:20:59 +13:00
adamlynam-catalyst
5aaf0ddeda Adding check for use of ip restrictions before warning (#134)
* Adding check for use of ip restrictions before warning about bootstrap.php not being included in config.php

* Replacing reference to same class with self
2018-10-03 15:22:31 +13:00
Dan Marsden
07e26e312c Convert deprecated pix_url calls. 2018-10-03 15:10:59 +13:00
Olivier SECRET
aee5ae8adb add privacy provider
to fix unit test failure
2018-06-25 11:48:15 +10:00
Daniel Thee Roperto
8036147931 Issue #129 - Stop maintenance after stoptime. 2018-04-26 16:00:11 +10:00
Daniel Thee Roperto
151d2ba59f Adding timeout to fetch local files. 2017-02-09 13:34:38 +11:00
Daniel Thee Roperto
e78464f3b7 Travis in verbose mode, set page fetch CURL TIMEOUT to 5 seconds. 2017-01-03 15:43:47 +11:00
Daniel Thee Roperto
efbdb77ae6 Moodle code style fix. 2016-12-21 14:38:35 +11:00
Daniel Thee Roperto
0380c6ebec Outage now honours ABORT_AFTER_CONFIG CLI_SCRIPT AJAX_SCRIPT and WS_SERVER 2016-12-21 14:38:31 +11:00
Daniel Thee Roperto
0ad53cde87 Added warning to manage outages page if host is not configured (inaccessible wwwroot). 2016-12-16 16:07:29 +11:00
Daniel Thee Roperto
b8aa1dd233 Issue #86 - Added relative time on manage outage tables. 2016-12-14 12:29:27 +11:00
Daniel Thee Roperto
9ddc1cd32c Issue #87 - Using 'notifyerror' instead of the wrong type 'notifyfailure'. 2016-12-14 11:52:40 +11:00
Daniel Thee Roperto
38b1b5fe72 Issue #85 - Only remove additionalhtml if in the appropriate settings section. 2016-12-14 11:25:44 +11:00
Daniel Thee Roperto
7946dccd5e Issue #88 - Injection should be prevented in settings even if symlinks are used. 2016-12-14 11:20:58 +11:00
Brendan Heywood
99428ef0ae Ignore curl ssl errors #83 2016-12-12 16:59:50 +11:00
Daniel Thee Roperto
32f48a2133 Issue #82 - Recreate templates when settings (allowed ips or blocks removed) is updated. 2016-12-05 11:48:13 +11:00
Daniel Thee Roperto
659a275a68 Issue #80 - Problem with PHP below 5.6.3 fixed. 2016-11-17 15:26:02 +11:00
Daniel Thee Roperto
7f264a85da Code cleanup to meet code standards. 2016-11-14 19:20:46 +11:00
Daniel Thee Roperto
5961e82b85 Issue #22 - Self-refresh maintenance page every 5 minutes or the outage duration, whatever is lower. 2016-11-14 15:43:57 +11:00
Daniel Thee Roperto
3360d357d4 Added warnings in case plugin is not properly configured. 2016-11-14 15:02:30 +11:00
Daniel Thee Roperto
73daf6f666 Preventing cli/finish.php to run while in maintenance mode. 2016-11-14 13:57:23 +11:00
Daniel Thee Roperto
27c7558e57 Issue #22 - Added setting and implemented removing elements by basic CSS selector (only simple .class and #id can be used as of now). 2016-11-14 11:35:08 +11:00
Daniel Thee Roperto
0c97b4be01 Applying moodle coding standards. 2016-11-10 19:29:43 +11:00
Daniel Thee Roperto
33be3eef86 Refactored maintenance_static_page.php due to high complexity (more than 50). 2016-11-10 19:06:18 +11:00
Daniel Thee Roperto
af2e76e972 Issue #22 - Fetching url() inside CSS files. 2016-11-10 17:06:56 +11:00
Daniel Thee Roperto
4232ce1b6e Issue #22 - Auto-detect mime types. 2016-11-10 15:03:07 +11:00
Daniel Thee Roperto
24759fe280 Issue #22 - Allowing tests to point to a file when a local URL was found. It will be used to test parsed contents later (parse CSS for example). 2016-11-10 14:04:05 +11:00
Daniel Thee Roperto
a5a301869d Issue #22 - Refactored to allow inspecting files after download to allow parsing the downloaded files. 2016-11-10 12:32:17 +11:00
Daniel Thee Roperto
5db5bed914 Issue #22 - Created bootstrap.php to intercept the execution before Moodle finished loading. 2016-11-09 16:56:04 +11:00
Daniel Thee Roperto
ce2da24b1b Issue #22 - Split maintenance.php into preview.php and file.php 2016-11-09 16:21:46 +11:00
Daniel Thee Roperto
afd17994fe Issue #22 - Infopage now is not responsible for generating a static page anymore, hooked into maintenance_static_page. 2016-11-09 14:35:56 +11:00
Daniel Thee Roperto
146ad61ede Issue #22 - Added PHPDocs. 2016-11-09 13:38:20 +11:00
Daniel Thee Roperto
cd3433655e Issue #22 - Refactored maintenance_static_page and allowed generate preview page (different location than main template). 2016-11-09 13:26:55 +11:00
Daniel Thee Roperto
f086fc1af7 Issue #22 - Added headers to cache files and changed filenames to a sha1 hash of its contents. 2016-11-09 11:35:05 +11:00
Daniel Thee Roperto
db85ea06cf Issue #22 - Generation of HTML and copying images ready. 2016-11-09 10:52:38 +11:00
Daniel Thee Roperto
6f4b6d3240 Issue #22 - WIP - Basic replacement for styles and images. 2016-11-08 18:49:54 +11:00
Daniel Thee Roperto
e6921d6649 Issue #22 - Adding parameter to hide warning bar to be used when baking page. 2016-11-08 14:03:24 +11:00