summaryrefslogtreecommitdiff
path: root/comments_inc.php
diff options
context:
space:
mode:
authorHash9 <hash9@users.sourceforge.net>2006-07-22 15:08:34 +0000
committerHash9 <hash9@users.sourceforge.net>2006-07-22 15:08:34 +0000
commit27eef6deec6d7e4d63010f5de56dbf2414654166 (patch)
tree3a83902654035a03018b298092266a39ce3639ff /comments_inc.php
parent82fef2f2e198a3ecaac37abaca1ac44946064d24 (diff)
downloadliberty-27eef6deec6d7e4d63010f5de56dbf2414654166.tar.gz
liberty-27eef6deec6d7e4d63010f5de56dbf2414654166.tar.bz2
liberty-27eef6deec6d7e4d63010f5de56dbf2414654166.zip
add signitures that can be written in any format and stored in a comment which can have any content type
Diffstat (limited to 'comments_inc.php')
-rw-r--r--comments_inc.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/comments_inc.php b/comments_inc.php
index e2053bb..c57887b 100644
--- a/comments_inc.php
+++ b/comments_inc.php
@@ -3,12 +3,12 @@
* comment_inc
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.20 $
+ * @version $Revision: 1.21 $
* @package liberty
* @subpackage functions
*/
-// $Header: /cvsroot/bitweaver/_bit_liberty/comments_inc.php,v 1.20 2006/07/21 23:50:37 hash9 Exp $
+// $Header: /cvsroot/bitweaver/_bit_liberty/comments_inc.php,v 1.21 2006/07/22 15:08:34 hash9 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.
@@ -82,6 +82,13 @@ if (!empty($_REQUEST['post_comment_submit']) && $gBitUser->hasPermission( 'p_lib
$storeRow = array();
$storeRow['title'] = $_REQUEST['comment_title'];
$storeRow['edit'] = $_REQUEST['comment_data'];
+ if (empty($_REQUEST['post_comment_id'])&&$gBitSystem->isPackageActive('bitboards')) {
+ $content_type = $gBitUser->getPreference('signiture_content_type');
+ $content_data = $gBitUser->getPreference('signiture_content_data');
+ if (!empty($content_type) && !empty($content_data)) {
+ $storeRow['edit'] .= "\n{renderer format_guid=$content_type class=mb-signature}$content_data{/renderer}";
+ }
+ }
$storeRow['root_id'] = $commentsParentId;
$storeRow['parent_id'] = (@BitBase::verifyId($storeComment->mInfo['parent_id']) ? $storeComment->mInfo['parent_id'] : (!@BitBase::verifyId($_REQUEST['post_comment_reply_id']) ? $commentsParentId : $_REQUEST['post_comment_reply_id']));
$storeRow['content_id'] = (@BitBase::verifyId($storeComment->mContentId) ? $storeComment->mContentId : NULL);