mirror of
https://github.com/moodle/moodle.git
synced 2025-02-23 19:44:19 +01:00
IMS Enterprise 1.1 file enrolment module for Moodle (also reported to work with v1.01 and v1.0 data) (c) 2005-2006 Dan Stowell Released under the Gnu Public Licence (GPL) This module was originally in contrib/enrol_imsenterprise, and a 1.5-compatible version of the module can still be found there.
36 lines
1.0 KiB
PHP
36 lines
1.0 KiB
PHP
<?php
|
|
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
|
|
require_login();
|
|
|
|
if (!$site = get_site()) {
|
|
redirect("index.php");
|
|
}
|
|
|
|
if (!isadmin()) {
|
|
error("Only the admin can use this page");
|
|
}
|
|
|
|
/// get language strings
|
|
$str = get_strings(array('enrolments', 'users', 'administration', 'settings'));
|
|
|
|
print_header("$site->shortname: $str->enrolments", "$site->fullname",
|
|
"<a href=\"../../admin/index.php\">$str->administration</a> ->
|
|
<a href=\"../../admin/users.php\">$str->users</a> ->
|
|
$str->enrolments -> IMS import");
|
|
|
|
require_once('enrol.php');
|
|
|
|
//echo "Creating the IMS Enterprise enroller object\n";
|
|
$enrol = new enrolment_plugin_imsenterprise();
|
|
|
|
?>
|
|
<p>Launching the IMS Enterprise "cron" function. The import log will appear below (giving details of any
|
|
problems that might require attention).</p>
|
|
<pre style="margin:10px; padding: 2px; border: 1px solid black; background-color: white; color: black;"><?php
|
|
//error_reporting(E_ALL);
|
|
$enrol->cron();
|
|
?></pre><?php
|
|
print_footer();
|
|
|
|
exit;
|
|
?>
|