'; } if (!is_url($url) or !preg_match('/\.(jpe?g|gif|png)$/i', $url)) { return FALSE; } return << EOD; } ?>