Plugin Directory

Changeset 431700


Ignore:
Timestamp:
09/01/2011 12:02:20 PM (15 years ago)
Author:
Ladrower
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • geographical-redirect/trunk/geo-redirect.php

    r431665 r431700  
    22/*
    33Plugin Name:Geo Redirect
    4 Plugin URI: http://vnuki.org/wp/plugins/geo-redirect.zip
     4Plugin URI: http://wordpress.org/extend/plugins/geographical-redirect/
    55Description: A plugin that provides visitor redirect according to their geographical location
    66Author: Ladrower
    7 Author URI: http://vnuki.org
     7Author URI: http://profiles.wordpress.org/users/Ladrower/
    88Author e-mail: ladrower@gmail.com
    99Version: 1.0
     
    3030    {
    3131        $this->ip = $_SERVER['REMOTE_ADDR'];
    32         $this->gi = geoip_open(WP_PLUGIN_DIR . "/geo-redirect/geoip/ipdatabase/GeoIP.dat/GeoIP.dat", GEOIP_STANDARD);
     32        $this->gi = geoip_open( dirname(__FILE__) . "/geoip/ipdatabase/GeoIP.dat/GeoIP.dat", GEOIP_STANDARD);
    3333        $this->site_domain = $_SERVER['SERVER_NAME'];
    3434        $this->no_redirect = (isset($_GET['no_redirect']) || is_admin()) ? true : false;
Note: See TracChangeset for help on using the changeset viewer.