Change absolute paths in relative ones.
Change license and comments.
Ensure that user is authenticated with a valid user in phpCas library.