Reformat all the code! Also eregi() occurrences have been replaced.