Code: Select all
<?php
require_once ('config/phpwcms/conf.inc.php');
if(!empty($_GET["show"])) {
$img = base64_decode($_GET["show"]);
list($img, $width_height) = explode('?', $img);
$img = $phpwcms["content_path"]."/images/".$img;
//$imginfo = getimagesize($img);
} else {
$width_height = '';
$img = "img/leer.gif";
}
?>
<html>
<head>
<title>preview image</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo ($phpwcms["charset"]) ? $phpwcms["charset"] : "iso-8859-1" ?>">
<script language="JavaScript" type="text/javascript" src="include/inc_js/imagezoom.js"></script>
<style type="text/css">
<!--
body {
color: #000000;
background-color: #FFFFFF;
padding: 0;
margin: 0;
}
-->
</style>
</head>
<body onLoad="adjust_popup();"><table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"><tr><td background="<?php echo $img ?>" width="100%" height="100%" align="center"><a href="#" title="close this window" onClick="window.close();return false;"><img src="spacer.gif" alt="close this window" border="0" <?php echo $width_height ?>></a></td></tr></table></body>
</html>
Next time when a visitor on your website try to download the image from the pop-up window, he gets the spacer.gif not more.
I know this is only a simple protection, but helpful for the most people.
Before you make any changes, you can test it here: http://www.fellchen.de/htdocs/index.php?gallery_de
°L° Marko