user agent detector for php completed