Scripts    Contact    Donations    Affiliate program    Affiliate login    Mods   


NEW! Mods section!

Affiliates:
Scripts:
Script downloads:
/*Create a background for the CAPTCHA image in your favorite image program, 91x23 is a good size, save it as captcha.jpg and upload the image to the scripts folder*/ /*OPEN submit.php*/ /*FIND*/ if(!$_GET[a]) { /*BELOW THAT PUT*/ session_start(); /*FIND*/ elseif($_GET[a]==\"submit\") { /*BELOW THAT PUT*/ session_start(); if($_POST[captcha]!=$_SESSION[key]){die(header(\"Location: $script_url/msgs.php?msg=invalidcaptcha\"));} /*SAVE submit.php*/ /*OPEN msgs.php*/ /*FIND*/ elseif($_GET[msg]==\"wrongimgfiletype\"){$msg=\"The image file type that you tried to upload is not allowed.<br><A HREF=\'javascript:history.go(-1)\'>Click here</A> to go back and use a different image.\";} /*BELOW THAT PUT*/ elseif($_GET[msg]==\"invalidcaptcha\"){$msg=\"The text you typed for the image is invalid. <br><A HREF=\'javascript:history.go(-1)\'>Click here</A> to go back and type it again.\";} /*SAVE msgs.php*/ /*OPEN template-submit.html*/ /*FIND*/ <tr> <td class=gallerytitlestyle align=left valign=top> Description: </td> <td align=left> %description% </td> </tr> /*BELOW THAT PUT*/ <tr> <td class=gallerytitlestyle align=left> Type the image text: </td> <td align=left> <img src=captcha.php border=0 style=\"margin-bottom: 3px;\"><br /><input name=captcha size=10> </td> </tr> /*SAVE template-submit.html*/ /*SAVE THE FOLLOWING AS captcha.php AND PLACE IN THE SCRIPTS FOLDER*/ <?php session_start(); $string=md5(time()); $string=substr($string,0,5); $_SESSION[key]=$string; $captcha=imagecreatefromjpeg(\"captcha.jpg\"); $black=imagecolorallocate($captcha,0,0,0); $line=imagecolorallocate($captcha,233,239,239); imageline($captcha,0,0,39,29,$line); imageline($captcha,40,0,64,29,$line); imagestring($captcha,5,20,10,$string,$black); header(\"Content-type: image/jpeg\"); imagejpeg($captcha); ?>