Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/enrol/imsenterprise/importnow.php
Go to the documentation of this file.
00001 <?php
00002 require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
00003 require_login(0, false);
00004 require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
00005 
00006 $site = get_site();
00007 
00009 $PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
00010 
00011 $PAGE->set_url('/enrol/imsenterprise/importnow.php');
00012 $PAGE->set_title(get_string('importimsfile', 'enrol_imsenterprise'));
00013 $PAGE->set_heading(get_string('importimsfile', 'enrol_imsenterprise'));
00014 $PAGE->navbar->add(get_string('administrationsite'));
00015 $PAGE->navbar->add(get_string('plugins', 'admin'));
00016 $PAGE->navbar->add(get_string('enrolments', 'enrol'));
00017 $PAGE->navbar->add(get_string('pluginname', 'enrol_imsenterprise'), new moodle_url('/admin/settings.php', array('section'=>'enrolsettingsimsenterprise')));
00018 $PAGE->navbar->add(get_string('importimsfile', 'enrol_imsenterprise'));
00019 $PAGE->navigation->clear_cache();
00020 
00021 echo $OUTPUT->header();
00022 
00023 require_once('lib.php');
00024 
00025 //echo "Creating the IMS Enterprise enroller object\n";
00026 $enrol = new enrol_imsenterprise_plugin();
00027 
00028 ?>
00029 <p>Launching the IMS Enterprise "cron" function. The import log will appear below (giving details of any
00030 problems that might require attention).</p>
00031 <pre style="margin:10px; padding: 2px; border: 1px solid black; background-color: white; color: black;"><?php
00032 //error_reporting(E_ALL);
00033 $enrol->cron();
00034 ?></pre><?php
00035 echo $OUTPUT->footer();
00036 
00037 exit;
00038 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations