summaryrefslogtreecommitdiff
path: root/read.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-06-23 18:27:41 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-06-23 18:27:41 +0000
commitec1d132ef5aac2c8416dbf0465651f4e629a59c2 (patch)
tree1c1fdfab4ae2910a0d93c38c77ce0a454b5c0f91 /read.php
parenteee1e9674a9e9e72229c293cef283788bb7788eb (diff)
downloadarticles-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.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/read.php b/read.php
index 8c0fa84..614e9a8 100644
--- a/read.php
+++ b/read.php
@@ -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' );