Project

General

Profile

Feature #1506 » image.php

-- cyberline - Anonymous, 2008-01-09 13:27

 
1
<?php
2
error_reporting ( 0 );
3
require_once    ( '/var/www/pel/PelJpeg.php' );
4
$time = strtotime( 'now' );
5
$hash = md5( $time . $_SERVER['REMOTE_ADDR'] . $_SERVER['REMOTE_USER'] );
6
$file = $jpeg = new PelJpeg( '/var/www/content/' . $_SERVER["QUERY_STRING"] );
7
$exif = $jpeg->getExif();
8
$tiff = $exif->getTiff();
9
$ifd0 = $tiff->getIfd();
10
$hash = new PelEntryAscii( PelTag::IMAGE_UNIQUE_ID, $hash );
11
$ifd0->addEntry( $hash );
12

    
13
header( 'Content-Type: image/jpeg' );
14
echo $jpeg->getBytes();
15
?>
16

    
(3-3/3)