MOODLE2: two new scripts to be executed from the portal