TAKE THE FIRST STEP
WE WILL DO THE REST

🧡 Recommended Tea $9.00

USE CASE for ALREADY HAVE a PHP WEBSITE if YOUR ITEM is ADD-ON PHP:
- Pay an Item via LIVE ORDER for OUR AFFILIATE only.
- Pay a Tea via FREE SETUP for PAYPAL & DEBIT / CREDIT CARD only.

PLACE ORDER for FREE SETUP with ORDER NOTES at CHECK OUT:
1. Add YOUR DOMAIN (Ex: domain.com) registered by yourself at Domain Name Registration.
2. Add YOUR HOSTING (Ex: domain.com) registered by yourself at Linux Shared Hosting.
3. Add YOUR WEBSITE (Ex: domain.com|admin|password) hosted by yourself at Linux Shared Hosting.
4. Add YOUR ACCOUNT (Ex: username|password) or DOWNLOAD LINK (Ex: drive.google.com/file) paid by yourself at Theme Forest or Code Canyon.

Warranty: 7 Days

$

🧡 Recommended Tea $9.00

💚 Minimum Tea$3.00

❤️ Maximum Tea$300.00

Report Abuse

Description



LIVE PREVIEW LIVE ORDER $26


Country Detect & Redirect
Laborator

Class that lookup’s for a country code then it redirects (include files, or callbacks) the user to desired content you want.
The function of this class is like Google that redirects users from countries that support google
e.g. in UK when you enter google.com you will be redirected to google.co.uk and this is exactly
what you can do with CountryDetector

This class is builded in static context for purpose of best usage. Also it is very easy to implement

Update: 21 Nov, 2012

We present you two new functions to simplify the work of handling country codes. These functions are:

CountryDetect::getCountryCode();

It returns the current country code of user in two (or three sometimes) uppercase initials.

The second CountryDetect function is “is($country_code)”, so you can easily check if its a specified country code in order to take an action.

CountryDetect::is($country_code);

It returns true or false, based on the condition of specified country code, which is case iNsEnSiTiVe.

Examples about usage of these functions are located on examples/7_get_country_code.php.

Updated

There is added another function called

includeFileOnce

for purposes when you want to include just once a file, and ignore other below declaration lines

Features

  • Country detect then redirect
  • Country detect then include a specific file
  • Country detect then call a function defined by you (callback)


Try Kalium WordPress Theme



Source link

OVERCOME YOURSELF ONLY
TAKE THE LAST STEP

Reviews

There are no reviews yet.

Be the first to review “Country Detect & Redirect”

Your email address will not be published. Required fields are marked *


Loading...

Vendor Information

  • Store Name: Code Canyon Vendor
  • Vendor: Code Canyon Vendor
  • Address: Victoria
    Australia
  • No ratings found yet!

Allow customer to Request for Coupon as Store Credit when the order is Cancelled by Vendor or Cancelled by Customer in Warranty Time.

OVERCOME YOURSELF ONLY
TAKE THE LAST STEP

Product Enquiry

Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our privacy policy