From 07dacfd11ddfe67e034d7d2fa7260ec25708b569 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 28 Jul 2007 00:03:52 +0000 Subject: [PATCH] Add page to display irc stats. And add the IBD project stats. [SVN r7569] --- common/code/boost_config.php | 2 +- common/code/boost_irc_stats.php | 160 ++++++++++++++++++++++++++++++++ common/menu-community.html | 9 ++ community/irc_stats_ibd.php | 59 ++++++++++++ 4 files changed, 229 insertions(+), 1 deletion(-) create mode 100644 common/code/boost_irc_stats.php create mode 100644 community/irc_stats_ibd.php diff --git a/common/code/boost_config.php b/common/code/boost_config.php index 0c01c762..1e7c04d6 100644 --- a/common/code/boost_config.php +++ b/common/code/boost_config.php @@ -20,7 +20,7 @@ switch ($_SERVER['HTTP_HOST']) case 'localhost': case 'boost.borg.redshift-software.com': { - define('BOOST_CONFIG_FILE','/DevRoots/Boost-SVN/website/workplace/config.php'); + define('BOOST_CONFIG_FILE','/DevRoots/Boost/website/workplace/config.php'); define('ARCHIVE_PREFIX', '/DevRoots/Boost/boost_'); define('UNZIP', 'unzip'); } diff --git a/common/code/boost_irc_stats.php b/common/code/boost_irc_stats.php new file mode 100644 index 00000000..8bc4b46c --- /dev/null +++ b/common/code/boost_irc_stats.php @@ -0,0 +1,160 @@ +content_ = file_get_contents($uri,false,$context); + + if ($this->content_ && $this->content_ != '') + { + $this->_init_html(); + } + + $this->head_content_ .= << + +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 + ; + } + else + { + $this->head_content_ .= <<