Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75514 - website/public_html/beta/doc
From: dnljms_at_[hidden]
Date: 2011-11-16 17:22:13


Author: danieljames
Date: 2011-11-16 17:22:12 EST (Wed, 16 Nov 2011)
New Revision: 75514
URL: http://svn.boost.org/trac/boost/changeset/75514

Log:
Website: Handle overwritten index files.

Text files modified:
   website/public_html/beta/doc/display_libs.php | 8 ++++++++
   1 files changed, 8 insertions(+), 0 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-11-16 17:22:12 EST (Wed, 16 Nov 2011)
@@ -8,6 +8,14 @@
         exit(0);
 }
 
+if (strncmp($_SERVER['REQUEST_URI'], '/doc/libs/1_', 12) == 0 &&
+ is_dir("$_SERVER[DOCUMENT_ROOT]/$_SERVER[REQUEST_URI]") &&
+ is_readable("$_SERVER[DOCUMENT_ROOT]/$_SERVER[REQUEST_URI]index.html"))
+{
+ readfile("$_SERVER[DOCUMENT_ROOT]/$_SERVER[REQUEST_URI]/index.html");
+ exit(0);
+}
+
 require_once(dirname(__FILE__) . '/../common/code/boost_archive.php');
 
 function boost_future_version($version)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk