| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
require_once 'logger.php';
|
2 |
require_once 'logger.php';
|
| - |
|
3 |
|
| - |
|
4 |
$pageURL = 'http';
|
| - |
|
5 |
//if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
|
| - |
|
6 |
$pageURL .= "://";
|
| - |
|
7 |
if ($_SERVER["SERVER_PORT"] != "80") {
|
| - |
|
8 |
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
|
| - |
|
9 |
} else {
|
| - |
|
10 |
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
| - |
|
11 |
}
|
| - |
|
12 |
$pageURL = explode('http://m.shop2020.in/', $pageURL);
|
| - |
|
13 |
$redirectUrl = array('static/buy-online-and-pickup-in-store','airtel-online-recharge','bsnl-online-recharge','etisalat-online-recharge','hfcl-online-recharge','idea-online-recharge',
|
| - |
|
14 |
'mtnl-mumbai-online-recharge','loop-mobile-online-recharge','mts-online-recharge','reliance-cdma-online-recharge','reliance-gsm-online-recharge','stel-online-recharge','swan-online-recharge',
|
| - |
|
15 |
'tata-cdma-online-recharge','tata-docomo-online-recharge','ttsl-online-recharge','uninor-online-recharge','videocon-online-recharge','vodafone-online-recharge',
|
| - |
|
16 |
'dish-tv-online-recharge','sun-direct-online-recharge','tata-sky-online-recharge','videocon-d2h-online-recharge','androidland','androidland-overview','androidland-devices',
|
| - |
|
17 |
'androidland-apps','static/oneassist-terms','latest-arrivals/1','static/aboutus','static/careers','static/privacy-policy','static/terms-conditions','androidland-store-in-noida',
|
| - |
|
18 |
'androidland-store-in-bangalore','androidland-store-in-delhi','glossary','static/easy-linux','generated/product-index ','generated/most-frequently-searched','generated/accessories-compatibility-index',
|
| - |
|
19 |
'generated/most-compared-phones','rechargelinks','quicklinks','personal-details','login-details','address');
|
| - |
|
20 |
if($pageURL[1] == 'forgot-password'){
|
| - |
|
21 |
header("Location: http://m.shop2020.in/login");
|
| - |
|
22 |
exit;
|
| - |
|
23 |
}elseif($pageURL[1] == 'proceed-to-pay'){
|
| - |
|
24 |
header("Location: http://m.shop2020.in/payment");
|
| - |
|
25 |
exit;
|
| - |
|
26 |
}elseif($pageURL[1] == 'myaccount' || $pageURL[1] == 'completed-orders' || $pageURL == 'failed-orders' || $pageURL == 'my-purchases'){
|
| - |
|
27 |
header("Location: http://m.shop2020.in/my-orders");
|
| - |
|
28 |
exit;
|
| - |
|
29 |
}elseif(in_array($pageURL[1], $redirectUrl)){
|
| - |
|
30 |
$newURL = 'http://www.saholic.com/'.$pageURL[1];
|
| - |
|
31 |
header('Location: '.$newURL);
|
| - |
|
32 |
exit;
|
| - |
|
33 |
}
|
| - |
|
34 |
|
| 3 |
/*
|
35 |
/*
|
| 4 |
*---------------------------------------------------------------
|
36 |
*---------------------------------------------------------------
|
| 5 |
* APPLICATION ENVIRONMENT
|
37 |
* APPLICATION ENVIRONMENT
|
| 6 |
*---------------------------------------------------------------
|
38 |
*---------------------------------------------------------------
|
| 7 |
*
|
39 |
*
|