summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2009-10-02 18:17:47 +0000
committerwjames5 <will@tekimaki.com>2009-10-02 18:17:47 +0000
commit89ad696dc37cfa430821fd0b9f7605f2e8912163 (patch)
treefff3b2e61f9383a23f2f3a1c86f1839e5940a317 /index.php
parentf5bc2d243cd4a3f551a6b733fdaf85bdfba0e7a2 (diff)
downloadrss-89ad696dc37cfa430821fd0b9f7605f2e8912163.tar.gz
rss-89ad696dc37cfa430821fd0b9f7605f2e8912163.tar.bz2
rss-89ad696dc37cfa430821fd0b9f7605f2e8912163.zip
new option to use httpauth on feeds to support private content - opt in and universally handled in rss_inc
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 13d9f8b..6bb85a8 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_rss/index.php,v 1.9 2009/10/01 14:17:03 wjames5 Exp $
+ * $Header: /cvsroot/bitweaver/_bit_rss/index.php,v 1.10 2009/10/02 18:17:47 wjames5 Exp $
*
* Copyright ( c ) 2004 bitweaver.org
* Copyright ( c ) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See below for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
*
- * $Id: index.php,v 1.9 2009/10/01 14:17:03 wjames5 Exp $
+ * $Id: index.php,v 1.10 2009/10/02 18:17:47 wjames5 Exp $
* @package pigeonholes
* @subpackage functions
*/
@@ -43,7 +43,7 @@ $feedFormat = array(
$gBitSmarty->assign( "feedFormat", $feedFormat );
if( !empty( $_REQUEST['get_feed'] ) ) {
- $feedlink['url'] = constant( strtoupper( $_REQUEST['pkg'] ).'_PKG_URL' ).$_REQUEST['pkg'].'_rss.php?version='.$_REQUEST['format'];
+ $feedlink['url'] = constant( strtoupper( $_REQUEST['pkg'] ).'_PKG_URL' ).$_REQUEST['pkg'].'_rss.php?version='.$_REQUEST['format'].( $gBitSystem->getConfig( 'rssfeed_httpauth' ) && $gBitUser->isRegistered()?'&httpauth=y':'');
$feedlink['title'] = $_REQUEST['pkg'].' - '.$feedFormat[$_REQUEST['format']];
$feedlink['pkg'] = $_REQUEST['pkg'];
$feedlink['format'] = $_REQUEST['format'];