php class for adware