Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / enrol / imsenterprise / importnow.php
bloba5af41dcabe300a8616ed62eded334a22d830cf7
1 <?php
2 require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
3 require_login();
4 require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));
6 if (!$site = get_site()) {
7 redirect("index.php");
10 /// get language strings
11 $str = get_strings(array('enrolments', 'users', 'administration', 'settings'));
13 print_header("$site->shortname: $str->enrolments", $site->fullname,
14 "<a href=\"../../$CFG->admin/index.php\">$str->administration</a> ->
15 $str->enrolments -> IMS import");
17 require_once('enrol.php');
19 //echo "Creating the IMS Enterprise enroller object\n";
20 $enrol = new enrolment_plugin_imsenterprise();
23 <p>Launching the IMS Enterprise "cron" function. The import log will appear below (giving details of any
24 problems that might require attention).</p>
25 <pre style="margin:10px; padding: 2px; border: 1px solid black; background-color: white; color: black;"><?php
26 //error_reporting(E_ALL);
27 $enrol->cron();
28 ?></pre><?php
29 print_footer();
31 exit;