blob: b962e0bf74a08bcaa9c66319a9b9108bea9ca640 (
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
|
<?php
/**
* @version $Header: /cvsroot/bitweaver/_bit_fisheye/view_image.php,v 1.9 2007/01/22 22:07:29 squareing Exp $
* @package fisheye
* @subpackage functions
*/
/**
* required setup
*/
require_once( '../bit_setup_inc.php' );
require_once( FISHEYE_PKG_PATH.'FisheyeGallery.php');
require_once( FISHEYE_PKG_PATH.'FisheyeImage.php');
global $gBitSystem, $gDebug;
//$gDebug = TRUE;
if( !empty( $_REQUEST['size'] ) ) {
// nuke old values if set
$_COOKIE['fisheyeviewsize'] = NULL;
setcookie( 'fisheyeviewsize', $_REQUEST['size'], 0, $gBitSystem->getConfig( 'cookie_path', BIT_ROOT_URL ), $gBitSystem->getConfig( 'cookie_domain', '.'.$_SERVER['SERVER_NAME'] ) );
}
if( !empty( $_REQUEST['refresh'] ) ) {
$gBitSmarty->assign( 'refresh', '?refresh='.time() );
}
include_once( FISHEYE_PKG_PATH.'image_lookup_inc.php' );
global $gHideModules;
$gHideModules = $gBitSystem->isFeatureActive( 'fisheye_image_hide_modules' );
if( is_object( $gGallery ) && $gGallery->getPreference('allow_comments') == 'y' ) {
$commentsParentId = $gContent->mContentId;
$comments_vars = Array('fisheyeimage');
$comments_prefix_var='fisheyeimage:';
$comments_object_var='fisheyeimage';
$comments_return_url = $_SERVER['PHP_SELF']."?image_id=".$gContent->mImageId;
include_once( LIBERTY_PKG_PATH.'comments_inc.php' );
}
$gContent->addHit();
require_once( FISHEYE_PKG_PATH.'display_fisheye_image_inc.php' );
?>
|