/**
  * Client Browser Information
  *
  * @param	string		$userAgent: The useragent string, t3lib_div::getIndpEnv('HTTP_USER_AGENT')
  * @return	array		Contains keys "useragent", "browser", "version", "system"
  *					where "browser" is limited to the engines
  *					and where "version" is a floating number
  */
 function clientInfo($userAgent = '')
 {
     if (!$userAgent) {
         $userAgent = t3lib_div::getIndpEnv('HTTP_USER_AGENT');
     }
     $browserInfo = t3lib_utility_Client::getBrowserInfo($userAgent);
     // Known engines: order is not irrelevant!
     $knownEngines = array('opera', 'msie', 'gecko', 'webkit');
     if (is_array($browserInfo['all'])) {
         foreach ($knownEngines as $engine) {
             if ($browserInfo['all'][$engine]) {
                 $browserInfo['browser'] = $engine;
                 $browserInfo['version'] = t3lib_utility_Client::getVersion($browserInfo['all'][$engine]);
                 break;
             }
         }
     }
     return $browserInfo;
 }
 /**
  * Returns the version of a browser; Basically getting doubleval() of the input string, stripping of any non-numeric values in the beginning of the string first.
  *
  * @param	string		A string with version number, eg. "/7.32 blablabla"
  * @return	double		Returns double value, eg. "7.32"
  * @deprecated	since TYPO3 4.3 - use t3lib_utility_Client::getVersion() instead
  */
 function browserInfo_version($tmp)
 {
     t3lib_div::logDeprecatedFunction();
     return t3lib_utility_Client::getVersion($tmp);
 }