This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Explications : | |
Il faut ajouter le code ci dessous a 2 endroits dans le fichier edit_form.php : | |
- apres ce bout de code (~ligne 77): | |
// Verify permissions to change course category or keep current. | |
if (empty($course->id)) { | |
if (has_capability('moodle/course:create', $categorycontext)) { | |
$displaylist = coursecat::make_categories_list('moodle/course:create'); | |
$mform->addElement('select', 'category', get_string('coursecategory'), $displaylist); | |
$mform->addHelpButton('category', 'coursecategory'); | |
$mform->setDefault('category', $category->id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Import des cours de Chamilo (1.9.6) vers Moodle (3.3) | |
* | |
* Auteur : Mathieu Domingo | |
* Coté moodle : | |
* Il faut la version modifiée de /mod/scorm/lib.php que j'ai faite pour pouvoir utiliser du createfilefrompathname | |
* Il faut la version modifiée de /mod/scorm/datamodels/scormlib.php pour throw une error au lieu du die dans la fonction parse( | |
* Il faut la version modifiée de /course/modlib.php pour catch l'exception et faire le rollback si il y a un echec lors de l'import d'un scorm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$timestart; | |
define('LDAP_HOST', "ldap.univ-XXXX.fr"); | |
define('LDAP_PORT', "389"); | |
define('LDAP_PASS', "XXXX"); | |
define('LDAP_BIND', "cn=XXXX,ou=admin,dc=univ-XXXX,dc=fr"); | |
define('LDAP_DN', "ou=people,dc=univ-XXXX,dc=fr"); |