Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $id = $_GET['id'];
- require("dmn.php");
- $link = connect_db();
- $pn = @mysql_query ("Select img from `users` where `id` = '$id';");
- $patn = @mysql_fetch_array ($pn);
- $url = $patn["img"];
- $array=explode(".", $url);
- $type=$array[1];
- $par = GetImageSize($url);
- $olcu1 = $par[0] - 280;
- $olcu2 = $par[1] - 8;
- $olcu3 = 5;
- $font = "fonts/6.ttf"; // Font dosyas? ve yolunu tan?ml?yoruz
- if(strtolower($type)=="jpg")
- {
- $im = @imagecreatefromjpeg ($url);
- $white = imagecolorallocate($im, 255, 255, 0);
- $red = imagecolorallocate($im, 255, 0, 0);
- $text = "OMURUM.BIZ";
- imagettftext($im, 30, 0, $olcu1, $olcu2, $white, $font, $text);
- header ('Content-type: image/jpeg');
- imagejpeg($im);
- imagedestroy($destroy);
- }
- if(strtolower($type)=="gif")
- {
- $im = @imagecreatefromgif ($url);
- $white = imagecolorallocate($im, 255, 255, 0);
- $red = imagecolorallocate($im, 255, 0, 0);
- $text = "OMURUM.BIZ";
- imagettftext($im, 30, 0, $olcu1, $olcu2, $white, $font, $text);
- header ('Content-type: image/gif');
- imagegif($im);
- imagedestroy($im);
- }
- if(strtolower($type)=="png")
- {
- $im = @imagecreatefrompng ($url);
- $white = imagecolorallocate($im, 255, 255, 0);
- $red = imagecolorallocate($im, 255, 0, 0);
- $text = "OMURUM.BIZ";
- imagettftext($im, 30, 0, $olcu1, $olcu2, $white, $font, $text);
- header ('Content-type: image/png');
- imagepng($im);
- imagedestroy($im);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement