fixed some security problems and remove deprecetd PHP functions and warnings. Now the advisor user can create and manage own tasks and users