annotate index.php @ 3:a5e5475bf357

fix ASIN pblm, add debugging
author robert
date Wed, 28 Dec 2016 12:48:18 +0000
parents 5f4560ac65b7
children 1477b5e6dd16 093e42d5a874
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5f4560ac65b7 original
robert
parents:
diff changeset
1 <?php
5f4560ac65b7 original
robert
parents:
diff changeset
2 $country_code = apache_note("GEOIP_COUNTRY_CODE");
5f4560ac65b7 original
robert
parents:
diff changeset
3 switch($country_code){
5f4560ac65b7 original
robert
parents:
diff changeset
4 /* case "CA":
5f4560ac65b7 original
robert
parents:
diff changeset
5 Header( "HTTP/1.1 301 Moved Permanently" );
5f4560ac65b7 original
robert
parents:
diff changeset
6 Header ("Location: http://www.yournextread.com/ca/" );
5f4560ac65b7 original
robert
parents:
diff changeset
7 break;
5f4560ac65b7 original
robert
parents:
diff changeset
8 case "DE":
5f4560ac65b7 original
robert
parents:
diff changeset
9 Header( "HTTP/1.1 301 Moved Permanently" );
5f4560ac65b7 original
robert
parents:
diff changeset
10 Header ("Location: http://www.yournextread.com/de/" );
5f4560ac65b7 original
robert
parents:
diff changeset
11 break;
5f4560ac65b7 original
robert
parents:
diff changeset
12 case "FR":
5f4560ac65b7 original
robert
parents:
diff changeset
13 Header( "HTTP/1.1 301 Moved Permanently" );
5f4560ac65b7 original
robert
parents:
diff changeset
14 Header ("Location: http://www.yournextread.com/fr/" );
5f4560ac65b7 original
robert
parents:
diff changeset
15 break;
5f4560ac65b7 original
robert
parents:
diff changeset
16 case "GB":
5f4560ac65b7 original
robert
parents:
diff changeset
17 Header( "HTTP/1.1 301 Moved Permanently" );
5f4560ac65b7 original
robert
parents:
diff changeset
18 Header ("Location: http://www.yournextread.com/uk/" );
5f4560ac65b7 original
robert
parents:
diff changeset
19 break;
5f4560ac65b7 original
robert
parents:
diff changeset
20 case "US":
5f4560ac65b7 original
robert
parents:
diff changeset
21 Header( "HTTP/1.1 301 Moved Permanently" );
5f4560ac65b7 original
robert
parents:
diff changeset
22 Header ("Location: http://www.yournextread.com/us/" );
5f4560ac65b7 original
robert
parents:
diff changeset
23 break; */
5f4560ac65b7 original
robert
parents:
diff changeset
24 default:
5f4560ac65b7 original
robert
parents:
diff changeset
25 Header( "HTTP/1.1 301 Moved Permanently" );
5f4560ac65b7 original
robert
parents:
diff changeset
26 Header ("Location: http://www.yournextread.com/us/" );
5f4560ac65b7 original
robert
parents:
diff changeset
27 break;
5f4560ac65b7 original
robert
parents:
diff changeset
28 }
5f4560ac65b7 original
robert
parents:
diff changeset
29 ?>
5f4560ac65b7 original
robert
parents:
diff changeset
30 <html>
5f4560ac65b7 original
robert
parents:
diff changeset
31 <head>
5f4560ac65b7 original
robert
parents:
diff changeset
32 <title>YourNextRead: Book Recommendations</title>
5f4560ac65b7 original
robert
parents:
diff changeset
33
5f4560ac65b7 original
robert
parents:
diff changeset
34 <META NAME="Description" CONTENT="YourNextRead recommends your next book. YourNextRead provides a book recommendation system showing aggregated book reviews, updated by real peoples opinions, in a simple visual map, helping you to decide 'What Should I Read Next?'. Perfect for both bookworms and casual readers!">
5f4560ac65b7 original
robert
parents:
diff changeset
35 <meta name="google-site-verification" content="0XCtbGM_bvOH363P2XE6DVjh-APTICOREquY8F38T84" />
5f4560ac65b7 original
robert
parents:
diff changeset
36 </HEAD>
5f4560ac65b7 original
robert
parents:
diff changeset
37 <body>
5f4560ac65b7 original
robert
parents:
diff changeset
38 </body>
5f4560ac65b7 original
robert
parents:
diff changeset
39