From 9dcc7647404d7c4b4c547724d1cbb538f66db6b5 Mon Sep 17 00:00:00 2001 From: kapilgarg1996 Date: Sat, 21 Feb 2015 12:22:22 +0530 Subject: [PATCH 1/3] Added a Reload option and changed the format --- PHP/purecaptcha_usage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHP/purecaptcha_usage.php b/PHP/purecaptcha_usage.php index a0f1b72..d516d16 100644 --- a/PHP/purecaptcha_usage.php +++ b/PHP/purecaptcha_usage.php @@ -21,10 +21,10 @@ function checkCaptcha($response)
-
+
\ No newline at end of file From 8d648c6ea271cca9cb570e11f2ee7bed3be7a68d Mon Sep 17 00:00:00 2001 From: kapilgarg1996 Date: Sat, 21 Feb 2015 17:37:40 +0530 Subject: [PATCH 2/3] Re-modify the format --- PHP/purecaptcha_usage.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PHP/purecaptcha_usage.php b/PHP/purecaptcha_usage.php index d516d16..df84ce9 100644 --- a/PHP/purecaptcha_usage.php +++ b/PHP/purecaptcha_usage.php @@ -21,10 +21,9 @@ function checkCaptcha($response)
- +(Reload)
-
+
\ No newline at end of file From c2006b713a519464a8efbe16344f7acf0e9096b0 Mon Sep 17 00:00:00 2001 From: kapilgarg1996 Date: Sat, 21 Feb 2015 18:26:36 +0530 Subject: [PATCH 3/3] Random Length Captcha feature --- PHP/purecaptcha.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PHP/purecaptcha.php b/PHP/purecaptcha.php index f0b2d20..e135e85 100644 --- a/PHP/purecaptcha.php +++ b/PHP/purecaptcha.php @@ -38,8 +38,9 @@ function __construct() * @param integer $length * @return string */ - protected function randomText($length=4) + protected function randomText() { + $length = mt_rand(4,6) ; $res=""; for ($i=0;$i<$length;++$i) $res.=$this->chars[mt_rand(0,strlen($this->chars)-1)];