در فایل header.php پوسته ای که جواب می ده javascript هست اونو کپی کنید برای اون یکی پوسته
عذر می خوام! تا 525 حذف کنید, یعنی این تابع
/*
* Captcha Functions
*/
function faq_build_captcha($reference = NULL) {
$id = faq_build_clean_input($reference,"alpha_numeric");
//Get Random String$string = '';
$code = faq_build_random_string(5,"ABCDGHJKMNPRUVWXY346789");
$_SESSION["faq_build_captcha_$id"] = $code;
//Create Image
$width = 60;
$height = 20;
$image = imagecreate($width, $height);
imagefill($image,0,0,imagecolorallocate($image,255,255,255)); //Set Backround
//Draw 2 rectangles
imagefilledrectangle($image,rand(10,50),rand(3,17),rand(5,55),rand(5,20),imagecolorallocate($image,rand(175,255),rand(175,255),rand(175,255)));
imagefilledrectangle($image,rand(10,50),rand(3,17),rand(5,55),rand(5,20),imagecolorallocate($image,rand(175,255),rand(175,255),rand(175,255)));
//Draw an elipse
imageellipse($image,rand(10,50),rand(3,17),rand(5,55),rand(5,20),imagecolorallocate($image,rand(175,255),rand(175,255),rand(175,255)));
//Draw 2 lines to make it a little bit harder for any bots to break
imageline($image,0,3+rand(0,5),$width,3+rand(0,5),imagecolorallocate($image,rand(0,255),rand(0,255),rand(0,255)));
imageline($image,0,11+rand(0,5),$width,11+rand(0,5),imagecolorallocate($image,rand(0,255),rand(0,255),rand(0,255)));
//Add randomly generated string to the image
$start = 3;
for($i=0;$i<5;$i++) {
$start += rand(0,3);
imagestring($image,5,$start,rand(2,5),substr($code,$i,1),imagecolorallocate($image,rand(0,125),rand(0,125),rand(0,125)));
$start += 9;
}
imagerectangle($image,0,0,59,19,imagecolorallocate($image,0,0,0)); //Put Border around image
header("Content-Type: image/jpeg"); //Add JPG Header
imagejpeg($image); //Output the newly created image in jpeg format
imagedestroy($image); //Free up resources
}
/*
* Misc Functions
*/