Added checks for enrolment plugin databases, and also moved some stuff out to the new lib/adminlib.php
Added checks for enrolment plugin databases, and also moved some
stuff out to the new lib/adminlib.php

dilawar/moodle