Since we're opening this up to allow others to send photos to our gallery, we want to keep it family friendly. We're going to do this by adding two types of checks.
The first check will make sure that the message doesn't contain any obscene words and the second will be to check the image to make sure there's no nudity.
The complete code for this recipe can be found in the
We're going to modify our photo gallery to check incoming messages for profanity and inappropriate photos.
ImageFilter.class.phpto your photo gallery site.
functions.php, which adds the profanity filter checker with the following code:
<?php function cache_image( $imageurl = '',$name ...