home *** CD-ROM | disk | FTP | other *** search
/ grafika-wolowiec.cba.pl / grafika-wolowiec.cba.pl.tar / grafika-wolowiec.cba.pl / captcha / imcaptcha.php next >
PHP Script  |  2014-01-24  |  392b  |  17 lines

  1. <?php
  2.   include("imkeys.php");
  3.   include("../res/x5engine.php");
  4.   
  5.   //Header("Content-Type: text/html; charset=UTF-8");
  6.  
  7.     $cpt = new imCaptcha();
  8.   //Check Captcha
  9.   if ($_GET["action"] == "check")
  10.         echo $cpt->check($_GET["code"], $_GET["ans"]);
  11.         
  12.   //Show Captcha chars
  13.   else if ($_GET["action"] == "show")
  14.         echo $cpt->show($_GET['code']);
  15.  
  16. // End of file imcaptcha.php
  17.