|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50772 - in website/public_html/beta: common/code doc
From: daniel_james_at_[hidden]
Date: 2009-01-25 12:40:58
Author: danieljames
Date: 2009-01-25 12:40:57 EST (Sun, 25 Jan 2009)
New Revision: 50772
URL: http://svn.boost.org/trac/boost/changeset/50772
Log:
Include the boost version in the documentation page.
Text files modified:
website/public_html/beta/common/code/boost_version.php | 14 ++++++++++++++
website/public_html/beta/doc/libraries.php | 4 ++--
2 files changed, 16 insertions(+), 2 deletions(-)
Modified: website/public_html/beta/common/code/boost_version.php
==============================================================================
--- website/public_html/beta/common/code/boost_version.php (original)
+++ website/public_html/beta/common/code/boost_version.php 2009-01-25 12:40:57 EST (Sun, 25 Jan 2009)
@@ -6,6 +6,20 @@
*/
require_once(dirname(__FILE__) . '/boost.php');
+function boost_title()
+{
+ $vinfo = array();
+ if (isset($_SERVER["PATH_INFO"])) {
+ preg_match('@([0-9]+)_([0-9]+)_([0-9]+)@',$_SERVER["PATH_INFO"],$vinfo);
+ }
+ if (isset($vinfo[0])) {
+ array_shift($vinfo);
+ return 'Boost '.implode('.', $vinfo);
+ }
+ else {
+ return 'Boost';
+ }
+}
function boost_version($v,$r,$p)
{
Modified: website/public_html/beta/doc/libraries.php
==============================================================================
--- website/public_html/beta/doc/libraries.php (original)
+++ website/public_html/beta/doc/libraries.php 2009-01-25 12:40:57 EST (Sun, 25 Jan 2009)
@@ -177,7 +177,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
- <title>Boost Library Documention</title>
+ <title><?php echo boost_title(); ?> Library Documention</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="icon" href="/favicon.ico" type="image/ico" />
<link rel="stylesheet" type="text/css" href="/style/section-doc.css" />
@@ -195,7 +195,7 @@
<div class="section" id="intro">
<div class="section-0">
<div class="section-title">
- <h1>Boost Library Documentation</h1>
+ <h1><?php echo boost_title(); ?> Library Documentation</h1>
</div>
<div class="section-body">
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