
PK 
<?php
include('conn.php');
require_once('print_logo.inc.php');
header("Content-type: image/jpeg");
$pic = $_GET[id];
//print_r($_REQUEST);
/*
$q="SELECT * FROM wallpaper where wallId='$_GET[id]'";
$q=mysql_query($q) or die(mysql_error());
if($r=mysql_fetch_array($q)){
$path="wallpapers/1024x768/";
$pic = $path.$r[wallThumbName].".jpg";
}
*/
$pic="".$_GET[pic];
//die($pic);
if(file_exists($pic)){
/*
note: $align
1 = top left.
2 = top right
3 = bottom right
4 = bottom left
5 = bottom center
6 = top center
*/
$printlogo = new PrintLogo();
$printlogo->createImageAndLogo($pic, "images/imglogo.png");
$printlogo->InsertLogo(4);
$printlogo->showImage();
}else{
$handle = fopen("images/noimg.jpg", "r");
while (!feof($handle)) {
$buffer .= fgets($handle, 4096);
}
echo $buffer;
}
?>


PK 99