. /** * List outages * * @package auth_outage * @author Daniel Thee Roperto * @copyright Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ use auth_outage\outagedb; use auth_outage\outagelib; require_once('../../config.php'); $outage = outagedb::get_active(); if (is_null($outage)) { redirect(new moodle_url('/')); } $PAGE->set_context(context_system::instance()); $PAGE->set_title("Outage Warning"); $PAGE->set_heading("Outage Warning"); $PAGE->set_url(new \moodle_url('/auth/outage/info.php')); echo $OUTPUT->header(); echo outagelib::get_renderer()->renderoutagepage($outage); echo $OUTPUT->footer();