. /** * 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_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 */ class auth_plugin_outage extends auth_plugin_base { /** * Constructor. */ public function __construct() { $this->authtype = 'outage'; } /** * @param string $username Not unsed in this plugin. * @param string $password Not unsed in this plugin. * @return bool False * @SuppressWarnings("unused") */ public function user_login($username, $password) { return false; } /** * Login page hook. */ public function loginpage_hook() { \auth_outage\outagelib::inject(); } }