Fixing PHP warnings + formating code.
Minor - format code.
Adding COURSE_REQUEST_* constants.
Adding "detect_deleted_visible_documents.php" script.
Merge branch '1.9.x' of ssh://github.com/chamilo/chamilo-lms into chamilo19