protected function checkIP()
    {
        if (getenv("HTTP_CLIENT_IP"))
            $this->_ip = getenv("HTTP_CLIENT_IP");
        elseif (getenv("HTTP_X_FORWARDED_FOR"))
            $this->_ip = getenv("HTTP_X_FORWARDED_FOR");
        else
            $this->_ip = getenv("REMOTE_ADDR");
    }
protected function checkIP()
    {
        if (getenv("HTTP_CLIENT_IP"))
            $this->_ip = getenv("HTTP_CLIENT_IP");
        elseif (getenv("HTTP_X_FORWARDED_FOR"))
            $this->_ip = getenv("HTTP_X_FORWARDED_FOR");
        else
            $this->_ip = getenv("REMOTE_ADDR");
    }
protected function checkIP ( ) { if ( getenv ( "HTTP_CLIENT_IP" ) ) $ this -> _ip = getenv ( "HTTP_CLIENT_IP" ) ; elseif ( getenv ( "HTTP_X_FORWARDED_FOR" ) ) $ this -> _ip = getenv ( "HTTP_X_FORWARDED_FOR" ) ; else $ this -> _ip = getenv ( "REMOTE_ADDR" ) ; }
GET the IP address
GET the IP address