libs/PHPCrawlerUserSendDataCache.class.php
public function getBasicAuthenticationForUrl($url)
  {
    for ($x=0; $x<count($this->basic_authentications); $x++)
    {
      if (preg_match($this->basic_authentications[$x]["url_regex"], $url))
      {
        $tmp = array();
        $tmp["username"] = $this->basic_authentications[$x]["username"];
        $tmp["password"] = $this->basic_authentications[$x]["password"];
        
        return $tmp;
      }
    }
    
    return null;
  }
public function getBasicAuthenticationForUrl($url)
  {
    for ($x=0; $x<count($this->basic_authentications); $x++)
    {
      if (preg_match($this->basic_authentications[$x]["url_regex"], $url))
      {
        $tmp = array();
        $tmp["username"] = $this->basic_authentications[$x]["username"];
        $tmp["password"] = $this->basic_authentications[$x]["password"];
        
        return $tmp;
      }
    }
    
    return null;
  }
Returns the basic-authentication (username and password) that should be send to the given URL.

@param string $url The URL.
@return array Array containing the keys "username" and "password".
Returns NULL if no authentication was found in cache for the given URL.