isPackageActive('contact', TRUE); if( !empty( $_REQUEST['content_id'] ) ) { $gContact = new Contact( null, $_REQUEST['content_id'] ); $gContact->load(); $gContact->loadXrefList(); } else { $gContact = new Contact(); } // Comments engine! if( $gBitSystem->isFeatureActive( 'feature_contact_comments' ) ) { $comments_vars = Array('page'); $comments_prefix_var='contact note:'; $comments_object_var='page'; $commentsParentId = $gContent->mContentId; $comments_return_url = CONTACT_PKG_URL.'index.php?content_id='.$gContact->mContentId; include_once( LIBERTY_PKG_PATH.'comments_inc.php' ); } $gBitSmarty->assign_by_ref( 'contactInfo', $gContact->mInfo ); if ( $gContact->mContactId ) { $gBitSystem->setBrowserTitle("Contact List Item"); $gBitSystem->display( 'bitpackage:contact/show_contact.tpl', NULL, array( 'display_mode' => 'display' )); } else { header ("location: ".CONTACT_PKG_URL."list.php"); die; } ?>