Source for file view_image.php
Documentation is available at view_image.php
require_once( '../kernel/setup_inc.php' );
$gBitSystem->verifyPackage( 'fisheye' );
require_once( FISHEYE_PKG_PATH. 'FisheyeGallery.php');
require_once( FISHEYE_PKG_PATH. 'FisheyeImage.php');
global $gBitSystem, $gDebug;
if( !empty( $_REQUEST['size'] ) ) {
// nuke old values if set
$_COOKIE['fisheyeviewsize'] = NULL;
if( !empty( $_REQUEST['refresh'] ) ) {
$gBitSmarty->assign( 'refresh', '?refresh='. time() );
include_once( FISHEYE_PKG_PATH. 'image_lookup_inc.php' );
if( $gContent && $gContent->isValid() ) {
$gHideModules = $gBitSystem->isFeatureActive( 'fisheye_image_hide_modules' );
$commentsParentId = $gContent->mContentId;
$comments_vars = Array('fisheyeimage');
$comments_prefix_var= 'fisheyeimage:';
$comments_object_var= 'fisheyeimage';
$comments_return_url = $_SERVER['SCRIPT_NAME']. "?image_id=". $gContent->mImageId;
include_once( LIBERTY_PKG_PATH. 'comments_inc.php' );
// this will let LibertyMime know that we want to display the original image
if( $gContent->hasUpdatePermission() || $gGallery && $gGallery->getPreference( 'link_original_images' )) {
$gContent->mInfo['image_file']['original'] = TRUE;
require_once( FISHEYE_PKG_PATH. 'display_fisheye_image_inc.php' );
|