-<?php // $Id$
+<?php
/**
* enrolment_factory is used to "manufacture" an instance of required enrolment plugin.
$class = "enrolment_plugin_$enrol";
return new $class;
} else {
- trigger_error("$CFG->dirroot/enrol/$enrol/enrol.php does not exist");
+ error_log("$CFG->dirroot/enrol/$enrol/enrol.php does not exist");
echo $OUTPUT->notification("Enrolment file $enrol/enrol.php does not exist");
}
}
}
-
-?>
-<?php // $Id$
+<?php
require_once("$CFG->dirroot/enrol/enrol.class.php");
$CFG->enrol_ldap_bind_pw );
if (!$bind) {
echo $OUTPUT->notification("Error in binding to LDAP server");
- trigger_error("Error in binding to LDAP server $!");
+ error_log("Error in binding to LDAP server $!");
}
}
} // end of class
-?>