Update index.php
Update index.php

The changing of default license was assuming it was passed the variable $user where it is passed $user_id. The resulting code works but is known insecure. More on that soon.
creativecommons/mp,creativecommons/mp,creativecommons/mp,creativecommons/mp