summaryrefslogtreecommitdiff
path: root/view_image_details.php
blob: b7e2dce892fe0f45d94a9d61b2087a7a548f844e (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
<?php
/**
 * @version $Header: /cvsroot/bitweaver/_bit_fisheye/view_image_details.php,v 1.1 2010/11/11 22:58:23 spiderr Exp $
 * @package fisheye
 * @subpackage functions
 */

/**
 * required setup
 */
require_once '../kernel/includes/setup_inc.php';

$gBitSystem->verifyPackage( 'fisheye' );

global $gBitSystem, $gDebug;

include_once FISHEYE_PKG_INCLUDE_PATH.'image_lookup_inc.php';

$gContent->invokeServices( 'content_display_function', $displayHash );
$gContent->addHit();

if( is_object( $gGallery ) && $gGallery->isCommentable() ) {
	$commentsParentId = $gContent->mContentId;
	$comments_vars = [ 'fisheyeimage' ];
	$comments_prefix_var='fisheyeimage:';
	$comments_object_var='fisheyeimage';
	$comments_return_url = FISHEYE_PKG_URL."view_image.php?image_id=".$gContent->mContentId;
	include_once LIBERTY_PKG_INCLUDE_PATH.'comments_inc.php';
}

$gBitSmarty->display( 'bitpackage:fisheye/view_image_details.tpl' );