Moving function to the UserRepository
Minor - adding comments
Using absolut URL paths
Using absolute URLs
Using absolut URLs
Fixing query
Moving tbl_change js into main/inc/lib/javascript
Fixing PHP warnings
Fixing Home path
Adding parameters instead of using globals
Fixing PHP warnings, replacing relative with absolute paths
Reformat code
Adding a new function to add js files
Adding new approach that redirects the main/* files into the web/main/* in order to load correctly session and middlewares (course permissions, user settings, platform settings, etc)
 The benefits of this changes are that we can add real hooks before some actions (using middlewares) as well as improve security using an upcoming role permission feature.
Updating htaccess
Fixing queries
Fixing PHP Warnings
Minor - adding @todo
Fixing exercise sessions
Removing unneeded global.inc.php requires