Mercurial > hg > ywww
comparison index.php @ 16:093e42d5a874
minor tidy-ups on new-server install
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Thu, 20 Apr 2017 18:15:34 -0400 |
| parents | 5f4560ac65b7 |
| children | 84a412b8122c |
comparison
equal
deleted
inserted
replaced
| 13:b78209a5fba1 | 16:093e42d5a874 |
|---|---|
| 1 <?php | 1 <?php |
| 2 $country_code = apache_note("GEOIP_COUNTRY_CODE"); | 2 $country_code = $_SERVER["GEOIP_COUNTRY_CODE"]; |
| 3 switch($country_code){ | 3 switch($country_code){ |
| 4 /* case "CA": | 4 /* case "CA": |
| 5 Header( "HTTP/1.1 301 Moved Permanently" ); | 5 Header( "HTTP/1.1 301 Moved Permanently" ); |
| 6 Header ("Location: http://www.yournextread.com/ca/" ); | 6 Header ("Location: http://www.yournextread.com/ca/" ); |
| 7 break; | 7 break; |
