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 php. And certainly during installation, we must
check these php settings!