<?php 
/**
 * CoppermineFetch :: cfshow.php
 * 
 * This is a support library to help grab an image from a coppermine database and display them on normal 
 * HTML page by coming back as an image.  It also contains the object used by any extentions of cfimageget
 * 
 * Usage:  Call this file and it will display large photos for you
 *
 * pic=/path/to/file/to/show
* RELEASE VERSION 2.0.0
* 
 * @version $version$
 */



$imgfile = $_GET['pic'];

?>

<html>
<head>
<title>Photo</title>
</head>
<!-- RELEASE VERSION:  2.0.0 -->
<body bgcolor="#E5E2D7" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" onLoad="FitPic();">

<table border="0" cellpadding="5" cellspacing="0" align="center" valign="middle">
<tr>
<td align="center" valign="middle">
<img src="<?php print $imgfile; ?>" border="0">
</td>
</tr>
</table>

<script language="JavaScript">

var arrTemp=self.location.href.split("?");
var picUrl = (arrTemp.length>0)?arrTemp[1]:"";
var NS = (navigator.appName=="Netscape")?true:false;

  function FitPic() {
    iWidth = (NS)?window.innerWidth:document.body.clientWidth;
    iHeight = (NS)?window.innerHeight:document.body.clientHeight;
    iWidth = document.images[0].width - iWidth;
    iHeight = document.images[0].height - iHeight;
    window.resizeBy(iWidth+50, iHeight+50);
    self.focus();
  }

</script>

</body>
</html>






 
			




















