I got it working once by adding it into the `config.php`, but...
And there it stopped to work for me.
I tried adding a `before_footer` callback into the `lib.php`: didn't work.
I tried adding a local plugin that should call the stuff: didn't work.
I'm new to moodle but I need this really soon, so I hope someone can help me with this.