Fixed issue: Remove magic quotes, safe mode and register globals support

Removed support for deprecated and unsafe things from php.

@sandeepone We must declare this in the wiki. Something like  Gleez requirements
and instructions for setting up php. And certainly during installation, we must
check these php settings!