Capcha Wap Script!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Capcha Wap Script!

    If any have but for wap, give pls........

    #2
    What Script Is This?

    Comment


      #3
      What Script Is This?[/b]
      that is anti spam script, it shows numbers, like web registration...

      Comment


        #4
        there is no need to use it on wap captcha is mostly only used to prevent spambots and what not registering

        anyway if you are desperate for it go to this site
        Code:
        http://www.litewebsite.com/?c=48

        Comment


          #5
          I have a script like this but it's for web, don't know if it will work on wap. will upload it just now have to take it out of the script

          Click here!!!

          Comment


            #6
            <?php /*
            example of usage:

            inside your form
            <input type="text" name="validator" id="validator" size="4" />
            [img]random.php[/img]

            and test the value of the "validator" form field like:
            if (!empty($_POST[&#39;validator&#39;]) && $_POST[&#39;validator&#39;] == $_SESSION[&#39;rand_code&#39;]) {
            process your form here
            at least destroy the session
            unset($_SESSION[&#39;rand_code&#39;]);
            */

            // save this code in your random script
            session_start();

            if (empty($_SESSION[&#39;rand_code&#39;])) {
            $str = "";
            $length = 0;
            for ($i = 0; $i < 4; $i++) {
            // this numbers refer to numbers of the ascii table (small-caps)
            $str .= chr(rand(97, 122));
            }
            $_SESSION[&#39;rand_code&#39;] = $str;
            }

            $imgX = 60;
            $imgY = 20;
            $image = imagecreatetruecolor(60, 20);

            $backgr_col = imagecolorallocate($image, 238,239,239);
            $border_col = imagecolorallocate($image, 208,208,20;
            $text_col = imagecolorallocate($image, 46,60,31);

            imagefilledrectangle($image, 0, 0, 60, 20, $backgr_col);
            imagerectangle($image, 0, 0, 59, 19, $border_col);

            $font = "VeraSe.ttf"; // it&#39;s a Bitstream font check www.gnome.org for more
            $font_size = 10;
            $angle = 0;
            $box = imagettfbbox($font_size, $angle, $font, $_SESSION[&#39;rand_code&#39;]);
            $x = (int)($imgX - $box[4]) / 2;
            $y = (int)($imgY - $box[5]) / 2;
            imagettftext($image, $font_size, $angle, $x, $y, $text_col, $font, $_SESSION[&#39;rand_code&#39;]);

            header("Content-type: image/png");
            imagepng($image);
            imagedestroy ($image);
            ?>
            http://ngeo.ro

            Comment


              #7
              cummon wap usuability is bad enough without captchas in there to make it even worse.

              Comment

              Working...
              X