comparison index.php @ 50:99a730ffeaf6

more parameterisation
author Charlie Root
date Sun, 27 Jan 2019 14:24:02 -0500
parents a67bf725e87b
children
comparison
equal deleted inserted replaced
49:a67bf725e87b 50:99a730ffeaf6
8 $country_code = $_SERVER["REDIRECT_GEOIP_COUNTRY_CODE"]; 8 $country_code = $_SERVER["REDIRECT_GEOIP_COUNTRY_CODE"];
9 } 9 }
10 else {$country_code = "US" ; } 10 else {$country_code = "US" ; }
11 11
12 dl("cc: $country_code\n"); 12 dl("cc: $country_code\n");
13 dl("tp: ".getenv("TEST_PREFIX")."\n");
14 dl("ip: ".getenv("IP_PREFIX")." ".ini_get('include_path')."\n");
13 15
14 $home=$_SERVER['SERVER_NAME']; 16 $home=$_SERVER['SERVER_NAME'];
15 $path=$_SERVER['SCRIPT_NAME']; 17 $path=$_SERVER['SCRIPT_NAME'];
16 $myBase="http://$home".substr($path,0,strlen($path)-10); 18 $myBase="http://$home".substr($path,0,strlen($path)-10);
17 dl("base: $myBase\n"); 19 dl("base: $myBase\n");