GeoIP redirect

It set language only for first visit to homepage based on Joomfish and plugin configuration.
You can use it for denying access for IP address from certain countries too.
http://geolite.maxmind.com/download/geoip/database/LICENSE.txt
As of Oct 2010 it was the only plugin which met my requirements of Joom!fish for free. With the info included below, I would recommend some to use it, if someone needs a free geo-ip plugin and doesn't mind some setup/php.
I hope this will serve as the missing README file.
First, here is a patch I had to use to get it to work.
geoip.php
from
110 if( ( is_array( $countries ) && in_array( $visitor_cc, $countries ) ) || $visitor_cc = $countries) {
to
110 if( ( is_array( $countries ) && in_array( $visitor_cc, $countries ) ) || $visitor_cc == $countries) {
Here is a patch which isn't a bug, but I had to do it. Most shouldn't need this patch.
geoip.php
from
77 if( JRequest::getVar('view') != 'frontpage' ){
to
77 if( JRequest::getVar('view') != 'frontpage' || JRequest::getVar('view') != '' ){
contstants.php to change "GEOIP_NUM_LANGUAGES" to the number of languages needed.
geoip.xml, I had to extend the number of languages I could see in the admin page from 5 to the number of languages I had. I copied and pasted (create X copies of "geoiplanguage" -> "spacer", incrementing the numbers each time.)
In the admin tool, I needed to set all the redirect links manually. The programs attempt for a url didn't work for me.
I recommend updating the GeoIP.dat file. The one it comes with is a bit old. But it is nice it is included, as it makes it easier to figure out which dir it is located in.
I tried contacting the creator, but the response wasn't helpful. Maybe someone else will get a more useful response.
Thanks James for resolving a bug. New version uploaded.
Just to note, the second is not a bug, because
if( JRequest::getVar('view') != 'frontpage' || JRequest::getVar('view') != '' ){
could be replaced with if(true){



