|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r79637 - in website/public_html/beta: common/code doc
From: dnljms_at_[hidden]
Date: 2012-07-21 03:19:31
Author: danieljames
Date: 2012-07-21 03:19:30 EDT (Sat, 21 Jul 2012)
New Revision: 79637
URL: http://svn.boost.org/trac/boost/changeset/79637
Log:
Website: Remove unused code.
Text files modified:
website/public_html/beta/common/code/boost_feed.php | 54 ----------------------------------------
website/public_html/beta/doc/display_libs.php | 14 ----------
2 files changed, 0 insertions(+), 68 deletions(-)
Modified: website/public_html/beta/common/code/boost_feed.php
==============================================================================
--- website/public_html/beta/common/code/boost_feed.php (original)
+++ website/public_html/beta/common/code/boost_feed.php 2012-07-21 03:19:30 EDT (Sat, 21 Jul 2012)
@@ -102,59 +102,5 @@
{
uasort($this->db, sort_by_field($field));
}
-
- function echo_download_table($guid)
- {
- if(isset($this->db[$guid]['boostbook:download']) && $this->db[$guid]['boostbook:download']) {
- $link = $this->db[$guid]['boostbook:download'];
- if(preg_match('@/boost/(\d+)\.(\d+)\.(\d+)/$@', $link, $matches)) {
- $base_name = 'boost_'.$matches[1].'_'.$matches[2].'_'.$matches[3];
-
- /* Pick which files are available by examining the version number.
- This could possibly be meta-data in the rss feed instead of being
- hardcoded here. */
-
- $downloads['unix'][] = $base_name.'.tar.bz2';
- $downloads['unix'][] = $base_name.'.tar.gz';
-
- if($matches[1] == 1 && $matches[2] >= 32 && $matches[2] <= 33) {
- $downloads['windows'][] = $base_name.'.exe';
- }
- else if($matches[1] > 1 || $matches[2] > 34 || ($matches[2] == 34 && $matches[3] == 1)) {
- $downloads['windows'][] = $base_name.'.7z';
- }
- $downloads['windows'][] = $base_name.'.zip';
-
- /* Print the download table. */
-
- echo '<table class="download-table">';
- echo '<caption>Downloads</caption>';
- echo '<tr><th scope="col">Platform</th><th scope="col">File</th></tr>';
- foreach($downloads as $platform => $files) {
- echo "\n";
- echo '<tr><th scope="row"';
- if(count($files) > 1) {
- echo ' rowspan="'.count($files).'"';
- }
- echo '>'.htmlentities($platform).'</th>';
- foreach($files as $index => $file) {
- if($index > 0) echo '</tr><tr>';
- echo '<td><a href="'.htmlentities($link.$file.'/download').'">'.
- htmlentities($file).'</a></td>';
- }
- echo '</tr>';
- }
- echo '</table>';
- }
- else {
- /* If the link didn't match the normal version number pattern
- then just use the old fashioned link to sourceforge. */
-
- echo '<p><span class="news-download"><a href="'.
- htmlentities($link).
- '">Download this release.</a></span></p>';
- }
- }
- }
}
?>
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 2012-07-21 03:19:30 EDT (Sat, 21 Jul 2012)
@@ -81,21 +81,7 @@
}
$location = get_archive_location('@^[/]([^/]+)[/](.*)$@',$_SERVER["PATH_INFO"],true,false);
-$beta_site = strpos($_SERVER['HTTP_HOST'], 'beta') !== FALSE ||
- strpos($_SERVER['HTTP_HOST'], 'localhost') !== FALSE;
-$beta_docs = strpos($location['version'], 'beta') !== FALSE ||
- strpos($location['version'], 'snapshot') !== FALSE;
-
$compare_version = boost_compare_version($location['version']);
-/*
-if (!$beta_docs && $compare_version === 1) {
- file_not_found($location['file'],
- "Documentation for this version has not been uploaded yet. ".
- "Documentation is only uploaded when it's fully released, ".
- "you can see the documentation for a beta version or snapshot in the download.");
- return;
-}
- */
display_from_archive(
$location,
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