changed :

eregi() -> preg_match() with /i

eregi_replace() ->preg_replace with /i