libdir.'/adminlib.php');
if (!confirm_sesskey()) {
print_error('confirmsesskeybad', 'error');
}
admin_externalpage_setup('mnetenrol');
$CFG->pagepath = 'admin/mnet';
require_once("$CFG->dirroot/enrol/enrol.class.php"); /// Open the factory class
$enrolment = enrolment_factory::factory('mnet');
$mnethost = required_param('host', PARAM_INT);
$host = get_record('mnet_host', 'id', $mnethost);
$courses = $enrolment->fetch_remote_courses($mnethost);
/// Print the page
admin_externalpage_print_header();
print_box('' . s($host->name) . '
'
. get_string("enrolcourses_desc", "mnet"));
echo '
$icon | " . "".format_string($course->fullname). " | " . '
' . ' | '.format_string($course->shortname). ' - ' .format_string($course->cat_name).' | ' . '
' . " | {$course->summary} | " . '