changeset 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 b78209a5fba1
children ae1459564f66
files geoiptest.php index.php mdetect.php
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/geoiptest.php	Sat Feb 18 15:18:47 2017 +0000
+++ b/geoiptest.php	Thu Apr 20 18:15:34 2017 -0400
@@ -1,7 +1,7 @@
 <html>
 <body>
 <?php
-$country_name = apache_note("GEOIP_COUNTRY_NAME");
+$country_name = $_SERVER["GEOIP_COUNTRY_NAME"];
 print "Country: " . $country_name;
 ?>
 </body>
--- a/index.php	Sat Feb 18 15:18:47 2017 +0000
+++ b/index.php	Thu Apr 20 18:15:34 2017 -0400
@@ -1,5 +1,5 @@
 <?php 
-		$country_code = apache_note("GEOIP_COUNTRY_CODE");	  
+		$country_code = $_SERVER["GEOIP_COUNTRY_CODE"];	  
 		switch($country_code){
 		/* case "CA":
 			Header( "HTTP/1.1 301 Moved Permanently" );
--- a/mdetect.php	Sat Feb 18 15:18:47 2017 +0000
+++ b/mdetect.php	Thu Apr 20 18:15:34 2017 -0400
@@ -152,7 +152,7 @@
    function uagent_info()
    { 
        $this->useragent = strtolower($_SERVER['HTTP_USER_AGENT']);
-       $this->httpaccept = strtolower($_SERVER['HTTP_ACCEPT']);
+       $this->httpaccept = strtolower(@$_SERVER['HTTP_ACCEPT']);
    }
    
    //**************************