Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2007-10-22 23:57:43


Author: grafik
Date: 2007-10-22 23:57:43 EDT (Mon, 22 Oct 2007)
New Revision: 40324
URL: http://svn.boost.org/trac/boost/changeset/40324

Log:
Add access to web check results.
Added:
   website/public_html/beta/development/webcheck_results.php (contents, props changed)
Text files modified:
   website/public_html/beta/development/.htaccess | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: website/public_html/beta/development/.htaccess
==============================================================================
--- website/public_html/beta/development/.htaccess (original)
+++ website/public_html/beta/development/.htaccess 2007-10-22 23:57:43 EDT (Mon, 22 Oct 2007)
@@ -1,6 +1,11 @@
 RewriteEngine On
 RewriteBase /development
 
+#~ Locally available regression result archives.
 RewriteRule ^tests$ tests/ [R]
 RewriteRule ^tests/([^/]+)/([^/]+)/$ tests/$1/$2/index.html [R]
 RewriteRule ^tests/(.*)$ testing_results.php/$1 [L]
+
+#~ Web site self checks.
+RewriteRule ^webcheck$ webcheck/ [R]
+RewriteRule ^webcheck/(.*)$ webcheck_results.php/$1 [L]

Added: website/public_html/beta/development/webcheck_results.php
==============================================================================
--- (empty file)
+++ website/public_html/beta/development/webcheck_results.php 2007-10-22 23:57:43 EDT (Mon, 22 Oct 2007)
@@ -0,0 +1,15 @@
+<?php
+/*
+ Copyright 2007 Redshift Software, Inc.
+ Distributed under the Boost Software License, Version 1.0.
+ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+*/
+$p=substr($_SERVER["PATH_INFO"],1);
+if ($p)
+{
+ if (preg_match('@[.](html|htm)$@i')) { header('Content-type: text/html'); }
+ else if (preg_match('@[.](css)$@i')) { header('Content-type: text/css'); }
+ else if (preg_match('@[.](js)$@i')) { header('Content-type: application/x-javascript'); }
+ readfile("/home/grafik/www.boost.org/www.boost.org/webcheck/".basename($p));
+}
+?>
\ No newline at end of file


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