From cb346ff43a63f93ff5275502638c51a4653fac7d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 15 Mar 2014 14:53:35 -0300 Subject: Squashed 'mod/captcha/' content from commit c7ac34e git-subtree-dir: mod/captcha git-subtree-split: c7ac34e65fed6e9fc08f85dc4734b29c4fd51147 --- backgrounds/bg1.jpg | Bin 0 -> 2542 bytes backgrounds/bg2.jpg | Bin 0 -> 2561 bytes backgrounds/bg3.jpg | Bin 0 -> 2494 bytes backgrounds/bg4.jpg | Bin 0 -> 2277 bytes backgrounds/bg5.jpg | Bin 0 -> 2338 bytes captcha.php | 34 +++++++++++++ fonts/1.ttf | Bin 0 -> 100392 bytes fonts/Liberation_serif_License.txt | 77 ++++++++++++++++++++++++++++ languages/ca.php | 13 +++++ languages/en.php | 13 +++++ languages/es.php | 13 +++++ manifest.xml | 19 +++++++ start.php | 101 +++++++++++++++++++++++++++++++++++++ views/default/captcha/css.php | 4 ++ views/default/input/captcha.php | 19 +++++++ 15 files changed, 293 insertions(+) create mode 100644 backgrounds/bg1.jpg create mode 100644 backgrounds/bg2.jpg create mode 100644 backgrounds/bg3.jpg create mode 100644 backgrounds/bg4.jpg create mode 100644 backgrounds/bg5.jpg create mode 100644 captcha.php create mode 100644 fonts/1.ttf create mode 100644 fonts/Liberation_serif_License.txt create mode 100644 languages/ca.php create mode 100644 languages/en.php create mode 100644 languages/es.php create mode 100644 manifest.xml create mode 100644 start.php create mode 100644 views/default/captcha/css.php create mode 100644 views/default/input/captcha.php diff --git a/backgrounds/bg1.jpg b/backgrounds/bg1.jpg new file mode 100644 index 000000000..0e16b2265 Binary files /dev/null and b/backgrounds/bg1.jpg differ diff --git a/backgrounds/bg2.jpg b/backgrounds/bg2.jpg new file mode 100644 index 000000000..3357164a6 Binary files /dev/null and b/backgrounds/bg2.jpg differ diff --git a/backgrounds/bg3.jpg b/backgrounds/bg3.jpg new file mode 100644 index 000000000..96610abf4 Binary files /dev/null and b/backgrounds/bg3.jpg differ diff --git a/backgrounds/bg4.jpg b/backgrounds/bg4.jpg new file mode 100644 index 000000000..5123ed70e Binary files /dev/null and b/backgrounds/bg4.jpg differ diff --git a/backgrounds/bg5.jpg b/backgrounds/bg5.jpg new file mode 100644 index 000000000..7ae7e6c22 Binary files /dev/null and b/backgrounds/bg5.jpg differ diff --git a/captcha.php b/captcha.php new file mode 100644 index 000000000..085641c79 --- /dev/null +++ b/captcha.php @@ -0,0 +1,34 @@ + 'Introdueix el text de la imatge', + 'captcha:captchafail' => 'Perdona, el text que has introduĂ¯t no correspon al text de la imatge.', +); + +add_translation("ca", $catalan); diff --git a/languages/en.php b/languages/en.php new file mode 100644 index 000000000..2fdb564a3 --- /dev/null +++ b/languages/en.php @@ -0,0 +1,13 @@ + 'Enter text from image', + 'captcha:captchafail' => 'Sorry, the text that you entered didn\'t match the text in the image.', +); + +add_translation("en", $english); diff --git a/languages/es.php b/languages/es.php new file mode 100644 index 000000000..34257e908 --- /dev/null +++ b/languages/es.php @@ -0,0 +1,13 @@ + 'Introduce el texto de la imagen', + 'captcha:captchafail' => 'Perdona, el texto que has introducido no corresponde con el texto de la imagen.', +); + +add_translation("es", $spanish); diff --git a/manifest.xml b/manifest.xml new file mode 100644 index 000000000..079d877db --- /dev/null +++ b/manifest.xml @@ -0,0 +1,19 @@ + + + Captcha + Core developers, Lorea developers + 1.8 + Add site-wide categories + Provides captcha support. + https://lorea.org/ + (C) Curverider 2008-2010, Lorea 2012 + GNU General Public License version 2 or higher + + elgg_release + 1.8 + + + php_extension + gd + + diff --git a/start.php b/start.php new file mode 100644 index 000000000..f451ffcc6 --- /dev/null +++ b/start.php @@ -0,0 +1,101 @@ + +
+ +
+ "captcha_token", 'value' => $token)); + echo elgg_view('output/img', array('src'=> elgg_get_site_url() . "captcha/$token", 'class' => 'captcha-input-image')); + echo elgg_view('input/text', array('name' => 'captcha_input', 'class' => 'captcha-input-text')); + ?> +
-- cgit v1.2.3