Changeset 431700
- Timestamp:
- 09/01/2011 12:02:20 PM (15 years ago)
- File:
-
- 1 edited
-
geographical-redirect/trunk/geo-redirect.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
geographical-redirect/trunk/geo-redirect.php
r431665 r431700 2 2 /* 3 3 Plugin Name:Geo Redirect 4 Plugin URI: http:// vnuki.org/wp/plugins/geo-redirect.zip4 Plugin URI: http://wordpress.org/extend/plugins/geographical-redirect/ 5 5 Description: A plugin that provides visitor redirect according to their geographical location 6 6 Author: Ladrower 7 Author URI: http:// vnuki.org7 Author URI: http://profiles.wordpress.org/users/Ladrower/ 8 8 Author e-mail: ladrower@gmail.com 9 9 Version: 1.0 … … 30 30 { 31 31 $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); 33 33 $this->site_domain = $_SERVER['SERVER_NAME']; 34 34 $this->no_redirect = (isset($_GET['no_redirect']) || is_admin()) ? true : false;
Note: See TracChangeset
for help on using the changeset viewer.