Replaced deprecated function eregi_replace