Remove $_SESSION['authGroup'] variable. Delete code to create new category and store photograph in existing Patient Photograph category.
Remove $_SESSION['authGroup'] variable. Use hard-code folder name instead of id_cat of 2 for lab reports.
Remove $_SESSION['authGroup'] variable. Use hard-code folder name instead of id_cat of 2 for lab reports.