23 lines
566 B
PHP
23 lines
566 B
PHP
<?php
|
|
|
|
require_once("db.php");
|
|
|
|
$rid = db_getVal("SELECT record_num FROM email_send_log WHERE record_num='{$_GET['id']}' AND read_email='N' LIMIT 1");
|
|
if ($rid) {
|
|
db_query("UPDATE email_send_log SET read_email='Y' WHERE record_num='{$rid}' LIMIT 1");
|
|
}
|
|
|
|
// creates image, sets width & height
|
|
$id = ImageCreate(1, 1);
|
|
|
|
// creates white, transparent image
|
|
$white = ImageColorAllocate($id, 255, 255, 255);
|
|
$trans = ImageColorTransparent($id, $white);
|
|
ImageFill($id, 0,0,$white);
|
|
|
|
Header("Content-Type: image/gif");
|
|
|
|
return (ImageGIF($id));
|
|
|
|
?>
|