License corrected to BSD,
ereg_replace changed to preg_replace