Added check for <text> fields that contain markup (an error!)
[moodle-linuxchix.git] / enrol / imsenterprise / importnow.php
blob4351b584b43c1d17d2a4378216bc7c1b8d916c76
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'));
12 $navlinks = array();
13 $navlinks[] = array('name' => $str->administration, 'link' => "../../$CFG->admin/index.php", 'type' => 'misc');
14 $navlinks[] = array('name' => $str->enrolments, 'link' => null, 'type' => 'misc');
15 $navlinks[] = array('name' => 'IMS import', 'link' => null, 'type' => 'misc');
16 $navigation = build_navigation($navlinks);
18 print_header("$site->shortname: $str->enrolments", $site->fullname, $navigation);
20 require_once('enrol.php');
22 //echo "Creating the IMS Enterprise enroller object\n";
23 $enrol = new enrolment_plugin_imsenterprise();
26 <p>Launching the IMS Enterprise "cron" function. The import log will appear below (giving details of any
27 problems that might require attention).</p>
28 <pre style="margin:10px; padding: 2px; border: 1px solid black; background-color: white; color: black;"><?php
29 //error_reporting(E_ALL);
30 $enrol->cron();
31 ?></pre><?php
32 print_footer();
34 exit;