diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-06-23 18:27:41 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-06-23 18:27:41 +0000 |
| commit | ec1d132ef5aac2c8416dbf0465651f4e629a59c2 (patch) | |
| tree | 1c1fdfab4ae2910a0d93c38c77ce0a454b5c0f91 /read.php | |
| parent | eee1e9674a9e9e72229c293cef283788bb7788eb (diff) | |
| download | articles-ec1d132ef5aac2c8416dbf0465651f4e629a59c2.tar.gz articles-ec1d132ef5aac2c8416dbf0465651f4e629a59c2.tar.bz2 articles-ec1d132ef5aac2c8416dbf0465651f4e629a59c2.zip | |
fix article image display for front page - still need to deal with automagic attachment display in the content
Diffstat (limited to 'read.php')
| -rw-r--r-- | read.php | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_articles/read.php,v 1.19 2007/06/13 16:26:23 wjames5 Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_articles/read.php,v 1.20 2007/06/23 18:27:41 squareing Exp $ * @package article * @subpackage functions */ @@ -13,15 +13,10 @@ require_once( '../bit_setup_inc.php' ); require_once( ARTICLES_PKG_PATH.'BitArticle.php' ); $gBitSystem->verifyPackage( 'articles' ); +$gBitSystem->verifyPermission( 'p_articles_read' ); -if( !$gBitUser->hasPermission( 'p_articles_read' ) ) { - $gBitSmarty->assign( 'msg', tra( "Permission denied you cannot view this section" ) ); - $gBitSystem->display( "error.tpl" ); - die; -} elseif( !isset( $_REQUEST["article_id"] ) ) { - $gBitSmarty->assign( 'msg', tra( "No article indicated" ) ); - $gBitSystem->display( "error.tpl" ); - die; +if( !@BitBase::verifyId( $_REQUEST["article_id"] )) { + $gBitSystem->fatalError( tra( "No article indicated" )); } include_once( ARTICLES_PKG_PATH.'lookup_article_inc.php' ); |
