classes/DlstatsHelper.php
public function checkBot()
	{
	    if (!in_array('botdetection', \Config::getInstance()->getActiveModules() ))
	    {
	        //botdetection Modul fehlt, trotzdem zählen, Meldung kommt bereits per Hook
	        return false; //fake: no bots found
	    }
	    if ( isset($GLOBALS['TL_CONFIG']['dlstatDisableBotdetection']) &&
            (bool) $GLOBALS['TL_CONFIG']['dlstatDisableBotdetection'] === true )
	    {
	        //botdetection ist disabled for dlstats
	        return false; //fake: no bots founds
	    }
	    // Import Helperclass ModuleBotDetection
	    $this->ModuleBotDetection = new \BotDetection\ModuleBotDetection();
	
	    //Call BD_CheckBotAgent
	    $test01 = $this->ModuleBotDetection->BD_CheckBotAgent();
	    if ($test01 === true)
	    {
	        $this->BOT_Filter = true;
	        return $this->BOT_Filter;
	    }
	    //Call BD_CheckBotIP
	    $test02 = $this->ModuleBotDetection->BD_CheckBotIP();
	    if ($test02 === true)
	    {
	        $this->BOT_Filter = true;
	        return $this->BOT_Filter;
	    }
	    //Call BD_CheckBotAgentAdvanced
	    $test03 = $this->ModuleBotDetection->BD_CheckBotAgentAdvanced();
	    if ($test03 !== false)
	    {
	        $this->BOT_Filter = true;
	        return $test03; // Bot Name
	    }
	    // No Bots found
	    return false;
	}
public function checkBot()
	{
	    if (!in_array('botdetection', \Config::getInstance()->getActiveModules() ))
	    {
	        //botdetection Modul fehlt, trotzdem zählen, Meldung kommt bereits per Hook
	        return false; //fake: no bots found
	    }
	    if ( isset($GLOBALS['TL_CONFIG']['dlstatDisableBotdetection']) &&
            (bool) $GLOBALS['TL_CONFIG']['dlstatDisableBotdetection'] === true )
	    {
	        //botdetection ist disabled for dlstats
	        return false; //fake: no bots founds
	    }
	    // Import Helperclass ModuleBotDetection
	    $this->ModuleBotDetection = new \BotDetection\ModuleBotDetection();
	
	    //Call BD_CheckBotAgent
	    $test01 = $this->ModuleBotDetection->BD_CheckBotAgent();
	    if ($test01 === true)
	    {
	        $this->BOT_Filter = true;
	        return $this->BOT_Filter;
	    }
	    //Call BD_CheckBotIP
	    $test02 = $this->ModuleBotDetection->BD_CheckBotIP();
	    if ($test02 === true)
	    {
	        $this->BOT_Filter = true;
	        return $this->BOT_Filter;
	    }
	    //Call BD_CheckBotAgentAdvanced
	    $test03 = $this->ModuleBotDetection->BD_CheckBotAgentAdvanced();
	    if ($test03 !== false)
	    {
	        $this->BOT_Filter = true;
	        return $test03; // Bot Name
	    }
	    // No Bots found
	    return false;
	}
public function checkBot ( ) { if ( ! in_array ( 'botdetection' , \ Config :: getInstance ( ) -> getActiveModules ( ) ) ) { //botdetection Modul fehlt, trotzdem zählen, Meldung kommt bereits per Hook return false ; //fake: no bots found } if ( isset ( $ GLOBALS [ 'TL_CONFIG' ] [ 'dlstatDisableBotdetection' ] ) && ( bool ) $ GLOBALS [ 'TL_CONFIG' ] [ 'dlstatDisableBotdetection' ] === true ) { //botdetection ist disabled for dlstats return false ; //fake: no bots founds } // Import Helperclass ModuleBotDetection $ this -> ModuleBotDetection = new \ BotDetection \ ModuleBotDetection ( ) ; //Call BD_CheckBotAgent $ test01 = $ this -> ModuleBotDetection -> BD_CheckBotAgent ( ) ; if ( $ test01 === true ) { $ this -> BOT_Filter = true ; return $ this -> BOT_Filter ; } //Call BD_CheckBotIP $ test02 = $ this -> ModuleBotDetection -> BD_CheckBotIP ( ) ; if ( $ test02 === true ) { $ this -> BOT_Filter = true ; return $ this -> BOT_Filter ; } //Call BD_CheckBotAgentAdvanced $ test03 = $ this -> ModuleBotDetection -> BD_CheckBotAgentAdvanced ( ) ; if ( $ test03 !== false ) { $ this -> BOT_Filter = true ; return $ test03 ; // Bot Name } // No Bots found return false ; }
Bot Check

@return mixed    true or string if Bot found, false if not
@access protected
Bot Check