diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-08-06 14:17:37 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-08-06 14:17:37 +0000 |
commit | e9f261e51adcaa80429fe14b04ee277ab3124ce9 (patch) | |
tree | 6637cbf6a3917d29adcdffb4d1e8ab562050fd61 /mod/captcha/captcha.php | |
parent | 44c6025cc9a1536a772bf74af8cc9c07b0efc8b6 (diff) | |
download | elgg-e9f261e51adcaa80429fe14b04ee277ab3124ce9.tar.gz elgg-e9f261e51adcaa80429fe14b04ee277ab3124ce9.tar.bz2 |
removed all main plugins from core - they now live in the plugins svn
git-svn-id: https://code.elgg.org/elgg/trunk@3422 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/captcha/captcha.php')
-rw-r--r-- | mod/captcha/captcha.php | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/mod/captcha/captcha.php b/mod/captcha/captcha.php deleted file mode 100644 index 5693b89ac..000000000 --- a/mod/captcha/captcha.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php - /** - * Elgg captcha plugin graphics file generator - * - * @package ElggCaptcha - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Curverider Ltd - * @copyright Curverider Ltd 2008-2009 - * @link http://elgg.com/ - */ - - global $CONFIG; - $token = get_input('captcha_token'); - - // Output captcha - if ($token) - { - // Set correct header - header("Content-type: image/jpeg"); - - // Generate captcha - $captcha = captcha_generate_captcha($token); - - // Pick a random background image - $n = rand(1, $CONFIG->captcha_num_bg); - $image = imagecreatefromjpeg($CONFIG->pluginspath . "captcha/backgrounds/bg$n.jpg"); - - // Create a colour (black so its not a simple matter of masking out one colour and ocring the rest) - $colour = imagecolorallocate($image, 0,0,0); - - // Write captcha to image - //imagestring($image, 5, 30, 4, $captcha, $black); - imagettftext($image, 30, 0, 10, 30, $colour, $CONFIG->pluginspath . "captcha/fonts/1.ttf", $captcha); - - // Output image - imagejpeg($image); - - // Free memory - imagedestroy($image); - } -?>
\ No newline at end of file |