1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
|
case "image_uid":
$userid = intval($_REQUEST['userid']);
$result = $db->query("SELECT * FROM bb".$n."_wlw WHERE userid = '".$userid."'");
$insertfile_id = @imageCreateFromPNG("locator/mark.png");
$sourcefile_id = @imageCreateFromPNG("locator/locator.png");
$sourcefile_width = @imageSX($sourcefile_id);
$sourcefile_height = @imageSY($sourcefile_id);
$insertfile_width = @imageSX($insertfile_id);
$insertfile_height = @imageSY($insertfile_id);
while($row=$db->fetch_array($result))
{
$postal_vg = substr($row['postal'], 0, $plzzm);
if($postal_vg==$postal_vg1) {
}
else
{
$postal = $row['postal'];
$postal_vg1 = substr($postal, 0, $plzzm);
@imageCopyMerge($sourcefile_id, $insertfile_id,$row['x'],$row['y'],0,0,$insertfile_width,$insertfile_height,100);
}
}
Header( "Content-type: image/PNG" );
@imagePNG($sourcefile_id);
@ImageDestroy( $sourcefile_id );
|