fisheye
[ class tree: fisheye ] [ index: fisheye ] [ all elements ]

Source for file view_image.php

Documentation is available at view_image.php

  1. <?php
  2. /**
  3.  * @version $Header: /cvsroot/bitweaver/_bit_fisheye/view_image.php,v 1.9 2007/01/22 22:07:29 squareing Exp $
  4.  * @package fisheye
  5.  * @subpackage functions
  6.  */
  7.  
  8. /**
  9.  * required setup
  10.  */
  11. require_once'../bit_setup_inc.php' );
  12.  
  13. require_onceFISHEYE_PKG_PATH.'FisheyeGallery.php');
  14. require_onceFISHEYE_PKG_PATH.'FisheyeImage.php');
  15.  
  16. global $gBitSystem$gDebug;
  17.  
  18. //$gDebug = TRUE;
  19.  
  20. if!empty$_REQUEST['size') ) {
  21.     // nuke old values if set
  22.     $_COOKIE['fisheyeviewsize'NULL;
  23.     setcookie'fisheyeviewsize'$_REQUEST['size']0$gBitSystem->getConfig'cookie_path'BIT_ROOT_URL )$gBitSystem->getConfig'cookie_domain''.'.$_SERVER['SERVER_NAME') );
  24. }
  25.  
  26. if!empty$_REQUEST['refresh') ) {
  27.     $gBitSmarty->assign'refresh''?refresh='.time() );
  28. }
  29.  
  30. include_onceFISHEYE_PKG_PATH.'image_lookup_inc.php' );
  31.  
  32. global $gHideModules;
  33. $gHideModules $gBitSystem->isFeatureActive'fisheye_image_hide_modules' );
  34.  
  35. ifis_object$gGallery && $gGallery->getPreference('allow_comments'== 'y' {
  36.     $commentsParentId $gContent->mContentId;
  37.     $comments_vars Array('fisheyeimage');
  38.     $comments_prefix_var='fisheyeimage:';
  39.     $comments_object_var='fisheyeimage';
  40.     $comments_return_url $_SERVER['PHP_SELF']."?image_id=".$gContent->mImageId;
  41.     include_onceLIBERTY_PKG_PATH.'comments_inc.php' );
  42. }
  43.  
  44. $gContent->addHit();
  45.  
  46. require_onceFISHEYE_PKG_PATH.'display_fisheye_image_inc.php' );
  47. ?>

Documentation generated on Thu, 15 Feb 2007 20:51:02 +0000 by phpDocumentor 1.3.0