|
Boost-Commit : |
From: grafik_at_[hidden]
Date: 2007-05-04 19:40:26
Author: grafik
Date: 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
New Revision: 3999
URL: http://svn.boost.org/trac/boost/changeset/3999
Log:
Remove the unused phpWebnotes files.
Add a common configuration file.
Attempt to fix the feed reading.
Added:
website/public_html/beta/common/code/boost_config.php
Removed:
website/public_html/beta/common/code/webnotes/
website/public_html/beta/common/code/webnotes.php
Text files modified:
website/public_html/beta/common/code/boost_version.php | 2 ++
website/public_html/beta/common/code/boost_wiki.php | 1 +
website/public_html/beta/common/code/feed.php | 12 +++++++++---
website/public_html/beta/common/code/libraries.php | 2 ++
website/public_html/beta/common/menu-announce-feed.php | 2 +-
website/public_html/beta/common/menu-build-feed.php | 2 +-
website/public_html/beta/common/menu-devel-feed.php | 2 +-
website/public_html/beta/common/menu-documentation-feed.php | 2 +-
website/public_html/beta/common/menu-interest-feed.php | 2 +-
website/public_html/beta/common/menu-testing-feed.php | 2 +-
website/public_html/beta/common/menu-user-feed.php | 2 +-
11 files changed, 21 insertions(+), 10 deletions(-)
Added: website/public_html/beta/common/code/boost_config.php
==============================================================================
--- (empty file)
+++ website/public_html/beta/common/code/boost_config.php 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
@@ -0,0 +1,34 @@
+<?php
+/*
+ Copyright 2005-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)
+*/
+
+switch ($_SERVER['HTTP_HOST'])
+{
+ case 'boost.org':
+ case 'www.boost.org':
+ case 'beta.boost.org':
+ {
+ define('BOOST_CONFIG_FILE','/home/grafik/www.boost.org/config.php');
+ define('ARCHIVE_PREFIX', '/home/grafik/www.boost.org/boost_');
+ define('UNZIP', '/usr/bin/unzip');
+ }
+ break;
+
+ case 'localhost':
+ case 'boost.borg.redshift-software.com':
+ {
+ define('BOOST_CONFIG_FILE','/DevRoots/Boost-SVN/website/workplace/config.php');
+ define('ARCHIVE_PREFIX', '/DevRoots/Boost/boost_');
+ define('UNZIP', 'unzip');
+ }
+ break;
+}
+
+define('ARCHIVE_FILE_PREFIX', 'boost_');
+
+require_once(BOOST_CONFIG_FILE);
+
+?>
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 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
@@ -4,6 +4,8 @@
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_config.php');
+
function boost_version($v,$r,$p)
{
Modified: website/public_html/beta/common/code/boost_wiki.php
==============================================================================
--- website/public_html/beta/common/code/boost_wiki.php (original)
+++ website/public_html/beta/common/code/boost_wiki.php 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
@@ -4,6 +4,7 @@
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_config.php');
function _preg_replace_bounds($front_regex,$back_regex,$front_replace,$back_replace,$text)
Modified: website/public_html/beta/common/code/feed.php
==============================================================================
--- website/public_html/beta/common/code/feed.php (original)
+++ website/public_html/beta/common/code/feed.php 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
@@ -4,6 +4,8 @@
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_config.php');
+
function _field_cmp_key_($a,$b)
{ return strcmp($a['key'],$b['key']); }
@@ -37,16 +39,20 @@
function boost_feed($xml_file,$item_base_uri)
{
- print '<!-- boost_fead (0) -->';
+ ##print "<!-- boost_fead (0) ".dirname($xml_file)." -->";
+ if (dirname($xml_file) == ".")
+ {
+ $xml_file = BOOST_RSS_DIR.'/'.$xml_file;
+ }
$xml = implode("",file($xml_file));
- print '<!-- boost_fead (1) -->';
+ ##print '<!-- boost_fead (1) -->';
$parser = xml_parser_create();
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
xml_parse_into_struct($parser, $xml, $values);
xml_parser_free($parser);
- print '<!-- '; print_r($values); print ' -->';
+ ##print '<!-- '; print_r($values); print ' -->';
$item = NULL;
foreach ( $values as $key => $val )
Modified: website/public_html/beta/common/code/libraries.php
==============================================================================
--- website/public_html/beta/common/code/libraries.php (original)
+++ website/public_html/beta/common/code/libraries.php 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
@@ -4,6 +4,8 @@
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_config.php');
+
function _field_cmp_key_($a,$b)
{ return strcmp($a['key'],$b['key']); }
Deleted: website/public_html/beta/common/code/webnotes.php
==============================================================================
--- website/public_html/beta/common/code/webnotes.php 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
+++ (empty file)
@@ -1,3 +0,0 @@
-<?php
-require dirname(__FILE__) . '/webnotes/core/api.php';
-?>
\ No newline at end of file
Modified: website/public_html/beta/common/menu-announce-feed.php
==============================================================================
--- website/public_html/beta/common/menu-announce-feed.php (original)
+++ website/public_html/beta/common/menu-announce-feed.php 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
@@ -1,7 +1,7 @@
<?php
require_once(dirname(__FILE__) . '/../common/code/feed.php');
$_news = new boost_feed(
- '/home/grafik/www.boost.org/gmane.comp.lib.boost.announce.rss',
+ 'gmane.comp.lib.boost.announce.rss',
'/feed/gmane.comp.lib.boost.announce.rss');
$_news->sort_by('pubdate');
?>
Modified: website/public_html/beta/common/menu-build-feed.php
==============================================================================
--- website/public_html/beta/common/menu-build-feed.php (original)
+++ website/public_html/beta/common/menu-build-feed.php 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
@@ -1,7 +1,7 @@
<?php
require_once(dirname(__FILE__) . '/../common/code/feed.php');
$_news = new boost_feed(
- '/home/grafik/www.boost.org/gmane.comp.lib.boost.build.rss',
+ 'gmane.comp.lib.boost.build.rss',
'/feed/gmane.comp.lib.boost.build.rss');
$_news->sort_by('pubdate');
?>
Modified: website/public_html/beta/common/menu-devel-feed.php
==============================================================================
--- website/public_html/beta/common/menu-devel-feed.php (original)
+++ website/public_html/beta/common/menu-devel-feed.php 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
@@ -1,7 +1,7 @@
<?php
require_once(dirname(__FILE__) . '/../common/code/feed.php');
$_news = new boost_feed(
- '/home/grafik/www.boost.org/gmane.comp.lib.boost.devel.rss',
+ 'gmane.comp.lib.boost.devel.rss',
'/feed/gmane.comp.lib.boost.devel.rss');
$_news->sort_by('pubdate');
?>
Modified: website/public_html/beta/common/menu-documentation-feed.php
==============================================================================
--- website/public_html/beta/common/menu-documentation-feed.php (original)
+++ website/public_html/beta/common/menu-documentation-feed.php 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
@@ -1,7 +1,7 @@
<?php
require_once(dirname(__FILE__) . '/../common/code/feed.php');
$_news = new boost_feed(
- '/home/grafik/www.boost.org/gmane.comp.lib.boost.documentation.rss',
+ 'gmane.comp.lib.boost.documentation.rss',
'/feed/gmane.comp.lib.boost.documentation.rss');
$_news->sort_by('pubdate');
?>
Modified: website/public_html/beta/common/menu-interest-feed.php
==============================================================================
--- website/public_html/beta/common/menu-interest-feed.php (original)
+++ website/public_html/beta/common/menu-interest-feed.php 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
@@ -1,7 +1,7 @@
<?php
require_once(dirname(__FILE__) . '/../common/code/feed.php');
$_news = new boost_feed(
- '/home/grafik/www.boost.org/gmane.comp.lib.boost.interest.rss',
+ 'gmane.comp.lib.boost.interest.rss',
'/feed/gmane.comp.lib.boost.interest.rss');
$_news->sort_by('pubdate');
?>
Modified: website/public_html/beta/common/menu-testing-feed.php
==============================================================================
--- website/public_html/beta/common/menu-testing-feed.php (original)
+++ website/public_html/beta/common/menu-testing-feed.php 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
@@ -1,7 +1,7 @@
<?php
require_once(dirname(__FILE__) . '/../common/code/feed.php');
$_news = new boost_feed(
- '/home/grafik/www.boost.org/gmane.comp.lib.boost.testing.rss',
+ 'gmane.comp.lib.boost.testing.rss',
'/feed/gmane.comp.lib.boost.testing.rss');
$_news->sort_by('pubdate');
?>
Modified: website/public_html/beta/common/menu-user-feed.php
==============================================================================
--- website/public_html/beta/common/menu-user-feed.php (original)
+++ website/public_html/beta/common/menu-user-feed.php 2007-05-04 19:40:25 EDT (Fri, 04 May 2007)
@@ -1,7 +1,7 @@
<?php
require_once(dirname(__FILE__) . '/../common/code/feed.php');
$_news = new boost_feed(
- '/home/grafik/www.boost.org/gmane.comp.lib.boost.user.rss',
+ 'gmane.comp.lib.boost.user.rss',
'/feed/gmane.comp.lib.boost.user.rss');
$_news->sort_by('pubdate');
?>
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