I have just upgraded out Moodle from 3.1 to 3.7, and I'm having some troubles with using Moodle functions ouside Moodle. It works perfectly on the version I was using, but stopped working now.
I do the "include("config.php")" to use the "require_login($courseid)" in several pages outside Moodle structure, but now, when I do it, it redirects me to "/my" and I can't open the page including the "config.php" anymore.
Now, my Moodle is under HTTPS too. The 3.1 version was under HTTP.
Anyone could help me?