Update gitignore
Replace deprecated function eregi() with preg_match()