|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59888 - in website/public_html/beta: common/code development doc
From: daniel_james_at_[hidden]
Date: 2010-02-25 03:41:59
Author: danieljames
Date: 2010-02-25 03:41:58 EST (Thu, 25 Feb 2010)
New Revision: 59888
URL: http://svn.boost.org/trac/boost/changeset/59888
Log:
And make displaying documentation a function.
Text files modified:
website/public_html/beta/common/code/boost_archive.php | 9 +++++++++
website/public_html/beta/development/testing_results.php | 2 +-
website/public_html/beta/doc/display_build.php | 4 +---
website/public_html/beta/doc/display_jam.php | 4 +---
website/public_html/beta/doc/display_libs.php | 4 +---
5 files changed, 13 insertions(+), 10 deletions(-)
Modified: website/public_html/beta/common/code/boost_archive.php
==============================================================================
--- website/public_html/beta/common/code/boost_archive.php (original)
+++ website/public_html/beta/common/code/boost_archive.php 2010-02-25 03:41:58 EST (Thu, 25 Feb 2010)
@@ -38,6 +38,15 @@
);
}
+function display_from_archive(
+ $archive_location_details,
+ $content_map = array(),
+ $get_as_raw = false)
+{
+ $_file = new boost_archive($archive_location_details, $content_map, $get_as_raw);
+ $_file->render();
+}
+
class boost_archive
{
var $version_ = NULL;
Modified: website/public_html/beta/development/testing_results.php
==============================================================================
--- website/public_html/beta/development/testing_results.php (original)
+++ website/public_html/beta/development/testing_results.php 2010-02-25 03:41:58 EST (Thu, 25 Feb 2010)
@@ -1,7 +1,7 @@
<?php
require_once(dirname(__FILE__) . '/../common/code/boost_archive.php');
-$_file = new boost_archive(
+display_from_archive(
get_archive_location(
'/^[\/]([^\/]+)[\/](.*)$/',$_SERVER["PATH_INFO"],
false, // the result zips don't have the tag subdir
Modified: website/public_html/beta/doc/display_build.php
==============================================================================
--- website/public_html/beta/doc/display_build.php (original)
+++ website/public_html/beta/doc/display_build.php 2010-02-25 03:41:58 EST (Thu, 25 Feb 2010)
@@ -21,7 +21,7 @@
str_ireplace('</head>', $analytics.'</head>', $content);
}
-$_file = new boost_archive(
+display_from_archive(
get_archive_location(
'@^[/]([^/]+)[/](.*)$@',
$_SERVER["PATH_INFO"],
@@ -32,5 +32,3 @@
array('@.*@','@^boost-build/index[.]html$@i','simple','text/html', 'add_boost_build_analytics'),
array('@.*@','@[.](html|htm)$@i','boost_book_html','text/html')
));
-
-$_file->render();
\ No newline at end of file
Modified: website/public_html/beta/doc/display_jam.php
==============================================================================
--- website/public_html/beta/doc/display_jam.php (original)
+++ website/public_html/beta/doc/display_jam.php 2010-02-25 03:41:58 EST (Thu, 25 Feb 2010)
@@ -1,11 +1,9 @@
<?php
require_once(dirname(__FILE__) . '/../common/code/boost_archive.php');
-$_file = new boost_archive(
+display_from_archive(
get_archive_location('@^[/]([^/]+)[/](.*)$@',$_SERVER["PATH_INFO"]),
array(
//~ array(version-regex,path-regex,raw|simple|text|cpp|boost_book_html|boost_libs_html,mime-type[,preprocess hook]),
array('@.*@','@[.](html|htm)$@i','boost_book_html','text/html'),
));
-
-$_file->render();
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 2010-02-25 03:41:58 EST (Thu, 25 Feb 2010)
@@ -32,7 +32,7 @@
return str_ireplace('</head>', $analytics.'</head>', $content);
}
-$_file = new boost_archive(
+display_from_archive(
get_archive_location('@^[/]([^/]+)[/](.*)$@',$_SERVER["PATH_INFO"]),
array(
//~ array(version-regex,path-regex,raw|simple|text|cpp|boost_book_html|boost_libs_html,mime-type[,preprocess hook]),
@@ -98,5 +98,3 @@
//~ the headers are text files displayed in an embeded page
array('@.*@','@^boost/.*$@i','cpp','text/plain')
));
-
-$_file->render();
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