Location: PHPKode > scripts > Detector > detector/browser_plugins.php
<?PHP
class browser_plugins
{
public function __construct($file)
	{
	IF(!is_file($file))
		{
		exit();
		}
	$this->file = strip_tags(strtolower(file_get_contents($file)));
	}
public function is_plugin($name)
	{
	IF(strpos($this->file, $name))
		{
		return true;
		}
	return false;
	}
public function get_plugins_array()
	{
	$x = explode('|||', $this->file);
	IF(is_array($x) and count($x) > 0)
		{
		foreach($x as $val)
			{
			IF(strlen($val) > 1)
				{
				$val = explode('___', $val);
				$r[strtolower(strip_tags($val[1]))] = strtolower(strip_tags($val[0]));
				}
			}
		return $r;
		}
	return false;
	}
}
?>
Return current item: Detector