blob: 48e6a0bdaab7c17afd46c7d6fcccb8cfe056a1d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<?php
/**
* $Header: /cvsroot/bitweaver/_bit_contact/display_contact.php,v 1.7 2010/02/08 21:27:22 wjames5 Exp $
*
* Copyright (c) 2006 bitweaver.org
* All Rights Reserved. See below for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.
*
* @package contact
* @subpackage functions
*/
/**
* required setup
*/
use Bitweaver\Fisheye\FisheyeGallery;
require_once '../kernel/includes/setup_inc.php';
$gBitSystem->verifyPackage( 'contact' );
$gBitSystem->verifyPermission( 'p_contact_view' );
include_once CONTACT_PKG_INCLUDE_PATH . 'lookup_contact_inc.php';
global $gBitSystem, $fisheyeErrors, $fisheyeWarnings, $fisheyeSuccess;
$lookup = [];
$lookup['max_records'] = 4;
$gGallery = new FisheyeGallery( $gContent->mInfo['client_gallery'] );
$gGallery->load();
$gGallery->loadImages( $lookup );
$gBitSmarty->assign( 'gGallery', $gGallery );
$gBitSmarty->assign( 'galleryId', $gGallery->mGalleryId );
$gBitSmarty->assign( 'galLayout', 'fixed_grid' );
if (!$gContent->isValid()) {
header( "location: " . CONTACT_PKG_URL . "list.php" );
die;
}
if ($gContent->isCommentable()) {
$commentsParentId = $gContent->mContentId;
$comments_vars = [ 'contact' ];
$comments_prefix_var = 'contact:';
$comments_object_var = 'contact';
$comments_return_url = $_SERVER['PHP_SELF'] . "?content_id=" . $gContent->mContentId;
include_once LIBERTY_PKG_INCLUDE_PATH . 'comments_inc.php';
if (isset($_REQUEST['post_comment_submit']) and !$_REQUEST['post_comment_submit'] == 'Post' ) {
header ("location: ".CONTACT_PKG_URL."index.php?content_id=".$gContent->mContentId );
die;
}
}
$gContent->mInfo['type'] = $gContent->getXrefGroupList();
$gBitSystem->setBrowserTitle( $gContent->mInfo['title'] );
$gBitSystem->display( 'bitpackage:contact/show_contact.tpl');
|