diff options
| author | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-30 01:10:46 +0000 |
|---|---|---|
| committer | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-30 01:10:46 +0000 |
| commit | 75f897b0257d44dc1cb37f09844ebc1824c37752 (patch) | |
| tree | 1b8398e36508b75a438b5b357fe23d95fb261964 /read.php | |
| download | articles-75f897b0257d44dc1cb37f09844ebc1824c37752.tar.gz articles-75f897b0257d44dc1cb37f09844ebc1824c37752.tar.bz2 articles-75f897b0257d44dc1cb37f09844ebc1824c37752.zip | |
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 'read.php')
| -rw-r--r-- | read.php | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/read.php b/read.php new file mode 100644 index 0000000..fe5d73e --- /dev/null +++ b/read.php @@ -0,0 +1,56 @@ +<?php +// $Header: /cvsroot/bitweaver/_bit_articles/read.php,v 1.1 2005/06/30 01:10:46 bitweaver Exp $ +// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. +// All Rights Reserved. See copyright.txt for details and a complete list of authors. +// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. +// Initialization +require_once( '../bit_setup_inc.php' ); + +require_once( ARTICLES_PKG_PATH.'BitArticle.php' ); + +$gBitSystem->isPackageActive( 'articles' ); +if ( !$gBitUser->hasPermission( 'bit_p_read_article' )) { + $smarty->assign( 'msg', tra( "Permission denied you cannot view this section" ) ); + $gBitSystem->display( "error.tpl" ); + die; +} elseif ( !isset( $_REQUEST["article_id"] ) ) { + $smarty->assign( 'msg', tra( "No article indicated" ) ); + $gBitSystem->display( "error.tpl" ); + die; +} + +include_once( ARTICLES_PKG_PATH.'lookup_article_inc.php' ); + +$gContent->addHit(); +$smarty->assign_by_ref('article', $gContent->mInfo); +$gContent->mInfo['parsed_data'] = $gContent->parseData(); + +$topics = BitArticleTopic::listTopics(); +$smarty->assign_by_ref( 'topics', $topics ); + +$section = 'cms'; + +if ( $gBitSystem->isFeatureActive('feature_article_comments') ) { + $maxComments = $gBitSystem->getPreference( 'article_comments_per_page' ); + $comments_return_url = $_SERVER['PHP_SELF']."?article_id=".$gContent->mArticleId; + $commentsParentId = $gContent->mInfo['content_id']; + include_once ( LIBERTY_PKG_PATH . 'comments_inc.php' ); +} + + +if ( $feature_theme_control == 'y' ) { + $cat_type = 'article'; + $cat_objid = $_REQUEST["article_id"]; + include( THEMES_PKG_PATH . 'tc_inc.php' ); +} + +if ( isset( $_REQUEST['mode'] ) && $_REQUEST['mode'] == 'mobile' ) { + include_once( HAWHAW_PKG_PATH . 'hawtiki_lib.php' ); + HAWBIT_read_article( $article_data, $pages ); +} + + +// Display the Index Template +$gBitSystem->display( 'bitpackage:articles/read_article.tpl' ); + +?> |
