$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r73003 - website/public_html/beta/doc
From: dnljms_at_[hidden]
Date: 2011-07-11 06:49:07
Author: danieljames
Date: 2011-07-11 06:49:06 EDT (Mon, 11 Jul 2011)
New Revision: 73003
URL: http://svn.boost.org/trac/boost/changeset/73003
Log:
Website: Only use google analytics on the live site.
Text files modified: 
   website/public_html/beta/doc/display_libs.php |    13 ++++++-------                           
   1 files changed, 6 insertions(+), 7 deletions(-)
Modified: website/public_html/beta/doc/display_libs.php
==============================================================================
--- website/public_html/beta/doc/display_libs.php	(original)
+++ website/public_html/beta/doc/display_libs.php	2011-07-11 06:49:06 EDT (Mon, 11 Jul 2011)
@@ -30,11 +30,10 @@
 }
 
 function add_spirit_analytics($content) {
-	$server = $_SERVER['HTTP_HOST'];
-	
-	// Always serving for testing, will disable soon.
-	//if ($server != 'www.boost.org' && $server != 'live.boost.org')
-	//	return $content;
+    $server = $_SERVER['HTTP_HOST'];
+    
+    if ($server != 'www.boost.org' && $server != 'live.boost.org')
+        return $content;
 
     if(stripos($content, '_uacct = "UA-11715441-2"') !== FALSE)
         return $content;
@@ -68,9 +67,9 @@
 
 $location = get_archive_location('@^[/]([^/]+)[/](.*)$@',$_SERVER["PATH_INFO"],true,false);
 $beta_site = strpos($_SERVER['HTTP_HOST'], 'beta') !== FALSE ||
-	strpos($_SERVER['HTTP_HOST'], 'localhost') !== FALSE;
+    strpos($_SERVER['HTTP_HOST'], 'localhost') !== FALSE;
 $beta_docs = strpos($location['version'], 'beta') !== FALSE ||
-	strpos($location['version'], 'snapshot') !== FALSE;
+    strpos($location['version'], 'snapshot') !== FALSE;
 
 if (!$beta_site && $beta_docs) {
     file_not_found($location['file']);