. /** * Throw an exception when users try to access index.php outside of the web root. * * @package core * @copyright Andrew Lyons * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once('config.php'); throw new \core\exception\moodle_exception('rootdirpublic', 'error');