. /** * This plugin allows for an outage window to be configured * and then optionally allows only a subset of IPs to connect, * it also shows an outage notification to users. * * @package auth * @subpackage outage * @author Marcus Boon * @license http://www.gnu.org/copyleft/gpl.html GNU Public License */ if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); // It must be included from a Moodle page. } require_once($CFG->libdir.'/authlib.php'); class auth_plugin_outage extends auth_plugin_base { public function __construct() { $this->authtype = 'outage'; $this->roleauth = 'auth_outage'; $this->component = 'auth_outage'; $this->errorlogtag = '[AUTH_OUTAGE]'; $this->config = get_config('auth_outage'); // Set to defaults if undefined. $this->config = $this->set_defaults($this->config); } }