- $resolved = gethostbyname($rblhost);
- // echo "RBL ".$rblhost."<br>";
- if ($resolved != $rblhost) {
- return TRUE;
- }
- }
- }
- return FALSE;
- }
-
- /**
- * VOID setHeader( STRING $trigger )
- * Set new header trigger...
- */
- function setHeader($trigger){
- $this->scan_headers[] = $trigger;
- }
-
-
- /**
- * ARRAY $triggers = getHeaders( VOID )
- * Get all triggers in one array
- */
- function getHeaders(){
- return $this->scan_headers;
- }
-
-
- /**
- * VOID setConfig( STRING $key, STRING $value)
- * Set config line...
- */
- function setConfig($key,$value){
- $this->config[$key] = $value;
- }
-
-
- /**
- * MIXED $config = getConfig( [STRING $key] )
- * Get all config in one array, or only one config value as a string.
- */
- function getConfig($key=''){
- if($key)
- return $this->config[$key];
- else
- return $this->config;
- }
-
-
- /**
- * STRING $log = getLog( VOID )
- * Get last logged information. Only works AFTER calling detect()!
- */
- function getLog(){
- return $this->lastLog;
- }
-
-
- /**
- * BOOL $proxy = detect( $addr )
- * Start detection and return TRUE if a proxy server is detected...
- */
- function detect($addr){
- GLOBAL $G_proxy_white_list;
- $log = "";
-
- foreach($G_proxy_white_list as $authproxy) {
- if ($addr == $authproxy)
- return (FALSE);