diff options
| author | Sylvie Greverend <sylvieg@users.sourceforge.net> | 2006-06-16 22:35:14 +0000 |
|---|---|---|
| committer | Sylvie Greverend <sylvieg@users.sourceforge.net> | 2006-06-16 22:35:14 +0000 |
| commit | c591c260df2ba0af9c7d8813c9c4d23f2eff9ef0 (patch) | |
| tree | 4cc24905901c9410777bbd24da1ce7c47191689c /comments_inc.php | |
| parent | 84e048365ba14cb111b340cc6829aa7ad304842a (diff) | |
| download | liberty-c591c260df2ba0af9c7d8813c9c4d23f2eff9ef0.tar.gz liberty-c591c260df2ba0af9c7d8813c9c4d23f2eff9ef0.tar.bz2 liberty-c591c260df2ba0af9c7d8813c9c4d23f2eff9ef0.zip | |
try to generate the login panel if possible ... post_comment_request means now display the comment zone but if y I want to post and if 1 I want to see
Diffstat (limited to 'comments_inc.php')
| -rw-r--r-- | comments_inc.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/comments_inc.php b/comments_inc.php index fae8a37..1497808 100644 --- a/comments_inc.php +++ b/comments_inc.php @@ -3,12 +3,12 @@ * comment_inc * * @author spider <spider@steelsun.com> - * @version $Revision: 1.14 $ + * @version $Revision: 1.15 $ * @package liberty * @subpackage functions */ -// $Header: /cvsroot/bitweaver/_bit_liberty/comments_inc.php,v 1.14 2006/06/16 22:25:40 spiderr Exp $ +// $Header: /cvsroot/bitweaver/_bit_liberty/comments_inc.php,v 1.15 2006/06/16 22:35:14 sylvieg 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. @@ -90,6 +90,9 @@ if( empty( $_REQUEST['post_comment_request'] ) && !$gBitSystem->isFeatureActive( } elseif( $gBitUser->hasPermission( 'p_liberty_post_comments' ) ) { $post_comment_request = TRUE; } +if( !empty( $_REQUEST['post_comment_request'] ) && $_REQUEST['post_comment_request'] == 'y' && !$gBitUser->hasPermission( 'p_liberty_post_comments' ) ) { + $gBitSystem->fatalPermission( 'p_liberty_post_comments' ); +} $gBitSmarty->assign_by_ref('post_comment_request', $post_comment_request); // $post_comment_preview is a flag indicating that the user wants to preview their comment prior to saving it |
