-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoverlay.php
More file actions
37 lines (25 loc) · 709 Bytes
/
Copy pathoverlay.php
File metadata and controls
37 lines (25 loc) · 709 Bytes
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
34
35
36
<?php
$f = array_keys($_POST) ;$url = $_POST['url'];
$oh=$_POST['oe'];
$gda=$_POST['__gda__'];
$s = $s.$url."&oe=".$oh."&__gda__=".$gda;
$name = $_POST['id'];
$s = substr($s,8);
if (file_exists("upload.jpg"))
{unlink("upload.jpg");}
$n = $name.'.jpg';
$s = "http://".$s;
echo $s;
$st = file_get_contents($s);
file_put_contents($n, $st);
$bg = imagecreatefromjpeg($n);
$img = imagecreatefrompng('badge.png');
header('Content-Type: image/jpeg');
imagejpeg($img);
imagepng($img);
$size=getimagesize($n);
//imagecopymerge( $bg,$img, 0, 0, 0, 0, imagesx($img), imagesy($img), 100);
imagecopy( $bg,$img, $size[0]-180, $size[1]-180, 0, 0, imagesx($img), imagesy($img));
imagejpeg($bg, $n);
echo $s;
?>