diff options
author | citizenz7 <citizenz7@protonmail.com> | 2017-04-20 18:50:55 +0200 |
---|---|---|
committer | citizenz7 <citizenz7@protonmail.com> | 2017-04-20 18:50:55 +0200 |
commit | 5fd9fa480f302902328b81f912dd67ce378284f8 (patch) | |
tree | 66234843ae2857fda12442e4f7577c527d48977c /Html/verificationimage.php | |
parent | ebe731862c7c741171138b1083906f391fc35aff (diff) | |
download | freetorrent-5fd9fa480f302902328b81f912dd67ce378284f8.tar.xz freetorrent-5fd9fa480f302902328b81f912dd67ce378284f8.zip |
V.1.4.6
Diffstat (limited to '')
-rw-r--r-- | Html/verificationimage.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Html/verificationimage.php b/Html/verificationimage.php new file mode 100644 index 0000000..1678c89 --- /dev/null +++ b/Html/verificationimage.php @@ -0,0 +1,28 @@ +<?php + +header('Content-type: image/jpeg'); + +$width = 50; +$height = 24; + +$my_image = imagecreatetruecolor($width, $height); + +imagefill($my_image, 0, 0, 0xFFFFFF); + +for ($c = 0; $c < 40; $c++){ + $x = rand(0,$width-1); + $y = rand(0,$height-1); + imagesetpixel($my_image, $x, $y, 0x000000); + } + +$x = rand(1,10); +$y = rand(1,10); + +$rand_string = rand(1000,9999); +imagestring($my_image, 5, $x, $y, $rand_string, 0x000000); + +setcookie('tntcon',(md5($rand_string).'a4xn')); + +imagejpeg($my_image); +imagedestroy($my_image); +?> |