Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51724 - in website/public_html/beta: . common/code doc style/css_0 style/css_0/theme_grape style/css_0/theme_grass
From: daniel_james_at_[hidden]
Date: 2009-03-11 18:01:05


Author: danieljames
Date: 2009-03-11 18:01:03 EDT (Wed, 11 Mar 2009)
New Revision: 51724
URL: http://svn.boost.org/trac/boost/changeset/51724

Log:
Remove the old wiki support and redirect to Trac.
Removed:
   website/public_html/beta/common/code/boost_wiki.php
   website/public_html/beta/doc/wiki.php
Text files modified:
   website/public_html/beta/.htaccess | 2
   website/public_html/beta/doc/.htaccess | 2 -
   website/public_html/beta/style/css_0/section-doc.css | 44 ----------------------------------------
   website/public_html/beta/style/css_0/theme_grape/theme.css | 20 ------------------
   website/public_html/beta/style/css_0/theme_grass/theme.css | 20 ------------------
   5 files changed, 1 insertions(+), 87 deletions(-)

Modified: website/public_html/beta/.htaccess
==============================================================================
--- website/public_html/beta/.htaccess (original)
+++ website/public_html/beta/.htaccess 2009-03-11 18:01:03 EDT (Wed, 11 Mar 2009)
@@ -52,7 +52,7 @@
 # The tools pages (todo)
 RewriteRule ^tools(/.*)?$ doc/tools$1 [R=permanent,L]
 # The wiki
-RewriteRule ^wiki/?$ http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl [R,L]
+RewriteRule ^wiki/?$ http://svn.boost.org/trac/boost [R,L]
 # The various extra docs, in more subdir.
 RewriteRule ^more/background.html users/index.html [R=permanent,L]
 RewriteRule ^more/bibliography.html users/bibliography.html [R=permanent,L]

Deleted: website/public_html/beta/common/code/boost_wiki.php
==============================================================================
--- website/public_html/beta/common/code/boost_wiki.php 2009-03-11 18:01:03 EDT (Wed, 11 Mar 2009)
+++ (empty file)
@@ -1,219 +0,0 @@
-<?php
-/*
- Copyright 2005-2006 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)
-*/
-require_once(dirname(__FILE__) . '/boost.php');
-
-
-class boost_wiki
-{
- var $head_content_ = NULL;
- var $content_ = NULL;
-
- function boost_wiki($uri)
- {
- $context = NULL;
- if (isset($_SERVER["REQUEST_METHOD"]) && $_SERVER["REQUEST_METHOD"] == "POST")
- {
- $context = stream_context_create(array(
- 'http' => array(
- 'method' => 'POST',
- 'content' => file_get_contents("php://input"),
- 'header' => "Content-type: application/x-www-form-urlencoded\r\n"
- )
- ));
- }
- else if (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"])
- {
- $uri .= '?';
- if (isset($_SERVER["PATH_INFO"]) && $_SERVER["PATH_INFO"] != '/')
- {
- $uri .= 'id='.substr($_SERVER["PATH_INFO"],1).'&';
- }
- $uri .= $_SERVER["QUERY_STRING"];
- }
- else if (isset($_SERVER["PATH_INFO"]) && $_SERVER["PATH_INFO"] != '/')
- {
- $uri .= '?'.substr($_SERVER["PATH_INFO"],1);
- }
- $this->content_ = file_get_contents($uri,false,$context);
-
- if ($this->content_ && $this->content_ != '')
- {
- $this->_init_html();
- }
-
- $this->head_content_ .= <<<HTML
-
- <!-- WIKI URI == '${uri}' -->
-
-HTML
- ;
- }
-
- function content_head()
- {
- print $this->head_content_;
- }
-
- function content()
- {
- if ($this->content_ && $this->content_ != '')
- {
- $this->_content_html();
- }
- }
-
- function _init_html()
- {
- preg_match('@text/html; charset=([^\s"]+)@i',$this->content_,$charset);
- if (isset($charset[1]))
- {
- $this->head_content_ .= <<<HTML
- <meta http-equiv="Content-Type" content="text/html; charset=${charset[1]}" />
-HTML
- ;
- }
- else
- {
- $this->head_content_ .= <<<HTML
- <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
-HTML
- ;
- }
-
- preg_match('@<title>([^<]+)</title>@i',$this->content_,$title);
- if (isset($title[1]))
- {
- $this->head_content_ .= <<<HTML
- <title>Boost C++ Libraries - ${title[1]}</title>
-HTML
- ;
- }
- else
- {
- $this->head_content_ .= <<<HTML
- <title>Boost C++ Libraries - Wiki</title>
-HTML
- ;
- }
- }
-
- function _content_html()
- {
- $text = $this->content_;
-
- $text = preg_replace(
- '@href="?http://www.boost.org/?([^"\s]*)"?@i',
- 'href="/${1}"',
- $text );
- $text = preg_replace(
- '@href="?(?:\.\./)+people/(.*\.htm)"?@i',
- 'href="/users/people/${1}l"',
- $text );
- $text = preg_replace(
- '@href="?(?:\.\./)+(LICENSE_.*\.txt)"?@i',
- 'href="/${1}"',
- $text );
- $text = preg_replace(
- '@<a\s+(class="[^"]+")?\s*href="?(http|mailto)(:[^"\s]*)"?@i',
- '<a class="external" href="${2}${3}"',
- $text );
- $text = preg_replace(
- '@href="?wiki.pl[?]((?:action|search)=[^"\s]*)"?@i',
- 'href="/doc/wiki/?${1}"',
- $text );
- $text = preg_replace(
- '@href="?wiki.pl[?]?([^"\s]*)"?@i',
- 'href="/doc/wiki/${1}"',
- $text );
-
- switch (isset($_REQUEST["action"]) ? $_REQUEST["action"] : 'display')
- {
- case 'edit':
- preg_match('@<hr>@i',$text,$body_begin,PREG_OFFSET_CAPTURE);
- preg_match('@</textarea>@i',$text,$body_end,PREG_OFFSET_CAPTURE);
- break;
-
- case 'post':
- preg_match('@<hr>@i',$text,$body_begin,PREG_OFFSET_CAPTURE);
- preg_match('@</body>@i',$text,$body_end,PREG_OFFSET_CAPTURE);
- break;
-
- default:
- preg_match('@<hr>@i',$text,$body_begin,PREG_OFFSET_CAPTURE);
- preg_match('@<form method="post" action="wiki.pl" [^>]*>@i',$text,$body_end,PREG_OFFSET_CAPTURE);
- break;
- }
- if (!isset($body_begin[0]))
- {
- return;
- }
- else if (!isset($body_end[0]))
- {
- $text = substr($text,
- $body_begin[0][1]+strlen($body_begin[0][0]));
- }
- else
- {
- $text = substr($text,
- $body_begin[0][1]+strlen($body_begin[0][0]),
- $body_end[0][1]-($body_begin[0][1]+strlen($body_begin[0][0])) );
- }
-
- $text = preg_replace(
- '@<[/]?(font|hr)[^>]*>@i',
- '',
- $text );
- $text = preg_replace(
- '@[\s]+(border|cellpadding|cellspacing|width|height|valign|align|frame|rules|naturalsizeflag|background|wrap)=[^\s>]+@i',
- '',
- $text );
-
- $edit_html = <<<HTML
-</textarea>
-<label><span class="wiki-label">Summary</span> <input type="text" name="summary" value="*" size="60" maxlength="200" id="summary" /></label>
-<label><span class="wiki-label">Minor Edit</span> <input type="checkbox" name="recent_edit" value="on" id="recent_edit" /></label>
-<input type="submit" name="Save" value="Save" id="Save" />
-<input type="submit" name="Preview" value="Preview" id="Preview" />
-</form>
-HTML;
- switch (isset($_REQUEST["action"]) ? $_REQUEST["action"] : 'display')
- {
- case 'edit':
- $text = preg_replace(
- '@<form method="post" action="wiki.pl" enctype="application/x-www-form-urlencoded">@i',
- '<form method="post" action="./?action=post" enctype="application/x-www-form-urlencoded" id="wiki-edit-form">',
- $text );
- $text .= $edit_html;
- break;
-
- case 'post':
- $text = preg_replace(
- '@<form method="post" action="wiki.pl" enctype="application/x-www-form-urlencoded">@i',
- '<form method="post" action="./?action=post" enctype="application/x-www-form-urlencoded" id="wiki-edit-form">',
- $text );
- $text = preg_replace(
- '@<h2>Preview only, not yet saved</h2>([^\r\n]*[\r\n]*)*@i',
- '</div>',
- $text );
- $text = preg_replace(
- '@</textarea>([^\r\n]*[\r\n]*){3}@i',
- $edit_html . <<<HTML
-<div class="clear"></div>
-<h2 class="content-header">Preview only, not yet saved</h2>
-<div id="wiki-preview">
-HTML
- ,$text );
- break;
-
- default:
- break;
- }
-
- print $text;
- }
-}
-?>

Modified: website/public_html/beta/doc/.htaccess
==============================================================================
--- website/public_html/beta/doc/.htaccess (original)
+++ website/public_html/beta/doc/.htaccess 2009-03-11 18:01:03 EDT (Wed, 11 Mar 2009)
@@ -6,8 +6,6 @@
 RewriteCond %{HTTP_HOST} ^boost\.org [NC]
 RewriteRule ^.*$ http://www\.boost\.org%{REQUEST_URI} [R=301]
 
-#~ RewriteRule ^wiki$ wiki/ [R]
-#~ RewriteRule ^wiki/(.*)$ wiki.php/$1 [L]
 RewriteRule ^html(/.*)?$ libs/release/doc/html$1 [R]
 
 # Redirect from symbolic names to current versions.

Deleted: website/public_html/beta/doc/wiki.php
==============================================================================
--- website/public_html/beta/doc/wiki.php 2009-03-11 18:01:03 EDT (Wed, 11 Mar 2009)
+++ (empty file)
@@ -1,65 +0,0 @@
-<?php
-require_once(dirname(__FILE__) . '/../common/code/boost_wiki.php');
-
-$_wiki = new boost_wiki('http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl');
-
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
- <?php $_wiki->content_head(); ?>
- <link rel="icon" href="/favicon.ico" type="image/ico" />
- <link rel="stylesheet" type="text/css" href="/style/section-doc.css" />
- <!--[if IE]> <style type="text/css"> body { behavior: url(/style/csshover.htc); } </style> <![endif]-->
-</head>
-
-<body>
- <div id="heading">
- <?php virtual("/common/heading.html"); ?>
- </div>
-
- <div id="body">
- <div id="body-inner">
- <div id="content">
- <div class="section" id="intro">
- <div class="section-0">
- <div class="section-title">
- <h1>Boost C++ Libraries - Wiki</h1>
- </div>
-
- <div class="section-body">
- <?php $_wiki->content(); ?>
- </div>
- </div>
- </div>
- </div>
-
- <div id="sidebar">
- <?php virtual("/common/sidebar-common.html"); ?><?php virtual("/common/sidebar-doc.html"); ?>
- </div>
-
- <div class="clear"></div>
- </div>
- </div>
-
- <div id="footer">
- <div id="footer-left">
- <div id="revised">
- <p>Revised $Date$</p>
- </div>
-
- <div id="copyright">
- <p>Copyright Rene Rivera 2005-2006.</p>
- </div><?php virtual("/common/footer-license.html"); ?>
- </div>
-
- <div id="footer-right">
- <?php virtual("/common/footer-banners.html"); ?>
- </div>
-
- <div class="clear"></div>
- </div>
-</body>
-</html>

Modified: website/public_html/beta/style/css_0/section-doc.css
==============================================================================
--- website/public_html/beta/style/css_0/section-doc.css (original)
+++ website/public_html/beta/style/css_0/section-doc.css 2009-03-11 18:01:03 EDT (Wed, 11 Mar 2009)
@@ -554,47 +554,3 @@
 #content .section .caution { background: #FFFFFF url(caution.png) no-repeat top left; }
 #content .section .sidebar { background: #FFFFFF url(note.png) no-repeat top left; }
 #content .section .hint { background: #FFFFFF url(tip.png) no-repeat top left; }
-
-/* Wiki display, edit, etc. */
-#wiki-edit-form textarea {
- font-size: 90%;
- width: 100%;
- height: 40em;
- border: 1px solid #CCCCCC;
- margin: 0em 0em 0.25em 0em;
-}
-#wiki-edit-form label {
- border: 1px solid #CCCCCC;
- padding: 2px;
- margin: 0em 0em 0.25em 0em;
- display: block;
-}
-#wiki-edit-form .wiki-label {
- font-family: "Times New Roman",serif;
- font-variant: small-caps;
- width: 20%;
- display: block;
- float: left;
- text-align: right;
- padding-right: 0.25em;
- white-space: nowrap;
-}
-#wiki-edit-form #summary {
- font-size: 90%;
- border: none;
- width: 78.5%;
- display: block;
- margin-left: 21%;
-}
-#wiki-edit-form #Save,
-#wiki-edit-form #Preview {
- border: 1px solid #CCCCCC;
- padding: 2px;
- float: right;
- margin: 0em 0em 0em 0.25em;
- font-family: "Times New Roman",serif;
- font-variant: small-caps;
-}
-#wiki-preview h2.content-header {
- border-bottom: 1px solid #CCCCCC;
-}

Modified: website/public_html/beta/style/css_0/theme_grape/theme.css
==============================================================================
--- website/public_html/beta/style/css_0/theme_grape/theme.css (original)
+++ website/public_html/beta/style/css_0/theme_grape/theme.css 2009-03-11 18:01:03 EDT (Wed, 11 Mar 2009)
@@ -40,23 +40,3 @@
   border-left-color: #75689D;
   border-right-color: #75689D;
 }
-
-/* Wiki form. */
-#wiki-edit-form #summary {
- background-color: #75689D;
- color: #FFFFFF;
- font-weight: bold;
- padding: 1px;
-}
-#wiki-edit-form #Save {
- background-color: #CC3333;
- color: #FFFFFF;
- font-weight: bold;
- padding: 1px;
-}
-#wiki-edit-form #Preview {
- background-color: #75689D;
- color: #FFFFFF;
- font-weight: bold;
- padding: 1px;
-}

Modified: website/public_html/beta/style/css_0/theme_grass/theme.css
==============================================================================
--- website/public_html/beta/style/css_0/theme_grass/theme.css (original)
+++ website/public_html/beta/style/css_0/theme_grass/theme.css 2009-03-11 18:01:03 EDT (Wed, 11 Mar 2009)
@@ -43,26 +43,6 @@
   border-right-color: #6B9D68;
 }
 
-/* Wiki form. */
-#wiki-edit-form #summary {
- background-color: #6B9D68;
- color: #FFFFFF;
- font-weight: bold;
- padding: 1px;
-}
-#wiki-edit-form #Save {
- background-color: #CC3333;
- color: #FFFFFF;
- font-weight: bold;
- padding: 1px;
-}
-#wiki-edit-form #Preview {
- background-color: #6B9D68;
- color: #FFFFFF;
- font-weight: bold;
- padding: 1px;
-}
-
 /* Documentation icons, etc. */
 #content img.prev_image,
 #content img.prev_image_disabled,


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