Contact Form 7 - Version 1.5

Version Description

Download this release

Release Info

Developer takayukister
Plugin Icon 128x128 Contact Form 7
Version 1.5
Comparing to
See all releases

Code changes from version 1.4.4 to 1.5

README.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: takayukister
3
  Tags: contact form, email, ajax
4
  Requires at least: 2.2
5
- Tested up to: 2.3-beta3
6
- Stable tag: 1.4.4
7
 
8
  Just another contact form plugin. Simple but flexible.
9
 
@@ -13,35 +13,33 @@ Just another contact form plugin. Simple but flexible.
13
 
14
  * Supports multiple contact forms.
15
  * You can customize form and mail contents with simple markup.
16
- * Client side validation and AJAX submitting with jQuery Form Plugin.
17
  * Spam filtering with Akismet.
 
18
 
19
- = Localization Included =
20
 
21
- Thank you for your contribution.
 
 
 
22
 
 
 
 
 
 
 
 
23
  * Catalan, by [Jordi Sancho](http://www.qasolutions.net/blog)
24
  * French, by [Jillij](http://www.jillij.com/)
25
  * German, by [Marcel Spitau](http://blog.spitau.de)
26
  * Italian, by [Bruno](http://www.brunosalzano.com)
27
  * Japanese, by [Takayuki Miyoshi](http://ideasilo.wordpress.com) (plugin author)
28
  * Polish, by [Zbigniew Czernik](http://zibik.jogger.pl/)
 
29
  * Spanish, by [Jordi Sancho](http://www.qasolutions.net/blog)
30
 
31
- If you have translated Contact Form 7 in your language, please let me know and send me [gettext .po and .mo files](http://codex.wordpress.org/Translating_WordPress).
32
-
33
- == Installation ==
34
-
35
- 1. Upload whole `contact-form-7` folder to the `/wp-content/plugins/` directory
36
- 1. Activate the plugin through the 'Plugins' menu in WordPress
37
-
38
- == Frequently Asked Questions ==
39
-
40
- = Akismet says all messages are spam. What's wrong? =
41
-
42
- There are settings you need to do as well as checking in "Apply Akismet spam filter" checkbox.
43
- In the meantime, see this [release announcement](http://ideasilo.wordpress.com/2007/09/07/contact-form-7-14/).
44
-
45
- == Screenshots ==
46
 
47
- 1. screenshot-1.png
2
  Contributors: takayukister
3
  Tags: contact form, email, ajax
4
  Requires at least: 2.2
5
+ Tested up to: 2.3
6
+ Stable tag: 1.5
7
 
8
  Just another contact form plugin. Simple but flexible.
9
 
13
 
14
  * Supports multiple contact forms.
15
  * You can customize form and mail contents with simple markup.
16
+ * AJAX submitting with jQuery Form Plugin.
17
  * Spam filtering with Akismet.
18
+ * Bot prevention with CAPTCHA.
19
 
20
+ == Installation ==
21
 
22
+ 1. Upload whole `contact-form-7` folder to the `/wp-content/plugins/` directory
23
+ 1. Activate the plugin through the 'Plugins' menu in WordPress
24
+
25
+ == Screenshots ==
26
 
27
+ 1. screenshot-1.png
28
+
29
+ == L10N ==
30
+
31
+ Contact Form 7 has been translated into the following languages.
32
+
33
+ * Brazilian Portuguese, by [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/)
34
  * Catalan, by [Jordi Sancho](http://www.qasolutions.net/blog)
35
  * French, by [Jillij](http://www.jillij.com/)
36
  * German, by [Marcel Spitau](http://blog.spitau.de)
37
  * Italian, by [Bruno](http://www.brunosalzano.com)
38
  * Japanese, by [Takayuki Miyoshi](http://ideasilo.wordpress.com) (plugin author)
39
  * Polish, by [Zbigniew Czernik](http://zibik.jogger.pl/)
40
+ * Russian, by [Dmitry Volotovich](http://www.volnov.com)
41
  * Spanish, by [Jordi Sancho](http://www.qasolutions.net/blog)
42
 
43
+ These language files are included in the plugin.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
+ If you have translated Contact Form 7 in your language, please let me know and send me [gettext .po and .mo files](http://codex.wordpress.org/Translating_WordPress). Thank you for your contribution.
captcha/captcha.php ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* Really Simple Captcha */
3
+
4
+ /* Copyright 2007 Takayuki Miyoshi (email: takayukister at gmail.com)
5
+
6
+ This program is free software; you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation; either version 2 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program; if not, write to the Free Software
18
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ */
20
+
21
+ class tam_captcha {
22
+
23
+ function tam_captcha() {
24
+ $this->chars = 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789';
25
+ $this->char_length = 4;
26
+ $this->fonts = array(
27
+ dirname(__FILE__) . '/gentium/GenAI102.TTF',
28
+ dirname(__FILE__) . '/gentium/GenAR102.TTF',
29
+ dirname(__FILE__) . '/gentium/GenI102.TTF',
30
+ dirname(__FILE__) . '/gentium/GenR102.TTF');
31
+ $this->tmp_dir = dirname(__FILE__) . '/tmp/';
32
+ $this->img_size = array(72, 24);
33
+ $this->bg = array(255, 255, 255);
34
+ $this->fg = array(0, 0, 0);
35
+ $this->base = array(6, 18);
36
+ $this->font_size = 14;
37
+ $this->font_char_width = 15;
38
+ $this->img_type = 'png';
39
+ }
40
+
41
+ function generate_random_word() {
42
+ $word = '';
43
+ for ($i = 0; $i < $this->char_length; $i++) {
44
+ $pos = mt_rand(0, strlen($this->chars) - 1);
45
+ $char = $this->chars[$pos];
46
+ $word .= $char;
47
+ }
48
+ return $word;
49
+ }
50
+
51
+ function generate_image($prefix, $captcha) {
52
+ $filename = null;
53
+ if ($im = imagecreatetruecolor($this->img_size[0], $this->img_size[1])) {
54
+ $bg = imagecolorallocate($im, $this->bg[0], $this->bg[1], $this->bg[2]);
55
+ $fg = imagecolorallocate($im, $this->fg[0], $this->fg[1], $this->fg[2]);
56
+ imagefill($im, 0, 0, $bg);
57
+ $x = $this->base[0] + mt_rand(-2, 2);
58
+ for ($i = 0; $i < strlen($captcha); $i++) {
59
+ $font = $this->fonts[array_rand($this->fonts)];
60
+ imagettftext($im, $this->font_size, mt_rand(-2, 2), $x, $this->base[1] + mt_rand(-2, 2), $fg, $font, $captcha[$i]);
61
+ $x += $this->font_char_width;
62
+ }
63
+ switch ($this->img_type) {
64
+ case 'jpeg':
65
+ $filename = $prefix . '.jpeg';
66
+ imagejpeg($im, $this->tmp_dir . $filename);
67
+ break;
68
+ case 'gif':
69
+ $filename = $prefix . '.gif';
70
+ imagegif($im, $this->tmp_dir . $filename);
71
+ break;
72
+ case 'png':
73
+ default:
74
+ $filename = $prefix . '.png';
75
+ imagepng($im, $this->tmp_dir . $filename);
76
+ }
77
+ imagedestroy($im);
78
+ }
79
+ if ($fh = fopen($this->tmp_dir . $prefix . '.php', 'w')) {
80
+ fwrite($fh, '<?php $captcha = "' . $captcha . '"; ?>');
81
+ fclose($fh);
82
+ }
83
+ return $filename;
84
+ }
85
+
86
+ function check($prefix, $response) {
87
+ if (is_readable($this->tmp_dir . $prefix . '.php')) {
88
+ include($this->tmp_dir . $prefix . '.php');
89
+ if (0 == strcasecmp($response, $captcha))
90
+ return true;
91
+ }
92
+ return false;
93
+ }
94
+
95
+ function remove($prefix) {
96
+ $suffixes = array('.jpeg', '.gif', '.png', '.php');
97
+ foreach ($suffixes as $suffix) {
98
+ $file = $this->tmp_dir . $prefix . $suffix;
99
+ if (is_file($file))
100
+ unlink($file);
101
+ }
102
+ }
103
+ }
104
+
105
+ ?>
captcha/gentium/FONTLOG.txt ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FONTLOG
2
+ Gentium font family
3
+ ========================
4
+
5
+
6
+ This file provides detailed information on the Gentium family of fonts. This
7
+ information should be distributed along with the Gentium fonts and any
8
+ derivative works.
9
+
10
+
11
+ Basic Font Information
12
+ ----------------------
13
+
14
+ Gentium ("belonging to the nations" in Latin) is a Unicode typeface family
15
+ designed to enable the many diverse ethnic groups around the world who use
16
+ the Latin script to produce readable, high-quality publications. The design
17
+ is intended to be highly readable, reasonably compact, and visually
18
+ attractive. Gentium has won a "Certificate of Excellence in Typeface Design"
19
+ in two major international typeface design competitions: bukva:raz! (2001),
20
+ TDC2003 (2003).
21
+
22
+ Gentium provides glyphs for a wide range of Latin and Greek characters. The
23
+ additional 'extended' Latin letters are designed to naturally harmonize with
24
+ the traditional 26 ones. Diacritics are treated with careful thought and
25
+ attention to their use. Gentium also supports both ancient and modern Greek,
26
+ including a number of alternate forms. It currently supports the following
27
+ ranges of Unicode 3.0 (completely unless noted):
28
+
29
+ Range Description
30
+ U+0020-U+007F Basic Latin
31
+ U+00A0-U+00FF Latin-1 Supplement
32
+ U+0100-U+017F Latin Extended-A
33
+ U+0180-U+021F Latin Extended-B
34
+ U+0222-U+0233 Latin Extended-B (continued)
35
+ U+0250-U+02AD IPA Extensions
36
+ U+02B0-U+02FF Spacing Modifier Letters
37
+ U+0300-U+036F Combining Diacritical Marks
38
+ U+0370-U+03D5 Greek (not including archaic or Coptic)
39
+ U+1E00-U+1EFF Latin Extended Additional
40
+ U+1F00-U+1FFF Greek Extended
41
+ U+2000-U+203A General Punctuation (partial)
42
+ U+2070-U+209F Superscripts and Subscripts
43
+ U+20A0-U+20CF Currency Symbols (partial)
44
+ U+2100-U+214F Letterlike Symbols (only a couple)
45
+
46
+ Gentium Regular also includes some Cyrillic glyphs, but they are only early
47
+ drafts. A future version will include a completely revised set, including
48
+ italic, and will expand the support for Latin, Greek and Cyrillic to Unicode
49
+ 4.1.
50
+
51
+
52
+ ChangeLog
53
+ ---------
54
+ (This should list both major and minor changes, most recent first.)
55
+
56
+ 28 Nov 2005 (Victor Gaultney) Gentium version 1.02
57
+ - Changed licensing to the SIL Open Font License
58
+ - Included FontLab source files
59
+ - Fixed some duplicate PostScript glyphs names
60
+ - Fixed italic angle
61
+
62
+ 19 Sep 2003 (Victor Gaultney) Gentium version 1.01
63
+ - Maintenance release focused on changing internal font
64
+ - Information to reflect the changeover to an SIL project
65
+ - There is only one bug fix - the Greek mu PS name was changed to try and fix
66
+ a display/printing problem. There is still no manual hinting
67
+
68
+ 16 Sep 2002 (Victor Gaultney) Gentium version 1.00
69
+ - First public release
70
+ - No manual hinting is included in this version. Some has been done - with
71
+ good results - but is not yet complete enough.
72
+
73
+
74
+ Information for Contributors
75
+ ----------------------------
76
+
77
+ The main point of version 1.02 is to enable modification via the OFL and to
78
+ establish a means for people to contribute to the project. For information
79
+ on what you're allowed to change or modify, consult the OFL and OFL-FAQ. The
80
+ OFL-FAQ also gives a very general rationale regarding why you would want to
81
+ contribute to the project.
82
+
83
+ Anyone can make their own modified version of Gentium (using a different
84
+ name), but SIL International will continue to maintain and develop the
85
+ canonical version of the Gentium fonts. As the package maintainer, we warmly
86
+ welcome contributions. Here are some things to keep in mind:
87
+
88
+ Format: We are open to contributions in various formats, but if you want to
89
+ maximise the chances of us including your work, please make it available to
90
+ us (via email or a URL) as either a FontLab database (preferred) or a
91
+ PostScript Type 1 (or OT-CFF) font.
92
+
93
+ Source files: For the first time, we're including FontLab databases used in
94
+ developing the fonts. The current fonts, however, were not solely built from
95
+ this FontLab database, so a simple "Generate Font" will not give you an
96
+ identical result. These databases are provided not as canonical source but
97
+ as an aid to anyone who might find it useful to have access to the
98
+ PostScript-style curves before they were turned into TrueType ones. BTW -
99
+ although only two databases are provided, they contain all the Alt glyphs.
100
+ In the future we may be making our 'source' available in three formats:
101
+ OpenType (TrueType), OT-CFF, and FontLab.
102
+
103
+ Copyright attribution: If you submit something for inclusion in the main
104
+ Gentium fonts, we will ask you to affirm that it is your original work, and
105
+ ask you to assign the copyright of your work to SIL International. This is
106
+ to ensure that future releases can be made under improved versions of the
107
+ OFL without needing to track you down for further permission. This follows
108
+ the same principle used by the FSF. Keep in mind that we are a
109
+ not-for-profit organization committed to free/libre and open source
110
+ software, and that any contributions incorporated in the fonts will always
111
+ be available under the OFL or a similar license.
112
+
113
+ Quality: Because we want to be able to guarantee a high level of quality for
114
+ the primary Gentium fonts, we will review submissions carefully. Please
115
+ don't be discouraged if we do not include a submission for this reason, or
116
+ ask you to make specific revisions.
117
+
118
+ What types of contributions are welcomed now (some more than others):
119
+ - Old style figures
120
+ - Small caps (although we would want such done for *all* caps, not just A-Z)
121
+ - Specifications for smart Greek code (write us about this)
122
+ - Coptic
123
+ - Historic/Archaic Cyrillic
124
+ - Glyphs used for ancient Greek text study (but not alphabetic ones, like
125
+ the digamma)
126
+ - Mathematical glyphs
127
+ - OpenType code and glyphs for on-the-fly fraction creation
128
+ - Additional scripts (Armenian, etc.?), and any needed OT/Graphite/AAT code
129
+ - Other things that we may have once told you we didn't have time to do :-)
130
+
131
+ What is not needed at this point:
132
+ - Revisions to the basic letters or their spacing
133
+ - Cyrillic revisions or additions. These are already in process
134
+ - Other weights (Bold, Bold italic). We already have some work done on this
135
+ - Alphabetic Ancient Greek glyphs (digamma, etc.). These are done and are
136
+ waiting for the next release
137
+ - Unicode 4.1 additions for Latin. We have these already in the pipeline
138
+ - General Latin/Cyrillic OpenType/Graphite/AAT code - we already have this
139
+ (see our Doulos SIL project)
140
+ - Kerning - there is some in place
141
+ - Hinting - although if you could offer to do some hinting, let us know :-)
142
+
143
+ So why didn't we include some of this in this release? The only change for
144
+ 1.02 is the new licensing model. We thought that it was important to get a
145
+ revised font out before we had completed the next big revision. We also
146
+ didn't want to hold up release until we had everything neat and tidy :-)
147
+
148
+ When submissions will be included: We hope to have a revised version of the
149
+ Regular and Italic fonts (including full Cyrillic) completed by mid-2006. To
150
+ do this we will need submissions early in the year. Other weights will
151
+ follow after that.
152
+
153
+ WARNINGS: The details of the source files and build procedures will be
154
+ changing radically before the next release, so do not spend too much time
155
+ working on systems that depend on the current FontLab database information.
156
+ Also - the Cyrillic glyphs in the regular font are very early prototypes and
157
+ will be changing completely. So don't bother to modify them!
158
+
159
+
160
+ Acknowledgements
161
+ ----------------
162
+ (Here is where contributors can be acknowledged. If you make modifications
163
+ be sure to add your name (N), email (E), web-address (W) and description
164
+ (D). This list is sorted by last name in alphabetical order.)
165
+
166
+ N: Victor Gaultney
167
+ E: victor_gaultney@sil.org
168
+ W: http://www.sil.org/~gaultney/
169
+ D: Original Designer of Latin, Greek and Cyrillic glyphs
170
+
171
+ The Gentium project is maintained by SIL International.
172
+
173
+ For more information please visit the Gentium page on SIL International's
174
+ Computers and Writing systems website:
175
+ http://scripts.sil.org/gentium
176
+
177
+ Or send an email to <gentium AT sil DOT org>
captcha/gentium/GENTIUM-FAQ.txt ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GENTIUM-FAQ
2
+ Gentium Release 1.02
3
+ 28 November 2005
4
+ ========================
5
+
6
+ Here are some answers to frequently asked questions about the Gentium fonts:
7
+
8
+
9
+ General
10
+ ========
11
+
12
+ How do you pronounce Gentium?
13
+
14
+ The preferred pronunciation is with a soft G as in 'general', not a
15
+ hard one as in 'gold': JEN-tee-oom.
16
+
17
+ What is GentiumAlt?
18
+
19
+ It is a version of the font with redesigned diacritics (flatter
20
+ ones) to make it more suitable for use with stacking diacritics, and
21
+ for languages such as Vietnamese. The Greek glyphs also use the
22
+ Porsonic (single-curve) design for the circumflex. Since Gentium
23
+ does not currently include any 'smart' rendering routines, there is
24
+ no easy way to access these alternate diacritic shapes from within
25
+ the regular Gentium font. The encoding of the fonts are the same, so
26
+ the same text can be viewed with either one. There is also no
27
+ problem with having both font families installed at the same time.
28
+
29
+
30
+ Licensing
31
+ =========
32
+
33
+ I want to use Gentium in my publication - can I?
34
+
35
+ Gentium is released under the SIL Open Font License, which permits use
36
+ for any publication, whether electronic or printed. For more answers
37
+ to use questions see the OFL-FAQ. The license, alongside information
38
+ specific to Gentium, is in the release package.
39
+
40
+ I would like to bundle Gentium with my application - can I?
41
+
42
+ This is our most common question. The SIL Open Font License allows
43
+ bundling with applications, even commercial ones, with some restrictions.
44
+ See the OFL file.
45
+
46
+ Can I use the font on my web site?
47
+
48
+ You can certainly create web pages that request that Gentium be used to
49
+ display them (if that font is available on the user's system). According
50
+ to the license, you are even allowed to place the font on your site for
51
+ people to download it. We would strongly recommend, however, that you
52
+ direct users to our site to download the font. This ensures that they
53
+ are always using the most recent version with bug fixes, etc. To make
54
+ this easier, we've simplified the URL for Gentium:
55
+ http://scripts.sil.org/gentium
56
+
57
+ Is Gentium going to stay free?
58
+
59
+ There is no intention to ever charge users for using Gentium. The
60
+ current version is licensed under a free/open license and future
61
+ versions will be similar.
62
+
63
+
64
+ Modification
65
+ ============
66
+
67
+ I would like to modify Gentium to add a couple of characters I need. Can I?
68
+
69
+ Yes - that is allowed as long as you abide by the conditions of the
70
+ SIL Open Font License.
71
+
72
+ So will you add glyphs upon request?
73
+
74
+ If you have a special symbol that you need (say, for a particular
75
+ transcription system), the best means of doing so will be to ensure
76
+ that the symbol makes it into the Unicode Standard. It is impossible
77
+ for us to add every glyph that every person desires, but we do place
78
+ a high priority on adding pretty much anything that falls in certain
79
+ Unicode ranges (extended Latin, Greek, Cyrillic). You can send us your
80
+ requests, but please understand that we are unlikely to add symbols
81
+ where the user base is very small, unless they have been accepted
82
+ into Unicode.
83
+
84
+ Can I send you work I've done to be incorporated into Gentium?
85
+
86
+ Yes! See the FONTLOG for information on becoming a contributor.
87
+
88
+
89
+ Technical
90
+ =========
91
+
92
+ Can you help me get Gentium working on my system?
93
+
94
+ We cannot afford to offer individual technical support. The best
95
+ resource is this website, where we hope to offer some limited help.
96
+ However, we do want to hear of any problems you encounter, so that
97
+ we can add them to the list of bugs to fix in later releases.
98
+
99
+ Our contact address is <gentium AT sil DOT org>. Please understand
100
+ that we cannot guarantee a personal response.
101
+
102
+ I can't find all the extended Latin letters in the font. How do I type them?
103
+
104
+ Gentium is Unicode-encoded, which means that the computer stores a
105
+ special, unique code for each letter in your document. Since most
106
+ keyboards do not have hundreds of keys, special software is needed
107
+ in order to type the hundreds of special characters supported by the
108
+ font.
109
+
110
+ I can't find the 'o with right hook' in the font. Where is it?
111
+
112
+ Combinations of base letters with diacritics are often called
113
+ composite, or pre-composed glyphs. Gentium has hundreds of these
114
+ (the ones that are included in Unicode). There are, however, many
115
+ common combinations that are not represented by a single composite.
116
+ It is possible to enter these into a document, but only as
117
+ individual components. So 'o with right hook' would be entered as
118
+ 'o', then 'right hook'. Although this may not look very good in some
119
+ cases, we're not able to anticipate every possible combination.
120
+ Future versions of Gentium will include 'smart font' support for
121
+ technologies such as OpenType and SIL's Graphite. This will make
122
+ diacritic positioning much better.
123
+
124
+ Some diacritics are not aligning well with base glyphs, and if I type more
125
+ than one diacritic, they run into each other. Why is that?
126
+
127
+ Gentium currently has no 'smart font' code for automatic diacritic
128
+ positioning, but will in the near future.
129
+
130
+ How do I type the Greek letters?
131
+
132
+ You need a Unicode-compatible keyboarding system, which is not
133
+ included in the distribution package.
134
+
135
+ I'm having problems making PDFs -- why won't my document distill?
136
+
137
+ Gentium is a large font, with lots of glyphs. As a result, some
138
+ printers can balk at PDFs that have the complete font embedded. The
139
+ easiest way to avoid this is to have Acrobat/Distiller subset the
140
+ font. This is generally a good idea anyway (with any font) and can
141
+ reduce the size of your files.
142
+
143
+
144
+ Future
145
+ ======
146
+
147
+ Now that SIL International has taken over Gentium, who will be the next
148
+ designer?
149
+
150
+ Victor Gaultney will remain as primary designer, but Annie Olsen, a
151
+ fellow type designer from the SIL Non-Roman Script Initiative, has
152
+ joined the project team. She is a former calligraphy teacher, and is
153
+ well suited for the task. Other members of the NRSI team will also
154
+ add their expertise in technical matters.
155
+
156
+ Do you plan to include other typographic enhancements (small caps, old style
157
+ figures, etc.)?
158
+
159
+ Those would be nice, wouldn't they. From a design point of view,
160
+ it would be great to have these refinements, and we haven't ruled
161
+ them out. But there are other needs that are much higher priority
162
+ (Bold, Cyrillic, etc.). If you think you could contribute some of
163
+ your time and effort to these enhancements, see the FONTLOG file for
164
+ information on becoming a contributor.
165
+
166
+ What about bold?
167
+
168
+ We hope to make a prototype of a Bold weight (and a few others,
169
+ including italic) available soon, but it will only cover basic Latin
170
+ glyphs at first. Once we are confident that the basic design is solid,
171
+ we will begin to design the bold versions of the other hundreds of
172
+ glyphs. Be patient, though, as Gentium has lots of glyphs!
173
+
174
+ Sans-serif?
175
+
176
+ There is a definite need for a sans-serif font that shares some of
177
+ Gentium�s strengths -- high readability, economy of space, etc. It
178
+ would also be great if that font also harmonized well with Gentium.
179
+ We don't currently have any plans for a companion face, although one
180
+ of our other projects - Andika - may be useful. Andika is a sans-serif
181
+ font designed specifically for use in literacy programs around the
182
+ world. A prototype should be available in a few months.
183
+
184
+ Will you be extending Gentium to cover other scripts, and Hebrew in
185
+ particular?
186
+
187
+ It is very unlikely that we would do this, as there are so many
188
+ pressing needs in Latin, Greek and Cyrillic scripts. But you could
189
+ contribute to the project.
190
+
191
+ When will Cyrillic be completed?
192
+
193
+ As soon as we can get it done, but it is still a few months away.
194
+
195
+ I need a couple of ancient Greek glyphs, such as the digamma. When will
196
+ those be ready?
197
+
198
+ These have already been designed and will be in the next release
199
+ (mid-2006).
200
+
201
+ Will there be a Type 1 version? What about OpenType?
202
+
203
+ The next generation of Gentium will have OpenType, Graphite and AAT
204
+ support. We do not plan to produce Type 1 versions at this time, but
205
+ please write us if this is important (and tell us why). We are, however,
206
+ considering releasing a version in OT-CFF format, but it will not go
207
+ through the same careful testing as the standard OT/Graphite/AAT version.
captcha/gentium/GenAI102.TTF ADDED
Binary file
captcha/gentium/GenAR102.TTF ADDED
Binary file
captcha/gentium/GenI102.TTF ADDED
Binary file
captcha/gentium/GenR102.TTF ADDED
Binary file
captcha/gentium/GentiumDesignSource.vfb ADDED
Binary file
captcha/gentium/GentiumIDesignSource.vfb ADDED
Binary file
captcha/gentium/OFL-FAQ.txt ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ OFL FAQ - Frequently Asked Questions about the SIL Open Font License (OFL)
2
+ Version 1.0 - 22 November 2005
3
+ (See http://scripts.sil.org/OFL for updates)
4
+
5
+
6
+ 1 ABOUT USING AND DISTRIBUTING FONTS LICENSED UNDER THE OFL
7
+
8
+ 1.1 Can I use the fonts in any publication, even embedded in the file?
9
+ Yes. You may use them like most other fonts, but unlike some fonts you may include an embedded subset of the fonts in your document. Such use does not require you to include this license or other files (listed in OFL condition 2), nor does it require any type of acknowledgement within the publication. Some mention of the font name within the publication information (such as in a colophon) is usually appreciated. If you wish to include the complete font as a separate file, you should distribute the full font package, including all existing acknowledgements, and comply with the OFL conditions. Of course, referencing or embedding an OFL font in any document does not change the license of the document itself. The resulting document is not a derivative anymore than a compiled program is a derivative of a compiler. Similarly, creating a graphic using an OFL font does not make the resulting artwork subject to the OFL.
10
+
11
+ 1.2 Can I make web pages using these fonts?
12
+ Yes! Go ahead! Using CSS (Cascading Style Sheets) is recommended.
13
+
14
+ 1.3 Can I make the fonts available to others from my web site?
15
+ Yes, as long as you meet the conditions for use (include the necessary files, don't abuse the Author(s)' names, rename Modified Versions, do not sublicense and do not sell by itself).
16
+
17
+ 1.4 Can the fonts be included with free and open source software distributions (such as GNU/Linux and BSD distributions)?
18
+ Yes! The OFL is compatible with most FLOSS (Free/Libre and Open Source Software) licenses. You can also repackage the fonts and the accompanying components in a .rpm or .deb package and include them in distro CD/DVDs and online repositories.
19
+
20
+ 1.5 I want to distribute the fonts with my program. Does this mean my program also has to be free and open source software?
21
+ No. Only the portions based on the font software are required to be released under the OFL. The intent of the license is to allow aggregation or bundling also with software under restricted licensing.
22
+
23
+ 1.6 Can I include the fonts on a CD of freeware or commercial fonts?
24
+ Yes, as long some other font or software is also on the disk, so the OFL font is not sold by itself.
25
+
26
+ 1.7 Can I sell a software package that includes these fonts?
27
+ Yes, you can do this with both the Standard Version and a Modified Version. Examples of bundling made possible by the OFL would include: word processors, design and publishing applications, training and educational software, edutainment software, etc.
28
+
29
+ 1.8 Why won't the OFL let me sell the fonts alone?
30
+ The intent is to keep people from making money by simply redistributing the fonts. The only people who ought to profit directly from the fonts should be the original authors, and those authors have kindly given up potential income to distribute their fonts under the OFL. Please honor and respect their contribution!
31
+
32
+ 1.9 I've come across a font released under the OFL. How can I easily get more information about the Standard Version? How can I know where it stands compared to the Standard Version or other Modified Versions?
33
+ Consult the copyright statement in the license for how to contact the original authors. Consult the FONTLOG for information on if and how the font differs from the Standard Version, and get in touch with the various contributors via the information in the acknowledgment section. Please consider using the Standard Versions of the fonts whenever possible.
34
+
35
+ 1.10 What do you mean in condition 4? Can you provide examples of abusive promotion / endorsement / advertisement vs. normal acknowledgement?
36
+ The intent is that the goodwill and reputation of the authors should not be used in a way that makes it sound like the original authors endorse or approve of a specific Modified Version or software bundle. For example, it would not be right to advertise a word processor by naming the authors in a listing of software features, or to promote a Modified Version on a web site by saying "designed by...". However, it would be appropriate to acknowledge the authors if your software package has a list of people who deserve thanks. We realize that this can seem to be a gray area, but the standard used to judge an acknowledgement is that if the acknowledgement benefits the authors it is allowed, but if it primarily benefits other parties, or could reflect poorly on the authors, then it is not.
37
+
38
+
39
+ 2 ABOUT MODIFYING OFL LICENSED FONTS
40
+
41
+ 2.1 Can I change the fonts? Are there any limitations to what things I can and cannot change?
42
+ You are allowed to change anything, as long as such changes do not violate the terms of the license. In other words, you could not remove the copyright statement from the font, but you could add additional information into it that covers your contribution.
43
+
44
+ 2.2 I have a font that needs a few extra glyphs - can I take them from an OFL licensed font and copy them into mine?
45
+ Yes, but if you distribute that font to others it must be under the OFL, and include the information mentioned in condition 2 of the license.
46
+
47
+ 2.3 Can I charge people for my additional work? In other words, if I add a bunch of special glyphs and/or OpenType/Graphite code, can I sell the enhanced font?
48
+ Not by itself. Derivative fonts must be released under the OFL and cannot be sold by themselves. It is permitted, however, to include them in a larger software package (such as text editors, office suites or operating systems), even if the larger package is sold. In that case, you are strongly encouraged, but not required, to also make that derived font easily and freely available outside of the larger package.
49
+
50
+ 2.4 Can I pay someone to enhance the fonts for my use and distribution?
51
+ Yes. This is a good way to fund the further development of the fonts. Keep in mind, however, that if the font is distributed to others it must be under the OFL. You won't be able to recover your investment by exclusively selling the font, but you will be making a valuable contribution to the community. Please remember how you have benefitted from the contributions of others.
52
+
53
+ 2.5 I need to make substantial revisions to the font to make it work with my program. It will be a lot of work, and a big investment, and I want to be sure that it can only be distributed with my program. Can I restrict its use?
54
+ No. If you redistribute a Modified Version of the font it must be under the OFL. You may not restrict it in any way. This is intended to ensure that all released improvements to the fonts become available to everyone. But you will likely get an edge over competitors by being the first to distribute a bundle with the enhancements. Again, please remember how you have benefitted from the contributions of others.
55
+
56
+ 2.6 Do I have to make any derivative fonts (including source code, build scripts, documentation, etc.) publicly available?
57
+ No, but please do share your improvements with others. You may find that you receive more than what you gave in return.
58
+
59
+ 2.7 Why can't I use the Reserved Font Name(s) in my derivative font names? I'd like people to know where the design came from.
60
+ The best way to acknowledge the source of the design is to thank the original authors and any other contributors in the files that are distributed with your revised font (although no acknowledgement is required). The FONTLOG is a natural place to do this. Reserved Font Name(s) ensure that the only fonts that have the original names are the unmodified Standard Versions. This eliminates potential confusion and name conflicts. When choosing a name be creative and try to avoid names that sound like the original. Keep in mind that the copyright holder can allow a specific trusted partner to use Reserved Font Name(s) through a separate written agreement.
61
+
62
+ 2.8 What do you mean by "references stored in the Font Software"? Do I have to delete every reference to the Reserved Font Name(s) from inside every file I modify?
63
+ No, not every reference. It would be fine, for example, to keep a text reference to the original fonts in your modified source code, as long as no one could be confused that your modified source is the original. But you cannot use the Reserved Font Names in any way to identify the font to the user (unless the Copyright Holder allows it through a separate agreement, see section 2.7). Users who install derivatives ("Modified Versions") on their systems should not see any of the original names ("Reserved Font Names") in their font menus, font properties dialogs, PostScript streams, documents that refer to a particular font name, etc. Again, this is to ensure that users are not confused and do not mistake a font for another and so expect features only another derivative or the Standard Version can actually offer. Ultimately, creating name conflicts will cause many problems for the users as well as for the designer of both the Standard and derivative versions, so please think ahead and find a good name for your own derivative. Font substitution systems like fontconfig, OpenOffice.org or Scribus will also get very confused if the name of the font they are configured to substitute to actually refers to another physical font on the user's hard drive. It will help everyone if Standard and derivative fonts can easily be distinguished from one another, and from other derivatives.
64
+
65
+ 2.9 What is this FONTLOG thing exactly?
66
+ It has three purposes: 1) to provide basic information on the font to users and other developers, 2) to document changes that have been made to the font or accompanying files, either by the original authors or others, and 3) to provide a place to acknowledge the authors and other contributors. Please use it! See below for details on how changes should be noted.
67
+
68
+ 2.10 Am I required to update the FONTLOG?
69
+ No, but users, designers and other developers might get very frustrated at you if you don't! People need to know how derivative fonts differ from the originals, and how to take advantage of the changes, or build on them.
70
+
71
+
72
+ 3 ABOUT THE FONTLOG
73
+
74
+ The FONTLOG can take a variety of formats, but should include these four sections:
75
+
76
+ 3.1 FONTLOG for <FontFamilyName>
77
+ This file provides detailed information on the <FontFamilyName> font software. This information should be distributed along with the <FontFamilyName> fonts and any derivative works.
78
+
79
+ 3.2 Basic Font Information
80
+ (Here is where you would describe the purpose and brief specifications for the font project, and where users can find more detailed documentation. It can also include references to how changes can be contributed back to the Standard Version. You may also wish to include a short guide to the design, or a reference to such a document.)
81
+
82
+ 3.3 ChangeLog
83
+ (This should list both major and minor changes, most recent first. Here are some examples:)
84
+
85
+ 1 Feb 2005 (Jane Doe) <NewFontFamilyName> Version 1.1
86
+ - Improved build script performance and verbosity
87
+ - Extended the smart code documentation
88
+ - Corrected minor typos in the documentation
89
+ - Fixed position of combining inverted breve below (U+032F)
90
+ - Added OpenType/Graphite smart code for Armenian
91
+ - Added Armenian glyphs (U+0531 -> U+0587)
92
+ - Released as "<NewFontFamilyName>"
93
+
94
+ 1 Jan 2005 (Joe Smith) <FontFamilyName> Version 1.0
95
+ - Initial release of font "<FontFamilyName>"
96
+
97
+ 3.4 Acknowledgements
98
+ (Here is where contributors can be acknowledged. If you make modifications be sure to add your name (N), email (E), web-address (W) and description (D). This list is sorted by last name in alphabetical order.)
99
+
100
+ N: Jane Doe
101
+ E: jane@university.edu
102
+ W: http://art.university.edu/projects/fonts
103
+ D: Contributor - Armenian glyphs and code
104
+
105
+ N: Fred Foobar
106
+ E: fred@foobar.org
107
+ W: http://foobar.org
108
+ D: Contributor - misc Graphite fixes
109
+
110
+ N: Pat Johnson
111
+ E: pat@fontstudio.org
112
+ W: http://pat.fontstudio.org
113
+ D: Designer - Greek & Cyrillic glyphs based on Roman design
114
+
115
+ N: Tom Parker
116
+ E: tom@company.com
117
+ W: http://www.company.com/tom/projects/fonts
118
+ D: Engineer - original smart font code
119
+
120
+ N: Joe Smith
121
+ E: joe@fontstudio.org
122
+ W: http://joe.fontstudio.org
123
+ D: Designer - original Roman glyphs
124
+
125
+ (Original authors can also include information here about their organization.)
126
+
127
+
128
+ 4 ABOUT MAKING CONTRIBUTIONS
129
+
130
+ 4.1 Why should I contribute my changes back to the original authors?
131
+ It would benefit many people if you contributed back to what you've received. Providing your contributions and improvements to the fonts and other components (data files, source code, build scripts, documentation, etc.) could be a tremendous help and would encourage others to contribute as well and 'give back', which means you will have an opportunity to benefit from other people's contributions as well. Sometimes maintaining your own separate version takes more effort than merging back with the original. Be aware that any contributions, however, must be either your own original creation or work that you own, and you may be asked to affirm that when you contribute.
132
+
133
+ 4.2 I've made some very nice improvements to the font, will you consider adopting them and putting them into future Standard Versions?
134
+ Most authors would be very happy to receive such contributions. Keep in mind that it is unlikely that they would want to incorporate major changes that would require additional work on their end. Any contributions would likely need to be made for all the fonts in a family and match the overall design and style. Authors are encouraged to include a guide to the design with the fonts. It would also help to have contributions submitted as patches or clearly marked changes (the use of a centralized or distributed source revision control system like subversion or arch is a good idea). Examples of useful contributions are bug fixes, additional glyphs, stylistic alternates (and the smart font code to access them).
135
+
136
+ 4.3 How can I financially support the development of OFL fonts?
137
+ It is likely that most authors of OFL fonts would accept financial contributions - contact them for instructions on how to do this. Such contributions would support future development. You can also pay for others to enhance the fonts and contribute the results back to the original authors for inclusion in the Standard Versions.
138
+
139
+
140
+ 5 ABOUT THE LICENSE
141
+
142
+ 5.1 I see that this is version 1.0 of the license. Will there be later changes?
143
+ We hope that version 1.0 will meet most needs, but are open to future improvements. Any revisions would be for future font releases, and previously existing licenses would remain in effect. No retroactive changes are possible, although the Copyright Holder can re-release the font under a revised OFL. All versions will be available on our web site: http://scripts.sil.org/OFL.
144
+
145
+ 5.2 Can I use the SIL Open Font License for my own fonts?
146
+ Yes! We heartily encourage anyone to use the OFL to distribute their own original fonts. It is a carefully constructed license that allows great freedom with some protection for the original authors and clear rules for other contributors. Some additional information is included at the end of this FAQ.
147
+
148
+ 5.3 Does this license restrict the rights of the Copyright Holder?
149
+ No. The Copyright Holder still retains all rights to their creation; they are only releasing a portion of it for use in a specific way. For example, the Copyright Holder may choose to release a 'basic' version of their font under the OFL, but sell a restricted 'enhanced' version. Only the Copyright Holder can do this.
150
+
151
+ 5.4 Is the OFL a contract or a license?
152
+ The OFL is a license and not a contract and so does not require you to sign it to have legal validity. By using, modifying and redistributing components under the OFL you indicate that you accept the license.
153
+
154
+
155
+ 6 ABOUT SIL INTERNATIONAL
156
+
157
+ 6.1 Who is SIL International and what does it do?
158
+ SIL International is a worldwide faith-based education and development organization (NGO) that studies, documents, and assists in developing the world's lesser-known languages through literacy, linguistics, translation, and other academic disciplines. SIL makes its services available to all without regard to religious belief, political ideology, gender, race, or ethnic background. SIL's members and volunteers share a Christian commitment.
159
+
160
+ 6.2 What does this have to do with font licensing?
161
+ The ability to read, write, type and publish in one's own language is one of the most critical needs for millions of people around the world. This requires fonts that are widely available and support lesser-known languages. SIL develops - and encourages others to develop - a complete stack of writing systems implementation components available under open licenses. This open stack includes input methods, smart fonts, smart rendering libraries and smart applications. There has been a need for a common open license that is specifically applicable to fonts and related software (a crucial component of this stack) so SIL developed the SIL Open Font License.
162
+
163
+ 6.3 How can I contact SIL?
164
+ Our main web site is: http://www.sil.org/
165
+ Our site about complex scripts is: http://scripts.sil.org/
166
+ Information about this license (including contact email information) is at: http://scripts.sil.org/OFL
167
+
168
+
169
+ 7 ABOUT USING THE OFL FOR YOUR ORIGINAL FONTS
170
+
171
+ If you want to release your fonts under the OFL, you only need to do the following:
172
+
173
+ 7.1 Put your copyright and reserved names information in the beginning of the main OFL file.
174
+ 7.2 Put your copyright and the OFL references in your various font files (such as in TrueType name, description and license fields) and in your other components (build scripts, glyph databases, documentation, keyboard, samples, etc).
175
+ 7.3 Write an initial FONTLOG for your font and include it in the release package.
176
+ 7.4 Include the OFL in your release package.
177
+ 7.5 We also highly recommend you include the relevant practical documentation on the license by putting the OFL-FAQ in your package.
178
+
179
+
180
+ That's all. If you have any more questions please get in touch with us.
181
+
182
+
captcha/gentium/OFL.txt ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This Font Software is Copyright (c) 2003-2005, SIL International (http://scripts.sil.org/).
2
+ All Rights Reserved.
3
+
4
+ "Gentium" is a Reserved Font Name for this Font Software.
5
+ "SIL" is a Reserved Font Name for this Font Software.
6
+
7
+ This Font Software is licensed under the SIL Open Font License, Version 1.0.
8
+ No modification of the license is permitted, only verbatim copy is allowed.
9
+ This license is copied below, and is also available with a FAQ at:
10
+ http://scripts.sil.org/OFL
11
+
12
+
13
+ -----------------------------------------------------------
14
+ SIL OPEN FONT LICENSE Version 1.0 - 22 November 2005
15
+ -----------------------------------------------------------
16
+
17
+ PREAMBLE
18
+ The goals of the Open Font License (OFL) are to stimulate worldwide
19
+ development of cooperative font projects, to support the font creation
20
+ efforts of academic and linguistic communities, and to provide an open
21
+ framework in which fonts may be shared and improved in partnership with
22
+ others.
23
+
24
+ The OFL allows the licensed fonts to be used, studied, modified and
25
+ redistributed freely as long as they are not sold by themselves. The
26
+ fonts, including any derivative works, can be bundled, embedded,
27
+ redistributed and sold with any software provided that the font
28
+ names of derivative works are changed. The fonts and derivatives,
29
+ however, cannot be released under any other type of license.
30
+
31
+ DEFINITIONS
32
+ "Font Software" refers to any and all of the following:
33
+ - font files
34
+ - data files
35
+ - source code
36
+ - build scripts
37
+ - documentation
38
+
39
+ "Reserved Font Name" refers to the Font Software name as seen by
40
+ users and any other names as specified after the copyright statement.
41
+
42
+ "Standard Version" refers to the collection of Font Software
43
+ components as distributed by the Copyright Holder.
44
+
45
+ "Modified Version" refers to any derivative font software made by
46
+ adding to, deleting, or substituting -- in part or in whole --
47
+ any of the components of the Standard Version, by changing formats
48
+ or by porting the Font Software to a new environment.
49
+
50
+ "Author" refers to any designer, engineer, programmer, technical
51
+ writer or other person who contributed to the Font Software.
52
+
53
+ PERMISSION & CONDITIONS
54
+ Permission is hereby granted, free of charge, to any person obtaining
55
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
56
+ redistribute, and sell modified and unmodified copies of the Font
57
+ Software, subject to the following conditions:
58
+
59
+ 1) Neither the Font Software nor any of its individual components,
60
+ in Standard or Modified Versions, may be sold by itself.
61
+
62
+ 2) Standard or Modified Versions of the Font Software may be bundled,
63
+ redistributed and sold with any software, provided that each copy
64
+ contains the above copyright notice and this license. These can be
65
+ included either as stand-alone text files, human-readable headers or
66
+ in the appropriate machine-readable metadata fields within text or
67
+ binary files as long as those fields can be easily viewed by the user.
68
+
69
+ 3) No Modified Version of the Font Software may use the Reserved Font
70
+ Name(s), in part or in whole, unless explicit written permission is
71
+ granted by the Copyright Holder. This restriction applies to all
72
+ references stored in the Font Software, such as the font menu name and
73
+ other font description fields, which are used to differentiate the
74
+ font from others.
75
+
76
+ 4) The name(s) of the Copyright Holder or the Author(s) of the Font
77
+ Software shall not be used to promote, endorse or advertise any
78
+ Modified Version, except to acknowledge the contribution(s) of the
79
+ Copyright Holder and the Author(s) or with their explicit written
80
+ permission.
81
+
82
+ 5) The Font Software, modified or unmodified, in part or in whole,
83
+ must be distributed using this license, and may not be distributed
84
+ under any other license.
85
+
86
+ TERMINATION
87
+ This license becomes null and void if any of the above conditions are
88
+ not met.
89
+
90
+ DISCLAIMER
91
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
92
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
93
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
94
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
95
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
96
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
97
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
98
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
99
+ OTHER DEALINGS IN THE FONT SOFTWARE.
captcha/gentium/QUOTES.txt ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ QUOTES
2
+ Gentium Release 1.02
3
+ 28 November 2005
4
+ ========================
5
+
6
+
7
+ Read some of the comments sent to us by various grateful Gentium users:
8
+
9
+
10
+ 'Purpose: to build a free multilingual font to bring better typography to
11
+ thousands of languages around the globe. I can think of no higher calling.'
12
+
13
+ '...an interesting blend of economical use of space, a serious tone of voice
14
+ and a modern informal dress code.'
15
+
16
+ 'Thank you for this fantastic font set -- fantastic both in its purpose and
17
+ in its appearance and usability!'
18
+
19
+ 'Finally I can include Greek characters in my English papers without looking
20
+ typographically schizophrenic!'
21
+
22
+ 'Thank you so much for sharing this amazing work. I do love the vision you
23
+ have for "written word empowering". This is ethical science at its best.'
24
+
25
+ 'Our language restoration project thanks you.'
26
+
27
+ 'distinctive, elegant and readable'
28
+
29
+ 'a very warm look'
30
+
31
+ 'great consistency and legibility'
32
+
33
+ 'lotion for the eyes'
34
+
35
+ 'Your typeface Gentium is a "friendly" font to me. It's easy to read and its
36
+ lines and visual connections flow gently.'
37
+
38
+ 'I needed a nice serif font with haceks and other diacriticals... and was
39
+ very happy to find your Gentium. Thank you for making this available to us
40
+ poorer academic perfectionists!'
41
+
42
+ 'Your font is definitely the most complete and good-looking I've found for
43
+ my uses in Classical Greek.'
44
+
45
+ '...the various letters in the Extended-Latin and IPA ranges look "native"
46
+ to the font.'
47
+
48
+ '...diacritic Nirvana...'
49
+
50
+ 'Thank you very much for this excellent font. It is the most readable I have
51
+ ever seen.'
52
+
53
+ 'Officina Gentium: The workshop of the world.'
54
+
55
+ 'Commercial quality for free! That's the best free font that I see.'
56
+
57
+ 'May I congratulate you on what seems to be an outstanding effort matched
58
+ only by your generosity.'
59
+
60
+ 'I will be using this font regularly and will be recommending it strongly to
61
+ others. This is a very beautiful typeface. What you have done is a most
62
+ generous gift to the world.'
63
+
64
+ 'Many thanks. I have an esthetic dislike of "Times" fonts and a scholar's
65
+ budget. Now I have Gentium and I'm pleased as punch.'
66
+
67
+ 'I appreciate your project, that of making a font suitable for many
68
+ languages, including smaller ones.'
69
+
70
+ 'I am not sure where in the world I will end up, so I need something all
71
+ inclusive. Thanks so much!'
72
+
73
+ 'Thanks for such a beautiful and mind-bogglingly useful typeface!'
74
+
75
+ ...
76
+
captcha/gentium/README.txt ADDED
@@ -0,0 +1 @@
 
0
- --------------------------
1
+ README - WINDOWS
 
captcha/tmp/index.php ADDED
File without changes
contact-form-7.js ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function() {
2
+ jQuery('div.wpcf7 > form').ajaxForm({
3
+ beforeSubmit: beforeSubmit,
4
+ url: _wpcf7.ajaxUrl,
5
+ dataType: 'json',
6
+ success: processJson
7
+ });
8
+ });
9
+
10
+ function beforeSubmit(formData, jqForm, options) {
11
+ clearResponseOutput();
12
+ jQuery('img.ajax-loader', jqForm[0]).css({ visibility: 'visible' });
13
+ return true;
14
+ }
15
+
16
+ function notValidTip(input, message) {
17
+ jQuery(input).after('<span class="wpcf7-not-valid-tip">' + message + '</span>');
18
+ jQuery('span.wpcf7-not-valid-tip').mouseover(function() {
19
+ jQuery(this).fadeOut('fast');
20
+ });
21
+ jQuery(input).mouseover(function() {
22
+ jQuery(input).siblings('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
23
+ });
24
+ jQuery(input).focus(function() {
25
+ jQuery(input).siblings('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
26
+ });
27
+ }
28
+
29
+ function processJson(data) {
30
+ var wpcf7ResponseOutput = jQuery(data.into).find('div.wpcf7-response-output');
31
+ clearResponseOutput();
32
+ if (data.invalids) {
33
+ jQuery.each(data.invalids, function(i, n) {
34
+ notValidTip(jQuery(data.into).find(n.into), n.message);
35
+ });
36
+ wpcf7ResponseOutput.addClass('wpcf7-validation-errors');
37
+ }
38
+ if (data.captcha) {
39
+ jQuery.each(data.captcha, function(i, n) {
40
+ jQuery(data.into).find(':input[@name="' + i + '"]').clearFields();
41
+ jQuery(data.into).find('img.wpcf7-captcha-' + i).attr('src', n);
42
+ var match = /([0-9]+)\.(png|gif|jpeg)$/.exec(n);
43
+ jQuery(data.into).find('input:hidden[@name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[1]);
44
+ });
45
+ }
46
+ if (1 == data.spam) {
47
+ wpcf7ResponseOutput.addClass('wpcf7-spam-blocked');
48
+ }
49
+ if (1 == data.mailSent) {
50
+ jQuery(data.into).find('form').resetForm().clearForm();
51
+ wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ok');
52
+ } else {
53
+ wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ng');
54
+ }
55
+ wpcf7ResponseOutput.append(data.message).fadeIn('fast');
56
+ }
57
+
58
+ function clearResponseOutput() {
59
+ jQuery('div.wpcf7-response-output').hide().empty().removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked');
60
+ jQuery('span.wpcf7-not-valid-tip').remove();
61
+ jQuery('img.ajax-loader').css({ visibility: 'hidden' });
62
+ }
includes/admin-panel.php CHANGED
@@ -51,6 +51,8 @@
51
  <input type="button" value="textarea" class="quick-button" onclick="wpcf7QuickPanel('textarea');" style="background-color: #bfe7e5;" />
52
  <input type="button" value="textarea*" class="quick-button" onclick="wpcf7QuickPanel('textarea*');" style="background-color: #bfe7e5;" />
53
  <input type="button" value="select" class="quick-button" onclick="wpcf7QuickPanel('select');" style="background-color: #cbd5e8;" />
 
 
54
  <input type="button" value="submit" class="quick-button" onclick="wpcf7QuickPanel('submit');" style="background-color: #e5d6c2;" />
55
  <div id="quick-panel"></div>
56
  </div>
@@ -67,16 +69,6 @@
67
  <div class="fieldset"><div class="legend"><?php _e('Options', 'wpcf7'); ?></div>
68
  <label for="wpcf7-options-recipient"><?php _e('Recipient address:', 'wpcf7'); ?></label><br />
69
  <input type="text" id="wpcf7-options-recipient" name="wpcf7-options-recipient" class="wide" size="70" value="<?php echo htmlspecialchars($cf['options']['recipient']); ?>" />
70
- <?php if (function_exists('akismet_http_post') && (get_option('wordpress_api_key') || $wpcom_api_key)) : ?>
71
- <br /><br /><?php $checked = ($cf['options']['akismet']) ? ' checked="checked"' : ''; ?>
72
- <input type="checkbox" id="wpcf7-options-akismet" name="wpcf7-options-akismet" value="1"<?php echo $checked; ?> />
73
- <label for="wpcf7-options-akismet"><?php _e('Apply Akismet spam filter', 'wpcf7'); ?></label>
74
- <?php else : ?>
75
- <br /><br />
76
- <input type="checkbox" id="wpcf7-options-akismet" name="wpcf7-options-akismet" value="1" disabled="disabled" />
77
- <label for="wpcf7-options-akismet" class="disabled"><?php _e('Apply Akismet spam filter', 'wpcf7'); ?></label>
78
- <br /><span class="notice"><?php _e('Akismet plugin is not active. You need Akismet to use this feature.', 'wpcf7'); ?></span>
79
- <?php endif; ?>
80
  </div>
81
 
82
  <p class="submit">
@@ -97,7 +89,7 @@
97
  //<![CDATA[
98
 
99
  function wpcf7ValidateType(type) {
100
- var valid_types = /^(text[*]?|email[*]?|textarea[*]?|select|submit)$/;
101
  return valid_types.test(type);
102
  }
103
 
@@ -124,6 +116,10 @@
124
  case 'select':
125
  quick_panel.style.backgroundColor = '#cbd5e8';
126
  break;
 
 
 
 
127
  case 'submit':
128
  quick_panel.style.backgroundColor = '#e5d6c2';
129
  break;
@@ -138,63 +134,76 @@
138
  case 'text*':
139
  case 'email':
140
  case 'email*':
141
- var akismet_option = '';
142
- if (document.getElementById('wpcf7-admin-form-element').elements['wpcf7-options-akismet'].checked) {
143
- akismet_option = '<th><?php _e('Akismet', 'wpcf7'); ?></th><td>'
144
- + '<input type="radio" name="qp-akismet" onchange="wpcf7CreateTag();" value="author" class="inline-opt" /> <?php _e("Check this field as sender&#39;s name", 'wpcf7'); ?><br />'
145
- + '<input type="radio" name="qp-akismet" onchange="wpcf7CreateTag();" value="author_email" class="inline-opt" /> <?php _e("Check this field as sender&#39;s email", 'wpcf7'); ?><br />'
146
- + '<input type="radio" name="qp-akismet" onchange="wpcf7CreateTag();" value="author_url" class="inline-opt" /> <?php _e("Check this field as sender&#39;s URL", 'wpcf7'); ?><br />'
147
- + '<input type="radio" name="qp-akismet" onchange="wpcf7CreateTag();" value="none" checked="checked" class="inline-opt" /> <?php _e("Don&#39;t check this field with Akismet", 'wpcf7'); ?></td>'
148
- }
149
  quick_panel.innerHTML += '<table><tbody>'
150
  + '<tr><th>name=</th><td><input type="text" name="qp-name" id="qp-name" class="required" value="edit-me" onchange="wpcf7CreateTag();" /></td></tr>'
151
- + '<tr><th>size=</th><td><input type="text" name="qp-size" onchange="wpcf7CreateTag();" /></td>'
152
- + '<th>maxlength=</th><td><input type="text" name="qp-maxlength" onchange="wpcf7CreateTag();" /></td></tr>'
153
  + '<tr><th>id=</th><td><input type="text" name="qp-id" onchange="wpcf7CreateTag();" /></td>'
154
  + '<th>class=</th><td><input type="text" name="qp-class" onchange="wpcf7CreateTag();" /></td></tr>'
155
- + '<tr><th><?php _e('Default value', 'wpcf7'); ?></th><td><input type="text" name="qp-default" onchange="wpcf7CreateTag();" /></td>'
 
 
156
  + akismet_option
157
  + '</tr>'
158
  + '</tbody></table>';
159
  break;
160
  case 'textarea':
161
  case 'textarea*':
162
- var akismet_option = '';
163
- if (document.getElementById('wpcf7-admin-form-element').elements['wpcf7-options-akismet'].checked) {
164
- akismet_option = '<th><?php _e('Akismet', 'wpcf7'); ?></th><td>'
165
- + '<input type="radio" name="qp-akismet" onchange="wpcf7CreateTag();" value="content" class="inline-opt" /> <?php _e("Check this field as content", 'wpcf7'); ?><br />'
166
- + '<input type="radio" name="qp-akismet" onchange="wpcf7CreateTag();" value="none" checked="checked" class="inline-opt" /> <?php _e("Don&#39;t check this field with Akismet", 'wpcf7'); ?></td>'
167
- }
168
  quick_panel.innerHTML += '<table><tbody>'
169
  + '<tr><th>name=</th><td><input type="text" name="qp-name" id="qp-name" class="required" value="edit-me" onchange="wpcf7CreateTag();" /></td></tr>'
 
 
170
  + '<tr><th>cols=</th><td><input type="text" name="qp-cols" onchange="wpcf7CreateTag();" /></td>'
171
  + '<th>rows=</th><td><input type="text" name="qp-rows" onchange="wpcf7CreateTag();" /></td></tr>'
 
 
 
 
 
 
172
  + '<tr><th>id=</th><td><input type="text" name="qp-id" onchange="wpcf7CreateTag();" /></td>'
173
  + '<th>class=</th><td><input type="text" name="qp-class" onchange="wpcf7CreateTag();" /></td></tr>'
174
- + '<tr><th><?php _e('Default value', 'wpcf7'); ?></th><td><input type="text" name="qp-default" onchange="wpcf7CreateTag();" /></td>'
175
- + akismet_option
176
- + '</tr>'
177
  + '</tbody></table>';
178
  break;
179
- case 'select':
180
  quick_panel.innerHTML += '<table><tbody>'
181
  + '<tr><th>name=</th><td><input type="text" name="qp-name" id="qp-name" class="required" value="edit-me" onchange="wpcf7CreateTag();" /></td></tr>'
182
  + '<tr><th>id=</th><td><input type="text" name="qp-id" onchange="wpcf7CreateTag();" /></td>'
183
  + '<th>class=</th><td><input type="text" name="qp-class" onchange="wpcf7CreateTag();" /></td></tr>'
184
- + '<tr><th><?php _e('Choices', 'wpcf7'); ?></th><td><textarea name="qp-default" onchange="wpcf7CreateTag();" rows="6"></textarea><br />'
185
- + '<span style="font-size: smaller;"><?php _e('* One choice per line.', 'wpcf7'); ?></span></td></tr>'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  + '</tbody></table>';
187
  break;
188
  case 'submit':
189
  quick_panel.innerHTML += '<table><tbody>'
190
- + '<tr><th><?php _e('Label', 'wpcf7'); ?></th><td><input type="text" name="qp-label" onchange="wpcf7CreateTag();" /></td></tr>'
191
  + '</tbody></table>';
192
  break;
193
  }
194
 
195
  quick_panel.innerHTML += '<div style="margin: 10px 0 0; text-align: center;">'
196
  + '<input type="text" name="qp-insert" style="width: 80%; border: none; font-family: monospace;" tabindex="32767" /> '
197
- + '<input type="button" value="<?php _e('Insert', 'wpcf7'); ?>" class="qp-button" onclick="wpcf7InsertTag(this.form.elements[\'qp-insert\'].value);" style="width: auto;" />'
198
  + '</div>';
199
  quick_panel.style.display = 'block';
200
  wpcf7CreateTag();
@@ -237,6 +246,7 @@
237
  case 'text*':
238
  case 'email':
239
  case 'email*':
 
240
  var size = form.elements['qp-size'];
241
  if (size)
242
  size.value = wpcf7Integer(size.value);
@@ -303,15 +313,41 @@
303
  case 'author_url':
304
  tag += ' akismet:author_url';
305
  break;
306
- case 'content':
307
- tag += ' akismet:content';
308
- break;
309
  }
310
  break;
311
  }
312
  }
313
  }
314
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  var default_value = form.elements['qp-default'];
316
  if (default_value && '' != default_value.value) {
317
  var default_values = default_value.value.split("\n");
51
  <input type="button" value="textarea" class="quick-button" onclick="wpcf7QuickPanel('textarea');" style="background-color: #bfe7e5;" />
52
  <input type="button" value="textarea*" class="quick-button" onclick="wpcf7QuickPanel('textarea*');" style="background-color: #bfe7e5;" />
53
  <input type="button" value="select" class="quick-button" onclick="wpcf7QuickPanel('select');" style="background-color: #cbd5e8;" />
54
+ <input type="button" value="captchac" class="quick-button" onclick="wpcf7QuickPanel('captchac');" style="background-color: #d5e8cb;" />
55
+ <input type="button" value="captchar" class="quick-button" onclick="wpcf7QuickPanel('captchar');" style="background-color: #d5e8cb;" />
56
  <input type="button" value="submit" class="quick-button" onclick="wpcf7QuickPanel('submit');" style="background-color: #e5d6c2;" />
57
  <div id="quick-panel"></div>
58
  </div>
69
  <div class="fieldset"><div class="legend"><?php _e('Options', 'wpcf7'); ?></div>
70
  <label for="wpcf7-options-recipient"><?php _e('Recipient address:', 'wpcf7'); ?></label><br />
71
  <input type="text" id="wpcf7-options-recipient" name="wpcf7-options-recipient" class="wide" size="70" value="<?php echo htmlspecialchars($cf['options']['recipient']); ?>" />
 
 
 
 
 
 
 
 
 
 
72
  </div>
73
 
74
  <p class="submit">
89
  //<![CDATA[
90
 
91
  function wpcf7ValidateType(type) {
92
+ var valid_types = /^(text[*]?|email[*]?|textarea[*]?|select|captcha[cr]|submit)$/;
93
  return valid_types.test(type);
94
  }
95
 
116
  case 'select':
117
  quick_panel.style.backgroundColor = '#cbd5e8';
118
  break;
119
+ case 'captchac':
120
+ case 'captchar':
121
+ quick_panel.style.backgroundColor = '#d5e8cb';
122
+ break;
123
  case 'submit':
124
  quick_panel.style.backgroundColor = '#e5d6c2';
125
  break;
134
  case 'text*':
135
  case 'email':
136
  case 'email*':
137
+ var akismet_option = '<th><?php echo js_escape(__('Akismet', 'wpcf7')); ?></th><td>'
138
+ + '<input type="radio" name="qp-akismet" onchange="wpcf7CreateTag();" value="author" class="inline-opt" /> <?php echo js_escape(__("Check this field as sender&#39;s name", 'wpcf7')); ?><br />'
139
+ + '<input type="radio" name="qp-akismet" onchange="wpcf7CreateTag();" value="author_email" class="inline-opt" /> <?php echo js_escape(__("Check this field as sender&#39;s email", 'wpcf7')); ?><br />'
140
+ + '<input type="radio" name="qp-akismet" onchange="wpcf7CreateTag();" value="author_url" class="inline-opt" /> <?php echo js_escape(__("Check this field as sender&#39;s URL", 'wpcf7')); ?><br />'
141
+ + '<input type="radio" name="qp-akismet" onchange="wpcf7CreateTag();" value="none" checked="checked" class="inline-opt" /> <?php echo js_escape(__("Don&#39;t check this field with Akismet", 'wpcf7')); ?></td>';
 
 
 
142
  quick_panel.innerHTML += '<table><tbody>'
143
  + '<tr><th>name=</th><td><input type="text" name="qp-name" id="qp-name" class="required" value="edit-me" onchange="wpcf7CreateTag();" /></td></tr>'
 
 
144
  + '<tr><th>id=</th><td><input type="text" name="qp-id" onchange="wpcf7CreateTag();" /></td>'
145
  + '<th>class=</th><td><input type="text" name="qp-class" onchange="wpcf7CreateTag();" /></td></tr>'
146
+ + '<tr><th>size=</th><td><input type="text" name="qp-size" onchange="wpcf7CreateTag();" /></td>'
147
+ + '<th>maxlength=</th><td><input type="text" name="qp-maxlength" onchange="wpcf7CreateTag();" /></td></tr>'
148
+ + '<tr><th><?php echo js_escape(__('Default value', 'wpcf7')); ?></th><td><input type="text" name="qp-default" onchange="wpcf7CreateTag();" /></td>'
149
  + akismet_option
150
  + '</tr>'
151
  + '</tbody></table>';
152
  break;
153
  case 'textarea':
154
  case 'textarea*':
 
 
 
 
 
 
155
  quick_panel.innerHTML += '<table><tbody>'
156
  + '<tr><th>name=</th><td><input type="text" name="qp-name" id="qp-name" class="required" value="edit-me" onchange="wpcf7CreateTag();" /></td></tr>'
157
+ + '<tr><th>id=</th><td><input type="text" name="qp-id" onchange="wpcf7CreateTag();" /></td>'
158
+ + '<th>class=</th><td><input type="text" name="qp-class" onchange="wpcf7CreateTag();" /></td></tr>'
159
  + '<tr><th>cols=</th><td><input type="text" name="qp-cols" onchange="wpcf7CreateTag();" /></td>'
160
  + '<th>rows=</th><td><input type="text" name="qp-rows" onchange="wpcf7CreateTag();" /></td></tr>'
161
+ + '<tr><th><?php echo js_escape(__('Default value', 'wpcf7')); ?></th><td><input type="text" name="qp-default" onchange="wpcf7CreateTag();" /></td></tr>'
162
+ + '</tbody></table>';
163
+ break;
164
+ case 'select':
165
+ quick_panel.innerHTML += '<table><tbody>'
166
+ + '<tr><th>name=</th><td><input type="text" name="qp-name" id="qp-name" class="required" value="edit-me" onchange="wpcf7CreateTag();" /></td></tr>'
167
  + '<tr><th>id=</th><td><input type="text" name="qp-id" onchange="wpcf7CreateTag();" /></td>'
168
  + '<th>class=</th><td><input type="text" name="qp-class" onchange="wpcf7CreateTag();" /></td></tr>'
169
+ + '<tr><th><?php echo js_escape(__('Choices', 'wpcf7')); ?></th><td><textarea name="qp-default" onchange="wpcf7CreateTag();" rows="6"></textarea><br />'
170
+ + '<span style="font-size: smaller;"><?php echo js_escape(__('* One choice per line.', 'wpcf7')); ?></span></td></tr>'
 
171
  + '</tbody></table>';
172
  break;
173
+ case 'captchac':
174
  quick_panel.innerHTML += '<table><tbody>'
175
  + '<tr><th>name=</th><td><input type="text" name="qp-name" id="qp-name" class="required" value="edit-me" onchange="wpcf7CreateTag();" /></td></tr>'
176
  + '<tr><th>id=</th><td><input type="text" name="qp-id" onchange="wpcf7CreateTag();" /></td>'
177
  + '<th>class=</th><td><input type="text" name="qp-class" onchange="wpcf7CreateTag();" /></td></tr>'
178
+ + '<tr><th><?php echo js_escape(__('Foreground color', 'wpcf7')); ?></th><td><input type="text" name="qp-fgc" onchange="wpcf7CreateTag();" /></td>'
179
+ + '<th><?php echo js_escape(__('Background color', 'wpcf7')); ?></th><td><input type="text" name="qp-bgc" onchange="wpcf7CreateTag();" /></td></tr>'
180
+ + '<tr><th><?php echo js_escape(__('Image size', 'wpcf7')); ?></th>'
181
+ + '<td><select name="qp-isize" onchange="wpcf7CreateTag();"><option value="">--</option>'
182
+ + '<option value="s"><?php echo js_escape(__('Small', 'wpcf7')); ?></option>'
183
+ + '<option value="m"><?php echo js_escape(__('Medium', 'wpcf7')); ?></option>'
184
+ + '<option value="l"><?php echo js_escape(__('Large', 'wpcf7')); ?></option></select></td></tr>'
185
+ + '</tbody></table>';
186
+ break;
187
+ case 'captchar':
188
+ quick_panel.innerHTML += '<table><tbody>'
189
+ + '<tr><th>name=</th><td><input type="text" name="qp-name" id="qp-name" class="required" value="edit-me" onchange="wpcf7CreateTag();" /></td></tr>'
190
+ + '<tr><th>id=</th><td><input type="text" name="qp-id" onchange="wpcf7CreateTag();" /></td>'
191
+ + '<th>class=</th><td><input type="text" name="qp-class" onchange="wpcf7CreateTag();" /></td></tr>'
192
+ + '<tr><th>size=</th><td><input type="text" name="qp-size" onchange="wpcf7CreateTag();" /></td>'
193
+ + '<th>maxlength=</th><td><input type="text" name="qp-maxlength" onchange="wpcf7CreateTag();" /></td></tr>'
194
+ + '<tr><th><?php echo js_escape(__('Default value', 'wpcf7')); ?></th><td><input type="text" name="qp-default" onchange="wpcf7CreateTag();" /></td></tr>'
195
  + '</tbody></table>';
196
  break;
197
  case 'submit':
198
  quick_panel.innerHTML += '<table><tbody>'
199
+ + '<tr><th><?php echo js_escape(__('Label', 'wpcf7')); ?></th><td><input type="text" name="qp-label" onchange="wpcf7CreateTag();" /></td></tr>'
200
  + '</tbody></table>';
201
  break;
202
  }
203
 
204
  quick_panel.innerHTML += '<div style="margin: 10px 0 0; text-align: center;">'
205
  + '<input type="text" name="qp-insert" style="width: 80%; border: none; font-family: monospace;" tabindex="32767" /> '
206
+ + '<input type="button" value="<?php echo js_escape(__('Insert', 'wpcf7')); ?>" class="qp-button" onclick="wpcf7InsertTag(this.form.elements[\'qp-insert\'].value);" style="width: auto;" />'
207
  + '</div>';
208
  quick_panel.style.display = 'block';
209
  wpcf7CreateTag();
246
  case 'text*':
247
  case 'email':
248
  case 'email*':
249
+ case 'captchar':
250
  var size = form.elements['qp-size'];
251
  if (size)
252
  size.value = wpcf7Integer(size.value);
313
  case 'author_url':
314
  tag += ' akismet:author_url';
315
  break;
 
 
 
316
  }
317
  break;
318
  }
319
  }
320
  }
321
 
322
+ var image_size = form.elements['qp-isize'];
323
+ if (image_size) {
324
+ switch (image_size.value) {
325
+ case 's':
326
+ tag += ' size:s';
327
+ break;
328
+ case 'm':
329
+ tag += ' size:m';
330
+ break;
331
+ case 'l':
332
+ tag += ' size:l';
333
+ break;
334
+ }
335
+ }
336
+
337
+ var fgc = form.elements['qp-fgc'];
338
+ if (fgc) {
339
+ var fgc_v = wpcf7Cdata(fgc.value);
340
+ if (fgc_v)
341
+ tag += ' fg:#' + fgc_v;
342
+ }
343
+
344
+ var bgc = form.elements['qp-bgc'];
345
+ if (bgc) {
346
+ var bgc_v = wpcf7Cdata(bgc.value);
347
+ if (bgc_v)
348
+ tag += ' bg:#' + bgc_v;
349
+ }
350
+
351
  var default_value = form.elements['qp-default'];
352
  if (default_value && '' != default_value.value) {
353
  var default_values = default_value.value.split("\n");
languages/wpcf7-fr_FR.mo CHANGED
Binary file
languages/wpcf7-fr_FR.po CHANGED
@@ -1,165 +1,210 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: WP Contact Form 7\n"
4
- "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-09-15 11:36+0100\n"
6
- "Last-Translator: Jérôme Lecoq <admin@jillij.com>\n"
7
- "Language-Team: jillij <admin@jillij.com>\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=utf-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "X-Poedit-Language: French\n"
12
- "X-Poedit-Country: FRANCE\n"
13
- "X-Poedit-SourceCharset: utf-8\n"
14
- "X-Poedit-KeywordsList: __;_e\n"
15
- "X-Poedit-Basepath: ../..\n"
16
- "X-Poedit-SearchPath-0: contact-form-7\n"
17
-
18
- #: contact-form-7/wp-contact-form-7.php:128
19
- #: contact-form-7/wp-contact-form-7.php:201
20
- msgid "Contact form"
21
- msgstr "Formulaire de contact"
22
-
23
- #: contact-form-7/wp-contact-form-7.php:157
24
- #: contact-form-7/includes/admin-panel.php:5
25
- msgid "Contact Form 7"
26
- msgstr "Contact Form 7"
27
-
28
- #: contact-form-7/wp-contact-form-7.php:177
29
- #, php-format
30
- msgid "Contact form \"%s\" deleted. "
31
- msgstr "Formulaire de contact \"%s\" supprimé."
32
-
33
- #: contact-form-7/wp-contact-form-7.php:193
34
- #, php-format
35
- msgid "Contact form \"%s\" saved. "
36
- msgstr "Formulaire de contact \"%s\" sauvegardé."
37
-
38
- #: contact-form-7/wp-contact-form-7.php:222
39
- msgid "Your Name"
40
- msgstr "Votre Nom"
41
-
42
- #: contact-form-7/wp-contact-form-7.php:222
43
- #: contact-form-7/wp-contact-form-7.php:224
44
- msgid "(required)"
45
- msgstr "(obligatoire)"
46
-
47
- #: contact-form-7/wp-contact-form-7.php:224
48
- msgid "Your Email"
49
- msgstr "Votre Email"
50
-
51
- #: contact-form-7/wp-contact-form-7.php:226
52
- msgid "Subject"
53
- msgstr "Sujet"
54
-
55
- #: contact-form-7/wp-contact-form-7.php:228
56
- msgid "Your Message"
57
- msgstr "Votre Message"
58
-
59
- #: contact-form-7/wp-contact-form-7.php:230
60
- #: contact-form-7/wp-contact-form-7.php:593
61
- msgid "Send"
62
- msgstr "Envoyer"
63
-
64
- #: contact-form-7/wp-contact-form-7.php:249
65
- msgid "Your message was sent successfully. Thanks."
66
- msgstr "Votre message a bien été envoyé. Merci."
67
-
68
- #: contact-form-7/wp-contact-form-7.php:251
69
- msgid "Failed to send your message. Please try later or contact administrator by other way."
70
- msgstr "Erreur lors de l'envoi du message. Veuillez réessayez plus tard ou contactez l'administrateur d'une autre manière."
71
-
72
- #: contact-form-7/wp-contact-form-7.php:324
73
- #: contact-form-7/wp-contact-form-7.php:424
74
- msgid "Validation errors occurred. Please confirm the fields and submit it again."
75
- msgstr "Erreur de validation. Veuillez vérifier les champs et resoumettre."
76
-
77
- #: contact-form-7/wp-contact-form-7.php:351
78
- #: contact-form-7/wp-contact-form-7.php:358
79
- #: contact-form-7/wp-contact-form-7.php:409
80
- msgid "Please fill the required field."
81
- msgstr "Veuillez remplir les champs requis."
82
-
83
- #: contact-form-7/wp-contact-form-7.php:361
84
- #: contact-form-7/wp-contact-form-7.php:402
85
- msgid "Email address seems invalid."
86
- msgstr "L'adresse Email semble invalide."
87
-
88
- #: contact-form-7/includes/admin-panel.php:19
89
- #: contact-form-7/includes/admin-panel.php:22
90
- msgid "Add new"
91
- msgstr "Ajouter un nouveau"
92
-
93
- #: contact-form-7/includes/admin-panel.php:34
94
- msgid "Title"
95
- msgstr "Titre"
96
-
97
- #: contact-form-7/includes/admin-panel.php:39
98
- msgid "Copy and paste this code into your post content."
99
- msgstr "Copiez-collez ce code dans le contenu de votre post."
100
-
101
- #: contact-form-7/includes/admin-panel.php:45
102
- msgid "Form content"
103
- msgstr "Contenu du formulaire"
104
-
105
- #: contact-form-7/includes/admin-panel.php:58
106
- msgid "Mail template"
107
- msgstr "Template du message"
108
-
109
- #: contact-form-7/includes/admin-panel.php:59
110
- msgid "Subject field:"
111
- msgstr "Champ sujet:"
112
-
113
- #: contact-form-7/includes/admin-panel.php:61
114
- msgid "Sender field:"
115
- msgstr "Champ envoyé par:"
116
-
117
- #: contact-form-7/includes/admin-panel.php:63
118
- msgid "Message body:"
119
- msgstr "Corps du message:"
120
-
121
- #: contact-form-7/includes/admin-panel.php:67
122
- msgid "Options"
123
- msgstr "Options"
124
-
125
- #: contact-form-7/includes/admin-panel.php:68
126
- msgid "Recipient address:"
127
- msgstr "Adresse du destiinataire:"
128
-
129
- #: contact-form-7/includes/admin-panel.php:73
130
- msgid "Save"
131
- msgstr "Sauvegarder"
132
-
133
- #: contact-form-7/includes/admin-panel.php:80
134
- msgid "Delete this contact form"
135
- msgstr "Supprimer ce formulaire de contact"
136
-
137
- #: contact-form-7/includes/admin-panel.php:81
138
- msgid ""
139
- "You are about to delete this contact form.\n"
140
- " 'Cancel' to stop, 'OK' to delete."
141
- msgstr ""
142
- "Vous êtes sur le point de supprimer ce formulaire de contact.\n"
143
- " 'Annuler' pour arrêter, 'OK' pour supprimer."
144
-
145
- #: contact-form-7/includes/admin-panel.php:137
146
- #: contact-form-7/includes/admin-panel.php:148
147
- msgid "Default value"
148
- msgstr "Valeur par défaut"
149
-
150
- #: contact-form-7/includes/admin-panel.php:156
151
- msgid "Choices"
152
- msgstr "Choix"
153
-
154
- #: contact-form-7/includes/admin-panel.php:157
155
- msgid "* One choice per line."
156
- msgstr "* Un choix par ligne."
157
-
158
- #: contact-form-7/includes/admin-panel.php:162
159
- msgid "Label"
160
- msgstr "Etiquette"
161
-
162
- #: contact-form-7/includes/admin-panel.php:169
163
- msgid "Insert"
164
- msgstr "Insérer"
165
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP Contact Form 7\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-09-30 12:19+0100\n"
6
+ "Last-Translator: Jerome Lecoq <admin@jillij.com>\n"
7
+ "Language-Team: jillij <admin@jillij.com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: French\n"
12
+ "X-Poedit-Country: FRANCE\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: ../..\n"
16
+ "X-Poedit-SearchPath-0: contact-form-7\n"
17
+
18
+ #: contact-form-7/wp-contact-form-7.php:224
19
+ #: contact-form-7/wp-contact-form-7.php:297
20
+ msgid "Contact form"
21
+ msgstr "Formulaire de contact"
22
+
23
+ #: contact-form-7/wp-contact-form-7.php:253
24
+ #: contact-form-7/includes/admin-panel.php:5
25
+ msgid "Contact Form 7"
26
+ msgstr "Contact Form 7"
27
+
28
+ #: contact-form-7/wp-contact-form-7.php:273
29
+ #, php-format
30
+ msgid "Contact form \"%s\" deleted. "
31
+ msgstr "Formulaire de contact \"%s\" supprime."
32
+
33
+ #: contact-form-7/wp-contact-form-7.php:289
34
+ #, php-format
35
+ msgid "Contact form \"%s\" saved. "
36
+ msgstr "Formulaire de contact \"%s\" sauvegarde."
37
+
38
+ #: contact-form-7/wp-contact-form-7.php:318
39
+ msgid "Your Name"
40
+ msgstr "Votre Nom"
41
+
42
+ #: contact-form-7/wp-contact-form-7.php:318
43
+ #: contact-form-7/wp-contact-form-7.php:320
44
+ msgid "(required)"
45
+ msgstr "(obligatoire)"
46
+
47
+ #: contact-form-7/wp-contact-form-7.php:320
48
+ msgid "Your Email"
49
+ msgstr "Votre Email"
50
+
51
+ #: contact-form-7/wp-contact-form-7.php:322
52
+ msgid "Subject"
53
+ msgstr "Sujet"
54
+
55
+ #: contact-form-7/wp-contact-form-7.php:324
56
+ msgid "Your Message"
57
+ msgstr "Votre Message"
58
+
59
+ #: contact-form-7/wp-contact-form-7.php:326
60
+ #: contact-form-7/wp-contact-form-7.php:738
61
+ msgid "Send"
62
+ msgstr "Envoyer"
63
+
64
+ #: contact-form-7/wp-contact-form-7.php:345
65
+ msgid "Your message was sent successfully. Thanks."
66
+ msgstr "Votre message a bien ete envoye. Merci."
67
+
68
+ #: contact-form-7/wp-contact-form-7.php:347
69
+ msgid "Failed to send your message. Please try later or contact administrator by other way."
70
+ msgstr "Erreur lors de l'envoi du message. Veuillez reessayez plus tard ou contactez l'administrateur d'une autre maniere."
71
+
72
+ #: contact-form-7/wp-contact-form-7.php:349
73
+ msgid "Validation errors occurred. Please confirm the fields and submit it again."
74
+ msgstr "Erreur de validation. Veuillez verifier les champs et resoumettre."
75
+
76
+ #: contact-form-7/wp-contact-form-7.php:351
77
+ msgid "Email address seems invalid."
78
+ msgstr "L'adresse Email semble invalide."
79
+
80
+ #: contact-form-7/wp-contact-form-7.php:353
81
+ msgid "Please fill the required field."
82
+ msgstr "Veuillez remplir les champs requis."
83
+
84
+ #: contact-form-7/wp-contact-form-7.php:355
85
+ msgid "Your entered code is incorrect."
86
+ msgstr "Le code entre est incorrect."
87
+
88
+ #: contact-form-7/includes/admin-panel.php:19
89
+ #: contact-form-7/includes/admin-panel.php:22
90
+ msgid "Add new"
91
+ msgstr "Ajouter un nouveau"
92
+
93
+ #: contact-form-7/includes/admin-panel.php:34
94
+ msgid "Title"
95
+ msgstr "Titre"
96
+
97
+ #: contact-form-7/includes/admin-panel.php:39
98
+ msgid "Copy and paste this code into your post content."
99
+ msgstr "Copiez-collez ce code dans le contenu de votre post."
100
+
101
+ #: contact-form-7/includes/admin-panel.php:45
102
+ msgid "Form content"
103
+ msgstr "Contenu du formulaire"
104
+
105
+ #: contact-form-7/includes/admin-panel.php:60
106
+ msgid "Mail template"
107
+ msgstr "Template du message"
108
+
109
+ #: contact-form-7/includes/admin-panel.php:61
110
+ msgid "Subject field:"
111
+ msgstr "Champ sujet:"
112
+
113
+ #: contact-form-7/includes/admin-panel.php:63
114
+ msgid "Sender field:"
115
+ msgstr "Champ envoye par:"
116
+
117
+ #: contact-form-7/includes/admin-panel.php:65
118
+ msgid "Message body:"
119
+ msgstr "Corps du message:"
120
+
121
+ #: contact-form-7/includes/admin-panel.php:69
122
+ msgid "Options"
123
+ msgstr "Options"
124
+
125
+ #: contact-form-7/includes/admin-panel.php:70
126
+ msgid "Recipient address:"
127
+ msgstr "Adresse du destiinataire:"
128
+
129
+ #: contact-form-7/includes/admin-panel.php:75
130
+ msgid "Save"
131
+ msgstr "Sauvegarder"
132
+
133
+ #: contact-form-7/includes/admin-panel.php:82
134
+ msgid "Delete this contact form"
135
+ msgstr "Supprimer ce formulaire de contact"
136
+
137
+ #: contact-form-7/includes/admin-panel.php:83
138
+ msgid ""
139
+ "You are about to delete this contact form.\n"
140
+ " 'Cancel' to stop, 'OK' to delete."
141
+ msgstr ""
142
+ "Vous etes sur le point de supprimer ce formulaire de contact.\n"
143
+ " 'Annuler' pour arreter, 'OK' pour supprimer."
144
+
145
+ #: contact-form-7/includes/admin-panel.php:137
146
+ msgid "Akismet"
147
+ msgstr "Akismet"
148
+
149
+ #: contact-form-7/includes/admin-panel.php:138
150
+ msgid "Check this field as sender&#39;s name"
151
+ msgstr "Verifiez ce champ en tant que nom de l'expediteur"
152
+
153
+ #: contact-form-7/includes/admin-panel.php:139
154
+ msgid "Check this field as sender&#39;s email"
155
+ msgstr "Verifiez ce champ en tant qu'email de l'expediteur"
156
+
157
+ #: contact-form-7/includes/admin-panel.php:140
158
+ msgid "Check this field as sender&#39;s URL"
159
+ msgstr "Verifiez ce champ en tant que lien de l'expediteur"
160
+
161
+ #: contact-form-7/includes/admin-panel.php:141
162
+ msgid "Don&#39;t check this field with Akismet"
163
+ msgstr "Ne pas verifier ce champ avec Alismet"
164
+
165
+ #: contact-form-7/includes/admin-panel.php:148
166
+ #: contact-form-7/includes/admin-panel.php:161
167
+ #: contact-form-7/includes/admin-panel.php:194
168
+ msgid "Default value"
169
+ msgstr "Valeur par defaut"
170
+
171
+ #: contact-form-7/includes/admin-panel.php:169
172
+ msgid "Choices"
173
+ msgstr "Choix"
174
+
175
+ #: contact-form-7/includes/admin-panel.php:170
176
+ msgid "* One choice per line."
177
+ msgstr "* Un choix par ligne."
178
+
179
+ #: contact-form-7/includes/admin-panel.php:178
180
+ msgid "Foreground color"
181
+ msgstr "Couleur de devant"
182
+
183
+ #: contact-form-7/includes/admin-panel.php:179
184
+ msgid "Background color"
185
+ msgstr "Couleur d'arriere plan"
186
+
187
+ #: contact-form-7/includes/admin-panel.php:180
188
+ msgid "Image size"
189
+ msgstr "Taille de l'image"
190
+
191
+ #: contact-form-7/includes/admin-panel.php:182
192
+ msgid "Small"
193
+ msgstr "Petit"
194
+
195
+ #: contact-form-7/includes/admin-panel.php:183
196
+ msgid "Medium"
197
+ msgstr "Moyen"
198
+
199
+ #: contact-form-7/includes/admin-panel.php:184
200
+ msgid "Large"
201
+ msgstr "Grand"
202
+
203
+ #: contact-form-7/includes/admin-panel.php:199
204
+ msgid "Label"
205
+ msgstr "Etiquette"
206
+
207
+ #: contact-form-7/includes/admin-panel.php:206
208
+ msgid "Insert"
209
+ msgstr "Inserer"
210
+
languages/wpcf7-it_IT.mo CHANGED
Binary file
languages/wpcf7-it_IT.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Contact Form 7\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-09-05 16:04+0100\n"
6
  "Last-Translator: Bruno Salzano <bruno@brunosalzano.com>\n"
7
  "Language-Team: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
@@ -15,75 +15,75 @@ msgstr ""
15
  "X-Poedit-Basepath: ../..\n"
16
  "X-Poedit-SearchPath-0: contact-form-7\n"
17
 
18
- #: contact-form-7/wp-contact-form-7.php:128
19
- #: contact-form-7/wp-contact-form-7.php:201
20
  msgid "Contact form"
21
  msgstr "Modulo di contatto"
22
 
23
- #: contact-form-7/wp-contact-form-7.php:157
24
  #: contact-form-7/includes/admin-panel.php:5
25
  msgid "Contact Form 7"
26
  msgstr "Contact Form 7"
27
 
28
- #: contact-form-7/wp-contact-form-7.php:177
29
  #, php-format
30
  msgid "Contact form \"%s\" deleted. "
31
- msgstr "Il modulo di contatto \"%s\" è stato cancellato. "
32
 
33
- #: contact-form-7/wp-contact-form-7.php:193
34
  #, php-format
35
  msgid "Contact form \"%s\" saved. "
36
- msgstr "Il modulo di contatto \"%s\" è stato salvato. "
37
 
38
- #: contact-form-7/wp-contact-form-7.php:222
39
  msgid "Your Name"
40
  msgstr "Il tuo nome"
41
 
42
- #: contact-form-7/wp-contact-form-7.php:222
43
- #: contact-form-7/wp-contact-form-7.php:224
44
  msgid "(required)"
45
  msgstr "(richiesto)"
46
 
47
- #: contact-form-7/wp-contact-form-7.php:224
48
  msgid "Your Email"
49
  msgstr "La tua email"
50
 
51
- #: contact-form-7/wp-contact-form-7.php:226
52
  msgid "Subject"
53
  msgstr "Oggetto"
54
 
55
- #: contact-form-7/wp-contact-form-7.php:228
56
  msgid "Your Message"
57
- msgstr "Messaggio"
58
 
59
- #: contact-form-7/wp-contact-form-7.php:230
60
- #: contact-form-7/wp-contact-form-7.php:593
61
  msgid "Send"
62
  msgstr "Invia"
63
 
64
- #: contact-form-7/wp-contact-form-7.php:249
65
  msgid "Your message was sent successfully. Thanks."
66
- msgstr "Il tuo messaggio è stato inviato. Grazie."
67
 
68
- #: contact-form-7/wp-contact-form-7.php:251
69
  msgid "Failed to send your message. Please try later or contact administrator by other way."
70
- msgstr "Errore. Riprovare più tardi o contattare l'amministratore in altro modo."
71
 
72
- #: contact-form-7/wp-contact-form-7.php:324
73
- #: contact-form-7/wp-contact-form-7.php:424
74
  msgid "Validation errors occurred. Please confirm the fields and submit it again."
75
  msgstr "Sono avvenuti errori di validazione. Controllare i campi richiesti e inviare di nuovo il modulo."
76
 
77
  #: contact-form-7/wp-contact-form-7.php:351
78
- #: contact-form-7/wp-contact-form-7.php:358
79
- #: contact-form-7/wp-contact-form-7.php:409
 
 
80
  msgid "Please fill the required field."
81
  msgstr "Per favore, riempire tutti i campi richiesti"
82
 
83
- #: contact-form-7/wp-contact-form-7.php:361
84
- #: contact-form-7/wp-contact-form-7.php:402
85
- msgid "Email address seems invalid."
86
- msgstr "Indirizzo email non valido."
87
 
88
  #: contact-form-7/includes/admin-panel.php:19
89
  #: contact-form-7/includes/admin-panel.php:22
@@ -96,45 +96,45 @@ msgstr "Titolo"
96
 
97
  #: contact-form-7/includes/admin-panel.php:39
98
  msgid "Copy and paste this code into your post content."
99
- msgstr "Copia ed incolla questo codice nel contenuto del tuo post."
100
 
101
  #: contact-form-7/includes/admin-panel.php:45
102
  msgid "Form content"
103
  msgstr "Contenuti del modulo"
104
 
105
- #: contact-form-7/includes/admin-panel.php:58
106
  msgid "Mail template"
107
  msgstr "Template email"
108
 
109
- #: contact-form-7/includes/admin-panel.php:59
110
  msgid "Subject field:"
111
  msgstr "Campo oggetto:"
112
 
113
- #: contact-form-7/includes/admin-panel.php:61
114
  msgid "Sender field:"
115
  msgstr "Campo mittente:"
116
 
117
- #: contact-form-7/includes/admin-panel.php:63
118
  msgid "Message body:"
119
- msgstr "Campo testo:"
120
 
121
- #: contact-form-7/includes/admin-panel.php:67
122
  msgid "Options"
123
  msgstr "Opzioni"
124
 
125
- #: contact-form-7/includes/admin-panel.php:68
126
  msgid "Recipient address:"
127
- msgstr "Indirizzo destinatario:"
128
 
129
- #: contact-form-7/includes/admin-panel.php:73
130
  msgid "Save"
131
  msgstr "Salva"
132
 
133
- #: contact-form-7/includes/admin-panel.php:80
134
  msgid "Delete this contact form"
135
- msgstr "Cancella questa form di contatto"
136
 
137
- #: contact-form-7/includes/admin-panel.php:81
138
  msgid ""
139
  "You are about to delete this contact form.\n"
140
  " 'Cancel' to stop, 'OK' to delete."
@@ -143,23 +143,68 @@ msgstr ""
143
  " 'Cancel' per annullare, 'OK' per confermare."
144
 
145
  #: contact-form-7/includes/admin-panel.php:137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  #: contact-form-7/includes/admin-panel.php:148
 
 
147
  msgid "Default value"
148
  msgstr "Valore di default"
149
 
150
- #: contact-form-7/includes/admin-panel.php:156
151
  msgid "Choices"
152
  msgstr "Opzioni"
153
 
154
- #: contact-form-7/includes/admin-panel.php:157
155
  msgid "* One choice per line."
156
- msgstr "* Una opzione per riga"
 
 
 
 
157
 
158
- #: contact-form-7/includes/admin-panel.php:162
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  msgid "Label"
160
  msgstr "Etichetta"
161
 
162
- #: contact-form-7/includes/admin-panel.php:169
163
  msgid "Insert"
164
  msgstr "Inserisci"
165
 
2
  msgstr ""
3
  "Project-Id-Version: WP Contact Form 7\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-09-29 19:19+0100\n"
6
  "Last-Translator: Bruno Salzano <bruno@brunosalzano.com>\n"
7
  "Language-Team: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
15
  "X-Poedit-Basepath: ../..\n"
16
  "X-Poedit-SearchPath-0: contact-form-7\n"
17
 
18
+ #: contact-form-7/wp-contact-form-7.php:224
19
+ #: contact-form-7/wp-contact-form-7.php:297
20
  msgid "Contact form"
21
  msgstr "Modulo di contatto"
22
 
23
+ #: contact-form-7/wp-contact-form-7.php:253
24
  #: contact-form-7/includes/admin-panel.php:5
25
  msgid "Contact Form 7"
26
  msgstr "Contact Form 7"
27
 
28
+ #: contact-form-7/wp-contact-form-7.php:273
29
  #, php-format
30
  msgid "Contact form \"%s\" deleted. "
31
+ msgstr "Il modulo di contatto \"%s\" e&#39; stato cancellato. "
32
 
33
+ #: contact-form-7/wp-contact-form-7.php:289
34
  #, php-format
35
  msgid "Contact form \"%s\" saved. "
36
+ msgstr "Il modulo di contatto \"%s\" e&#39; stato salvato. "
37
 
38
+ #: contact-form-7/wp-contact-form-7.php:318
39
  msgid "Your Name"
40
  msgstr "Il tuo nome"
41
 
42
+ #: contact-form-7/wp-contact-form-7.php:318
43
+ #: contact-form-7/wp-contact-form-7.php:320
44
  msgid "(required)"
45
  msgstr "(richiesto)"
46
 
47
+ #: contact-form-7/wp-contact-form-7.php:320
48
  msgid "Your Email"
49
  msgstr "La tua email"
50
 
51
+ #: contact-form-7/wp-contact-form-7.php:322
52
  msgid "Subject"
53
  msgstr "Oggetto"
54
 
55
+ #: contact-form-7/wp-contact-form-7.php:324
56
  msgid "Your Message"
57
+ msgstr "Il tuo messaggi"
58
 
59
+ #: contact-form-7/wp-contact-form-7.php:326
60
+ #: contact-form-7/wp-contact-form-7.php:738
61
  msgid "Send"
62
  msgstr "Invia"
63
 
64
+ #: contact-form-7/wp-contact-form-7.php:345
65
  msgid "Your message was sent successfully. Thanks."
66
+ msgstr "Il tuo messaggio e&#39; stato inviato. Grazie."
67
 
68
+ #: contact-form-7/wp-contact-form-7.php:347
69
  msgid "Failed to send your message. Please try later or contact administrator by other way."
70
+ msgstr "Errore nell&#39;invio. Riprovare piu&#39; tardi o contattare l&#39;amministratore in altro modo."
71
 
72
+ #: contact-form-7/wp-contact-form-7.php:349
 
73
  msgid "Validation errors occurred. Please confirm the fields and submit it again."
74
  msgstr "Sono avvenuti errori di validazione. Controllare i campi richiesti e inviare di nuovo il modulo."
75
 
76
  #: contact-form-7/wp-contact-form-7.php:351
77
+ msgid "Email address seems invalid."
78
+ msgstr "Indirizzo email non valido."
79
+
80
+ #: contact-form-7/wp-contact-form-7.php:353
81
  msgid "Please fill the required field."
82
  msgstr "Per favore, riempire tutti i campi richiesti"
83
 
84
+ #: contact-form-7/wp-contact-form-7.php:355
85
+ msgid "Your entered code is incorrect."
86
+ msgstr "Il codice inserito non è valido"
 
87
 
88
  #: contact-form-7/includes/admin-panel.php:19
89
  #: contact-form-7/includes/admin-panel.php:22
96
 
97
  #: contact-form-7/includes/admin-panel.php:39
98
  msgid "Copy and paste this code into your post content."
99
+ msgstr "Copia ed incolla questo codice nel contenuto del tuo post"
100
 
101
  #: contact-form-7/includes/admin-panel.php:45
102
  msgid "Form content"
103
  msgstr "Contenuti del modulo"
104
 
105
+ #: contact-form-7/includes/admin-panel.php:60
106
  msgid "Mail template"
107
  msgstr "Template email"
108
 
109
+ #: contact-form-7/includes/admin-panel.php:61
110
  msgid "Subject field:"
111
  msgstr "Campo oggetto:"
112
 
113
+ #: contact-form-7/includes/admin-panel.php:63
114
  msgid "Sender field:"
115
  msgstr "Campo mittente:"
116
 
117
+ #: contact-form-7/includes/admin-panel.php:65
118
  msgid "Message body:"
119
+ msgstr "Corpo del messaggio"
120
 
121
+ #: contact-form-7/includes/admin-panel.php:69
122
  msgid "Options"
123
  msgstr "Opzioni"
124
 
125
+ #: contact-form-7/includes/admin-panel.php:70
126
  msgid "Recipient address:"
127
+ msgstr "Indirizzo del destinatario:"
128
 
129
+ #: contact-form-7/includes/admin-panel.php:75
130
  msgid "Save"
131
  msgstr "Salva"
132
 
133
+ #: contact-form-7/includes/admin-panel.php:82
134
  msgid "Delete this contact form"
135
+ msgstr "Elimina questa form di contatto"
136
 
137
+ #: contact-form-7/includes/admin-panel.php:83
138
  msgid ""
139
  "You are about to delete this contact form.\n"
140
  " 'Cancel' to stop, 'OK' to delete."
143
  " 'Cancel' per annullare, 'OK' per confermare."
144
 
145
  #: contact-form-7/includes/admin-panel.php:137
146
+ msgid "Akismet"
147
+ msgstr "Akismet"
148
+
149
+ #: contact-form-7/includes/admin-panel.php:138
150
+ msgid "Check this field as sender&#39;s name"
151
+ msgstr "Controlla questo campo come indirizzo del mittente"
152
+
153
+ #: contact-form-7/includes/admin-panel.php:139
154
+ msgid "Check this field as sender&#39;s email"
155
+ msgstr "Controlla questo campo come email del mittente"
156
+
157
+ #: contact-form-7/includes/admin-panel.php:140
158
+ msgid "Check this field as sender&#39;s URL"
159
+ msgstr "Controlla questo campo come URL del mittente"
160
+
161
+ #: contact-form-7/includes/admin-panel.php:141
162
+ msgid "Don&#39;t check this field with Akismet"
163
+ msgstr "Non controllare questo campo con Akismet"
164
+
165
  #: contact-form-7/includes/admin-panel.php:148
166
+ #: contact-form-7/includes/admin-panel.php:161
167
+ #: contact-form-7/includes/admin-panel.php:194
168
  msgid "Default value"
169
  msgstr "Valore di default"
170
 
171
+ #: contact-form-7/includes/admin-panel.php:169
172
  msgid "Choices"
173
  msgstr "Opzioni"
174
 
175
+ #: contact-form-7/includes/admin-panel.php:170
176
  msgid "* One choice per line."
177
+ msgstr "Una opzione per linea."
178
+
179
+ #: contact-form-7/includes/admin-panel.php:178
180
+ msgid "Foreground color"
181
+ msgstr "Colore di primo piano"
182
 
183
+ #: contact-form-7/includes/admin-panel.php:179
184
+ msgid "Background color"
185
+ msgstr "Colore di sfondo"
186
+
187
+ #: contact-form-7/includes/admin-panel.php:180
188
+ msgid "Image size"
189
+ msgstr "Dimensione immagine"
190
+
191
+ #: contact-form-7/includes/admin-panel.php:182
192
+ msgid "Small"
193
+ msgstr "Piccola"
194
+
195
+ #: contact-form-7/includes/admin-panel.php:183
196
+ msgid "Medium"
197
+ msgstr "Media"
198
+
199
+ #: contact-form-7/includes/admin-panel.php:184
200
+ msgid "Large"
201
+ msgstr "Grande"
202
+
203
+ #: contact-form-7/includes/admin-panel.php:199
204
  msgid "Label"
205
  msgstr "Etichetta"
206
 
207
+ #: contact-form-7/includes/admin-panel.php:206
208
  msgid "Insert"
209
  msgstr "Inserisci"
210
 
languages/wpcf7-ja.mo CHANGED
Binary file
languages/wpcf7-ja.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Contact Form 7\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-09-07 13:01+0900\n"
6
  "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
7
  "Language-Team: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
@@ -15,75 +15,75 @@ msgstr ""
15
  "X-Poedit-Basepath: ../..\n"
16
  "X-Poedit-SearchPath-0: contact-form-7\n"
17
 
18
- #: contact-form-7/wp-contact-form-7.php:184
19
- #: contact-form-7/wp-contact-form-7.php:258
20
  msgid "Contact form"
21
  msgstr "コンタクトフォーム"
22
 
23
- #: contact-form-7/wp-contact-form-7.php:213
24
  #: contact-form-7/includes/admin-panel.php:5
25
  msgid "Contact Form 7"
26
  msgstr "Contact Form 7"
27
 
28
- #: contact-form-7/wp-contact-form-7.php:233
29
  #, php-format
30
  msgid "Contact form \"%s\" deleted. "
31
  msgstr "コンタクトフォーム \"%s\" が削除されました。"
32
 
33
- #: contact-form-7/wp-contact-form-7.php:250
34
  #, php-format
35
  msgid "Contact form \"%s\" saved. "
36
  msgstr "コンタクトフォーム \"%s\" が保存されました。"
37
 
38
- #: contact-form-7/wp-contact-form-7.php:279
39
  msgid "Your Name"
40
  msgstr "お名前"
41
 
42
- #: contact-form-7/wp-contact-form-7.php:279
43
- #: contact-form-7/wp-contact-form-7.php:281
44
  msgid "(required)"
45
  msgstr "(必須)"
46
 
47
- #: contact-form-7/wp-contact-form-7.php:281
48
  msgid "Your Email"
49
  msgstr "メールアドレス"
50
 
51
- #: contact-form-7/wp-contact-form-7.php:283
52
  msgid "Subject"
53
  msgstr "題名"
54
 
55
- #: contact-form-7/wp-contact-form-7.php:285
56
  msgid "Your Message"
57
  msgstr "メッセージ本文"
58
 
59
- #: contact-form-7/wp-contact-form-7.php:287
60
- #: contact-form-7/wp-contact-form-7.php:660
61
  msgid "Send"
62
  msgstr "送信"
63
 
64
- #: contact-form-7/wp-contact-form-7.php:306
65
  msgid "Your message was sent successfully. Thanks."
66
  msgstr "あなたのメッセージは送信されました。ありがとうございました。"
67
 
68
- #: contact-form-7/wp-contact-form-7.php:308
69
  msgid "Failed to send your message. Please try later or contact administrator by other way."
70
  msgstr "メッセージの送信に失敗しました。間をおいてもう一度お試しいただくか、別の手段で管理者にお問い合わせ下さい。"
71
 
72
- #: contact-form-7/wp-contact-form-7.php:385
73
- #: contact-form-7/wp-contact-form-7.php:485
74
  msgid "Validation errors occurred. Please confirm the fields and submit it again."
75
  msgstr "入力内容に不備があります。確認してもう一度送信してください。"
76
 
77
- #: contact-form-7/wp-contact-form-7.php:412
78
- #: contact-form-7/wp-contact-form-7.php:419
79
- #: contact-form-7/wp-contact-form-7.php:470
 
 
80
  msgid "Please fill the required field."
81
  msgstr "必須項目に記入もれがあります。"
82
 
83
- #: contact-form-7/wp-contact-form-7.php:422
84
- #: contact-form-7/wp-contact-form-7.php:463
85
- msgid "Email address seems invalid."
86
- msgstr "メールアドレスの形式が正しくないようです。"
87
 
88
  #: contact-form-7/includes/admin-panel.php:19
89
  #: contact-form-7/includes/admin-panel.php:22
@@ -102,48 +102,39 @@ msgstr "次のコードをコピーして投稿の本文中にペーストして
102
  msgid "Form content"
103
  msgstr "フォームの内容"
104
 
105
- #: contact-form-7/includes/admin-panel.php:58
106
  msgid "Mail template"
107
  msgstr "メールのテンプレート"
108
 
109
- #: contact-form-7/includes/admin-panel.php:59
110
  msgid "Subject field:"
111
  msgstr "題名欄:"
112
 
113
- #: contact-form-7/includes/admin-panel.php:61
114
  msgid "Sender field:"
115
  msgstr "送信者欄:"
116
 
117
- #: contact-form-7/includes/admin-panel.php:63
118
  msgid "Message body:"
119
  msgstr "メッセージ本文:"
120
 
121
- #: contact-form-7/includes/admin-panel.php:67
122
  msgid "Options"
123
  msgstr "オプション"
124
 
125
- #: contact-form-7/includes/admin-panel.php:68
126
  msgid "Recipient address:"
127
  msgstr "受信者アドレス:"
128
 
129
- #: contact-form-7/includes/admin-panel.php:73
130
- #: contact-form-7/includes/admin-panel.php:77
131
- msgid "Apply Akismet spam filter"
132
- msgstr "スパムフィルタ Akismet を適用する"
133
-
134
- #: contact-form-7/includes/admin-panel.php:78
135
- msgid "Akismet plugin is not active. You need Akismet to use this feature."
136
- msgstr "Akismet プラグインが有効になっていません。この機能を使うには Akismet が必要です。"
137
-
138
- #: contact-form-7/includes/admin-panel.php:83
139
  msgid "Save"
140
  msgstr "保存"
141
 
142
- #: contact-form-7/includes/admin-panel.php:90
143
  msgid "Delete this contact form"
144
  msgstr "このコンタクトフォームを削除"
145
 
146
- #: contact-form-7/includes/admin-panel.php:91
147
  msgid ""
148
  "You are about to delete this contact form.\n"
149
  " 'Cancel' to stop, 'OK' to delete."
@@ -151,50 +142,69 @@ msgstr ""
151
  "このコンタクトフォームを削除しようとしています。\n"
152
  " 'キャンセル' で中止、 'OK' で削除します。"
153
 
154
- #: contact-form-7/includes/admin-panel.php:143
155
- #: contact-form-7/includes/admin-panel.php:164
156
  msgid "Akismet"
157
  msgstr "Akismet"
158
 
159
- #: contact-form-7/includes/admin-panel.php:144
160
  msgid "Check this field as sender&#39;s name"
161
  msgstr "このフィールドを送信者の名前としてチェックする"
162
 
163
- #: contact-form-7/includes/admin-panel.php:145
164
  msgid "Check this field as sender&#39;s email"
165
  msgstr "このフィールドを送信者のメールアドレスとしてチェックする"
166
 
167
- #: contact-form-7/includes/admin-panel.php:146
168
  msgid "Check this field as sender&#39;s URL"
169
  msgstr "このフィールドを送信者の URL としてチェックする"
170
 
171
- #: contact-form-7/includes/admin-panel.php:147
172
- #: contact-form-7/includes/admin-panel.php:166
173
  msgid "Don&#39;t check this field with Akismet"
174
  msgstr "このフィールドは Akismet のチェックの対象としない"
175
 
176
- #: contact-form-7/includes/admin-panel.php:155
177
- #: contact-form-7/includes/admin-panel.php:174
 
178
  msgid "Default value"
179
  msgstr "デフォルト値"
180
 
181
- #: contact-form-7/includes/admin-panel.php:165
182
- msgid "Check this field as content"
183
- msgstr "このフィールドを本文としてチェックする"
184
-
185
- #: contact-form-7/includes/admin-panel.php:184
186
  msgid "Choices"
187
  msgstr "選択項目"
188
 
189
- #: contact-form-7/includes/admin-panel.php:185
190
  msgid "* One choice per line."
191
  msgstr "* 1行ごとに分けて入力してください。"
192
 
193
- #: contact-form-7/includes/admin-panel.php:190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  msgid "Label"
195
  msgstr "ラベル"
196
 
197
- #: contact-form-7/includes/admin-panel.php:197
198
  msgid "Insert"
199
  msgstr "挿入"
200
 
2
  msgstr ""
3
  "Project-Id-Version: WP Contact Form 7\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-09-29 23:08+0900\n"
6
  "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
7
  "Language-Team: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
15
  "X-Poedit-Basepath: ../..\n"
16
  "X-Poedit-SearchPath-0: contact-form-7\n"
17
 
18
+ #: contact-form-7/wp-contact-form-7.php:224
19
+ #: contact-form-7/wp-contact-form-7.php:297
20
  msgid "Contact form"
21
  msgstr "コンタクトフォーム"
22
 
23
+ #: contact-form-7/wp-contact-form-7.php:253
24
  #: contact-form-7/includes/admin-panel.php:5
25
  msgid "Contact Form 7"
26
  msgstr "Contact Form 7"
27
 
28
+ #: contact-form-7/wp-contact-form-7.php:273
29
  #, php-format
30
  msgid "Contact form \"%s\" deleted. "
31
  msgstr "コンタクトフォーム \"%s\" が削除されました。"
32
 
33
+ #: contact-form-7/wp-contact-form-7.php:289
34
  #, php-format
35
  msgid "Contact form \"%s\" saved. "
36
  msgstr "コンタクトフォーム \"%s\" が保存されました。"
37
 
38
+ #: contact-form-7/wp-contact-form-7.php:318
39
  msgid "Your Name"
40
  msgstr "お名前"
41
 
42
+ #: contact-form-7/wp-contact-form-7.php:318
43
+ #: contact-form-7/wp-contact-form-7.php:320
44
  msgid "(required)"
45
  msgstr "(必須)"
46
 
47
+ #: contact-form-7/wp-contact-form-7.php:320
48
  msgid "Your Email"
49
  msgstr "メールアドレス"
50
 
51
+ #: contact-form-7/wp-contact-form-7.php:322
52
  msgid "Subject"
53
  msgstr "題名"
54
 
55
+ #: contact-form-7/wp-contact-form-7.php:324
56
  msgid "Your Message"
57
  msgstr "メッセージ本文"
58
 
59
+ #: contact-form-7/wp-contact-form-7.php:326
60
+ #: contact-form-7/wp-contact-form-7.php:738
61
  msgid "Send"
62
  msgstr "送信"
63
 
64
+ #: contact-form-7/wp-contact-form-7.php:345
65
  msgid "Your message was sent successfully. Thanks."
66
  msgstr "あなたのメッセージは送信されました。ありがとうございました。"
67
 
68
+ #: contact-form-7/wp-contact-form-7.php:347
69
  msgid "Failed to send your message. Please try later or contact administrator by other way."
70
  msgstr "メッセージの送信に失敗しました。間をおいてもう一度お試しいただくか、別の手段で管理者にお問い合わせ下さい。"
71
 
72
+ #: contact-form-7/wp-contact-form-7.php:349
 
73
  msgid "Validation errors occurred. Please confirm the fields and submit it again."
74
  msgstr "入力内容に不備があります。確認してもう一度送信してください。"
75
 
76
+ #: contact-form-7/wp-contact-form-7.php:351
77
+ msgid "Email address seems invalid."
78
+ msgstr "メールアドレスの形式が正しくないようです。"
79
+
80
+ #: contact-form-7/wp-contact-form-7.php:353
81
  msgid "Please fill the required field."
82
  msgstr "必須項目に記入もれがあります。"
83
 
84
+ #: contact-form-7/wp-contact-form-7.php:355
85
+ msgid "Your entered code is incorrect."
86
+ msgstr "入力されたコードが正しくありません。"
 
87
 
88
  #: contact-form-7/includes/admin-panel.php:19
89
  #: contact-form-7/includes/admin-panel.php:22
102
  msgid "Form content"
103
  msgstr "フォームの内容"
104
 
105
+ #: contact-form-7/includes/admin-panel.php:60
106
  msgid "Mail template"
107
  msgstr "メールのテンプレート"
108
 
109
+ #: contact-form-7/includes/admin-panel.php:61
110
  msgid "Subject field:"
111
  msgstr "題名欄:"
112
 
113
+ #: contact-form-7/includes/admin-panel.php:63
114
  msgid "Sender field:"
115
  msgstr "送信者欄:"
116
 
117
+ #: contact-form-7/includes/admin-panel.php:65
118
  msgid "Message body:"
119
  msgstr "メッセージ本文:"
120
 
121
+ #: contact-form-7/includes/admin-panel.php:69
122
  msgid "Options"
123
  msgstr "オプション"
124
 
125
+ #: contact-form-7/includes/admin-panel.php:70
126
  msgid "Recipient address:"
127
  msgstr "受信者アドレス:"
128
 
129
+ #: contact-form-7/includes/admin-panel.php:75
 
 
 
 
 
 
 
 
 
130
  msgid "Save"
131
  msgstr "保存"
132
 
133
+ #: contact-form-7/includes/admin-panel.php:82
134
  msgid "Delete this contact form"
135
  msgstr "このコンタクトフォームを削除"
136
 
137
+ #: contact-form-7/includes/admin-panel.php:83
138
  msgid ""
139
  "You are about to delete this contact form.\n"
140
  " 'Cancel' to stop, 'OK' to delete."
142
  "このコンタクトフォームを削除しようとしています。\n"
143
  " 'キャンセル' で中止、 'OK' で削除します。"
144
 
145
+ #: contact-form-7/includes/admin-panel.php:137
 
146
  msgid "Akismet"
147
  msgstr "Akismet"
148
 
149
+ #: contact-form-7/includes/admin-panel.php:138
150
  msgid "Check this field as sender&#39;s name"
151
  msgstr "このフィールドを送信者の名前としてチェックする"
152
 
153
+ #: contact-form-7/includes/admin-panel.php:139
154
  msgid "Check this field as sender&#39;s email"
155
  msgstr "このフィールドを送信者のメールアドレスとしてチェックする"
156
 
157
+ #: contact-form-7/includes/admin-panel.php:140
158
  msgid "Check this field as sender&#39;s URL"
159
  msgstr "このフィールドを送信者の URL としてチェックする"
160
 
161
+ #: contact-form-7/includes/admin-panel.php:141
 
162
  msgid "Don&#39;t check this field with Akismet"
163
  msgstr "このフィールドは Akismet のチェックの対象としない"
164
 
165
+ #: contact-form-7/includes/admin-panel.php:148
166
+ #: contact-form-7/includes/admin-panel.php:161
167
+ #: contact-form-7/includes/admin-panel.php:194
168
  msgid "Default value"
169
  msgstr "デフォルト値"
170
 
171
+ #: contact-form-7/includes/admin-panel.php:169
 
 
 
 
172
  msgid "Choices"
173
  msgstr "選択項目"
174
 
175
+ #: contact-form-7/includes/admin-panel.php:170
176
  msgid "* One choice per line."
177
  msgstr "* 1行ごとに分けて入力してください。"
178
 
179
+ #: contact-form-7/includes/admin-panel.php:178
180
+ msgid "Foreground color"
181
+ msgstr "文字色"
182
+
183
+ #: contact-form-7/includes/admin-panel.php:179
184
+ msgid "Background color"
185
+ msgstr "背景色"
186
+
187
+ #: contact-form-7/includes/admin-panel.php:180
188
+ msgid "Image size"
189
+ msgstr "画像サイズ"
190
+
191
+ #: contact-form-7/includes/admin-panel.php:182
192
+ msgid "Small"
193
+ msgstr "小"
194
+
195
+ #: contact-form-7/includes/admin-panel.php:183
196
+ msgid "Medium"
197
+ msgstr "中"
198
+
199
+ #: contact-form-7/includes/admin-panel.php:184
200
+ msgid "Large"
201
+ msgstr "大"
202
+
203
+ #: contact-form-7/includes/admin-panel.php:199
204
  msgid "Label"
205
  msgstr "ラベル"
206
 
207
+ #: contact-form-7/includes/admin-panel.php:206
208
  msgid "Insert"
209
  msgstr "挿入"
210
 
languages/wpcf7-pt_BR.mo ADDED
Binary file
languages/wpcf7-pt_BR.po ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP Contact Form 7\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-10-02 15:43-0300\n"
6
+ "Last-Translator: Leonardo <pinheiroweb@gmail.com>\n"
7
+ "Language-Team: Leonardo Pinheiro <pinheiroweb@gmail.com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: Portuguese\n"
12
+ "X-Poedit-Country: BRAZIL\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: ../..\n"
16
+ "X-Poedit-SearchPath-0: contact-form-7\n"
17
+
18
+ #: contact-form-7/wp-contact-form-7.php:128
19
+ #: contact-form-7/wp-contact-form-7.php:201
20
+ msgid "Contact form"
21
+ msgstr "Formulário de Contato"
22
+
23
+ #: contact-form-7/wp-contact-form-7.php:157
24
+ #: contact-form-7/includes/admin-panel.php:5
25
+ msgid "Contact Form 7"
26
+ msgstr "Contact Form 7"
27
+
28
+ #: contact-form-7/wp-contact-form-7.php:177
29
+ #, php-format
30
+ msgid "Contact form \"%s\" deleted. "
31
+ msgstr "Formulário de contato \"%s\" excluído."
32
+
33
+ #: contact-form-7/wp-contact-form-7.php:193
34
+ #, php-format
35
+ msgid "Contact form \"%s\" saved. "
36
+ msgstr "Formulário de contato \"%s\" salvo."
37
+
38
+ #: contact-form-7/wp-contact-form-7.php:222
39
+ msgid "Your Name"
40
+ msgstr "Nome"
41
+
42
+ #: contact-form-7/wp-contact-form-7.php:222
43
+ #: contact-form-7/wp-contact-form-7.php:224
44
+ msgid "(required)"
45
+ msgstr "(obrigatório)"
46
+
47
+ #: contact-form-7/wp-contact-form-7.php:224
48
+ msgid "Your Email"
49
+ msgstr "E-mail"
50
+
51
+ #: contact-form-7/wp-contact-form-7.php:226
52
+ msgid "Subject"
53
+ msgstr "Assunto"
54
+
55
+ #: contact-form-7/wp-contact-form-7.php:228
56
+ msgid "Your Message"
57
+ msgstr "Mensagem"
58
+
59
+ #: contact-form-7/wp-contact-form-7.php:230
60
+ #: contact-form-7/wp-contact-form-7.php:593
61
+ msgid "Send"
62
+ msgstr "Enviar"
63
+
64
+ #: contact-form-7/wp-contact-form-7.php:249
65
+ msgid "Your message was sent successfully. Thanks."
66
+ msgstr "Sua mensagem foi enviada com sucesso. Obrigado."
67
+
68
+ #: contact-form-7/wp-contact-form-7.php:251
69
+ msgid "Failed to send your message. Please try later or contact administrator by other way."
70
+ msgstr "Erro ao enviar sua mensagem. Por favor tente mais tarde ou entre em contato com o webmaster."
71
+
72
+ #: contact-form-7/wp-contact-form-7.php:324
73
+ #: contact-form-7/wp-contact-form-7.php:424
74
+ msgid "Validation errors occurred. Please confirm the fields and submit it again."
75
+ msgstr "Por favor preencha os campos obrigatórios e envie novamente."
76
+
77
+ #: contact-form-7/wp-contact-form-7.php:351
78
+ #: contact-form-7/wp-contact-form-7.php:358
79
+ #: contact-form-7/wp-contact-form-7.php:409
80
+ msgid "Please fill the required field."
81
+ msgstr "Por favor preencha os campos obrigatórios."
82
+
83
+ #: contact-form-7/wp-contact-form-7.php:361
84
+ #: contact-form-7/wp-contact-form-7.php:402
85
+ msgid "Email address seems invalid."
86
+ msgstr "O e-mail parece ter sido preenchido de forma incorreta."
87
+
88
+ #: contact-form-7/includes/admin-panel.php:19
89
+ #: contact-form-7/includes/admin-panel.php:22
90
+ msgid "Add new"
91
+ msgstr "Adiconar novo"
92
+
93
+ #: contact-form-7/includes/admin-panel.php:34
94
+ msgid "Title"
95
+ msgstr "Título"
96
+
97
+ #: contact-form-7/includes/admin-panel.php:39
98
+ msgid "Copy and paste this code into your post content."
99
+ msgstr "Copie e Cole este código dentro do conteúdo do seu POST ou PÁGINA."
100
+
101
+ #: contact-form-7/includes/admin-panel.php:45
102
+ msgid "Form content"
103
+ msgstr "Conteúdo do formulário"
104
+
105
+ #: contact-form-7/includes/admin-panel.php:58
106
+ msgid "Mail template"
107
+ msgstr "Modelo de E-mail"
108
+
109
+ #: contact-form-7/includes/admin-panel.php:59
110
+ msgid "Subject field:"
111
+ msgstr "Campo de assunto:"
112
+
113
+ #: contact-form-7/includes/admin-panel.php:61
114
+ msgid "Sender field:"
115
+ msgstr "Campo do remetente:"
116
+
117
+ #: contact-form-7/includes/admin-panel.php:63
118
+ msgid "Message body:"
119
+ msgstr "Corpo da mensagem:"
120
+
121
+ #: contact-form-7/includes/admin-panel.php:67
122
+ msgid "Options"
123
+ msgstr "Opções"
124
+
125
+ #: contact-form-7/includes/admin-panel.php:68
126
+ msgid "Recipient address:"
127
+ msgstr "Endereço do destinatário:"
128
+
129
+ #: contact-form-7/includes/admin-panel.php:73
130
+ msgid "Save"
131
+ msgstr "Salvar"
132
+
133
+ #: contact-form-7/includes/admin-panel.php:80
134
+ msgid "Delete this contact form"
135
+ msgstr "Apagar este formulário de contato"
136
+
137
+ #: contact-form-7/includes/admin-panel.php:81
138
+ msgid ""
139
+ "You are about to delete this contact form.\n"
140
+ " 'Cancel' to stop, 'OK' to delete."
141
+ msgstr ""
142
+ "O formulário de contato será eliminado. \n"
143
+ " Cancelar para anular, 'OK' para confirmar."
144
+
145
+ #: contact-form-7/includes/admin-panel.php:137
146
+ #: contact-form-7/includes/admin-panel.php:148
147
+ msgid "Default value"
148
+ msgstr "Valor padrão"
149
+
150
+ #: contact-form-7/includes/admin-panel.php:156
151
+ msgid "Choices"
152
+ msgstr "Opções"
153
+
154
+ #: contact-form-7/includes/admin-panel.php:157
155
+ msgid "* One choice per line."
156
+ msgstr "* Uma opção por linha"
157
+
158
+ #: contact-form-7/includes/admin-panel.php:162
159
+ msgid "Label"
160
+ msgstr "Label"
161
+
162
+ #: contact-form-7/includes/admin-panel.php:169
163
+ msgid "Insert"
164
+ msgstr "Inserir"
165
+
languages/wpcf7-ru_RU.mo ADDED
Binary file
languages/wpcf7-ru_RU.po ADDED
@@ -0,0 +1,213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # translation of wpcf7-pl_PL.po to Polish
2
+ # Zbigniew Czernik <czernik@tlen.pl>, 2007.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: wpcf7-ru_RU\n"
6
+ "POT-Creation-Date: \n"
7
+ "PO-Revision-Date: 2007-09-29 20:46+0200\n"
8
+ "Last-Translator: Dmitry <6630125@mail.ru>\n"
9
+ "Language-Team: Russian <volotovich@gmail.com>\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-Language: Russian\n"
14
+ "X-Poedit-Country: Russia\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e\n"
17
+ "X-Poedit-Basepath: ../..\n"
18
+ "X-Generator: KBabel 1.11.4\n"
19
+ "X-Poedit-SearchPath-0: contact-form-7\n"
20
+
21
+ #: contact-form-7/wp-contact-form-7.php:224
22
+ #: contact-form-7/wp-contact-form-7.php:297
23
+ msgid "Contact form"
24
+ msgstr "Форма для контакта"
25
+
26
+ #: contact-form-7/wp-contact-form-7.php:253
27
+ #: contact-form-7/includes/admin-panel.php:5
28
+ msgid "Contact Form 7"
29
+ msgstr "Contact Form 7"
30
+
31
+ #: contact-form-7/wp-contact-form-7.php:273
32
+ #, php-format
33
+ msgid "Contact form \"%s\" deleted. "
34
+ msgstr "Форма \"%s\" удалена."
35
+
36
+ #: contact-form-7/wp-contact-form-7.php:289
37
+ #, php-format
38
+ msgid "Contact form \"%s\" saved. "
39
+ msgstr "Форма \"%s\" сохранена."
40
+
41
+ #: contact-form-7/wp-contact-form-7.php:318
42
+ msgid "Your Name"
43
+ msgstr "Ваше имя"
44
+
45
+ #: contact-form-7/wp-contact-form-7.php:318
46
+ #: contact-form-7/wp-contact-form-7.php:320
47
+ msgid "(required)"
48
+ msgstr "(обязательно)"
49
+
50
+ #: contact-form-7/wp-contact-form-7.php:320
51
+ msgid "Your Email"
52
+ msgstr "Ваш E-Mail"
53
+
54
+ #: contact-form-7/wp-contact-form-7.php:322
55
+ msgid "Subject"
56
+ msgstr "Тема"
57
+
58
+ #: contact-form-7/wp-contact-form-7.php:324
59
+ msgid "Your Message"
60
+ msgstr "Сообщение"
61
+
62
+ #: contact-form-7/wp-contact-form-7.php:326
63
+ #: contact-form-7/wp-contact-form-7.php:738
64
+ msgid "Send"
65
+ msgstr "Отправить"
66
+
67
+ #: contact-form-7/wp-contact-form-7.php:345
68
+ msgid "Your message was sent successfully. Thanks."
69
+ msgstr "Ваше сообщение было отправлено успешно. Спасибо."
70
+
71
+ #: contact-form-7/wp-contact-form-7.php:347
72
+ msgid "Failed to send your message. Please try later or contact administrator by other way."
73
+ msgstr "Ошибка отправки сообщения. Попытайтесь позже или обратитесь к администратору сайта."
74
+
75
+ #: contact-form-7/wp-contact-form-7.php:349
76
+ msgid "Validation errors occurred. Please confirm the fields and submit it again."
77
+ msgstr "Ошибка заполнения. Заполните все поля и отправьте снова."
78
+
79
+ #: contact-form-7/wp-contact-form-7.php:351
80
+ msgid "Email address seems invalid."
81
+ msgstr "Е-mail адрес неправильный."
82
+
83
+ #: contact-form-7/wp-contact-form-7.php:353
84
+ msgid "Please fill the required field."
85
+ msgstr "Пожалуйста, заполните обязательные поля."
86
+
87
+ #: contact-form-7/wp-contact-form-7.php:355
88
+ msgid "Your entered code is incorrect."
89
+ msgstr "Код введен Вами неправильно"
90
+
91
+ #: contact-form-7/includes/admin-panel.php:19
92
+ #: contact-form-7/includes/admin-panel.php:22
93
+ msgid "Add new"
94
+ msgstr "Добавить новую"
95
+
96
+ #: contact-form-7/includes/admin-panel.php:34
97
+ msgid "Title"
98
+ msgstr "Заголовок"
99
+
100
+ #: contact-form-7/includes/admin-panel.php:39
101
+ msgid "Copy and paste this code into your post content."
102
+ msgstr "Скопируйте и вставьте код в Вашу страницу."
103
+
104
+ #: contact-form-7/includes/admin-panel.php:45
105
+ msgid "Form content"
106
+ msgstr "Содержание формы"
107
+
108
+ #: contact-form-7/includes/admin-panel.php:60
109
+ msgid "Mail template"
110
+ msgstr "Шаблон письма"
111
+
112
+ #: contact-form-7/includes/admin-panel.php:61
113
+ msgid "Subject field:"
114
+ msgstr "Поле темы:"
115
+
116
+ #: contact-form-7/includes/admin-panel.php:63
117
+ msgid "Sender field:"
118
+ msgstr "Адрес отправителя:"
119
+
120
+ #: contact-form-7/includes/admin-panel.php:65
121
+ msgid "Message body:"
122
+ msgstr "Тело сообщения:"
123
+
124
+ #: contact-form-7/includes/admin-panel.php:69
125
+ msgid "Options"
126
+ msgstr "Настройки"
127
+
128
+ #: contact-form-7/includes/admin-panel.php:70
129
+ msgid "Recipient address:"
130
+ msgstr "Адрес получателя:"
131
+
132
+ #: contact-form-7/includes/admin-panel.php:75
133
+ msgid "Save"
134
+ msgstr "Сохранить"
135
+
136
+ #: contact-form-7/includes/admin-panel.php:82
137
+ msgid "Delete this contact form"
138
+ msgstr "Удалить эту форму"
139
+
140
+ #: contact-form-7/includes/admin-panel.php:83
141
+ msgid ""
142
+ "You are about to delete this contact form.\n"
143
+ " 'Cancel' to stop, 'OK' to delete."
144
+ msgstr ""
145
+ "Удалить эту форму?.\n"
146
+ " 'Cancel' не удалять, 'OK' удалить."
147
+
148
+ #: contact-form-7/includes/admin-panel.php:137
149
+ msgid "Akismet"
150
+ msgstr "Akismet"
151
+
152
+ #: contact-form-7/includes/admin-panel.php:138
153
+ msgid "Check this field as sender&#39;s name"
154
+ msgstr "Проверять это поле как имя отправителя"
155
+
156
+ #: contact-form-7/includes/admin-panel.php:139
157
+ msgid "Check this field as sender&#39;s email"
158
+ msgstr "Проверять это поле как e-mail"
159
+
160
+ #: contact-form-7/includes/admin-panel.php:140
161
+ msgid "Check this field as sender&#39;s URL"
162
+ msgstr "Проверять это поле как URL"
163
+
164
+ #: contact-form-7/includes/admin-panel.php:141
165
+ msgid "Don&#39;t check this field with Akismet"
166
+ msgstr "Проверять это поле c Akismet плагин"
167
+
168
+ #: contact-form-7/includes/admin-panel.php:148
169
+ #: contact-form-7/includes/admin-panel.php:161
170
+ #: contact-form-7/includes/admin-panel.php:194
171
+ msgid "Default value"
172
+ msgstr "Значение по умолчанию"
173
+
174
+ #: contact-form-7/includes/admin-panel.php:169
175
+ msgid "Choices"
176
+ msgstr "Выбор"
177
+
178
+ #: contact-form-7/includes/admin-panel.php:170
179
+ msgid "* One choice per line."
180
+ msgstr "* по одной в строке."
181
+
182
+ #: contact-form-7/includes/admin-panel.php:178
183
+ msgid "Foreground color"
184
+ msgstr "Цвет переднего плана"
185
+
186
+ #: contact-form-7/includes/admin-panel.php:179
187
+ msgid "Background color"
188
+ msgstr "Цвет фона"
189
+
190
+ #: contact-form-7/includes/admin-panel.php:180
191
+ msgid "Image size"
192
+ msgstr "Размер картинки"
193
+
194
+ #: contact-form-7/includes/admin-panel.php:182
195
+ msgid "Small"
196
+ msgstr "Маленький"
197
+
198
+ #: contact-form-7/includes/admin-panel.php:183
199
+ msgid "Medium"
200
+ msgstr "Средний"
201
+
202
+ #: contact-form-7/includes/admin-panel.php:184
203
+ msgid "Large"
204
+ msgstr "Большой"
205
+
206
+ #: contact-form-7/includes/admin-panel.php:199
207
+ msgid "Label"
208
+ msgstr "Ярлык"
209
+
210
+ #: contact-form-7/includes/admin-panel.php:206
211
+ msgid "Insert"
212
+ msgstr "Вставить"
213
+
stylesheet.css CHANGED
@@ -41,15 +41,3 @@ span.wpcf7-not-valid-tip-no-ajax {
41
  font-size: 10pt;
42
  display: block;
43
  }
44
-
45
- input.wpcf7-email-not-valid {
46
- }
47
-
48
- input.wpcf7-required-not-valid {
49
- }
50
-
51
- textarea.wpcf7-email-not-valid {
52
- }
53
-
54
- textarea.wpcf7-required-not-valid {
55
- }
41
  font-size: 10pt;
42
  display: block;
43
  }
 
 
 
 
 
 
 
 
 
 
 
 
wp-contact-form-7.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Form 7
4
  Plugin URI: http://ideasilo.wordpress.com/2007/04/30/contact-form-7/
5
  Description: Just another contact form plugin. Simple but flexible.
6
  Author: Takayuki Miyoshi
7
- Version: 1.4.4
8
  Author URI: http://ideasilo.wordpress.com/
9
  */
10
 
@@ -28,16 +28,17 @@ Author URI: http://ideasilo.wordpress.com/
28
  class tam_contact_form_seven {
29
 
30
  var $contact_forms;
 
31
 
32
  function tam_contact_form_seven() {
33
  // This backslash replacement for Win32 will be unnecessary. See http://trac.wordpress.org/ticket/3002
34
  add_action('activate_' . strtr(plugin_basename(__FILE__), '\\', '/'), array(&$this, 'set_initial'));
35
- add_action('plugins_loaded', array(&$this, 'load_plugin_textdomain'), 20);
36
  add_action('admin_menu', array(&$this, 'add_pages'));
37
  add_action('admin_head', array(&$this, 'admin_page_stylesheet'));
38
  add_action('wp_head', array(&$this, 'wp_head'));
39
  add_action('wp_print_scripts', array(&$this, 'load_js'));
40
- add_action('init', array(&$this, 'init_switch'));
41
  add_filter('the_content', array(&$this, 'the_content_filter'), 9);
42
  remove_filter('the_content', 'wpautop');
43
  add_filter('the_content', array(&$this, 'wpautop_substitute'));
@@ -80,8 +81,10 @@ class tam_contact_form_seven {
80
  }
81
 
82
  function init_switch() {
83
- if ('POST' == $_SERVER['REQUEST_METHOD'] && isset($_GET['wpcf7']) && 'json' == $_GET['wpcf7'])
84
  $this->ajax_json_echo();
 
 
85
  }
86
 
87
  function ajax_json_echo() {
@@ -91,17 +94,36 @@ class tam_contact_form_seven {
91
  $contact_forms = $this->contact_forms();
92
  if ($cf = $contact_forms[$id]) {
93
  $cf = stripslashes_deep($cf);
94
- $into = '#' . $unit_tag . ' div.wpcf7-response-output';
95
- if ($cf['options']['akismet'] && $this->akismet($cf)) { // Spam!
96
- echo '{ mailSent: 0, message: "' . $this->message('mail_sent_ng') . '", into: "' . $into . '", spam: 1 }';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  } elseif ($this->mail($cf)) {
98
- echo '{ mailSent: 1, message: "' . $this->message('mail_sent_ok') . '", into: "' . $into . '" }';
99
  } else {
100
- echo '{ mailSent: 0, message: "' . $this->message('mail_sent_ng') . '", into: "' . $into . '" }';
101
  }
102
  }
103
  }
104
- exit();
105
  }
106
 
107
  function mail($contact_form) {
@@ -125,23 +147,34 @@ class tam_contact_form_seven {
125
  if (! function_exists('akismet_http_post') || ! (get_option('wordpress_api_key') || $wpcom_api_key))
126
  return false;
127
 
 
128
  $author = $author_email = $author_url = $content = '';
129
  $fes = $this->form_elements($contact_form['form'], false);
 
130
  foreach ($fes as $fe) {
131
  if (! is_array($fe['options'])) continue;
132
 
133
- if (preg_grep('%^akismet:author$%', $fe['options']) && '' == $author)
134
  $author = $_POST[$fe['name']];
135
- if (preg_grep('%^akismet:author_email$%', $fe['options']) && '' == $author_email)
 
 
136
  $author_email = $_POST[$fe['name']];
137
- if (preg_grep('%^akismet:author_url$%', $fe['options']) && '' == $author_url)
 
 
138
  $author_url = $_POST[$fe['name']];
 
 
139
 
140
  if ('' != $content)
141
  $content .= "\n\n";
142
  $content .= $_POST[$fe['name']];
143
  }
144
 
 
 
 
145
  $c['blog'] = get_option('home');
146
  $c['user_ip'] = preg_replace('/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR']);
147
  $c['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
@@ -245,10 +278,9 @@ class tam_contact_form_seven {
245
  $mail_sender = trim($_POST['wpcf7-mail-sender']);
246
  $mail_body = trim($_POST['wpcf7-mail-body']);
247
  $options_recipient = trim($_POST['wpcf7-options-recipient']);
248
- $options_akismet = (bool) $_POST['wpcf7-options-akismet'];
249
 
250
  $mail = array('subject' => $mail_subject, 'sender' => $mail_sender, 'body' => $mail_body);
251
- $options = array('recipient' => $options_recipient, 'akismet' => $options_akismet);
252
 
253
  $contact_forms[$id] = compact('title', 'form', 'mail', 'options');
254
  $updated_message = sprintf(__('Contact form "%s" saved. ', 'wpcf7'), $contact_forms[$id]['title']);
@@ -310,6 +342,14 @@ class tam_contact_form_seven {
310
  return __('Your message was sent successfully. Thanks.', 'wpcf7');
311
  case 'mail_sent_ng':
312
  return __('Failed to send your message. Please try later or contact administrator by other way.', 'wpcf7');
 
 
 
 
 
 
 
 
313
  }
314
  }
315
 
@@ -324,18 +364,15 @@ class tam_contact_form_seven {
324
  $contact_forms = $this->contact_forms();
325
  if ($cf = $contact_forms[$id]) {
326
  $cf = stripslashes_deep($cf);
327
- $fes = $this->form_elements($cf['form'], false);
328
- $validation = $this->validate_form_elements($fes);
329
- if ($validation['valid']) {
330
- if ($cf['options']['akismet'] && $this->akismet($cf)) { // Spam!
331
- $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message('mail_sent_ng'), 'spam' => true);
332
- } elseif ($this->mail($cf)) {
333
- $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => true, 'message' => $this->message('mail_sent_ok'));
334
- } else {
335
- $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message('mail_sent_ng'));
336
- }
337
- } else {
338
  $_POST['_wpcf7_validation_errors'] = array('id' => $id, 'messages' => $validation['reason']);
 
 
 
 
 
 
339
  }
340
  }
341
  }
@@ -386,7 +423,7 @@ class tam_contact_form_seven {
386
  }
387
  } elseif (isset($_POST['_wpcf7_validation_errors']) && $_POST['_wpcf7_validation_errors']['id'] == $id) {
388
  $class .= ' wpcf7-validation-errors';
389
- $content = __('Validation errors occurred. Please confirm the fields and submit it again.', 'wpcf7');
390
  }
391
  }
392
 
@@ -396,16 +433,19 @@ class tam_contact_form_seven {
396
 
397
  $form .= '</div>';
398
 
 
 
399
  $this->order_in_post += 1;
400
  $this->processing_unit_tag = null;
401
  return $form;
402
  }
403
 
404
- function validate_form_elements($form_elements) {
 
405
  $valid = true;
406
  $reason = array();
407
 
408
- foreach ($form_elements as $fe) {
409
  $type = $fe['type'];
410
  $name = $fe['name'];
411
 
@@ -413,27 +453,56 @@ class tam_contact_form_seven {
413
  if (preg_match('/^(?:text|textarea)[*]$/', $type)) {
414
  if (empty($_POST[$name])) {
415
  $valid = false;
416
- $reason[$name] = __('Please fill the required field.', 'wpcf7');
417
  }
418
  }
419
 
420
  if (preg_match('/^email[*]?$/', $type)) {
421
  if ('*' == substr($type, -1) && empty($_POST[$name])) {
422
  $valid = false;
423
- $reason[$name] = __('Please fill the required field.', 'wpcf7');
424
  } elseif (! is_email($_POST[$name])) {
425
  $valid = false;
426
- $reason[$name] = __('Email address seems invalid.', 'wpcf7');
427
  }
428
  }
 
 
 
 
 
 
 
 
 
429
  }
430
  return compact('valid', 'reason');
431
  }
432
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
433
  function wp_head() {
434
  $stylesheet_url = get_option('siteurl') . '/wp-content/plugins/contact-form-7/stylesheet.css';
435
  echo '<link rel="stylesheet" href="' . $stylesheet_url . '" type="text/css" />';
436
 
 
 
437
  $url = parse_url($_SERVER['REQUEST_URI']);
438
  if (empty($url['query']))
439
  $override_url = $url['path'] . '?wpcf7=json';
@@ -442,96 +511,9 @@ class tam_contact_form_seven {
442
 
443
  ?>
444
  <script type="text/javascript">
445
- //<![CDATA[
446
-
447
- jQuery(document).ready(function() {
448
- jQuery('div.wpcf7 > form').ajaxForm({
449
- beforeSubmit: validate,
450
- url: '<?php echo $override_url; ?>',
451
- dataType: 'json',
452
- success: processJson,
453
- clearForm: true,
454
- resetForm: true
455
- });
456
- });
457
-
458
- function validate(formData, jqForm, options) {
459
- var wpcf7ResponseOutput = jQuery('div.wpcf7-response-output', jqForm.parents('div.wpcf7')).lt(1);
460
- clearResponseOutput();
461
- jQuery('img.ajax-loader', jqForm[0]).css({ visibility: 'visible' });
462
- var valid = true;
463
-
464
- jQuery('.wpcf7-validates-as-email', jqForm[0]).each(function() {
465
- if (! isEmail(this.value)) {
466
- jQuery(this).addClass('wpcf7-email-not-valid');
467
- this.wpcf7InvalidMessage = '<?php _e('Email address seems invalid.', 'wpcf7'); ?>';
468
- }
469
- });
470
-
471
- jQuery('.wpcf7-validates-as-required', jqForm[0]).each(function() {
472
- if (! this.value) {
473
- jQuery(this).addClass('wpcf7-required-not-valid');
474
- this.wpcf7InvalidMessage = '<?php _e('Please fill the required field.', 'wpcf7'); ?>';
475
- }
476
- });
477
-
478
- jQuery.each(jqForm[0].elements, function() {
479
- if (this.wpcf7InvalidMessage) {
480
- notValidTip(this, this.wpcf7InvalidMessage);
481
- valid = false;
482
- this.wpcf7InvalidMessage = null;
483
- }
484
- });
485
-
486
- if (! valid) {
487
- jQuery('img.ajax-loader', jqForm[0]).css({ visibility: 'hidden' });
488
- wpcf7ResponseOutput.addClass('wpcf7-validation-errors');
489
- wpcf7ResponseOutput.append('<?php _e('Validation errors occurred. Please confirm the fields and submit it again.', 'wpcf7'); ?>').fadeIn('fast');
490
- }
491
-
492
- return valid;
493
- }
494
-
495
- function isEmail(user_email) {
496
- var chars = /^[-a-z0-9+_.]+@([-a-z0-9_]+[.])+[a-z]{2,6}$/i;
497
- return chars.test(user_email);
498
- }
499
-
500
- function notValidTip(input, message) {
501
- jQuery(input).after('<span class="wpcf7-not-valid-tip">' + message + '</span>');
502
- jQuery('span.wpcf7-not-valid-tip').mouseover(function() {
503
- jQuery(this).fadeOut('fast');
504
- });
505
- jQuery(input).mouseover(function() {
506
- jQuery(input).siblings('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
507
- });
508
- jQuery(input).focus(function() {
509
- jQuery(input).siblings('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
510
- });
511
- }
512
-
513
- function processJson(data) {
514
- var wpcf7ResponseOutput = jQuery(data.into);
515
- clearResponseOutput();
516
- if (1 == data.mailSent) {
517
- wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ok');
518
- } else {
519
- wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ng');
520
- }
521
- if (1 == data.spam) {
522
- wpcf7ResponseOutput.addClass('wpcf7-spam-blocked');
523
- }
524
- wpcf7ResponseOutput.append(data.message).fadeIn('fast');
525
- }
526
-
527
- function clearResponseOutput() {
528
- jQuery('div.wpcf7-response-output').hide().empty().removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked');
529
- jQuery('span.wpcf7-not-valid-tip').remove();
530
- jQuery('img.ajax-loader').css({ visibility: 'hidden' });
531
- }
532
-
533
- //]]>
534
  </script>
 
535
  <?php
536
  }
537
 
@@ -543,7 +525,8 @@ function clearResponseOutput() {
543
  /* Processing form element placeholders */
544
 
545
  function form_elements($form, $replace = true) {
546
- $regex = '%\[\s*((?:text|email|textarea|select)[*]?)(\s+[a-zA-Z][0-9a-zA-Z:._-]*)([-0-9a-zA-Z:_/\s]*)?((?:\s*(?:"[^"]*"|\'[^\']*\'))*)?\s*\]%';
 
547
  $submit_regex = '/\[\s*submit(\s+(?:"[^"]*"|\'[^\']*\'))?\s*\]/';
548
  if ($replace) {
549
  $form = preg_replace_callback($regex, array(&$this, 'form_element_replace_callback'), $form);
@@ -591,7 +574,10 @@ function clearResponseOutput() {
591
  $class_att .= ' wpcf7-validates-as-email';
592
  if (preg_match('/[*]$/', $type))
593
  $class_att .= ' wpcf7-validates-as-required';
594
-
 
 
 
595
  if ($class_att)
596
  $atts .= ' class="' . trim($class_att) . '"';
597
  }
@@ -600,6 +586,8 @@ function clearResponseOutput() {
600
  if ($this->processing_unit_tag == $_POST['_wpcf7_unit_tag']) {
601
  if (isset($_POST['_wpcf7_mail_sent']) && $_POST['_wpcf7_mail_sent']['ok'])
602
  $value = '';
 
 
603
  else
604
  $value = $_POST[$name];
605
  } else {
@@ -610,6 +598,7 @@ function clearResponseOutput() {
610
  switch ($type) {
611
  case 'text':
612
  case 'email':
 
613
  if (is_array($options)) {
614
  $size_maxlength_array = preg_grep('%^[0-9]*[/x][0-9]*$%', $options);
615
  if ($size_maxlength = array_shift($size_maxlength_array)) {
@@ -654,6 +643,28 @@ function clearResponseOutput() {
654
  $html = '<span style="position: relative;">' . $html . $validation_error . '</span>';
655
  return $html;
656
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
657
  }
658
  }
659
 
@@ -697,9 +708,150 @@ function clearResponseOutput() {
697
  return $result;
698
  }
699
  }
700
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
701
  }
702
 
 
 
703
  new tam_contact_form_seven();
704
 
705
  ?>
4
  Plugin URI: http://ideasilo.wordpress.com/2007/04/30/contact-form-7/
5
  Description: Just another contact form plugin. Simple but flexible.
6
  Author: Takayuki Miyoshi
7
+ Version: 1.5
8
  Author URI: http://ideasilo.wordpress.com/
9
  */
10
 
28
  class tam_contact_form_seven {
29
 
30
  var $contact_forms;
31
+ var $captcha;
32
 
33
  function tam_contact_form_seven() {
34
  // This backslash replacement for Win32 will be unnecessary. See http://trac.wordpress.org/ticket/3002
35
  add_action('activate_' . strtr(plugin_basename(__FILE__), '\\', '/'), array(&$this, 'set_initial'));
36
+ add_action('init', array(&$this, 'load_plugin_textdomain'));
37
  add_action('admin_menu', array(&$this, 'add_pages'));
38
  add_action('admin_head', array(&$this, 'admin_page_stylesheet'));
39
  add_action('wp_head', array(&$this, 'wp_head'));
40
  add_action('wp_print_scripts', array(&$this, 'load_js'));
41
+ add_action('init', array(&$this, 'init_switch'), 11);
42
  add_filter('the_content', array(&$this, 'the_content_filter'), 9);
43
  remove_filter('the_content', 'wpautop');
44
  add_filter('the_content', array(&$this, 'wpautop_substitute'));
81
  }
82
 
83
  function init_switch() {
84
+ if ('POST' == $_SERVER['REQUEST_METHOD'] && isset($_GET['wpcf7']) && 'json' == $_GET['wpcf7']) {
85
  $this->ajax_json_echo();
86
+ exit();
87
+ }
88
  }
89
 
90
  function ajax_json_echo() {
94
  $contact_forms = $this->contact_forms();
95
  if ($cf = $contact_forms[$id]) {
96
  $cf = stripslashes_deep($cf);
97
+ $validation = $this->validate($cf);
98
+
99
+ $captchas = $this->refill_captcha($cf);
100
+ if (! empty($captchas)) {
101
+ $captchas_js = array();
102
+ foreach ($captchas as $name => $cap) {
103
+ $captchas_js[] = '"' . $name . '": "' . $cap . '"';
104
+ }
105
+ $captcha = '{ ' . join(', ', $captchas_js) . ' }';
106
+ } else {
107
+ $captcha = 'null';
108
+ }
109
+
110
+ if (! $validation['valid']) { // Validation error occured
111
+ $invalids = array();
112
+ foreach ($validation['reason'] as $name => $reason) {
113
+ $invalids[] = '{ into: ":input[@name=' . $name . ']", message: "' . js_escape($reason) . '" }';
114
+ }
115
+ $invalids = '[' . join(', ', $invalids) . ']';
116
+ echo '{ mailSent: 0, message: "' . js_escape($this->message('validation_error')) . '", into: "#' . $unit_tag . '", invalids: ' . $invalids . ', captcha: ' . $captcha . ' }';
117
+ } elseif ($this->akismet($cf)) { // Spam!
118
+ echo '{ mailSent: 0, message: "' . js_escape($this->message('mail_sent_ng')) . '", into: "#' . $unit_tag . '", spam: 1, captcha: ' . $captcha . ' }';
119
  } elseif ($this->mail($cf)) {
120
+ echo '{ mailSent: 1, message: "' . js_escape($this->message('mail_sent_ok')) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ' }';
121
  } else {
122
+ echo '{ mailSent: 0, message: "' . js_escape($this->message('mail_sent_ng')) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ' }';
123
  }
124
  }
125
  }
126
+ $this->cleanup_captcha_files();
127
  }
128
 
129
  function mail($contact_form) {
147
  if (! function_exists('akismet_http_post') || ! (get_option('wordpress_api_key') || $wpcom_api_key))
148
  return false;
149
 
150
+ $akismet_ready = false;
151
  $author = $author_email = $author_url = $content = '';
152
  $fes = $this->form_elements($contact_form['form'], false);
153
+
154
  foreach ($fes as $fe) {
155
  if (! is_array($fe['options'])) continue;
156
 
157
+ if (preg_grep('%^akismet:author$%', $fe['options']) && '' == $author) {
158
  $author = $_POST[$fe['name']];
159
+ $akismet_ready = true;
160
+ }
161
+ if (preg_grep('%^akismet:author_email$%', $fe['options']) && '' == $author_email) {
162
  $author_email = $_POST[$fe['name']];
163
+ $akismet_ready = true;
164
+ }
165
+ if (preg_grep('%^akismet:author_url$%', $fe['options']) && '' == $author_url) {
166
  $author_url = $_POST[$fe['name']];
167
+ $akismet_ready = true;
168
+ }
169
 
170
  if ('' != $content)
171
  $content .= "\n\n";
172
  $content .= $_POST[$fe['name']];
173
  }
174
 
175
+ if (! $akismet_ready)
176
+ return false;
177
+
178
  $c['blog'] = get_option('home');
179
  $c['user_ip'] = preg_replace('/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR']);
180
  $c['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
278
  $mail_sender = trim($_POST['wpcf7-mail-sender']);
279
  $mail_body = trim($_POST['wpcf7-mail-body']);
280
  $options_recipient = trim($_POST['wpcf7-options-recipient']);
 
281
 
282
  $mail = array('subject' => $mail_subject, 'sender' => $mail_sender, 'body' => $mail_body);
283
+ $options = array('recipient' => $options_recipient);
284
 
285
  $contact_forms[$id] = compact('title', 'form', 'mail', 'options');
286
  $updated_message = sprintf(__('Contact form "%s" saved. ', 'wpcf7'), $contact_forms[$id]['title']);
342
  return __('Your message was sent successfully. Thanks.', 'wpcf7');
343
  case 'mail_sent_ng':
344
  return __('Failed to send your message. Please try later or contact administrator by other way.', 'wpcf7');
345
+ case 'validation_error':
346
+ return __('Validation errors occurred. Please confirm the fields and submit it again.', 'wpcf7');
347
+ case 'invalid_email':
348
+ return __('Email address seems invalid.', 'wpcf7');
349
+ case 'invalid_required':
350
+ return __('Please fill the required field.', 'wpcf7');
351
+ case 'captcha_not_match':
352
+ return __('Your entered code is incorrect.', 'wpcf7');
353
  }
354
  }
355
 
364
  $contact_forms = $this->contact_forms();
365
  if ($cf = $contact_forms[$id]) {
366
  $cf = stripslashes_deep($cf);
367
+ $validation = $this->validate($cf);
368
+ if (! $validation['valid']) {
 
 
 
 
 
 
 
 
 
369
  $_POST['_wpcf7_validation_errors'] = array('id' => $id, 'messages' => $validation['reason']);
370
+ } elseif ($this->akismet($cf)) { // Spam!
371
+ $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message('mail_sent_ng'), 'spam' => true);
372
+ } elseif ($this->mail($cf)) {
373
+ $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => true, 'message' => $this->message('mail_sent_ok'));
374
+ } else {
375
+ $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message('mail_sent_ng'));
376
  }
377
  }
378
  }
423
  }
424
  } elseif (isset($_POST['_wpcf7_validation_errors']) && $_POST['_wpcf7_validation_errors']['id'] == $id) {
425
  $class .= ' wpcf7-validation-errors';
426
+ $content = $this->message('validation_error');
427
  }
428
  }
429
 
433
 
434
  $form .= '</div>';
435
 
436
+ $this->cleanup_captcha_files();
437
+
438
  $this->order_in_post += 1;
439
  $this->processing_unit_tag = null;
440
  return $form;
441
  }
442
 
443
+ function validate($contact_form) {
444
+ $fes = $this->form_elements($contact_form['form'], false);
445
  $valid = true;
446
  $reason = array();
447
 
448
+ foreach ($fes as $fe) {
449
  $type = $fe['type'];
450
  $name = $fe['name'];
451
 
453
  if (preg_match('/^(?:text|textarea)[*]$/', $type)) {
454
  if (empty($_POST[$name])) {
455
  $valid = false;
456
+ $reason[$name] = $this->message('invalid_required');
457
  }
458
  }
459
 
460
  if (preg_match('/^email[*]?$/', $type)) {
461
  if ('*' == substr($type, -1) && empty($_POST[$name])) {
462
  $valid = false;
463
+ $reason[$name] = $this->message('invalid_required');
464
  } elseif (! is_email($_POST[$name])) {
465
  $valid = false;
466
+ $reason[$name] = $this->message('invalid_email');
467
  }
468
  }
469
+
470
+ if (preg_match('/^captchar$/', $type)) {
471
+ $captchac = '_wpcf7_captcha_challenge_' . $name;
472
+ if (! $this->check_captcha($_POST[$captchac], $_POST[$name])) {
473
+ $valid = false;
474
+ $reason[$name] = $this->message('captcha_not_match');
475
+ }
476
+ $this->remove_captcha($_POST[$captchac]);
477
+ }
478
  }
479
  return compact('valid', 'reason');
480
  }
481
 
482
+ function refill_captcha($contact_form) {
483
+ $fes = $this->form_elements($contact_form['form'], false);
484
+ $refill = array();
485
+
486
+ foreach ($fes as $fe) {
487
+ $type = $fe['type'];
488
+ $name = $fe['name'];
489
+ $options = $fe['options'];
490
+ if ('captchac' == $type) {
491
+ $op = $this->captchac_options($options);
492
+ if ($filename = $this->generate_captcha($op))
493
+ $captcha_url = get_option('siteurl') . '/wp-content/plugins/contact-form-7/captcha/tmp/' . $filename;
494
+ $refill[$name] = $captcha_url;
495
+ }
496
+ }
497
+ return $refill;
498
+ }
499
+
500
  function wp_head() {
501
  $stylesheet_url = get_option('siteurl') . '/wp-content/plugins/contact-form-7/stylesheet.css';
502
  echo '<link rel="stylesheet" href="' . $stylesheet_url . '" type="text/css" />';
503
 
504
+ $javascript_url = get_option('siteurl') . '/wp-content/plugins/contact-form-7/contact-form-7.js';
505
+
506
  $url = parse_url($_SERVER['REQUEST_URI']);
507
  if (empty($url['query']))
508
  $override_url = $url['path'] . '?wpcf7=json';
511
 
512
  ?>
513
  <script type="text/javascript">
514
+ var _wpcf7 = { ajaxUrl: '<?php echo $override_url; ?>' };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
515
  </script>
516
+ <script type='text/javascript' src='<?php echo $javascript_url; ?>'></script>
517
  <?php
518
  }
519
 
525
  /* Processing form element placeholders */
526
 
527
  function form_elements($form, $replace = true) {
528
+ $types = 'text|email|textarea|select|captchac|captchar';
529
+ $regex = '%\[\s*((?:' . $types . ')[*]?)(\s+[a-zA-Z][0-9a-zA-Z:._-]*)([-0-9a-zA-Z:#_/\s]*)?((?:\s*(?:"[^"]*"|\'[^\']*\'))*)?\s*\]%';
530
  $submit_regex = '/\[\s*submit(\s+(?:"[^"]*"|\'[^\']*\'))?\s*\]/';
531
  if ($replace) {
532
  $form = preg_replace_callback($regex, array(&$this, 'form_element_replace_callback'), $form);
574
  $class_att .= ' wpcf7-validates-as-email';
575
  if (preg_match('/[*]$/', $type))
576
  $class_att .= ' wpcf7-validates-as-required';
577
+
578
+ if (preg_match('/^captchac$/', $type))
579
+ $class_att .= ' wpcf7-captcha-' . $name;
580
+
581
  if ($class_att)
582
  $atts .= ' class="' . trim($class_att) . '"';
583
  }
586
  if ($this->processing_unit_tag == $_POST['_wpcf7_unit_tag']) {
587
  if (isset($_POST['_wpcf7_mail_sent']) && $_POST['_wpcf7_mail_sent']['ok'])
588
  $value = '';
589
+ elseif ('captchar' == $type)
590
+ $value = '';
591
  else
592
  $value = $_POST[$name];
593
  } else {
598
  switch ($type) {
599
  case 'text':
600
  case 'email':
601
+ case 'captchar':
602
  if (is_array($options)) {
603
  $size_maxlength_array = preg_grep('%^[0-9]*[/x][0-9]*$%', $options);
604
  if ($size_maxlength = array_shift($size_maxlength_array)) {
643
  $html = '<span style="position: relative;">' . $html . $validation_error . '</span>';
644
  return $html;
645
  break;
646
+ case 'captchac':
647
+ $op = array();
648
+ // Default
649
+ $op['img_size'] = array(72, 24);
650
+ $op['base'] = array(6, 18);
651
+ $op['font_size'] = 14;
652
+ $op['font_char_width'] = 15;
653
+
654
+ $op = array_merge($op, $this->captchac_options($options));
655
+
656
+ if (! $filename = $this->generate_captcha($op)) {
657
+ return '';
658
+ break;
659
+ }
660
+ if (is_array($op['img_size']))
661
+ $atts .= ' width="' . $op['img_size'][0] . '" height="' . $op['img_size'][1] . '"';
662
+ $captcha_url = get_option('siteurl') . '/wp-content/plugins/contact-form-7/captcha/tmp/' . $filename;
663
+ $html = '<img src="' . $captcha_url . '"' . $atts . ' />';
664
+ $ref = substr($filename, 0, strrpos($filename, '.'));
665
+ $html = '<input type="hidden" name="_wpcf7_captcha_challenge_' . $name . '" value="' . $ref . '" />' . $html;
666
+ return $html;
667
+ break;
668
  }
669
  }
670
 
708
  return $result;
709
  }
710
  }
711
+
712
+ function generate_captcha($options = null) {
713
+ if (! is_object($this->captcha))
714
+ $this->captcha = new tam_captcha();
715
+ $captcha =& $this->captcha;
716
+
717
+ if (! is_dir($captcha->tmp_dir) || ! is_writable($captcha->tmp_dir))
718
+ return false;
719
+
720
+ $img_type = imagetypes();
721
+ if ($img_type & IMG_PNG)
722
+ $captcha->img_type = 'png';
723
+ elseif ($img_type & IMG_GIF)
724
+ $captcha->img_type = 'gif';
725
+ elseif ($img_type & IMG_JPG)
726
+ $captcha->img_type = 'jpeg';
727
+ else
728
+ return false;
729
+
730
+ if (is_array($options)) {
731
+ if (isset($options['img_size']))
732
+ $captcha->img_size = $options['img_size'];
733
+ if (isset($options['base']))
734
+ $captcha->base = $options['base'];
735
+ if (isset($options['font_size']))
736
+ $captcha->font_size = $options['font_size'];
737
+ if (isset($options['font_char_width']))
738
+ $captcha->font_char_width = $options['font_char_width'];
739
+ if (isset($options['fg']))
740
+ $captcha->fg = $options['fg'];
741
+ if (isset($options['bg']))
742
+ $captcha->bg = $options['bg'];
743
+ }
744
+
745
+ $prefix = mt_rand();
746
+ $captcha_word = $captcha->generate_random_word();
747
+ return $captcha->generate_image($prefix, $captcha_word);
748
+ }
749
+
750
+ function check_captcha($prefix, $response) {
751
+ if (! is_object($this->captcha))
752
+ $this->captcha = new tam_captcha();
753
+ $captcha =& $this->captcha;
754
+
755
+ return $captcha->check($prefix, $response);
756
+ }
757
+
758
+ function remove_captcha($prefix) {
759
+ if (! is_object($this->captcha))
760
+ $this->captcha = new tam_captcha();
761
+ $captcha =& $this->captcha;
762
+
763
+ $captcha->remove($prefix);
764
+ }
765
+
766
+ function cleanup_captcha_files() {
767
+ if (! is_object($this->captcha))
768
+ $this->captcha = new tam_captcha();
769
+ $captcha =& $this->captcha;
770
+
771
+ $tmp_dir = $captcha->tmp_dir;
772
+
773
+ if (! is_dir($tmp_dir) || ! is_writable($tmp_dir))
774
+ return false;
775
+
776
+ if ($handle = opendir($tmp_dir)) {
777
+ while (false !== ($file = readdir($handle))) {
778
+ if (! preg_match('/^[0-9]+\.(php|png|gif|jpeg)$/', $file))
779
+ continue;
780
+ $stat = stat($tmp_dir . $file);
781
+ if ($stat['mtime'] + 21600 < time()) // 21600 secs == 6 hours
782
+ @ unlink($tmp_dir . $file);
783
+ }
784
+ closedir($handle);
785
+ }
786
+ }
787
+
788
+ function captchac_options($options) {
789
+ if (! is_array($options))
790
+ return array();
791
+
792
+ $op = array();
793
+ $image_size_array = preg_grep('%^size:[smlSML]$%', $options);
794
+ if ($image_size = array_shift($image_size_array)) {
795
+ preg_match('%^size:([smlSML])$%', $image_size, $is_matches);
796
+ switch (strtolower($is_matches[1])) {
797
+ case 's':
798
+ $op['img_size'] = array(60, 20);
799
+ $op['base'] = array(6, 15);
800
+ $op['font_size'] = 11;
801
+ $op['font_char_width'] = 13;
802
+ break;
803
+ case 'l':
804
+ $op['img_size'] = array(84, 28);
805
+ $op['base'] = array(6, 20);
806
+ $op['font_size'] = 17;
807
+ $op['font_char_width'] = 19;
808
+ break;
809
+ case 'm':
810
+ default:
811
+ $op['img_size'] = array(72, 24);
812
+ $op['base'] = array(6, 18);
813
+ $op['font_size'] = 14;
814
+ $op['font_char_width'] = 15;
815
+ }
816
+ }
817
+ $fg_color_array = preg_grep('%^fg:#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$%', $options);
818
+ if ($fg_color = array_shift($fg_color_array)) {
819
+ preg_match('%^fg:#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$%', $fg_color, $fc_matches);
820
+ if (3 == strlen($fc_matches[1])) {
821
+ $r = substr($fc_matches[1], 0, 1);
822
+ $g = substr($fc_matches[1], 1, 1);
823
+ $b = substr($fc_matches[1], 2, 1);
824
+ $op['fg'] = array(hexdec($r . $r), hexdec($g . $g), hexdec($b . $b));
825
+ } elseif (6 == strlen($fc_matches[1])) {
826
+ $r = substr($fc_matches[1], 0, 2);
827
+ $g = substr($fc_matches[1], 2, 2);
828
+ $b = substr($fc_matches[1], 4, 2);
829
+ $op['fg'] = array(hexdec($r), hexdec($g), hexdec($b));
830
+ }
831
+ }
832
+ $bg_color_array = preg_grep('%^bg:#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$%', $options);
833
+ if ($bg_color = array_shift($bg_color_array)) {
834
+ preg_match('%^bg:#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$%', $bg_color, $bc_matches);
835
+ if (3 == strlen($bc_matches[1])) {
836
+ $r = substr($bc_matches[1], 0, 1);
837
+ $g = substr($bc_matches[1], 1, 1);
838
+ $b = substr($bc_matches[1], 2, 1);
839
+ $op['bg'] = array(hexdec($r . $r), hexdec($g . $g), hexdec($b . $b));
840
+ } elseif (6 == strlen($bc_matches[1])) {
841
+ $r = substr($bc_matches[1], 0, 2);
842
+ $g = substr($bc_matches[1], 2, 2);
843
+ $b = substr($bc_matches[1], 4, 2);
844
+ $op['bg'] = array(hexdec($r), hexdec($g), hexdec($b));
845
+ }
846
+ }
847
+
848
+ return $op;
849
+ }
850
+
851
  }
852
 
853
+ require_once(dirname(__FILE__) . '/captcha/captcha.php');
854
+
855
  new tam_contact_form_seven();
856
 
857
  ?>