/** * Return boolean based on presence of FirePHP extension * * @return boolean */ public static function detectClientExtension() { $ua = FireCake::getUserAgent(); if (preg_match('/\\sFirePHP\\/([\\.|\\d]*)\\s?/si', $ua, $match) && version_compare($match[1], '0.0.6', '>=')) { return true; } if (env('HTTP_X_FIREPHP_VERSION') && version_compare(env('HTTP_X_FIREPHP_VERSION'), '0.6', '>=')) { return true; } return false; }
/** * Return boolean based on presence of FirePHP extension * * @access public * @return boolean **/ function detectClientExtension() { $ua = FireCake::getUserAgent(); if (!preg_match('/\\sFirePHP\\/([\\.|\\d]*)\\s?/si', $ua, $match) || !version_compare($match[1], '0.0.6', '>=')) { return false; } return true; }