require_once('geoplugin.class.php'); $geoplugin = new geoPlugin(); // If we wanted to change the base currency, we would uncomment the following line // $geoplugin->currency = 'EUR'; $geoplugin->locate(); if ($geoplugin->countryName == "United Arab Emirates"){ header("Location:https://www.grandhypermarkets.com/uae/"); die(); } else if ($geoplugin->countryName == "Kuwait"){ header("Location:https://www.grandhypermarkets.com/kuwait/"); die(); } else if ($geoplugin->countryName == "Qatar"){ header("Location:https://www.grandhypermarkets.com/qatar/"); die(); } else{ //echo "Visit UAE Store
\n\n Visit Kuwait Store
\n\n Visit Qatar Store"; include("grand/index.html"); } ?>