added a class to captcha-image-div. captcha MUST be LTR in all languages.

This commit is contained in:
Omid Mottaghi 2006-12-27 10:39:06 +00:00
parent 0b45fc7517
commit f3ac97c9d8

View File

@ -949,7 +949,7 @@ var $filter_defaults;
$bgcolors = explode(',', $this->get_config('captcha_color', '255,0,255'));
$hexval = '#' . dechex(trim($bgcolors[0])) . dechex(trim($bgcolors[1])) . dechex(trim($bgcolors[2]));
$this->random_string($max_char, $min_char);
echo '<div style="background-color: ' . $hexval . '">';
echo '<div class="serendipity_comment_captcha_image" style="background-color: ' . $hexval . '">';
for ($i = 1; $i <= $max_char; $i++) {
printf('<img src="%s" title="%s" alt="CAPTCHA ' . $i . '" class="captcha" />',
$serendipity['baseURL'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'plugin/captcha_' . $i . '_' . md5(time()),