original_string: public static function CheckAuthentication(){
              $oThis = self::CreateInstanceIfNotExists();
              $bReturn = ($oThis->bStarted) ? (!empty($oThis->aAuth["id"]) && !empty($oThis->aAuth["username"]) && ((intval($oThis->aAuth["timeout"]) > time()) || (intval($oThis->aAuth["timeout"]) <= 0))) : false;
              return $bReturn;
          }
code: public static function CheckAuthentication(){
              $oThis = self::CreateInstanceIfNotExists();
              $bReturn = ($oThis->bStarted) ? (!empty($oThis->aAuth["id"]) && !empty($oThis->aAuth["username"]) && ((intval($oThis->aAuth["timeout"]) > time()) || (intval($oThis->aAuth["timeout"]) <= 0))) : false;
              return $bReturn;
          }
code_tokens: public static function CheckAuthentication ( ) { $ oThis = self :: CreateInstanceIfNotExists ( ) ; $ bReturn = ( $ oThis -> bStarted ) ? ( ! empty ( $ oThis -> aAuth [ "id" ] ) && ! empty ( $ oThis -> aAuth [ "username" ] ) && ( ( intval ( $ oThis -> aAuth [ "timeout" ] ) > time ( ) ) || ( intval ( $ oThis -> aAuth [ "timeout" ] ) <= 0 ) ) ) : false ; return $ bReturn ; }
docstring: Function to check the authentication session
  
  @static
  @access public
  @return boolean
docstring_tokens: Function to check the authentication session