1<?php if (!defined('BB2_CORE')) die('I said no cheating!');
2
3// Analyze user agents claiming to be Mozilla
4
5function bb2_mozilla($package)
6{
7	// First off, workaround for Google Desktop, until they fix it FIXME
8	// Google Desktop fixed it, but apparently some old versions are
9	// still out there. :(
10	// Always check accept header for Mozilla user agents
11	if (strpos($package['headers_mixed']['User-Agent'], "Google Desktop") === FALSE && strpos($package['headers_mixed']['User-Agent'], "PLAYSTATION 3") === FALSE) {
12		if (!array_key_exists('Accept', $package['headers_mixed'])) {
13			return "17566707";
14		}
15	}
16	return false;
17}
18
19?>
20