D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
realadss
/
.trash
/
public_html
/
partymaker.in
/
Filename :
captcha.php
back
Copy
<?php //$code=rand(100000,999999); //setcookie('captcha_code', $code, time() + (86400 * 1)); $heigh_cap = 40; $heigh_cap_top = 10; if(isset($_REQUEST['captch_code']) && $_REQUEST['captch_code'] !='') { if(isset($_REQUEST['captch_code_front']) && $_REQUEST['captch_code_front'] !='') { $heigh_cap = 34; $heigh_cap_top = 10; } $code = $_REQUEST['captch_code']; $im = imagecreatetruecolor(120, $heigh_cap); $bg = imagecolorallocate($im, 235,106,142); //background color blue $fg = imagecolorallocate($im, 255, 255, 255); //text color white imagefill($im, 0, 0, $bg); imagestring($im, 15, 40, $heigh_cap_top, $code, $fg); header("Cache-Control: no-cache, must-revalidate"); header('Content-type: image/png'); imagepng($im); imagedestroy($im); } ?>