Remove magic quotes; Remove register globals; Main call function