Forwap.Biz
Wap/Web master Forum
Programlaşdırma biliylərini paylaş
Reklam: Aztop.in - top reytinq
Reklam: Rütbə almaq haqqında
Reklam: ForWap.Biz qaydalar
Reklam: Forum Satılır
available  

chat da sekillerin ustune saytinin adin yaz

Baxış: 124
Bazar, 29 ay 1 2017[TOP]
Joy_NeoN availableznakB4R!Q4 - Üzv
Post: 289 - Like: 31
Status: COMING SOON...
images.php ya elave edin.. hec kim soruwmasin nece qurasdirildiqini.. ozumde zorla qurasdirdimm bas qosun alinacaq
  1. <?
  2. $httphost=explode('.',$img);
  3.  
  4. $img_type =trim($httphost[1]);
  5. if($img_type!="jpeg" and $img_type!="jpg" and $img_type!="gif" and $img_type!="png")
  6. $size_x_y=GetImageSize("".$img."");
  7.  
  8. $x = "$size_x_y[0]"; $y = "$size_x_y[1]";
  9.  
  10. $filename = "".$img."";
  11.  
  12. // Set a maximum height and width
  13.  
  14. $width = 300;
  15. $height = 300;
  16. // Content type
  17.  
  18. if($size_x_y[2]=="1"){header('Content-type: image/gif');}
  19. elseif($size_x_y[2]=="2"){header('Content-type: image/jpeg');}
  20. elseif($size_x_y[2]=="3"){header('Content-type: image/png');}
  21. else exit;
  22. // Get new dimensions
  23. list($width_orig, $height_orig) = getimagesize($filename);
  24. $ratio_orig = $width_orig/$height_orig;
  25. // Resample
  26. $fon = imagecreatetruecolor($x, $y);
  27. if($size_x_y[2]=="1"){header('Content-type: image/gif');}
  28. elseif($size_x_y[2]=="2"){header('Content-type: image/jpeg');}
  29. elseif($size_x_y[2]=="3"){header('Content-type: image/png');}
  30. else exit;
  31. if($size_x_y[2]=="1"){$image = imagecreatefromgif($filename);}
  32. if($size_x_y[2]=="2"){$image = imagecreatefromjpeg($filename);}
  33. if($size_x_y[2]=="3"){$image = imagecreatefrompng($filename);}
  34. $fon_x = $width_orig;
  35. $fon_y = $height_orig;
  36. $soldan_saga = $width_orig;
  37. $yuxaridan_asagi = $height_orig;
  38. $sekil_x = $width_orig;
  39. $sekil_y = $height_orig;
  40. $seklin_x_olcusu = $x;
  41. $seklin_y_olcusu = $y;
  42. imagecopyresampled($fon, $image, $fon_x*0, $fon_y*0, $sekil_x*0, $sekil_y*0, $seklin_x_olcusu, $seklin_y_olcusu, $soldan_saga, $yuxaridan_asagi);
  43. $soz = $site;
  44. $size = 5; //sozun olchusu
  45. $x_text = $x-imagefontwidth($size)*strlen($soz)-3;
  46. $y_text = $y-imagefontheight($size)-3;
  47. $white = imagecolorallocate($fon, 255, 014, 00);
  48. $black = imagecolorallocate($fon, 210, 210, 210);
  49. $gray = imagecolorallocate($fon, 127, 127, 127);
  50. if (imagecolorat($fon,$x_text,$y_text)>$gray) $color = $black;
  51. if (imagecolorat($fon,$x_text,$y_text)<$gray) $color = $white;
  52. imagestring($fon, $size, $x_text-1, $y_text-1, $soz,$white-$color);
  53. imagestring($fon, $size, $x_text+1, $y_text+1, $soz,$white-$color);
  54. imagestring($fon, $size, $x_text+1, $y_text-1, $soz,$white-$color);
  55. imagestring($fon, $size, $x_text-1, $y_text+1, $soz,$white-$color);
  56. imagestring($fon, $size, $x_text-1, $y_text, $soz,$white-$color);
  57. imagestring($fon, $size, $x_text+1, $y_text, $soz,$white-$color);
  58. imagestring($fon, $size, $x_text, $y_text-1, $soz,$white-$color);
  59. imagestring($fon, $size, $x_text, $y_text+1, $soz,$white-$color);
  60. imagestring($fon, $size, $x_text, $y_text, $soz,$color);
  61. // Output
  62. if($size_x_y[2]=="1"){
  63. imagegif($fon, null, 80);
  64. }
  65. if($size_x_y[2]=="2"){
  66. imagejpeg($fon, null, 80);
  67. }
  68. if($size_x_y[2]=="3"){
  69. imagegif($fon, null, 80);
  70. }
  71. ?>
Dey. Admin (Bazar, 29 ay 1 2017) [2]
Bazar, 29 ay 1 2017[#2]
BOT availableBOT - Admin
Post: 108 - Like: 44
Təbriklər! Yeni mövzu uğurla yaradıldı! Əgər mövzu Forumun Qaydalarına uyğun olmazsa silinəcək. Mövzudan kənara çıxmayın! Qaydalara əməl etməyənlər ban olacaq.
available  Cemi: 2

Eyni kateqoriyada mesaj:
To Top