Merge lp:~yoboy-leguesh/ubuntu-party/bug720119 into lp:ubuntu-party
- bug720119
- Merge into trunk
Proposed by
YoBoY
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 7 | ||||
Proposed branch: | lp:~yoboy-leguesh/ubuntu-party/bug720119 | ||||
Merge into: | lp:ubuntu-party | ||||
Diff against target: |
8305 lines (+7976/-0) 37 files modified
wp-content/plugins/contact-form-7/admin/admin.php (+370/-0) wp-content/plugins/contact-form-7/admin/edit.php (+351/-0) wp-content/plugins/contact-form-7/admin/scripts.js (+116/-0) wp-content/plugins/contact-form-7/admin/styles-rtl.css (+22/-0) wp-content/plugins/contact-form-7/admin/styles.css (+248/-0) wp-content/plugins/contact-form-7/admin/taggenerator.js (+262/-0) wp-content/plugins/contact-form-7/includes/classes.php (+645/-0) wp-content/plugins/contact-form-7/includes/controller.php (+288/-0) wp-content/plugins/contact-form-7/includes/formatting.php (+144/-0) wp-content/plugins/contact-form-7/includes/functions.php (+225/-0) wp-content/plugins/contact-form-7/includes/pipe.php (+67/-0) wp-content/plugins/contact-form-7/includes/shortcodes.php (+171/-0) wp-content/plugins/contact-form-7/includes/taggenerator.php (+49/-0) wp-content/plugins/contact-form-7/jquery.form.js (+791/-0) wp-content/plugins/contact-form-7/languages/readme.txt (+9/-0) wp-content/plugins/contact-form-7/languages/wpcf7.pot (+842/-0) wp-content/plugins/contact-form-7/license.txt (+339/-0) wp-content/plugins/contact-form-7/modules/acceptance.php (+186/-0) wp-content/plugins/contact-form-7/modules/captcha.php (+490/-0) wp-content/plugins/contact-form-7/modules/checkbox.php (+244/-0) wp-content/plugins/contact-form-7/modules/file.php (+349/-0) wp-content/plugins/contact-form-7/modules/icl.php (+79/-0) wp-content/plugins/contact-form-7/modules/quiz.php (+214/-0) wp-content/plugins/contact-form-7/modules/response.php (+17/-0) wp-content/plugins/contact-form-7/modules/select.php (+193/-0) wp-content/plugins/contact-form-7/modules/special-mail-tags.php (+69/-0) wp-content/plugins/contact-form-7/modules/submit.php (+97/-0) wp-content/plugins/contact-form-7/modules/text.php (+210/-0) wp-content/plugins/contact-form-7/modules/textarea.php (+172/-0) wp-content/plugins/contact-form-7/readme.txt (+136/-0) wp-content/plugins/contact-form-7/scripts.js (+198/-0) wp-content/plugins/contact-form-7/settings.php (+111/-0) wp-content/plugins/contact-form-7/styles-rtl.css (+12/-0) wp-content/plugins/contact-form-7/styles.css (+65/-0) wp-content/plugins/contact-form-7/uninstall.php (+18/-0) wp-content/plugins/contact-form-7/wp-contact-form-7.php (+69/-0) wp-content/themes/ubuntu-party_light/images/icons/up_mail.svg (+108/-0) |
||||
To merge this branch: | bzr merge lp:~yoboy-leguesh/ubuntu-party/bug720119 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Party WebApps Developpers | Pending | ||
Review via email: mp+50354@code.launchpad.net |
Commit message
Description of the change
Ajout d'un plugin de contact, et d'une icone enveloppe
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'wp-content/plugins/contact-form-7' | |||
2 | === added directory 'wp-content/plugins/contact-form-7/admin' | |||
3 | === added file 'wp-content/plugins/contact-form-7/admin/admin.php' | |||
4 | --- wp-content/plugins/contact-form-7/admin/admin.php 1970-01-01 00:00:00 +0000 | |||
5 | +++ wp-content/plugins/contact-form-7/admin/admin.php 2011-02-18 16:15:41 +0000 | |||
6 | @@ -0,0 +1,370 @@ | |||
7 | 1 | <?php | ||
8 | 2 | |||
9 | 3 | function wpcf7_admin_has_edit_cap() { | ||
10 | 4 | return current_user_can( WPCF7_ADMIN_READ_WRITE_CAPABILITY ); | ||
11 | 5 | } | ||
12 | 6 | |||
13 | 7 | add_action( 'admin_menu', 'wpcf7_admin_add_pages', 9 ); | ||
14 | 8 | |||
15 | 9 | function wpcf7_admin_add_pages() { | ||
16 | 10 | |||
17 | 11 | if ( isset( $_POST['wpcf7-save'] ) && wpcf7_admin_has_edit_cap() ) { | ||
18 | 12 | $id = $_POST['wpcf7-id']; | ||
19 | 13 | check_admin_referer( 'wpcf7-save_' . $id ); | ||
20 | 14 | |||
21 | 15 | if ( ! $contact_form = wpcf7_contact_form( $id ) ) { | ||
22 | 16 | $contact_form = new WPCF7_ContactForm(); | ||
23 | 17 | $contact_form->initial = true; | ||
24 | 18 | } | ||
25 | 19 | |||
26 | 20 | $title = trim( $_POST['wpcf7-title'] ); | ||
27 | 21 | |||
28 | 22 | $form = trim( $_POST['wpcf7-form'] ); | ||
29 | 23 | |||
30 | 24 | $mail = array( | ||
31 | 25 | 'subject' => trim( $_POST['wpcf7-mail-subject'] ), | ||
32 | 26 | 'sender' => trim( $_POST['wpcf7-mail-sender'] ), | ||
33 | 27 | 'body' => trim( $_POST['wpcf7-mail-body'] ), | ||
34 | 28 | 'recipient' => trim( $_POST['wpcf7-mail-recipient'] ), | ||
35 | 29 | 'additional_headers' => trim( $_POST['wpcf7-mail-additional-headers'] ), | ||
36 | 30 | 'attachments' => trim( $_POST['wpcf7-mail-attachments'] ), | ||
37 | 31 | 'use_html' => | ||
38 | 32 | isset( $_POST['wpcf7-mail-use-html'] ) && 1 == $_POST['wpcf7-mail-use-html'] | ||
39 | 33 | ); | ||
40 | 34 | |||
41 | 35 | $mail_2 = array( | ||
42 | 36 | 'active' => | ||
43 | 37 | isset( $_POST['wpcf7-mail-2-active'] ) && 1 == $_POST['wpcf7-mail-2-active'], | ||
44 | 38 | 'subject' => trim( $_POST['wpcf7-mail-2-subject'] ), | ||
45 | 39 | 'sender' => trim( $_POST['wpcf7-mail-2-sender'] ), | ||
46 | 40 | 'body' => trim( $_POST['wpcf7-mail-2-body'] ), | ||
47 | 41 | 'recipient' => trim( $_POST['wpcf7-mail-2-recipient'] ), | ||
48 | 42 | 'additional_headers' => trim( $_POST['wpcf7-mail-2-additional-headers'] ), | ||
49 | 43 | 'attachments' => trim( $_POST['wpcf7-mail-2-attachments'] ), | ||
50 | 44 | 'use_html' => | ||
51 | 45 | isset( $_POST['wpcf7-mail-2-use-html'] ) && 1 == $_POST['wpcf7-mail-2-use-html'] | ||
52 | 46 | ); | ||
53 | 47 | |||
54 | 48 | $messages = $contact_form->messages; | ||
55 | 49 | foreach ( wpcf7_messages() as $key => $arr ) { | ||
56 | 50 | $field_name = 'wpcf7-message-' . strtr( $key, '_', '-' ); | ||
57 | 51 | if ( isset( $_POST[$field_name] ) ) | ||
58 | 52 | $messages[$key] = trim( $_POST[$field_name] ); | ||
59 | 53 | } | ||
60 | 54 | |||
61 | 55 | $additional_settings = trim( $_POST['wpcf7-additional-settings'] ); | ||
62 | 56 | |||
63 | 57 | $query = array(); | ||
64 | 58 | $query['message'] = ( $contact_form->initial ) ? 'created' : 'saved'; | ||
65 | 59 | |||
66 | 60 | $contact_form->title = $title; | ||
67 | 61 | $contact_form->form = $form; | ||
68 | 62 | $contact_form->mail = $mail; | ||
69 | 63 | $contact_form->mail_2 = $mail_2; | ||
70 | 64 | $contact_form->messages = $messages; | ||
71 | 65 | $contact_form->additional_settings = $additional_settings; | ||
72 | 66 | |||
73 | 67 | $contact_form->save(); | ||
74 | 68 | |||
75 | 69 | $query['contactform'] = $contact_form->id; | ||
76 | 70 | $redirect_to = wpcf7_admin_url( $query ); | ||
77 | 71 | wp_redirect( $redirect_to ); | ||
78 | 72 | exit(); | ||
79 | 73 | } elseif ( isset( $_POST['wpcf7-copy'] ) && wpcf7_admin_has_edit_cap() ) { | ||
80 | 74 | $id = $_POST['wpcf7-id']; | ||
81 | 75 | check_admin_referer( 'wpcf7-copy_' . $id ); | ||
82 | 76 | |||
83 | 77 | $query = array(); | ||
84 | 78 | |||
85 | 79 | if ( $contact_form = wpcf7_contact_form( $id ) ) { | ||
86 | 80 | $new_contact_form = $contact_form->copy(); | ||
87 | 81 | $new_contact_form->save(); | ||
88 | 82 | |||
89 | 83 | $query['contactform'] = $new_contact_form->id; | ||
90 | 84 | $query['message'] = 'created'; | ||
91 | 85 | } else { | ||
92 | 86 | $query['contactform'] = $contact_form->id; | ||
93 | 87 | } | ||
94 | 88 | |||
95 | 89 | $redirect_to = wpcf7_admin_url( $query ); | ||
96 | 90 | wp_redirect( $redirect_to ); | ||
97 | 91 | exit(); | ||
98 | 92 | } elseif ( isset( $_POST['wpcf7-delete'] ) && wpcf7_admin_has_edit_cap() ) { | ||
99 | 93 | $id = $_POST['wpcf7-id']; | ||
100 | 94 | check_admin_referer( 'wpcf7-delete_' . $id ); | ||
101 | 95 | |||
102 | 96 | if ( $contact_form = wpcf7_contact_form( $id ) ) | ||
103 | 97 | $contact_form->delete(); | ||
104 | 98 | |||
105 | 99 | $redirect_to = wpcf7_admin_url( array( 'message' => 'deleted' ) ); | ||
106 | 100 | wp_redirect( $redirect_to ); | ||
107 | 101 | exit(); | ||
108 | 102 | } elseif ( isset( $_GET['wpcf7-create-table'] ) ) { | ||
109 | 103 | check_admin_referer( 'wpcf7-create-table' ); | ||
110 | 104 | |||
111 | 105 | $query = array(); | ||
112 | 106 | |||
113 | 107 | if ( ! wpcf7_table_exists() && current_user_can( 'activate_plugins' ) ) { | ||
114 | 108 | wpcf7_install(); | ||
115 | 109 | if ( wpcf7_table_exists() ) { | ||
116 | 110 | $query['message'] = 'table_created'; | ||
117 | 111 | } else { | ||
118 | 112 | $query['message'] = 'table_not_created'; | ||
119 | 113 | } | ||
120 | 114 | } | ||
121 | 115 | |||
122 | 116 | wp_redirect( wpcf7_admin_url( $query ) ); | ||
123 | 117 | exit(); | ||
124 | 118 | } | ||
125 | 119 | |||
126 | 120 | add_menu_page( __( 'Contact Form 7', 'wpcf7' ), __( 'Contact', 'wpcf7' ), | ||
127 | 121 | WPCF7_ADMIN_READ_CAPABILITY, 'wpcf7', 'wpcf7_admin_management_page' ); | ||
128 | 122 | |||
129 | 123 | add_submenu_page( 'wpcf7', __( 'Edit Contact Forms', 'wpcf7' ), __( 'Edit', 'wpcf7' ), | ||
130 | 124 | WPCF7_ADMIN_READ_CAPABILITY, 'wpcf7', 'wpcf7_admin_management_page' ); | ||
131 | 125 | } | ||
132 | 126 | |||
133 | 127 | add_action( 'admin_print_styles', 'wpcf7_admin_enqueue_styles' ); | ||
134 | 128 | |||
135 | 129 | function wpcf7_admin_enqueue_styles() { | ||
136 | 130 | global $plugin_page; | ||
137 | 131 | |||
138 | 132 | if ( ! isset( $plugin_page ) || 'wpcf7' != $plugin_page ) | ||
139 | 133 | return; | ||
140 | 134 | |||
141 | 135 | wp_enqueue_style( 'thickbox' ); | ||
142 | 136 | |||
143 | 137 | wp_enqueue_style( 'contact-form-7-admin', wpcf7_plugin_url( 'admin/styles.css' ), | ||
144 | 138 | array(), WPCF7_VERSION, 'all' ); | ||
145 | 139 | |||
146 | 140 | if ( 'rtl' == get_bloginfo( 'text_direction' ) ) { | ||
147 | 141 | wp_enqueue_style( 'contact-form-7-admin-rtl', | ||
148 | 142 | wpcf7_plugin_url( 'admin/styles-rtl.css' ), array(), WPCF7_VERSION, 'all' ); | ||
149 | 143 | } | ||
150 | 144 | } | ||
151 | 145 | |||
152 | 146 | add_action( 'admin_print_scripts', 'wpcf7_admin_enqueue_scripts' ); | ||
153 | 147 | |||
154 | 148 | function wpcf7_admin_enqueue_scripts() { | ||
155 | 149 | global $plugin_page; | ||
156 | 150 | |||
157 | 151 | if ( ! isset( $plugin_page ) || 'wpcf7' != $plugin_page ) | ||
158 | 152 | return; | ||
159 | 153 | |||
160 | 154 | wp_enqueue_script( 'thickbox' ); | ||
161 | 155 | |||
162 | 156 | wp_enqueue_script( 'wpcf7-admin-taggenerator', wpcf7_plugin_url( 'admin/taggenerator.js' ), | ||
163 | 157 | array( 'jquery' ), WPCF7_VERSION, true ); | ||
164 | 158 | |||
165 | 159 | wp_enqueue_script( 'wpcf7-admin', wpcf7_plugin_url( 'admin/scripts.js' ), | ||
166 | 160 | array( 'jquery', 'wpcf7-admin-taggenerator' ), WPCF7_VERSION, true ); | ||
167 | 161 | wp_localize_script( 'wpcf7-admin', '_wpcf7L10n', array( | ||
168 | 162 | 'generateTag' => __( 'Generate Tag', 'wpcf7' ), | ||
169 | 163 | 'show' => __( "Show", 'wpcf7' ), | ||
170 | 164 | 'hide' => __( "Hide", 'wpcf7' ) ) ); | ||
171 | 165 | } | ||
172 | 166 | |||
173 | 167 | add_action( 'admin_footer', 'wpcf7_admin_footer' ); | ||
174 | 168 | |||
175 | 169 | function wpcf7_admin_footer() { | ||
176 | 170 | global $plugin_page; | ||
177 | 171 | |||
178 | 172 | if ( ! isset( $plugin_page ) || 'wpcf7' != $plugin_page ) | ||
179 | 173 | return; | ||
180 | 174 | |||
181 | 175 | ?> | ||
182 | 176 | <script type="text/javascript"> | ||
183 | 177 | /* <![CDATA[ */ | ||
184 | 178 | var _wpcf7 = { | ||
185 | 179 | pluginUrl: '<?php echo wpcf7_plugin_url(); ?>', | ||
186 | 180 | tagGenerators: { | ||
187 | 181 | <?php wpcf7_print_tag_generators(); ?> | ||
188 | 182 | } | ||
189 | 183 | }; | ||
190 | 184 | /* ]]> */ | ||
191 | 185 | </script> | ||
192 | 186 | <?php | ||
193 | 187 | } | ||
194 | 188 | |||
195 | 189 | function wpcf7_admin_management_page() { | ||
196 | 190 | $contact_forms = wpcf7_contact_forms(); | ||
197 | 191 | |||
198 | 192 | $unsaved = false; | ||
199 | 193 | |||
200 | 194 | if ( ! isset( $_GET['contactform'] ) ) | ||
201 | 195 | $_GET['contactform'] = ''; | ||
202 | 196 | |||
203 | 197 | if ( 'new' == $_GET['contactform'] ) { | ||
204 | 198 | $unsaved = true; | ||
205 | 199 | $current = -1; | ||
206 | 200 | $cf = wpcf7_contact_form_default_pack( isset( $_GET['locale'] ) ? $_GET['locale'] : '' ); | ||
207 | 201 | } elseif ( $cf = wpcf7_contact_form( $_GET['contactform'] ) ) { | ||
208 | 202 | $current = (int) $_GET['contactform']; | ||
209 | 203 | } else { | ||
210 | 204 | $first = reset( $contact_forms ); // Returns first item | ||
211 | 205 | $current = $first->id; | ||
212 | 206 | $cf = wpcf7_contact_form( $current ); | ||
213 | 207 | } | ||
214 | 208 | |||
215 | 209 | require_once WPCF7_PLUGIN_DIR . '/admin/edit.php'; | ||
216 | 210 | } | ||
217 | 211 | |||
218 | 212 | /* Install and default settings */ | ||
219 | 213 | |||
220 | 214 | add_action( 'activate_' . WPCF7_PLUGIN_BASENAME, 'wpcf7_install' ); | ||
221 | 215 | |||
222 | 216 | function wpcf7_install() { | ||
223 | 217 | global $wpdb, $wpcf7; | ||
224 | 218 | |||
225 | 219 | if ( wpcf7_table_exists() ) | ||
226 | 220 | return; // Exists already | ||
227 | 221 | |||
228 | 222 | $charset_collate = ''; | ||
229 | 223 | if ( $wpdb->has_cap( 'collation' ) ) { | ||
230 | 224 | if ( ! empty( $wpdb->charset ) ) | ||
231 | 225 | $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset"; | ||
232 | 226 | if ( ! empty( $wpdb->collate ) ) | ||
233 | 227 | $charset_collate .= " COLLATE $wpdb->collate"; | ||
234 | 228 | } | ||
235 | 229 | |||
236 | 230 | $wpdb->query( "CREATE TABLE IF NOT EXISTS $wpcf7->contactforms ( | ||
237 | 231 | cf7_unit_id bigint(20) unsigned NOT NULL auto_increment, | ||
238 | 232 | title varchar(200) NOT NULL default '', | ||
239 | 233 | form text NOT NULL, | ||
240 | 234 | mail text NOT NULL, | ||
241 | 235 | mail_2 text NOT NULL, | ||
242 | 236 | messages text NOT NULL, | ||
243 | 237 | additional_settings text NOT NULL, | ||
244 | 238 | PRIMARY KEY (cf7_unit_id)) $charset_collate;" ); | ||
245 | 239 | |||
246 | 240 | if ( ! wpcf7_table_exists() ) | ||
247 | 241 | return false; // Failed to create | ||
248 | 242 | |||
249 | 243 | $legacy_data = get_option( 'wpcf7' ); | ||
250 | 244 | if ( is_array( $legacy_data ) | ||
251 | 245 | && is_array( $legacy_data['contact_forms'] ) && $legacy_data['contact_forms'] ) { | ||
252 | 246 | foreach ( $legacy_data['contact_forms'] as $key => $value ) { | ||
253 | 247 | $wpdb->insert( $wpcf7->contactforms, array( | ||
254 | 248 | 'cf7_unit_id' => $key, | ||
255 | 249 | 'title' => $value['title'], | ||
256 | 250 | 'form' => maybe_serialize( $value['form'] ), | ||
257 | 251 | 'mail' => maybe_serialize( $value['mail'] ), | ||
258 | 252 | 'mail_2' => maybe_serialize( $value['mail_2'] ), | ||
259 | 253 | 'messages' => maybe_serialize( $value['messages'] ), | ||
260 | 254 | 'additional_settings' => maybe_serialize( $value['additional_settings'] ) | ||
261 | 255 | ), array( '%d', '%s', '%s', '%s', '%s', '%s', '%s' ) ); | ||
262 | 256 | } | ||
263 | 257 | } else { | ||
264 | 258 | wpcf7_load_plugin_textdomain(); | ||
265 | 259 | |||
266 | 260 | $wpdb->insert( $wpcf7->contactforms, array( | ||
267 | 261 | 'title' => __( 'Contact form', 'wpcf7' ) . ' 1', | ||
268 | 262 | 'form' => maybe_serialize( wpcf7_default_form_template() ), | ||
269 | 263 | 'mail' => maybe_serialize( wpcf7_default_mail_template() ), | ||
270 | 264 | 'mail_2' => maybe_serialize ( wpcf7_default_mail_2_template() ), | ||
271 | 265 | 'messages' => maybe_serialize( wpcf7_default_messages_template() ) ) ); | ||
272 | 266 | } | ||
273 | 267 | } | ||
274 | 268 | |||
275 | 269 | /* Misc */ | ||
276 | 270 | |||
277 | 271 | add_filter( 'plugin_action_links', 'wpcf7_plugin_action_links', 10, 2 ); | ||
278 | 272 | |||
279 | 273 | function wpcf7_plugin_action_links( $links, $file ) { | ||
280 | 274 | if ( $file != WPCF7_PLUGIN_BASENAME ) | ||
281 | 275 | return $links; | ||
282 | 276 | |||
283 | 277 | $url = wpcf7_admin_url( array( 'page' => 'wpcf7' ) ); | ||
284 | 278 | |||
285 | 279 | $settings_link = '<a href="' . esc_attr( $url ) . '">' | ||
286 | 280 | . esc_html( __( 'Settings', 'wpcf7' ) ) . '</a>'; | ||
287 | 281 | |||
288 | 282 | array_unshift( $links, $settings_link ); | ||
289 | 283 | |||
290 | 284 | return $links; | ||
291 | 285 | } | ||
292 | 286 | |||
293 | 287 | add_action( 'wpcf7_admin_before_subsubsub', 'wpcf7_cf7com_links', 9 ); | ||
294 | 288 | |||
295 | 289 | function wpcf7_cf7com_links( &$contact_form ) { | ||
296 | 290 | $links = '<div class="cf7com-links">' | ||
297 | 291 | . '<a href="' . esc_url_raw( __( 'http://contactform7.com/', 'wpcf7' ) ) . '" target="_blank">' | ||
298 | 292 | . esc_html( __( 'Contactform7.com', 'wpcf7' ) ) . '</a> ' | ||
299 | 293 | . '<a href="' . esc_url_raw( __( 'http://contactform7.com/docs/', 'wpcf7' ) ) . '" target="_blank">' | ||
300 | 294 | . esc_html( __( 'Docs', 'wpcf7' ) ) . '</a> - ' | ||
301 | 295 | . '<a href="' . esc_url_raw( __( 'http://contactform7.com/faq/', 'wpcf7' ) ) . '" target="_blank">' | ||
302 | 296 | . esc_html( __( 'FAQ', 'wpcf7' ) ) . '</a> - ' | ||
303 | 297 | . '<a href="' . esc_url_raw( __( 'http://contactform7.com/support/', 'wpcf7' ) ) . '" target="_blank">' | ||
304 | 298 | . esc_html( __( 'Support', 'wpcf7' ) ) . '</a>' | ||
305 | 299 | . '</div>'; | ||
306 | 300 | |||
307 | 301 | echo apply_filters( 'wpcf7_cf7com_links', $links ); | ||
308 | 302 | } | ||
309 | 303 | |||
310 | 304 | add_action( 'wpcf7_admin_before_subsubsub', 'wpcf7_updated_message' ); | ||
311 | 305 | |||
312 | 306 | function wpcf7_updated_message( &$contact_form ) { | ||
313 | 307 | if ( ! isset( $_GET['message'] ) ) | ||
314 | 308 | return; | ||
315 | 309 | |||
316 | 310 | switch ( $_GET['message'] ) { | ||
317 | 311 | case 'created': | ||
318 | 312 | $updated_message = __( "Contact form created.", 'wpcf7' ); | ||
319 | 313 | break; | ||
320 | 314 | case 'saved': | ||
321 | 315 | $updated_message = __( "Contact form saved.", 'wpcf7' ); | ||
322 | 316 | break; | ||
323 | 317 | case 'deleted': | ||
324 | 318 | $updated_message = __( "Contact form deleted.", 'wpcf7' ); | ||
325 | 319 | break; | ||
326 | 320 | case 'table_created': | ||
327 | 321 | $updated_message = __( "Database table created.", 'wpcf7' ); | ||
328 | 322 | break; | ||
329 | 323 | case 'table_not_created': | ||
330 | 324 | $updated_message = __( "Failed to create database table.", 'wpcf7' ); | ||
331 | 325 | break; | ||
332 | 326 | } | ||
333 | 327 | |||
334 | 328 | if ( ! $updated_message ) | ||
335 | 329 | return; | ||
336 | 330 | |||
337 | 331 | ?> | ||
338 | 332 | <div id="message" class="updated fade"><p><?php echo esc_html( $updated_message ); ?></p></div> | ||
339 | 333 | <?php | ||
340 | 334 | } | ||
341 | 335 | |||
342 | 336 | add_action( 'wpcf7_admin_before_subsubsub', 'wpcf7_donation_link' ); | ||
343 | 337 | |||
344 | 338 | function wpcf7_donation_link( &$contact_form ) { | ||
345 | 339 | if ( ! WPCF7_SHOW_DONATION_LINK ) | ||
346 | 340 | return; | ||
347 | 341 | |||
348 | 342 | if ( 'new' == $_GET['contactform'] || ! empty($_GET['message']) ) | ||
349 | 343 | return; | ||
350 | 344 | |||
351 | 345 | $show_link = true; | ||
352 | 346 | |||
353 | 347 | $num = mt_rand( 0, 99 ); | ||
354 | 348 | |||
355 | 349 | if ( $num >= 20 ) | ||
356 | 350 | $show_link = false; | ||
357 | 351 | |||
358 | 352 | $show_link = apply_filters( 'wpcf7_show_donation_link', $show_link ); | ||
359 | 353 | |||
360 | 354 | if ( ! $show_link ) | ||
361 | 355 | return; | ||
362 | 356 | |||
363 | 357 | $texts = array( | ||
364 | 358 | __( "Contact Form 7 needs your support. Please donate today.", 'wpcf7' ), | ||
365 | 359 | __( "Your contribution is needed for making this plugin better.", 'wpcf7' ) ); | ||
366 | 360 | |||
367 | 361 | $text = $texts[array_rand( $texts )]; | ||
368 | 362 | |||
369 | 363 | ?> | ||
370 | 364 | <div class="donation"> | ||
371 | 365 | <p><a href="<?php echo esc_url_raw( __( 'http://contactform7.com/donate/', 'wpcf7' ) ); ?>"><?php echo esc_html( $text ); ?></a> <a href="<?php echo esc_url_raw( __( 'http://contactform7.com/donate/', 'wpcf7' ) ); ?>" class="button"><?php echo esc_html( __( "Donate", 'wpcf7' ) ); ?></a></p> | ||
372 | 366 | </div> | ||
373 | 367 | <?php | ||
374 | 368 | } | ||
375 | 369 | |||
376 | 370 | ?> | ||
377 | 0 | \ No newline at end of file | 371 | \ No newline at end of file |
378 | 1 | 372 | ||
379 | === added file 'wp-content/plugins/contact-form-7/admin/edit.php' | |||
380 | --- wp-content/plugins/contact-form-7/admin/edit.php 1970-01-01 00:00:00 +0000 | |||
381 | +++ wp-content/plugins/contact-form-7/admin/edit.php 2011-02-18 16:15:41 +0000 | |||
382 | @@ -0,0 +1,351 @@ | |||
383 | 1 | <?php | ||
384 | 2 | |||
385 | 3 | /* No table warning */ | ||
386 | 4 | if ( ! wpcf7_table_exists() ) { | ||
387 | 5 | if ( current_user_can( 'activate_plugins' ) ) { | ||
388 | 6 | $create_table_link_url = wpcf7_admin_url( array( 'wpcf7-create-table' => 1 ) ); | ||
389 | 7 | $create_table_link_url = wp_nonce_url( $create_table_link_url, 'wpcf7-create-table' ); | ||
390 | 8 | $message = sprintf( | ||
391 | 9 | __( '<strong>The database table for Contact Form 7 does not exist.</strong> You must <a href="%s">create the table</a> for it to work.', 'wpcf7' ), | ||
392 | 10 | $create_table_link_url ); | ||
393 | 11 | } else { | ||
394 | 12 | $message = __( "<strong>The database table for Contact Form 7 does not exist.</strong>", 'wpcf7' ); | ||
395 | 13 | } | ||
396 | 14 | ?> | ||
397 | 15 | <div class="wrap"> | ||
398 | 16 | <?php screen_icon( 'edit-pages' ); ?> | ||
399 | 17 | <h2><?php echo esc_html( __( 'Contact Form 7', 'wpcf7' ) ); ?></h2> | ||
400 | 18 | <div id="message" class="updated fade"> | ||
401 | 19 | <p><?php echo $message; ?></p> | ||
402 | 20 | </div> | ||
403 | 21 | </div> | ||
404 | 22 | <?php | ||
405 | 23 | return; | ||
406 | 24 | } | ||
407 | 25 | |||
408 | 26 | ?><div class="wrap wpcf7"> | ||
409 | 27 | |||
410 | 28 | <?php screen_icon( 'edit-pages' ); ?> | ||
411 | 29 | |||
412 | 30 | <h2><?php echo esc_html( __( 'Contact Form 7', 'wpcf7' ) ); ?></h2> | ||
413 | 31 | |||
414 | 32 | <?php do_action_ref_array( 'wpcf7_admin_before_subsubsub', array( &$cf ) ); ?> | ||
415 | 33 | |||
416 | 34 | <ul class="subsubsub"> | ||
417 | 35 | <?php | ||
418 | 36 | $first = array_shift( $contact_forms ); | ||
419 | 37 | if ( ! is_null( $first ) ) : ?> | ||
420 | 38 | <li><a href="<?php echo wpcf7_admin_url( array( 'contactform' => $first->id ) ); ?>"<?php if ( $first->id == $current ) echo ' class="current"'; ?>><?php echo esc_html( $first->title ); ?></a></li> | ||
421 | 39 | <?php endif; | ||
422 | 40 | foreach ( $contact_forms as $v ) : ?> | ||
423 | 41 | <li>| <a href="<?php echo wpcf7_admin_url( array( 'contactform' => $v->id ) ); ?>"<?php if ( $v->id == $current ) echo ' class="current"'; ?>><?php echo esc_html( $v->title ); ?></a></li> | ||
424 | 42 | <?php endforeach; ?> | ||
425 | 43 | |||
426 | 44 | <?php if ( wpcf7_admin_has_edit_cap() ) : ?> | ||
427 | 45 | <li class="addnew"><a class="thickbox<?php if ( $unsaved ) echo ' current'; ?>" href="#TB_inline?height=300&width=400&inlineId=wpcf7-lang-select-modal"><?php echo esc_html( __( 'Add new', 'wpcf7' ) ); ?></a></li> | ||
428 | 46 | <?php endif; ?> | ||
429 | 47 | </ul> | ||
430 | 48 | |||
431 | 49 | <br class="clear" /> | ||
432 | 50 | |||
433 | 51 | <?php if ( $cf ) : ?> | ||
434 | 52 | <?php $disabled = ( wpcf7_admin_has_edit_cap() ) ? '' : ' disabled="disabled"'; ?> | ||
435 | 53 | |||
436 | 54 | <form method="post" action="<?php echo wpcf7_admin_url( array( 'contactform' => $current ) ); ?>" id="wpcf7-admin-form-element"> | ||
437 | 55 | <?php if ( wpcf7_admin_has_edit_cap() ) wp_nonce_field( 'wpcf7-save_' . $current ); ?> | ||
438 | 56 | <input type="hidden" id="wpcf7-id" name="wpcf7-id" value="<?php echo $current; ?>" /> | ||
439 | 57 | |||
440 | 58 | <table class="widefat"> | ||
441 | 59 | <tbody> | ||
442 | 60 | <tr> | ||
443 | 61 | <td scope="col"> | ||
444 | 62 | <div style="position: relative;"> | ||
445 | 63 | <input type="text" id="wpcf7-title" name="wpcf7-title" size="40" value="<?php echo esc_attr( $cf->title ); ?>"<?php echo $disabled; ?> /> | ||
446 | 64 | |||
447 | 65 | <?php if ( ! $unsaved ) : ?> | ||
448 | 66 | <p class="tagcode"> | ||
449 | 67 | <?php echo esc_html( __( "Copy this code and paste it into your post, page or text widget content.", 'wpcf7' ) ); ?><br /> | ||
450 | 68 | |||
451 | 69 | <input type="text" id="contact-form-anchor-text" onfocus="this.select();" readonly="readonly" /> | ||
452 | 70 | </p> | ||
453 | 71 | <?php endif; ?> | ||
454 | 72 | |||
455 | 73 | <?php if ( wpcf7_admin_has_edit_cap() ) : ?> | ||
456 | 74 | <div class="save-contact-form"> | ||
457 | 75 | <input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php echo esc_attr( __( 'Save', 'wpcf7' ) ); ?>" /> | ||
458 | 76 | </div> | ||
459 | 77 | <?php endif; ?> | ||
460 | 78 | |||
461 | 79 | <?php if ( wpcf7_admin_has_edit_cap() && ! $unsaved ) : ?> | ||
462 | 80 | <div class="actions-link"> | ||
463 | 81 | <?php $copy_nonce = wp_create_nonce( 'wpcf7-copy_' . $current ); ?> | ||
464 | 82 | <input type="submit" name="wpcf7-copy" class="copy" value="<?php echo esc_attr( __( 'Copy', 'wpcf7' ) ); ?>" | ||
465 | 83 | <?php echo "onclick=\"this.form._wpnonce.value = '$copy_nonce'; return true;\""; ?> /> | ||
466 | 84 | | | ||
467 | 85 | |||
468 | 86 | <?php $delete_nonce = wp_create_nonce( 'wpcf7-delete_' . $current ); ?> | ||
469 | 87 | <input type="submit" name="wpcf7-delete" class="delete" value="<?php echo esc_attr( __( 'Delete', 'wpcf7' ) ); ?>" | ||
470 | 88 | <?php echo "onclick=\"if (confirm('" . | ||
471 | 89 | esc_js( __( "You are about to delete this contact form.\n 'Cancel' to stop, 'OK' to delete.", 'wpcf7' ) ) . | ||
472 | 90 | "')) {this.form._wpnonce.value = '$delete_nonce'; return true;} return false;\""; ?> /> | ||
473 | 91 | </div> | ||
474 | 92 | <?php endif; ?> | ||
475 | 93 | </div> | ||
476 | 94 | </td> | ||
477 | 95 | </tr> | ||
478 | 96 | </tbody> | ||
479 | 97 | </table> | ||
480 | 98 | |||
481 | 99 | <?php do_action_ref_array( 'wpcf7_admin_after_general_settings', array( &$cf ) ); ?> | ||
482 | 100 | |||
483 | 101 | <?php if ( wpcf7_admin_has_edit_cap() ) : ?> | ||
484 | 102 | |||
485 | 103 | <table class="widefat" style="margin-top: 1em;"> | ||
486 | 104 | <thead><tr><th scope="col" colspan="2"><?php echo esc_html( __( 'Form', 'wpcf7' ) ); ?></th></tr></thead> | ||
487 | 105 | |||
488 | 106 | <tbody> | ||
489 | 107 | <tr> | ||
490 | 108 | |||
491 | 109 | <td scope="col" style="width: 50%;"> | ||
492 | 110 | <div><textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="20"><?php echo esc_html( $cf->form ); ?></textarea></div> | ||
493 | 111 | </td> | ||
494 | 112 | |||
495 | 113 | <td scope="col" style="width: 50%;"> | ||
496 | 114 | <div id="taggenerator"></div> | ||
497 | 115 | </td> | ||
498 | 116 | |||
499 | 117 | </tr> | ||
500 | 118 | </tbody> | ||
501 | 119 | </table> | ||
502 | 120 | |||
503 | 121 | <?php endif; ?> | ||
504 | 122 | |||
505 | 123 | <?php do_action_ref_array( 'wpcf7_admin_after_form', array( &$cf ) ); ?> | ||
506 | 124 | |||
507 | 125 | <?php if ( wpcf7_admin_has_edit_cap() ) : ?> | ||
508 | 126 | |||
509 | 127 | <table class="widefat" style="margin-top: 1em;"> | ||
510 | 128 | <thead><tr><th scope="col" colspan="2"><?php echo esc_html( __( 'Mail', 'wpcf7' ) ); ?></th></tr></thead> | ||
511 | 129 | |||
512 | 130 | <tbody> | ||
513 | 131 | <tr> | ||
514 | 132 | <td scope="col" style="width: 50%;"> | ||
515 | 133 | |||
516 | 134 | <div class="mail-field"> | ||
517 | 135 | <label for="wpcf7-mail-recipient"><?php echo esc_html( __( 'To:', 'wpcf7' ) ); ?></label><br /> | ||
518 | 136 | <input type="text" id="wpcf7-mail-recipient" name="wpcf7-mail-recipient" class="wide" size="70" value="<?php echo esc_attr( $cf->mail['recipient'] ); ?>" /> | ||
519 | 137 | </div> | ||
520 | 138 | |||
521 | 139 | <div class="mail-field"> | ||
522 | 140 | <label for="wpcf7-mail-sender"><?php echo esc_html( __( 'From:', 'wpcf7' ) ); ?></label><br /> | ||
523 | 141 | <input type="text" id="wpcf7-mail-sender" name="wpcf7-mail-sender" class="wide" size="70" value="<?php echo esc_attr( $cf->mail['sender'] ); ?>" /> | ||
524 | 142 | </div> | ||
525 | 143 | |||
526 | 144 | <div class="mail-field"> | ||
527 | 145 | <label for="wpcf7-mail-subject"><?php echo esc_html( __( 'Subject:', 'wpcf7' ) ); ?></label><br /> | ||
528 | 146 | <input type="text" id="wpcf7-mail-subject" name="wpcf7-mail-subject" class="wide" size="70" value="<?php echo esc_attr( $cf->mail['subject'] ); ?>" /> | ||
529 | 147 | </div> | ||
530 | 148 | |||
531 | 149 | <div class="pseudo-hr"></div> | ||
532 | 150 | |||
533 | 151 | <div class="mail-field"> | ||
534 | 152 | <label for="wpcf7-mail-additional-headers"><?php echo esc_html( __( 'Additional headers:', 'wpcf7' ) ); ?></label><br /> | ||
535 | 153 | <textarea id="wpcf7-mail-additional-headers" name="wpcf7-mail-additional-headers" cols="100" rows="2"><?php echo esc_html( $cf->mail['additional_headers'] ); ?></textarea> | ||
536 | 154 | </div> | ||
537 | 155 | |||
538 | 156 | <div class="mail-field"> | ||
539 | 157 | <label for="wpcf7-mail-attachments"><?php echo esc_html( __( 'File attachments:', 'wpcf7' ) ); ?></label><br /> | ||
540 | 158 | <input type="text" id="wpcf7-mail-attachments" name="wpcf7-mail-attachments" class="wide" size="70" value="<?php echo esc_attr( $cf->mail['attachments'] ); ?>" /> | ||
541 | 159 | </div> | ||
542 | 160 | |||
543 | 161 | <div class="pseudo-hr"></div> | ||
544 | 162 | |||
545 | 163 | <div class="mail-field"> | ||
546 | 164 | <input type="checkbox" id="wpcf7-mail-use-html" name="wpcf7-mail-use-html" value="1"<?php echo ( $cf->mail['use_html'] ) ? ' checked="checked"' : ''; ?> /> | ||
547 | 165 | <label for="wpcf7-mail-use-html"><?php echo esc_html( __( 'Use HTML content type', 'wpcf7' ) ); ?></label> | ||
548 | 166 | </div> | ||
549 | 167 | |||
550 | 168 | </td> | ||
551 | 169 | <td scope="col" style="width: 50%;"> | ||
552 | 170 | |||
553 | 171 | <div class="mail-field"> | ||
554 | 172 | <label for="wpcf7-mail-body"><?php echo esc_html( __( 'Message body:', 'wpcf7' ) ); ?></label><br /> | ||
555 | 173 | <textarea id="wpcf7-mail-body" name="wpcf7-mail-body" cols="100" rows="16"><?php echo esc_html( $cf->mail['body'] ); ?></textarea> | ||
556 | 174 | </div> | ||
557 | 175 | |||
558 | 176 | </td> | ||
559 | 177 | </tr> | ||
560 | 178 | </tbody> | ||
561 | 179 | </table> | ||
562 | 180 | |||
563 | 181 | <?php endif; ?> | ||
564 | 182 | |||
565 | 183 | <?php do_action_ref_array( 'wpcf7_admin_after_mail', array( &$cf ) ); ?> | ||
566 | 184 | |||
567 | 185 | <?php if ( wpcf7_admin_has_edit_cap() ) : ?> | ||
568 | 186 | |||
569 | 187 | <table class="widefat" style="margin-top: 1em;"> | ||
570 | 188 | <thead><tr><th scope="col" colspan="2"><?php echo esc_html( __( 'Mail (2)', 'wpcf7' ) ); ?></th></tr></thead> | ||
571 | 189 | |||
572 | 190 | <tbody> | ||
573 | 191 | <tr> | ||
574 | 192 | <td scope="col" colspan="2"> | ||
575 | 193 | <input type="checkbox" id="wpcf7-mail-2-active" name="wpcf7-mail-2-active" value="1"<?php echo ( $cf->mail_2['active'] ) ? ' checked="checked"' : ''; ?> /> | ||
576 | 194 | <label for="wpcf7-mail-2-active"><?php echo esc_html( __( 'Use mail (2)', 'wpcf7' ) ); ?></label> | ||
577 | 195 | </td> | ||
578 | 196 | </tr> | ||
579 | 197 | |||
580 | 198 | <tr id="mail-2-fields"> | ||
581 | 199 | <td scope="col" style="width: 50%;"> | ||
582 | 200 | |||
583 | 201 | <div class="mail-field"> | ||
584 | 202 | <label for="wpcf7-mail-2-recipient"><?php echo esc_html( __( 'To:', 'wpcf7' ) ); ?></label><br /> | ||
585 | 203 | <input type="text" id="wpcf7-mail-2-recipient" name="wpcf7-mail-2-recipient" class="wide" size="70" value="<?php echo esc_attr( $cf->mail_2['recipient'] ); ?>" /> | ||
586 | 204 | </div> | ||
587 | 205 | |||
588 | 206 | <div class="mail-field"> | ||
589 | 207 | <label for="wpcf7-mail-2-sender"><?php echo esc_html( __( 'From:', 'wpcf7' ) ); ?></label><br /> | ||
590 | 208 | <input type="text" id="wpcf7-mail-2-sender" name="wpcf7-mail-2-sender" class="wide" size="70" value="<?php echo esc_attr( $cf->mail_2['sender'] ); ?>" /> | ||
591 | 209 | </div> | ||
592 | 210 | |||
593 | 211 | <div class="mail-field"> | ||
594 | 212 | <label for="wpcf7-mail-2-subject"><?php echo esc_html( __( 'Subject:', 'wpcf7' ) ); ?></label><br /> | ||
595 | 213 | <input type="text" id="wpcf7-mail-2-subject" name="wpcf7-mail-2-subject" class="wide" size="70" value="<?php echo esc_attr( $cf->mail_2['subject'] ); ?>" /> | ||
596 | 214 | </div> | ||
597 | 215 | |||
598 | 216 | <div class="pseudo-hr"></div> | ||
599 | 217 | |||
600 | 218 | <div class="mail-field"> | ||
601 | 219 | <label for="wpcf7-mail-2-additional-headers"><?php echo esc_html( __( 'Additional headers:', 'wpcf7' ) ); ?></label><br /> | ||
602 | 220 | <textarea id="wpcf7-mail-2-additional-headers" name="wpcf7-mail-2-additional-headers" cols="100" rows="2"><?php echo esc_html( $cf->mail_2['additional_headers'] ); ?></textarea> | ||
603 | 221 | </div> | ||
604 | 222 | |||
605 | 223 | <div class="mail-field"> | ||
606 | 224 | <label for="wpcf7-mail-2-attachments"><?php echo esc_html( __( 'File attachments:', 'wpcf7' ) ); ?></label><br /> | ||
607 | 225 | <input type="text" id="wpcf7-mail-2-attachments" name="wpcf7-mail-2-attachments" class="wide" size="70" value="<?php echo esc_attr( $cf->mail_2['attachments'] ); ?>" /> | ||
608 | 226 | </div> | ||
609 | 227 | |||
610 | 228 | <div class="pseudo-hr"></div> | ||
611 | 229 | |||
612 | 230 | <div class="mail-field"> | ||
613 | 231 | <input type="checkbox" id="wpcf7-mail-2-use-html" name="wpcf7-mail-2-use-html" value="1"<?php echo ( $cf->mail_2['use_html'] ) ? ' checked="checked"' : ''; ?> /> | ||
614 | 232 | <label for="wpcf7-mail-2-use-html"><?php echo esc_html( __( 'Use HTML content type', 'wpcf7' ) ); ?></label> | ||
615 | 233 | </div> | ||
616 | 234 | |||
617 | 235 | </td> | ||
618 | 236 | <td scope="col" style="width: 50%;"> | ||
619 | 237 | |||
620 | 238 | <div class="mail-field"> | ||
621 | 239 | <label for="wpcf7-mail-2-body"><?php echo esc_html( __( 'Message body:', 'wpcf7' ) ); ?></label><br /> | ||
622 | 240 | <textarea id="wpcf7-mail-2-body" name="wpcf7-mail-2-body" cols="100" rows="16"><?php echo esc_html( $cf->mail_2['body'] ); ?></textarea> | ||
623 | 241 | </div> | ||
624 | 242 | |||
625 | 243 | </td> | ||
626 | 244 | </tr> | ||
627 | 245 | </tbody> | ||
628 | 246 | </table> | ||
629 | 247 | |||
630 | 248 | <?php endif; ?> | ||
631 | 249 | |||
632 | 250 | <?php do_action_ref_array( 'wpcf7_admin_after_mail_2', array( &$cf ) ); ?> | ||
633 | 251 | |||
634 | 252 | <?php if ( wpcf7_admin_has_edit_cap() ) : ?> | ||
635 | 253 | |||
636 | 254 | <table class="widefat" style="margin-top: 1em;"> | ||
637 | 255 | <thead><tr><th scope="col"><?php echo esc_html( __( 'Messages', 'wpcf7' ) ); ?> <span id="message-fields-toggle-switch"></span></th></tr></thead> | ||
638 | 256 | |||
639 | 257 | <tbody> | ||
640 | 258 | <tr> | ||
641 | 259 | <td scope="col"> | ||
642 | 260 | <div id="message-fields"> | ||
643 | 261 | |||
644 | 262 | <?php foreach ( wpcf7_messages() as $key => $arr ) : | ||
645 | 263 | $field_name = 'wpcf7-message-' . strtr( $key, '_', '-' ); | ||
646 | 264 | ?> | ||
647 | 265 | <div class="message-field"> | ||
648 | 266 | <label for="<?php echo $field_name; ?>"><em># <?php echo esc_html( $arr['description'] ); ?></em></label><br /> | ||
649 | 267 | <input type="text" id="<?php echo $field_name; ?>" name="<?php echo $field_name; ?>" class="wide" size="70" value="<?php echo esc_attr( $cf->messages[$key] ); ?>" /> | ||
650 | 268 | </div> | ||
651 | 269 | |||
652 | 270 | <?php endforeach; ?> | ||
653 | 271 | |||
654 | 272 | </div> | ||
655 | 273 | </td> | ||
656 | 274 | </tr> | ||
657 | 275 | </tbody> | ||
658 | 276 | </table> | ||
659 | 277 | |||
660 | 278 | <?php endif; ?> | ||
661 | 279 | |||
662 | 280 | <?php do_action_ref_array( 'wpcf7_admin_after_messages', array( &$cf ) ); ?> | ||
663 | 281 | |||
664 | 282 | <?php if ( wpcf7_admin_has_edit_cap() ) : ?> | ||
665 | 283 | |||
666 | 284 | <table class="widefat" style="margin-top: 1em;"> | ||
667 | 285 | <thead><tr><th scope="col"><?php echo esc_html( __( 'Additional Settings', 'wpcf7' ) ); ?> <span id="additional-settings-fields-toggle-switch"></span></th></tr></thead> | ||
668 | 286 | |||
669 | 287 | <tbody> | ||
670 | 288 | <tr> | ||
671 | 289 | <td scope="col"> | ||
672 | 290 | <div id="additional-settings-fields"> | ||
673 | 291 | <textarea id="wpcf7-additional-settings" name="wpcf7-additional-settings" cols="100" rows="8"><?php echo esc_html( $cf->additional_settings ); ?></textarea> | ||
674 | 292 | </div> | ||
675 | 293 | </td> | ||
676 | 294 | </tr> | ||
677 | 295 | </tbody> | ||
678 | 296 | </table> | ||
679 | 297 | |||
680 | 298 | <?php endif; ?> | ||
681 | 299 | |||
682 | 300 | <?php do_action_ref_array( 'wpcf7_admin_after_additional_settings', array( &$cf ) ); ?> | ||
683 | 301 | |||
684 | 302 | <?php if ( wpcf7_admin_has_edit_cap() ) : ?> | ||
685 | 303 | |||
686 | 304 | <table class="widefat" style="margin-top: 1em;"> | ||
687 | 305 | <tbody> | ||
688 | 306 | <tr> | ||
689 | 307 | <td scope="col"> | ||
690 | 308 | <div class="save-contact-form"> | ||
691 | 309 | <input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php echo esc_attr( __( 'Save', 'wpcf7' ) ); ?>" /> | ||
692 | 310 | </div> | ||
693 | 311 | </td> | ||
694 | 312 | </tr> | ||
695 | 313 | </tbody> | ||
696 | 314 | </table> | ||
697 | 315 | |||
698 | 316 | <?php endif; ?> | ||
699 | 317 | |||
700 | 318 | </form> | ||
701 | 319 | |||
702 | 320 | <?php endif; ?> | ||
703 | 321 | |||
704 | 322 | </div> | ||
705 | 323 | |||
706 | 324 | <div id="wpcf7-lang-select-modal" class="hidden"> | ||
707 | 325 | <?php | ||
708 | 326 | $available_locales = wpcf7_l10n(); | ||
709 | 327 | $default_locale = get_locale(); | ||
710 | 328 | |||
711 | 329 | if ( ! isset( $available_locales[$default_locale] ) ) | ||
712 | 330 | $default_locale = 'en_US'; | ||
713 | 331 | |||
714 | 332 | ?> | ||
715 | 333 | <h4><?php echo esc_html( sprintf( __( 'Use the default language (%s)', 'wpcf7' ), $available_locales[$default_locale] ) ); ?></h4> | ||
716 | 334 | <p><a href="<?php echo wpcf7_admin_url( array( 'contactform' => 'new' ) ); ?>" class="button" /><?php echo esc_html( __( 'Add New', 'wpcf7' ) ); ?></a></p> | ||
717 | 335 | |||
718 | 336 | <?php unset( $available_locales[$default_locale] ); ?> | ||
719 | 337 | <h4><?php echo esc_html( __( 'Or', 'wpcf7' ) ); ?></h4> | ||
720 | 338 | <form action="" method="get"> | ||
721 | 339 | <input type="hidden" name="page" value="wpcf7" /> | ||
722 | 340 | <input type="hidden" name="contactform" value="new" /> | ||
723 | 341 | <select name="locale"> | ||
724 | 342 | <option value="" selected="selected"><?php echo esc_html( __( '(select language)', 'wpcf7' ) ); ?></option> | ||
725 | 343 | <?php foreach ( $available_locales as $code => $locale ) : ?> | ||
726 | 344 | <option value="<?php echo esc_attr( $code ); ?>"><?php echo esc_html( $locale ); ?></option> | ||
727 | 345 | <?php endforeach; ?> | ||
728 | 346 | </select> | ||
729 | 347 | <input type="submit" class="button" value="<?php echo esc_attr( __( 'Add New', 'wpcf7' ) ); ?>" /> | ||
730 | 348 | </form> | ||
731 | 349 | </div> | ||
732 | 350 | |||
733 | 351 | <?php do_action_ref_array( 'wpcf7_admin_footer', array( &$cf ) ); ?> | ||
734 | 0 | 352 | ||
735 | === added file 'wp-content/plugins/contact-form-7/admin/scripts.js' | |||
736 | --- wp-content/plugins/contact-form-7/admin/scripts.js 1970-01-01 00:00:00 +0000 | |||
737 | +++ wp-content/plugins/contact-form-7/admin/scripts.js 2011-02-18 16:15:41 +0000 | |||
738 | @@ -0,0 +1,116 @@ | |||
739 | 1 | (function($) { | ||
740 | 2 | |||
741 | 3 | $(function() { | ||
742 | 4 | try { | ||
743 | 5 | $.extend($.tgPanes, _wpcf7.tagGenerators); | ||
744 | 6 | $('#taggenerator').tagGenerator(_wpcf7L10n.generateTag, | ||
745 | 7 | { dropdownIconUrl: _wpcf7.pluginUrl + '/images/dropdown.gif' }); | ||
746 | 8 | |||
747 | 9 | $('input#wpcf7-title:enabled').css({ | ||
748 | 10 | cursor: 'pointer' | ||
749 | 11 | }); | ||
750 | 12 | |||
751 | 13 | $('input#wpcf7-title').mouseover(function() { | ||
752 | 14 | $(this).not('.focus').css({ | ||
753 | 15 | 'background-color': '#ffffdd' | ||
754 | 16 | }); | ||
755 | 17 | }); | ||
756 | 18 | |||
757 | 19 | $('input#wpcf7-title').mouseout(function() { | ||
758 | 20 | $(this).css({ | ||
759 | 21 | 'background-color': '#fff' | ||
760 | 22 | }); | ||
761 | 23 | }); | ||
762 | 24 | |||
763 | 25 | $('input#wpcf7-title').focus(function() { | ||
764 | 26 | $(this).addClass('focus'); | ||
765 | 27 | $(this).css({ | ||
766 | 28 | cursor: 'text', | ||
767 | 29 | color: '#333', | ||
768 | 30 | border: '1px solid #777', | ||
769 | 31 | font: 'normal 13px Verdana, Arial, Helvetica, sans-serif', | ||
770 | 32 | 'background-color': '#fff' | ||
771 | 33 | }); | ||
772 | 34 | }); | ||
773 | 35 | |||
774 | 36 | $('input#wpcf7-title').blur(function() { | ||
775 | 37 | $(this).removeClass('focus'); | ||
776 | 38 | $(this).css({ | ||
777 | 39 | cursor: 'pointer', | ||
778 | 40 | color: '#555', | ||
779 | 41 | border: 'none', | ||
780 | 42 | font: 'bold 20px serif', | ||
781 | 43 | 'background-color': '#fff' | ||
782 | 44 | }); | ||
783 | 45 | }); | ||
784 | 46 | |||
785 | 47 | $('input#wpcf7-title').change(function() { | ||
786 | 48 | updateTag(); | ||
787 | 49 | }); | ||
788 | 50 | |||
789 | 51 | updateTag(); | ||
790 | 52 | |||
791 | 53 | if ($.support.objectAll) { | ||
792 | 54 | if (! $('#wpcf7-mail-2-active').is(':checked')) | ||
793 | 55 | $('#mail-2-fields').hide(); | ||
794 | 56 | |||
795 | 57 | $('#wpcf7-mail-2-active').click(function() { | ||
796 | 58 | if ($('#mail-2-fields').is(':hidden') | ||
797 | 59 | && $('#wpcf7-mail-2-active').is(':checked')) { | ||
798 | 60 | $('#mail-2-fields').slideDown('fast'); | ||
799 | 61 | } else if ($('#mail-2-fields').is(':visible') | ||
800 | 62 | && $('#wpcf7-mail-2-active').not(':checked')) { | ||
801 | 63 | $('#mail-2-fields').slideUp('fast'); | ||
802 | 64 | } | ||
803 | 65 | }); | ||
804 | 66 | } | ||
805 | 67 | |||
806 | 68 | $('#message-fields-toggle-switch').text(_wpcf7L10n.show); | ||
807 | 69 | $('#message-fields').hide(); | ||
808 | 70 | |||
809 | 71 | $('#message-fields-toggle-switch').click(function() { | ||
810 | 72 | if ($('#message-fields').is(':hidden')) { | ||
811 | 73 | $('#message-fields').slideDown('fast'); | ||
812 | 74 | $('#message-fields-toggle-switch').text(_wpcf7L10n.hide); | ||
813 | 75 | } else { | ||
814 | 76 | $('#message-fields').hide('fast'); | ||
815 | 77 | $('#message-fields-toggle-switch').text(_wpcf7L10n.show); | ||
816 | 78 | } | ||
817 | 79 | }); | ||
818 | 80 | |||
819 | 81 | if ('' == $.trim($('#wpcf7-additional-settings').text())) { | ||
820 | 82 | $('#additional-settings-fields-toggle-switch').text(_wpcf7L10n.show); | ||
821 | 83 | $('#additional-settings-fields').hide(); | ||
822 | 84 | } else { | ||
823 | 85 | $('#additional-settings-fields-toggle-switch').text(_wpcf7L10n.hide); | ||
824 | 86 | $('#additional-settings-fields').show(); | ||
825 | 87 | } | ||
826 | 88 | |||
827 | 89 | $('#additional-settings-fields-toggle-switch').click(function() { | ||
828 | 90 | if ($('#additional-settings-fields').is(':hidden')) { | ||
829 | 91 | $('#additional-settings-fields').slideDown('fast'); | ||
830 | 92 | $('#additional-settings-fields-toggle-switch').text(_wpcf7L10n.hide); | ||
831 | 93 | } else { | ||
832 | 94 | $('#additional-settings-fields').hide('fast'); | ||
833 | 95 | $('#additional-settings-fields-toggle-switch').text(_wpcf7L10n.show); | ||
834 | 96 | } | ||
835 | 97 | }); | ||
836 | 98 | |||
837 | 99 | } catch (e) { | ||
838 | 100 | } | ||
839 | 101 | }); | ||
840 | 102 | |||
841 | 103 | function updateTag() { | ||
842 | 104 | var title = $('input#wpcf7-title').val(); | ||
843 | 105 | |||
844 | 106 | if (title) | ||
845 | 107 | title = title.replace(/["'\[\]]/g, ''); | ||
846 | 108 | |||
847 | 109 | $('input#wpcf7-title').val(title); | ||
848 | 110 | var current = $('input#wpcf7-id').val(); | ||
849 | 111 | var tag = '[contact-form ' + current + ' "' + title + '"]'; | ||
850 | 112 | |||
851 | 113 | $('input#contact-form-anchor-text').val(tag); | ||
852 | 114 | } | ||
853 | 115 | |||
854 | 116 | })(jQuery); | ||
855 | 0 | \ No newline at end of file | 117 | \ No newline at end of file |
856 | 1 | 118 | ||
857 | === added file 'wp-content/plugins/contact-form-7/admin/styles-rtl.css' | |||
858 | --- wp-content/plugins/contact-form-7/admin/styles-rtl.css 1970-01-01 00:00:00 +0000 | |||
859 | +++ wp-content/plugins/contact-form-7/admin/styles-rtl.css 2011-02-18 16:15:41 +0000 | |||
860 | @@ -0,0 +1,22 @@ | |||
861 | 1 | ul.subsubsub li.addnew { | ||
862 | 2 | margin-left: 0; | ||
863 | 3 | margin-right: 0.5em; | ||
864 | 4 | } | ||
865 | 5 | div.save-contact-form { | ||
866 | 6 | direction: rtl; | ||
867 | 7 | } | ||
868 | 8 | div.actions-link { | ||
869 | 9 | right: auto; | ||
870 | 10 | left: 0; | ||
871 | 11 | } | ||
872 | 12 | span#message-fields-toggle-switch { | ||
873 | 13 | margin-left: 0; | ||
874 | 14 | margin-right: 1em; | ||
875 | 15 | } | ||
876 | 16 | div.tg-pane table caption { | ||
877 | 17 | text-align: right; | ||
878 | 18 | } | ||
879 | 19 | div.tg-dropdown { | ||
880 | 20 | left: auto; | ||
881 | 21 | right: 0; | ||
882 | 22 | } | ||
883 | 0 | \ No newline at end of file | 23 | \ No newline at end of file |
884 | 1 | 24 | ||
885 | === added file 'wp-content/plugins/contact-form-7/admin/styles.css' | |||
886 | --- wp-content/plugins/contact-form-7/admin/styles.css 1970-01-01 00:00:00 +0000 | |||
887 | +++ wp-content/plugins/contact-form-7/admin/styles.css 2011-02-18 16:15:41 +0000 | |||
888 | @@ -0,0 +1,248 @@ | |||
889 | 1 | div.wpcf7 div.cf7com-links { | ||
890 | 2 | text-align: right; | ||
891 | 3 | font-size: .8em; | ||
892 | 4 | margin-top: -1.6em; | ||
893 | 5 | } | ||
894 | 6 | |||
895 | 7 | div.wpcf7 div.cf7com-links a { | ||
896 | 8 | text-decoration: none; | ||
897 | 9 | } | ||
898 | 10 | |||
899 | 11 | div.wpcf7 div.donation { | ||
900 | 12 | border-width: 1px; | ||
901 | 13 | border-style: solid; | ||
902 | 14 | padding: 0 0.6em; | ||
903 | 15 | margin: 5px 0 15px; | ||
904 | 16 | -moz-border-radius: 3px; | ||
905 | 17 | -khtml-border-radius: 3px; | ||
906 | 18 | -webkit-border-radius: 3px; | ||
907 | 19 | border-radius: 3px; | ||
908 | 20 | background-color: #ffffe0; | ||
909 | 21 | border-color: #e6db55; | ||
910 | 22 | text-align: center; | ||
911 | 23 | } | ||
912 | 24 | |||
913 | 25 | div.wpcf7 div.donation p { | ||
914 | 26 | margin: .7em 0; | ||
915 | 27 | line-height: 1; | ||
916 | 28 | padding: 2px; | ||
917 | 29 | font-size: 107%; | ||
918 | 30 | } | ||
919 | 31 | |||
920 | 32 | div.wpcf7 div.donation p a { | ||
921 | 33 | font-weight: bold; | ||
922 | 34 | color: #3f3f3f; | ||
923 | 35 | } | ||
924 | 36 | |||
925 | 37 | div.wpcf7 div.donation p a.button { | ||
926 | 38 | margin-left: 1em; | ||
927 | 39 | } | ||
928 | 40 | |||
929 | 41 | div.wpcf7 ul.subsubsub { | ||
930 | 42 | white-space: normal; | ||
931 | 43 | } | ||
932 | 44 | |||
933 | 45 | ul.subsubsub li.addnew { | ||
934 | 46 | margin-left: 0.5em; | ||
935 | 47 | } | ||
936 | 48 | |||
937 | 49 | ul.subsubsub li.addnew a { | ||
938 | 50 | color: #e6255b; | ||
939 | 51 | } | ||
940 | 52 | |||
941 | 53 | ul.subsubsub li.addnew a:hover, | ||
942 | 54 | ul.subsubsub li.addnew a:active { | ||
943 | 55 | color: #999; | ||
944 | 56 | } | ||
945 | 57 | |||
946 | 58 | div.save-contact-form { | ||
947 | 59 | padding: 1.4em 0 0 0; | ||
948 | 60 | text-align: right; | ||
949 | 61 | } | ||
950 | 62 | |||
951 | 63 | div.actions-link { | ||
952 | 64 | position: absolute; | ||
953 | 65 | top: 0; | ||
954 | 66 | right: 0; | ||
955 | 67 | margin: 0; | ||
956 | 68 | padding: 0; | ||
957 | 69 | } | ||
958 | 70 | |||
959 | 71 | div.actions-link input { | ||
960 | 72 | padding: 0; | ||
961 | 73 | margin: 0; | ||
962 | 74 | border: none; | ||
963 | 75 | background-color: #fff; | ||
964 | 76 | font-size: 11px; | ||
965 | 77 | cursor: pointer; | ||
966 | 78 | } | ||
967 | 79 | |||
968 | 80 | div.actions-link input.copy { | ||
969 | 81 | color: #006505; | ||
970 | 82 | } | ||
971 | 83 | |||
972 | 84 | div.actions-link input.delete { | ||
973 | 85 | color: #bc0b0b; | ||
974 | 86 | } | ||
975 | 87 | |||
976 | 88 | input#wpcf7-title { | ||
977 | 89 | color: #555; | ||
978 | 90 | background-color: #fff; | ||
979 | 91 | border: none; | ||
980 | 92 | font: bold 20px serif; | ||
981 | 93 | } | ||
982 | 94 | |||
983 | 95 | p.tagcode { | ||
984 | 96 | color: #333; | ||
985 | 97 | margin: 2ex 0 1ex 1em; | ||
986 | 98 | } | ||
987 | 99 | |||
988 | 100 | input#contact-form-anchor-text { | ||
989 | 101 | color: #fff; | ||
990 | 102 | background: #7e4e0b; | ||
991 | 103 | border: none; | ||
992 | 104 | width: 99%; | ||
993 | 105 | -moz-border-radius: 6px; | ||
994 | 106 | -khtml-border-radius: 6px; | ||
995 | 107 | -webkit-border-radius: 6px; | ||
996 | 108 | border-radius: 6px; | ||
997 | 109 | } | ||
998 | 110 | |||
999 | 111 | span#message-fields-toggle-switch, span#additional-settings-fields-toggle-switch { | ||
1000 | 112 | margin-left: 1em; | ||
1001 | 113 | font-weight: normal; | ||
1002 | 114 | font-size: smaller; | ||
1003 | 115 | color: #2583ad; | ||
1004 | 116 | cursor: pointer; | ||
1005 | 117 | } | ||
1006 | 118 | |||
1007 | 119 | div.pseudo-hr { | ||
1008 | 120 | border-bottom: 1px solid #fff; | ||
1009 | 121 | margin: 0.7em 0; | ||
1010 | 122 | } | ||
1011 | 123 | |||
1012 | 124 | input, textarea { | ||
1013 | 125 | border: 1px solid #dfdfdf; | ||
1014 | 126 | } | ||
1015 | 127 | |||
1016 | 128 | input.wide { | ||
1017 | 129 | width: 100%; | ||
1018 | 130 | } | ||
1019 | 131 | |||
1020 | 132 | textarea { | ||
1021 | 133 | width: 100%; | ||
1022 | 134 | } | ||
1023 | 135 | |||
1024 | 136 | label.disabled { | ||
1025 | 137 | color: #777; | ||
1026 | 138 | } | ||
1027 | 139 | |||
1028 | 140 | div.message-field { | ||
1029 | 141 | margin: .2em 0 .4em; | ||
1030 | 142 | } | ||
1031 | 143 | |||
1032 | 144 | div.tag-generator { | ||
1033 | 145 | position: relative; | ||
1034 | 146 | background: #fff; | ||
1035 | 147 | padding: 5px 0 5px 1px; | ||
1036 | 148 | } | ||
1037 | 149 | |||
1038 | 150 | div.tg-pane { | ||
1039 | 151 | border: 1px dashed #999; | ||
1040 | 152 | background: #f1f1f1; | ||
1041 | 153 | margin: 1ex 0 0 0; | ||
1042 | 154 | padding: 10px; | ||
1043 | 155 | -moz-border-radius: 6px; | ||
1044 | 156 | -khtml-border-radius: 6px; | ||
1045 | 157 | -webkit-border-radius: 6px; | ||
1046 | 158 | border-radius: 6px; | ||
1047 | 159 | } | ||
1048 | 160 | |||
1049 | 161 | div.tg-pane table { | ||
1050 | 162 | width: 100%; | ||
1051 | 163 | margin: 0 0 0.7em 0; | ||
1052 | 164 | } | ||
1053 | 165 | |||
1054 | 166 | div.tg-pane table caption { | ||
1055 | 167 | text-align: left; | ||
1056 | 168 | padding: 0 0 0.2em 0; | ||
1057 | 169 | font-weight: bolder; | ||
1058 | 170 | color: #777; | ||
1059 | 171 | } | ||
1060 | 172 | |||
1061 | 173 | div.tg-pane table code { | ||
1062 | 174 | background-color: inherit; | ||
1063 | 175 | } | ||
1064 | 176 | |||
1065 | 177 | div.tg-pane table td { | ||
1066 | 178 | vertical-align: top; | ||
1067 | 179 | width: 50%; | ||
1068 | 180 | border: none; | ||
1069 | 181 | } | ||
1070 | 182 | |||
1071 | 183 | div.tg-pane input.tag, div.tg-pane input.mail-tag { | ||
1072 | 184 | width: 100%; | ||
1073 | 185 | border: none; | ||
1074 | 186 | color: #fff; | ||
1075 | 187 | background-color: #7e4e0b; | ||
1076 | 188 | -moz-border-radius: 6px; | ||
1077 | 189 | -khtml-border-radius: 6px; | ||
1078 | 190 | -webkit-border-radius: 6px; | ||
1079 | 191 | border-radius: 6px; | ||
1080 | 192 | } | ||
1081 | 193 | |||
1082 | 194 | div.tg-pane input.mail-tag { | ||
1083 | 195 | width: 50%; | ||
1084 | 196 | background-color: #404f03; | ||
1085 | 197 | } | ||
1086 | 198 | |||
1087 | 199 | div.tg-mail-tag { | ||
1088 | 200 | margin-top: 2.4em; | ||
1089 | 201 | text-align: right; | ||
1090 | 202 | } | ||
1091 | 203 | |||
1092 | 204 | div.tg-pane span.arrow { | ||
1093 | 205 | font-family: monospace; | ||
1094 | 206 | font-size: 1.2em; | ||
1095 | 207 | color: #333; | ||
1096 | 208 | } | ||
1097 | 209 | |||
1098 | 210 | div.tg-pane input.tg-name { | ||
1099 | 211 | border-color: #555; | ||
1100 | 212 | } | ||
1101 | 213 | |||
1102 | 214 | div.tg-pane input.oneline { | ||
1103 | 215 | width: 98%; | ||
1104 | 216 | font-size: smaller; | ||
1105 | 217 | } | ||
1106 | 218 | |||
1107 | 219 | div.tg-pane textarea { | ||
1108 | 220 | width: 98%; | ||
1109 | 221 | height: 100px; | ||
1110 | 222 | font-size: smaller; | ||
1111 | 223 | } | ||
1112 | 224 | |||
1113 | 225 | div.tg-pane div.tg-tag { | ||
1114 | 226 | margin: .4em 0; | ||
1115 | 227 | } | ||
1116 | 228 | |||
1117 | 229 | div.tg-dropdown { | ||
1118 | 230 | position: absolute; | ||
1119 | 231 | top: 26px; | ||
1120 | 232 | left: 0; | ||
1121 | 233 | z-index: 10; | ||
1122 | 234 | border: 1px solid #ddd; | ||
1123 | 235 | } | ||
1124 | 236 | |||
1125 | 237 | span.tg-closebutton { | ||
1126 | 238 | color: #777; | ||
1127 | 239 | font: bold 18px monospace; | ||
1128 | 240 | padding: 1px 4px; | ||
1129 | 241 | cursor: pointer; | ||
1130 | 242 | } | ||
1131 | 243 | |||
1132 | 244 | div.tg-panetitle { | ||
1133 | 245 | font: bold 132% sans-serif; | ||
1134 | 246 | margin: 0 0 10px; | ||
1135 | 247 | color: #777; | ||
1136 | 248 | } | ||
1137 | 0 | \ No newline at end of file | 249 | \ No newline at end of file |
1138 | 1 | 250 | ||
1139 | === added file 'wp-content/plugins/contact-form-7/admin/taggenerator.js' | |||
1140 | --- wp-content/plugins/contact-form-7/admin/taggenerator.js 1970-01-01 00:00:00 +0000 | |||
1141 | +++ wp-content/plugins/contact-form-7/admin/taggenerator.js 2011-02-18 16:15:41 +0000 | |||
1142 | @@ -0,0 +1,262 @@ | |||
1143 | 1 | (function($) { | ||
1144 | 2 | |||
1145 | 3 | $.fn.tagGenerator = function(title, options) { | ||
1146 | 4 | var menu = $('<div class="tag-generator"></div>'); | ||
1147 | 5 | |||
1148 | 6 | var selector = $('<span>' + title + '</span>'); | ||
1149 | 7 | |||
1150 | 8 | selector.css({ | ||
1151 | 9 | border: '1px solid #ddd', | ||
1152 | 10 | padding: '2px 4px', | ||
1153 | 11 | background: '#fff url( ../wp-admin/images/fade-butt.png ) repeat-x 0 0', | ||
1154 | 12 | '-moz-border-radius': '3px', | ||
1155 | 13 | '-khtml-border-radius': '3px', | ||
1156 | 14 | '-webkit-border-radius': '3px', | ||
1157 | 15 | 'border-radius': '3px' | ||
1158 | 16 | }); | ||
1159 | 17 | |||
1160 | 18 | selector.mouseover(function() { | ||
1161 | 19 | $(this).css({ 'border-color': '#bbb' }); | ||
1162 | 20 | }); | ||
1163 | 21 | selector.mouseout(function() { | ||
1164 | 22 | $(this).css({ 'border-color': '#ddd' }); | ||
1165 | 23 | }); | ||
1166 | 24 | selector.mousedown(function() { | ||
1167 | 25 | $(this).css({ background: '#ddd' }); | ||
1168 | 26 | }); | ||
1169 | 27 | selector.mouseup(function() { | ||
1170 | 28 | $(this).css({ | ||
1171 | 29 | background: '#fff url( ../wp-admin/images/fade-butt.png ) repeat-x 0 0' | ||
1172 | 30 | }); | ||
1173 | 31 | }); | ||
1174 | 32 | selector.click(function() { | ||
1175 | 33 | dropdown.slideDown('fast'); | ||
1176 | 34 | return false; | ||
1177 | 35 | }); | ||
1178 | 36 | $('body').click(function() { | ||
1179 | 37 | dropdown.hide(); | ||
1180 | 38 | }); | ||
1181 | 39 | |||
1182 | 40 | if (options.dropdownIconUrl) { | ||
1183 | 41 | var dropdown_icon = $('<img src="' + options.dropdownIconUrl + '" />'); | ||
1184 | 42 | dropdown_icon.css({ 'vertical-align': 'bottom' }); | ||
1185 | 43 | selector.append(dropdown_icon); | ||
1186 | 44 | } | ||
1187 | 45 | |||
1188 | 46 | menu.append(selector); | ||
1189 | 47 | |||
1190 | 48 | var pane = $('<div class="tg-pane"></div>'); | ||
1191 | 49 | pane.hide(); | ||
1192 | 50 | menu.append(pane); | ||
1193 | 51 | |||
1194 | 52 | var dropdown = $('<div class="tg-dropdown"></div>'); | ||
1195 | 53 | dropdown.hide(); | ||
1196 | 54 | menu.append(dropdown); | ||
1197 | 55 | |||
1198 | 56 | $.each($.tgPanes, function(i, n) { | ||
1199 | 57 | var submenu = $('<div>' + $.tgPanes[i].title + '</div>'); | ||
1200 | 58 | submenu.css({ | ||
1201 | 59 | margin: 0, | ||
1202 | 60 | padding: '0 4px', | ||
1203 | 61 | 'line-height': '180%', | ||
1204 | 62 | background: '#fff' | ||
1205 | 63 | }); | ||
1206 | 64 | submenu.mouseover(function() { | ||
1207 | 65 | $(this).css({ background: '#d4f2f2' }); | ||
1208 | 66 | }); | ||
1209 | 67 | submenu.mouseout(function() { | ||
1210 | 68 | $(this).css({ background: '#fff' }); | ||
1211 | 69 | }); | ||
1212 | 70 | submenu.click(function() { | ||
1213 | 71 | dropdown.hide(); | ||
1214 | 72 | pane.hide(); | ||
1215 | 73 | pane.empty(); | ||
1216 | 74 | $.tgPane(pane, i); | ||
1217 | 75 | pane.slideDown('fast'); | ||
1218 | 76 | return false; | ||
1219 | 77 | }); | ||
1220 | 78 | dropdown.append(submenu); | ||
1221 | 79 | }); | ||
1222 | 80 | |||
1223 | 81 | this.append(menu); | ||
1224 | 82 | }; | ||
1225 | 83 | |||
1226 | 84 | $.tgPane = function(pane, tagType) { | ||
1227 | 85 | var closeButtonDiv = $('<div></div>'); | ||
1228 | 86 | closeButtonDiv.css({ float: 'right' }); | ||
1229 | 87 | |||
1230 | 88 | var closeButton = $('<span class="tg-closebutton">×</span>'); | ||
1231 | 89 | closeButton.click(function() { | ||
1232 | 90 | pane.slideUp('fast').empty(); | ||
1233 | 91 | }); | ||
1234 | 92 | closeButtonDiv.append(closeButton); | ||
1235 | 93 | |||
1236 | 94 | pane.append(closeButtonDiv); | ||
1237 | 95 | |||
1238 | 96 | var paneTitle = $('<div class="tg-panetitle">' + $.tgPanes[tagType].title + '</div>'); | ||
1239 | 97 | pane.append(paneTitle); | ||
1240 | 98 | |||
1241 | 99 | pane.append($('#' + $.tgPanes[tagType].content).clone().contents()); | ||
1242 | 100 | |||
1243 | 101 | pane.find(':checkbox.exclusive').change(function() { | ||
1244 | 102 | if ($(this).is(':checked')) | ||
1245 | 103 | $(this).siblings(':checkbox.exclusive').removeAttr('checked'); | ||
1246 | 104 | }); | ||
1247 | 105 | |||
1248 | 106 | if ($.isFunction($.tgPanes[tagType].change)) | ||
1249 | 107 | $.tgPanes[tagType].change(pane, tagType); | ||
1250 | 108 | else | ||
1251 | 109 | $.tgCreateTag(pane, tagType); | ||
1252 | 110 | |||
1253 | 111 | pane.find(':input').change(function() { | ||
1254 | 112 | if ($.isFunction($.tgPanes[tagType].change)) | ||
1255 | 113 | $.tgPanes[tagType].change(pane, tagType); | ||
1256 | 114 | else | ||
1257 | 115 | $.tgCreateTag(pane, tagType); | ||
1258 | 116 | }); | ||
1259 | 117 | } | ||
1260 | 118 | |||
1261 | 119 | $.tgCreateTag = function(pane, tagType) { | ||
1262 | 120 | pane.find('input[name="name"]').each(function(i) { | ||
1263 | 121 | var val = $(this).val(); | ||
1264 | 122 | val = val.replace(/[^0-9a-zA-Z:._-]/g, '').replace(/^[^a-zA-Z]+/, ''); | ||
1265 | 123 | if ('' == val) { | ||
1266 | 124 | var rand = Math.floor(Math.random() * 1000); | ||
1267 | 125 | val = tagType + '-' + rand; | ||
1268 | 126 | } | ||
1269 | 127 | $(this).val(val); | ||
1270 | 128 | }); | ||
1271 | 129 | |||
1272 | 130 | pane.find(':input.numeric').each(function(i) { | ||
1273 | 131 | var val = $(this).val(); | ||
1274 | 132 | val = val.replace(/[^0-9]/g, ''); | ||
1275 | 133 | $(this).val(val); | ||
1276 | 134 | }); | ||
1277 | 135 | |||
1278 | 136 | pane.find(':input.idvalue').each(function(i) { | ||
1279 | 137 | var val = $(this).val(); | ||
1280 | 138 | val = val.replace(/[^-0-9a-zA-Z_]/g, ''); | ||
1281 | 139 | $(this).val(val); | ||
1282 | 140 | }); | ||
1283 | 141 | |||
1284 | 142 | pane.find(':input.classvalue').each(function(i) { | ||
1285 | 143 | var val = $(this).val(); | ||
1286 | 144 | val = $.map(val.split(' '), function(n) { | ||
1287 | 145 | return n.replace(/[^-0-9a-zA-Z_]/g, ''); | ||
1288 | 146 | }).join(' '); | ||
1289 | 147 | val = $.trim(val.replace(/\s+/g, ' ')); | ||
1290 | 148 | $(this).val(val); | ||
1291 | 149 | }); | ||
1292 | 150 | |||
1293 | 151 | pane.find(':input.color').each(function(i) { | ||
1294 | 152 | var val = $(this).val(); | ||
1295 | 153 | val = val.replace(/[^0-9a-fA-F]/g, ''); | ||
1296 | 154 | $(this).val(val); | ||
1297 | 155 | }); | ||
1298 | 156 | |||
1299 | 157 | pane.find(':input.filesize').each(function(i) { | ||
1300 | 158 | var val = $(this).val(); | ||
1301 | 159 | val = val.replace(/[^0-9kKmMbB]/g, ''); | ||
1302 | 160 | $(this).val(val); | ||
1303 | 161 | }); | ||
1304 | 162 | |||
1305 | 163 | pane.find(':input.filetype').each(function(i) { | ||
1306 | 164 | var val = $(this).val(); | ||
1307 | 165 | val = val.replace(/[^0-9a-zA-Z.\s]/g, ''); | ||
1308 | 166 | $(this).val(val); | ||
1309 | 167 | }); | ||
1310 | 168 | |||
1311 | 169 | pane.find(':input.date').each(function(i) { | ||
1312 | 170 | var val = $(this).val(); | ||
1313 | 171 | if (! val.match(/^\d{4}-\d{1,2}-\d{1,2}$/)) // 'yyyy-mm-dd' ISO 8601 format | ||
1314 | 172 | $(this).val(''); | ||
1315 | 173 | }); | ||
1316 | 174 | |||
1317 | 175 | pane.find(':input[name="values"]').each(function(i) { | ||
1318 | 176 | var val = $(this).val(); | ||
1319 | 177 | val = $.trim(val); | ||
1320 | 178 | $(this).val(val); | ||
1321 | 179 | }); | ||
1322 | 180 | |||
1323 | 181 | pane.find('input.tag').each(function(i) { | ||
1324 | 182 | var type = $(this).attr('name'); | ||
1325 | 183 | |||
1326 | 184 | var scope = pane.find('.scope.' + type); | ||
1327 | 185 | if (! scope.length) | ||
1328 | 186 | scope = pane; | ||
1329 | 187 | |||
1330 | 188 | if (pane.find(':input[name="required"]').is(':checked')) | ||
1331 | 189 | type += '*'; | ||
1332 | 190 | |||
1333 | 191 | var name = pane.find(':input[name="name"]').val(); | ||
1334 | 192 | |||
1335 | 193 | var options = []; | ||
1336 | 194 | |||
1337 | 195 | var size = scope.find(':input[name="size"]').val(); | ||
1338 | 196 | var maxlength = scope.find(':input[name="maxlength"]').val(); | ||
1339 | 197 | if (size || maxlength) | ||
1340 | 198 | options.push(size + '/' + maxlength); | ||
1341 | 199 | |||
1342 | 200 | var cols = scope.find(':input[name="cols"]').val(); | ||
1343 | 201 | var rows = scope.find(':input[name="rows"]').val(); | ||
1344 | 202 | if (cols || rows) | ||
1345 | 203 | options.push(cols + 'x' + rows); | ||
1346 | 204 | |||
1347 | 205 | scope.find('input:text.option').each(function(i) { | ||
1348 | 206 | if (-1 < $.inArray($(this).attr('name'), ['size', 'maxlength', 'cols', 'rows'])) | ||
1349 | 207 | return; | ||
1350 | 208 | |||
1351 | 209 | var val = $(this).val(); | ||
1352 | 210 | |||
1353 | 211 | if (! val) | ||
1354 | 212 | return; | ||
1355 | 213 | |||
1356 | 214 | if ($(this).hasClass('filetype')) | ||
1357 | 215 | val = val.split(' ').join('|'); | ||
1358 | 216 | |||
1359 | 217 | if ($(this).hasClass('color')) | ||
1360 | 218 | val = '#' + val; | ||
1361 | 219 | |||
1362 | 220 | if ('class' == $(this).attr('name')) { | ||
1363 | 221 | $.each(val.split(' '), function(i, n) { options.push('class:' + n) }); | ||
1364 | 222 | } else { | ||
1365 | 223 | options.push($(this).attr('name') + ':' + val); | ||
1366 | 224 | } | ||
1367 | 225 | }); | ||
1368 | 226 | |||
1369 | 227 | scope.find('input:checkbox.option').each(function(i) { | ||
1370 | 228 | if ($(this).is(':checked')) | ||
1371 | 229 | options.push($(this).attr('name')); | ||
1372 | 230 | }); | ||
1373 | 231 | |||
1374 | 232 | options = (options.length > 0) ? ' ' + options.join(' ') : ''; | ||
1375 | 233 | |||
1376 | 234 | var value = ''; | ||
1377 | 235 | |||
1378 | 236 | if (scope.find(':input[name="values"]').val()) { | ||
1379 | 237 | $.each(scope.find(':input[name="values"]').val().split("\n"), function(i, n) { | ||
1380 | 238 | value += ' "' + n.replace(/["]/g, '"') + '"'; | ||
1381 | 239 | }); | ||
1382 | 240 | } | ||
1383 | 241 | |||
1384 | 242 | if ($.tgPanes[tagType].nameless) | ||
1385 | 243 | var tag = '[' + type + options + value + ']'; | ||
1386 | 244 | else | ||
1387 | 245 | var tag = name ? '[' + type + ' ' + name + options + value + ']' : ''; | ||
1388 | 246 | |||
1389 | 247 | $(this).val(tag); | ||
1390 | 248 | }); | ||
1391 | 249 | |||
1392 | 250 | pane.find('input.mail-tag').each(function(i) { | ||
1393 | 251 | var name = pane.find(':input[name="name"]').val(); | ||
1394 | 252 | |||
1395 | 253 | var tag = name ? '[' + name + ']' : ''; | ||
1396 | 254 | |||
1397 | 255 | $(this).val(tag); | ||
1398 | 256 | }); | ||
1399 | 257 | |||
1400 | 258 | } | ||
1401 | 259 | |||
1402 | 260 | $.tgPanes = {}; | ||
1403 | 261 | |||
1404 | 262 | })(jQuery); | ||
1405 | 0 | \ No newline at end of file | 263 | \ No newline at end of file |
1406 | 1 | 264 | ||
1407 | === added directory 'wp-content/plugins/contact-form-7/images' | |||
1408 | === added file 'wp-content/plugins/contact-form-7/images/ajax-loader.gif' | |||
1409 | 2 | Binary files wp-content/plugins/contact-form-7/images/ajax-loader.gif 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/images/ajax-loader.gif 2011-02-18 16:15:41 +0000 differ | 265 | Binary files wp-content/plugins/contact-form-7/images/ajax-loader.gif 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/images/ajax-loader.gif 2011-02-18 16:15:41 +0000 differ |
1410 | === added file 'wp-content/plugins/contact-form-7/images/dropdown.gif' | |||
1411 | 3 | Binary files wp-content/plugins/contact-form-7/images/dropdown.gif 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/images/dropdown.gif 2011-02-18 16:15:41 +0000 differ | 266 | Binary files wp-content/plugins/contact-form-7/images/dropdown.gif 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/images/dropdown.gif 2011-02-18 16:15:41 +0000 differ |
1412 | === added directory 'wp-content/plugins/contact-form-7/includes' | |||
1413 | === added file 'wp-content/plugins/contact-form-7/includes/classes.php' | |||
1414 | --- wp-content/plugins/contact-form-7/includes/classes.php 1970-01-01 00:00:00 +0000 | |||
1415 | +++ wp-content/plugins/contact-form-7/includes/classes.php 2011-02-18 16:15:41 +0000 | |||
1416 | @@ -0,0 +1,645 @@ | |||
1417 | 1 | <?php | ||
1418 | 2 | |||
1419 | 3 | class WPCF7_ContactForm { | ||
1420 | 4 | |||
1421 | 5 | var $initial = false; | ||
1422 | 6 | |||
1423 | 7 | var $id; | ||
1424 | 8 | var $title; | ||
1425 | 9 | var $form; | ||
1426 | 10 | var $mail; | ||
1427 | 11 | var $mail_2; | ||
1428 | 12 | var $messages; | ||
1429 | 13 | var $additional_settings; | ||
1430 | 14 | |||
1431 | 15 | var $unit_tag; | ||
1432 | 16 | |||
1433 | 17 | var $responses_count = 0; | ||
1434 | 18 | var $scanned_form_tags; | ||
1435 | 19 | |||
1436 | 20 | var $posted_data; | ||
1437 | 21 | var $uploaded_files; | ||
1438 | 22 | |||
1439 | 23 | var $skip_mail = false; | ||
1440 | 24 | |||
1441 | 25 | // Return true if this form is the same one as currently POSTed. | ||
1442 | 26 | function is_posted() { | ||
1443 | 27 | if ( ! isset( $_POST['_wpcf7_unit_tag'] ) || empty( $_POST['_wpcf7_unit_tag'] ) ) | ||
1444 | 28 | return false; | ||
1445 | 29 | |||
1446 | 30 | if ( $this->unit_tag == $_POST['_wpcf7_unit_tag'] ) | ||
1447 | 31 | return true; | ||
1448 | 32 | |||
1449 | 33 | return false; | ||
1450 | 34 | } | ||
1451 | 35 | |||
1452 | 36 | function clear_post() { | ||
1453 | 37 | $fes = $this->form_scan_shortcode(); | ||
1454 | 38 | |||
1455 | 39 | foreach ( $fes as $fe ) { | ||
1456 | 40 | $name = $fe['name']; | ||
1457 | 41 | |||
1458 | 42 | if ( empty( $name ) ) | ||
1459 | 43 | continue; | ||
1460 | 44 | |||
1461 | 45 | if ( isset( $_POST[$name] ) ) | ||
1462 | 46 | unset( $_POST[$name] ); | ||
1463 | 47 | } | ||
1464 | 48 | } | ||
1465 | 49 | |||
1466 | 50 | /* Generating Form HTML */ | ||
1467 | 51 | |||
1468 | 52 | function form_html() { | ||
1469 | 53 | $form = '<div class="wpcf7" id="' . $this->unit_tag . '">'; | ||
1470 | 54 | |||
1471 | 55 | $url = wpcf7_get_request_uri(); | ||
1472 | 56 | |||
1473 | 57 | if ( $frag = strstr( $url, '#' ) ) | ||
1474 | 58 | $url = substr( $url, 0, -strlen( $frag ) ); | ||
1475 | 59 | |||
1476 | 60 | $url .= '#' . $this->unit_tag; | ||
1477 | 61 | |||
1478 | 62 | $url = apply_filters( 'wpcf7_form_action_url', $url ); | ||
1479 | 63 | $enctype = apply_filters( 'wpcf7_form_enctype', '' ); | ||
1480 | 64 | $class = apply_filters( 'wpcf7_form_class_attr', 'wpcf7-form' ); | ||
1481 | 65 | |||
1482 | 66 | $form .= '<form action="' . esc_url_raw( $url ) . '" method="post"' | ||
1483 | 67 | . ' class="' . esc_attr( $class ) . '"' . $enctype . '>' . "\n"; | ||
1484 | 68 | $form .= '<div style="display: none;">' . "\n"; | ||
1485 | 69 | $form .= '<input type="hidden" name="_wpcf7" value="' | ||
1486 | 70 | . esc_attr( $this->id ) . '" />' . "\n"; | ||
1487 | 71 | $form .= '<input type="hidden" name="_wpcf7_version" value="' | ||
1488 | 72 | . esc_attr( WPCF7_VERSION ) . '" />' . "\n"; | ||
1489 | 73 | $form .= '<input type="hidden" name="_wpcf7_unit_tag" value="' | ||
1490 | 74 | . esc_attr( $this->unit_tag ) . '" />' . "\n"; | ||
1491 | 75 | $form .= '</div>' . "\n"; | ||
1492 | 76 | $form .= $this->form_elements(); | ||
1493 | 77 | |||
1494 | 78 | if ( ! $this->responses_count ) | ||
1495 | 79 | $form .= $this->form_response_output(); | ||
1496 | 80 | |||
1497 | 81 | $form .= '</form>'; | ||
1498 | 82 | |||
1499 | 83 | $form .= '</div>'; | ||
1500 | 84 | |||
1501 | 85 | return $form; | ||
1502 | 86 | } | ||
1503 | 87 | |||
1504 | 88 | function form_response_output() { | ||
1505 | 89 | $class = 'wpcf7-response-output'; | ||
1506 | 90 | $content = ''; | ||
1507 | 91 | |||
1508 | 92 | if ( $this->is_posted() ) { // Post response output for non-AJAX | ||
1509 | 93 | if ( isset( $_POST['_wpcf7_mail_sent'] ) && $_POST['_wpcf7_mail_sent']['id'] == $this->id ) { | ||
1510 | 94 | if ( $_POST['_wpcf7_mail_sent']['ok'] ) { | ||
1511 | 95 | $class .= ' wpcf7-mail-sent-ok'; | ||
1512 | 96 | $content = $_POST['_wpcf7_mail_sent']['message']; | ||
1513 | 97 | } else { | ||
1514 | 98 | $class .= ' wpcf7-mail-sent-ng'; | ||
1515 | 99 | if ( $_POST['_wpcf7_mail_sent']['spam'] ) | ||
1516 | 100 | $class .= ' wpcf7-spam-blocked'; | ||
1517 | 101 | $content = $_POST['_wpcf7_mail_sent']['message']; | ||
1518 | 102 | } | ||
1519 | 103 | } elseif ( isset( $_POST['_wpcf7_validation_errors'] ) && $_POST['_wpcf7_validation_errors']['id'] == $this->id ) { | ||
1520 | 104 | $class .= ' wpcf7-validation-errors'; | ||
1521 | 105 | $content = $this->message( 'validation_error' ); | ||
1522 | 106 | } | ||
1523 | 107 | } else { | ||
1524 | 108 | $class .= ' wpcf7-display-none'; | ||
1525 | 109 | } | ||
1526 | 110 | |||
1527 | 111 | $class = ' class="' . $class . '"'; | ||
1528 | 112 | |||
1529 | 113 | return '<div' . $class . '>' . $content . '</div>'; | ||
1530 | 114 | } | ||
1531 | 115 | |||
1532 | 116 | function validation_error( $name ) { | ||
1533 | 117 | if ( ! $this->is_posted() ) | ||
1534 | 118 | return ''; | ||
1535 | 119 | |||
1536 | 120 | if ( ! isset( $_POST['_wpcf7_validation_errors']['messages'][$name] ) ) | ||
1537 | 121 | return ''; | ||
1538 | 122 | |||
1539 | 123 | $ve = trim( $_POST['_wpcf7_validation_errors']['messages'][$name] ); | ||
1540 | 124 | |||
1541 | 125 | if ( ! empty( $ve ) ) { | ||
1542 | 126 | $ve = '<span class="wpcf7-not-valid-tip-no-ajax">' . esc_html( $ve ) . '</span>'; | ||
1543 | 127 | return apply_filters( 'wpcf7_validation_error', $ve, $name, $this ); | ||
1544 | 128 | } | ||
1545 | 129 | |||
1546 | 130 | return ''; | ||
1547 | 131 | } | ||
1548 | 132 | |||
1549 | 133 | /* Form Elements */ | ||
1550 | 134 | |||
1551 | 135 | function form_do_shortcode() { | ||
1552 | 136 | global $wpcf7_shortcode_manager; | ||
1553 | 137 | |||
1554 | 138 | $form = $this->form; | ||
1555 | 139 | |||
1556 | 140 | if ( WPCF7_AUTOP ) { | ||
1557 | 141 | $form = $wpcf7_shortcode_manager->normalize_shortcode( $form ); | ||
1558 | 142 | $form = wpcf7_autop( $form ); | ||
1559 | 143 | } | ||
1560 | 144 | |||
1561 | 145 | $form = $wpcf7_shortcode_manager->do_shortcode( $form ); | ||
1562 | 146 | $this->scanned_form_tags = $wpcf7_shortcode_manager->scanned_tags; | ||
1563 | 147 | |||
1564 | 148 | return $form; | ||
1565 | 149 | } | ||
1566 | 150 | |||
1567 | 151 | function form_scan_shortcode( $cond = null ) { | ||
1568 | 152 | global $wpcf7_shortcode_manager; | ||
1569 | 153 | |||
1570 | 154 | if ( ! empty( $this->scanned_form_tags ) ) { | ||
1571 | 155 | $scanned = $this->scanned_form_tags; | ||
1572 | 156 | } else { | ||
1573 | 157 | $scanned = $wpcf7_shortcode_manager->scan_shortcode( $this->form ); | ||
1574 | 158 | $this->scanned_form_tags = $scanned; | ||
1575 | 159 | } | ||
1576 | 160 | |||
1577 | 161 | if ( empty( $scanned ) ) | ||
1578 | 162 | return null; | ||
1579 | 163 | |||
1580 | 164 | if ( ! is_array( $cond ) || empty( $cond ) ) | ||
1581 | 165 | return $scanned; | ||
1582 | 166 | |||
1583 | 167 | for ( $i = 0, $size = count( $scanned ); $i < $size; $i++ ) { | ||
1584 | 168 | |||
1585 | 169 | if ( isset( $cond['type'] ) ) { | ||
1586 | 170 | if ( is_string( $cond['type'] ) && ! empty( $cond['type'] ) ) { | ||
1587 | 171 | if ( $scanned[$i]['type'] != $cond['type'] ) { | ||
1588 | 172 | unset( $scanned[$i] ); | ||
1589 | 173 | continue; | ||
1590 | 174 | } | ||
1591 | 175 | } elseif ( is_array( $cond['type'] ) ) { | ||
1592 | 176 | if ( ! in_array( $scanned[$i]['type'], $cond['type'] ) ) { | ||
1593 | 177 | unset( $scanned[$i] ); | ||
1594 | 178 | continue; | ||
1595 | 179 | } | ||
1596 | 180 | } | ||
1597 | 181 | } | ||
1598 | 182 | |||
1599 | 183 | if ( isset( $cond['name'] ) ) { | ||
1600 | 184 | if ( is_string( $cond['name'] ) && ! empty( $cond['name'] ) ) { | ||
1601 | 185 | if ( $scanned[$i]['name'] != $cond['name'] ) { | ||
1602 | 186 | unset ( $scanned[$i] ); | ||
1603 | 187 | continue; | ||
1604 | 188 | } | ||
1605 | 189 | } elseif ( is_array( $cond['name'] ) ) { | ||
1606 | 190 | if ( ! in_array( $scanned[$i]['name'], $cond['name'] ) ) { | ||
1607 | 191 | unset( $scanned[$i] ); | ||
1608 | 192 | continue; | ||
1609 | 193 | } | ||
1610 | 194 | } | ||
1611 | 195 | } | ||
1612 | 196 | } | ||
1613 | 197 | |||
1614 | 198 | return array_values( $scanned ); | ||
1615 | 199 | } | ||
1616 | 200 | |||
1617 | 201 | function form_elements() { | ||
1618 | 202 | return apply_filters( 'wpcf7_form_elements', $this->form_do_shortcode() ); | ||
1619 | 203 | } | ||
1620 | 204 | |||
1621 | 205 | /* Validate */ | ||
1622 | 206 | |||
1623 | 207 | function validate() { | ||
1624 | 208 | $fes = $this->form_scan_shortcode(); | ||
1625 | 209 | |||
1626 | 210 | $result = array( 'valid' => true, 'reason' => array() ); | ||
1627 | 211 | |||
1628 | 212 | foreach ( $fes as $fe ) { | ||
1629 | 213 | $result = apply_filters( 'wpcf7_validate_' . $fe['type'], $result, $fe ); | ||
1630 | 214 | } | ||
1631 | 215 | |||
1632 | 216 | return $result; | ||
1633 | 217 | } | ||
1634 | 218 | |||
1635 | 219 | /* Acceptance */ | ||
1636 | 220 | |||
1637 | 221 | function accepted() { | ||
1638 | 222 | $accepted = true; | ||
1639 | 223 | |||
1640 | 224 | return apply_filters( 'wpcf7_acceptance', $accepted ); | ||
1641 | 225 | } | ||
1642 | 226 | |||
1643 | 227 | /* Akismet */ | ||
1644 | 228 | |||
1645 | 229 | function akismet() { | ||
1646 | 230 | global $akismet_api_host, $akismet_api_port; | ||
1647 | 231 | |||
1648 | 232 | if ( ! function_exists( 'akismet_http_post' ) || | ||
1649 | 233 | ! ( get_option( 'wordpress_api_key' ) || $wpcom_api_key ) ) | ||
1650 | 234 | return false; | ||
1651 | 235 | |||
1652 | 236 | $akismet_ready = false; | ||
1653 | 237 | $author = $author_email = $author_url = $content = ''; | ||
1654 | 238 | $fes = $this->form_scan_shortcode(); | ||
1655 | 239 | |||
1656 | 240 | foreach ( $fes as $fe ) { | ||
1657 | 241 | if ( ! is_array( $fe['options'] ) ) continue; | ||
1658 | 242 | |||
1659 | 243 | if ( preg_grep( '%^akismet:author$%', $fe['options'] ) && '' == $author ) { | ||
1660 | 244 | $author = $_POST[$fe['name']]; | ||
1661 | 245 | $akismet_ready = true; | ||
1662 | 246 | } | ||
1663 | 247 | |||
1664 | 248 | if ( preg_grep( '%^akismet:author_email$%', $fe['options'] ) && '' == $author_email ) { | ||
1665 | 249 | $author_email = $_POST[$fe['name']]; | ||
1666 | 250 | $akismet_ready = true; | ||
1667 | 251 | } | ||
1668 | 252 | |||
1669 | 253 | if ( preg_grep( '%^akismet:author_url$%', $fe['options'] ) && '' == $author_url ) { | ||
1670 | 254 | $author_url = $_POST[$fe['name']]; | ||
1671 | 255 | $akismet_ready = true; | ||
1672 | 256 | } | ||
1673 | 257 | |||
1674 | 258 | if ( '' != $content ) | ||
1675 | 259 | $content .= "\n\n"; | ||
1676 | 260 | |||
1677 | 261 | $content .= $_POST[$fe['name']]; | ||
1678 | 262 | } | ||
1679 | 263 | |||
1680 | 264 | if ( ! $akismet_ready ) | ||
1681 | 265 | return false; | ||
1682 | 266 | |||
1683 | 267 | $c['blog'] = get_option( 'home' ); | ||
1684 | 268 | $c['user_ip'] = preg_replace( '/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR'] ); | ||
1685 | 269 | $c['user_agent'] = $_SERVER['HTTP_USER_AGENT']; | ||
1686 | 270 | $c['referrer'] = $_SERVER['HTTP_REFERER']; | ||
1687 | 271 | $c['comment_type'] = 'contactform7'; | ||
1688 | 272 | if ( $permalink = get_permalink() ) | ||
1689 | 273 | $c['permalink'] = $permalink; | ||
1690 | 274 | if ( '' != $author ) | ||
1691 | 275 | $c['comment_author'] = $author; | ||
1692 | 276 | if ( '' != $author_email ) | ||
1693 | 277 | $c['comment_author_email'] = $author_email; | ||
1694 | 278 | if ( '' != $author_url ) | ||
1695 | 279 | $c['comment_author_url'] = $author_url; | ||
1696 | 280 | if ( '' != $content ) | ||
1697 | 281 | $c['comment_content'] = $content; | ||
1698 | 282 | |||
1699 | 283 | $ignore = array( 'HTTP_COOKIE' ); | ||
1700 | 284 | |||
1701 | 285 | foreach ( $_SERVER as $key => $value ) | ||
1702 | 286 | if ( ! in_array( $key, (array) $ignore ) ) | ||
1703 | 287 | $c["$key"] = $value; | ||
1704 | 288 | |||
1705 | 289 | $query_string = ''; | ||
1706 | 290 | foreach ( $c as $key => $data ) | ||
1707 | 291 | $query_string .= $key . '=' . urlencode( stripslashes( (string) $data ) ) . '&'; | ||
1708 | 292 | |||
1709 | 293 | $response = akismet_http_post( $query_string, $akismet_api_host, | ||
1710 | 294 | '/1.1/comment-check', $akismet_api_port ); | ||
1711 | 295 | if ( 'true' == $response[1] ) | ||
1712 | 296 | return true; | ||
1713 | 297 | else | ||
1714 | 298 | return false; | ||
1715 | 299 | } | ||
1716 | 300 | |||
1717 | 301 | /* Mail */ | ||
1718 | 302 | |||
1719 | 303 | function mail() { | ||
1720 | 304 | $fes = $this->form_scan_shortcode(); | ||
1721 | 305 | |||
1722 | 306 | foreach ( $fes as $fe ) { | ||
1723 | 307 | if ( empty( $fe['name'] ) ) | ||
1724 | 308 | continue; | ||
1725 | 309 | |||
1726 | 310 | $name = $fe['name']; | ||
1727 | 311 | $pipes = $fe['pipes']; | ||
1728 | 312 | $value = $_POST[$name]; | ||
1729 | 313 | |||
1730 | 314 | if ( WPCF7_USE_PIPE && is_a( $pipes, 'WPCF7_Pipes' ) && ! $pipes->zero() ) { | ||
1731 | 315 | if ( is_array( $value) ) { | ||
1732 | 316 | $new_value = array(); | ||
1733 | 317 | foreach ( $value as $v ) { | ||
1734 | 318 | $new_value[] = $pipes->do_pipe( stripslashes( $v ) ); | ||
1735 | 319 | } | ||
1736 | 320 | $value = $new_value; | ||
1737 | 321 | } else { | ||
1738 | 322 | $value = $pipes->do_pipe( stripslashes( $value ) ); | ||
1739 | 323 | } | ||
1740 | 324 | } | ||
1741 | 325 | |||
1742 | 326 | $this->posted_data[$name] = $value; | ||
1743 | 327 | } | ||
1744 | 328 | |||
1745 | 329 | if ( $this->in_demo_mode() ) | ||
1746 | 330 | $this->skip_mail = true; | ||
1747 | 331 | |||
1748 | 332 | do_action_ref_array( 'wpcf7_before_send_mail', array( &$this ) ); | ||
1749 | 333 | |||
1750 | 334 | if ( $this->skip_mail ) | ||
1751 | 335 | return true; | ||
1752 | 336 | |||
1753 | 337 | if ( $this->compose_and_send_mail( $this->mail ) ) { | ||
1754 | 338 | if ( $this->mail_2['active'] ) | ||
1755 | 339 | $this->compose_and_send_mail( $this->mail_2 ); | ||
1756 | 340 | |||
1757 | 341 | return true; | ||
1758 | 342 | } | ||
1759 | 343 | |||
1760 | 344 | return false; | ||
1761 | 345 | } | ||
1762 | 346 | |||
1763 | 347 | function compose_and_send_mail( $mail_template ) { | ||
1764 | 348 | $regex = '/\[\s*([a-zA-Z_][0-9a-zA-Z:._-]*)\s*\]/'; | ||
1765 | 349 | |||
1766 | 350 | $use_html = (bool) $mail_template['use_html']; | ||
1767 | 351 | |||
1768 | 352 | if ( $use_html ) | ||
1769 | 353 | $callback = array( &$this, 'mail_callback_html' ); | ||
1770 | 354 | else | ||
1771 | 355 | $callback = array( &$this, 'mail_callback' ); | ||
1772 | 356 | |||
1773 | 357 | $subject = preg_replace_callback( $regex, $callback, $mail_template['subject'] ); | ||
1774 | 358 | $sender = preg_replace_callback( $regex, $callback, $mail_template['sender'] ); | ||
1775 | 359 | $recipient = preg_replace_callback( $regex, $callback, $mail_template['recipient'] ); | ||
1776 | 360 | $additional_headers = | ||
1777 | 361 | preg_replace_callback( $regex, $callback, $mail_template['additional_headers'] ); | ||
1778 | 362 | $body = preg_replace_callback( $regex, $callback, $mail_template['body'] ); | ||
1779 | 363 | |||
1780 | 364 | if ( $use_html ) | ||
1781 | 365 | $body = wpautop( $body ); | ||
1782 | 366 | |||
1783 | 367 | extract( apply_filters( 'wpcf7_mail_components', | ||
1784 | 368 | compact( 'subject', 'sender', 'body', 'recipient', 'additional_headers' ) ) ); | ||
1785 | 369 | |||
1786 | 370 | $headers = "From: $sender\n"; | ||
1787 | 371 | |||
1788 | 372 | if ( $use_html ) | ||
1789 | 373 | $headers .= "Content-Type: text/html\n"; | ||
1790 | 374 | |||
1791 | 375 | $headers .= trim( $additional_headers ) . "\n"; | ||
1792 | 376 | |||
1793 | 377 | if ( $this->uploaded_files ) { | ||
1794 | 378 | $for_this_mail = array(); | ||
1795 | 379 | foreach ( $this->uploaded_files as $name => $path ) { | ||
1796 | 380 | if ( false === strpos( $mail_template['attachments'], "[${name}]" ) ) | ||
1797 | 381 | continue; | ||
1798 | 382 | $for_this_mail[] = $path; | ||
1799 | 383 | } | ||
1800 | 384 | |||
1801 | 385 | return @wp_mail( $recipient, $subject, $body, $headers, $for_this_mail ); | ||
1802 | 386 | } else { | ||
1803 | 387 | return @wp_mail( $recipient, $subject, $body, $headers ); | ||
1804 | 388 | } | ||
1805 | 389 | } | ||
1806 | 390 | |||
1807 | 391 | function mail_callback_html( $matches ) { | ||
1808 | 392 | return $this->mail_callback( $matches, true ); | ||
1809 | 393 | } | ||
1810 | 394 | |||
1811 | 395 | function mail_callback( $matches, $html = false ) { | ||
1812 | 396 | if ( isset( $this->posted_data[$matches[1]] ) ) { | ||
1813 | 397 | $submitted = $this->posted_data[$matches[1]]; | ||
1814 | 398 | |||
1815 | 399 | if ( is_array( $submitted ) ) | ||
1816 | 400 | $replaced = join( ', ', $submitted ); | ||
1817 | 401 | else | ||
1818 | 402 | $replaced = $submitted; | ||
1819 | 403 | |||
1820 | 404 | if ( $html ) { | ||
1821 | 405 | $replaced = strip_tags( $replaced ); | ||
1822 | 406 | $replaced = wptexturize( $replaced ); | ||
1823 | 407 | } | ||
1824 | 408 | |||
1825 | 409 | $replaced = apply_filters( 'wpcf7_mail_tag_replaced', $replaced, $submitted ); | ||
1826 | 410 | |||
1827 | 411 | return stripslashes( $replaced ); | ||
1828 | 412 | } | ||
1829 | 413 | |||
1830 | 414 | if ( $special = apply_filters( 'wpcf7_special_mail_tags', '', $matches[1] ) ) | ||
1831 | 415 | return $special; | ||
1832 | 416 | |||
1833 | 417 | return $matches[0]; | ||
1834 | 418 | } | ||
1835 | 419 | |||
1836 | 420 | /* Message */ | ||
1837 | 421 | |||
1838 | 422 | function message( $status ) { | ||
1839 | 423 | $messages = $this->messages; | ||
1840 | 424 | $message = $messages[$status]; | ||
1841 | 425 | |||
1842 | 426 | return apply_filters( 'wpcf7_display_message', $message ); | ||
1843 | 427 | } | ||
1844 | 428 | |||
1845 | 429 | /* Additional settings */ | ||
1846 | 430 | |||
1847 | 431 | function additional_setting( $name, $max = 1 ) { | ||
1848 | 432 | $tmp_settings = (array) explode( "\n", $this->additional_settings ); | ||
1849 | 433 | |||
1850 | 434 | $count = 0; | ||
1851 | 435 | $values = array(); | ||
1852 | 436 | |||
1853 | 437 | foreach ( $tmp_settings as $setting ) { | ||
1854 | 438 | if ( preg_match('/^([a-zA-Z0-9_]+)\s*:(.*)$/', $setting, $matches ) ) { | ||
1855 | 439 | if ( $matches[1] != $name ) | ||
1856 | 440 | continue; | ||
1857 | 441 | |||
1858 | 442 | if ( ! $max || $count < (int) $max ) { | ||
1859 | 443 | $values[] = trim( $matches[2] ); | ||
1860 | 444 | $count += 1; | ||
1861 | 445 | } | ||
1862 | 446 | } | ||
1863 | 447 | } | ||
1864 | 448 | |||
1865 | 449 | return $values; | ||
1866 | 450 | } | ||
1867 | 451 | |||
1868 | 452 | function in_demo_mode() { | ||
1869 | 453 | $settings = $this->additional_setting( 'demo_mode', false ); | ||
1870 | 454 | |||
1871 | 455 | foreach ( $settings as $setting ) { | ||
1872 | 456 | if ( in_array( $setting, array( 'on', 'true', '1' ) ) ) | ||
1873 | 457 | return true; | ||
1874 | 458 | } | ||
1875 | 459 | |||
1876 | 460 | return false; | ||
1877 | 461 | } | ||
1878 | 462 | |||
1879 | 463 | /* Upgrade */ | ||
1880 | 464 | |||
1881 | 465 | function upgrade() { | ||
1882 | 466 | if ( ! isset( $this->mail['recipient'] ) ) | ||
1883 | 467 | $this->mail['recipient'] = get_option( 'admin_email' ); | ||
1884 | 468 | |||
1885 | 469 | |||
1886 | 470 | if ( ! is_array( $this->messages ) ) | ||
1887 | 471 | $this->messages = array(); | ||
1888 | 472 | |||
1889 | 473 | |||
1890 | 474 | foreach ( wpcf7_messages() as $key => $arr ) { | ||
1891 | 475 | if ( ! isset( $this->messages[$key] ) ) | ||
1892 | 476 | $this->messages[$key] = $arr['default']; | ||
1893 | 477 | } | ||
1894 | 478 | } | ||
1895 | 479 | |||
1896 | 480 | /* Save */ | ||
1897 | 481 | |||
1898 | 482 | function save() { | ||
1899 | 483 | global $wpdb, $wpcf7; | ||
1900 | 484 | |||
1901 | 485 | $fields = array( | ||
1902 | 486 | 'title' => maybe_serialize( stripslashes_deep( $this->title ) ), | ||
1903 | 487 | 'form' => maybe_serialize( stripslashes_deep( $this->form ) ), | ||
1904 | 488 | 'mail' => maybe_serialize( stripslashes_deep( $this->mail ) ), | ||
1905 | 489 | 'mail_2' => maybe_serialize ( stripslashes_deep( $this->mail_2 ) ), | ||
1906 | 490 | 'messages' => maybe_serialize( stripslashes_deep( $this->messages ) ), | ||
1907 | 491 | 'additional_settings' => | ||
1908 | 492 | maybe_serialize( stripslashes_deep( $this->additional_settings ) ) ); | ||
1909 | 493 | |||
1910 | 494 | if ( $this->initial ) { | ||
1911 | 495 | $result = $wpdb->insert( $wpcf7->contactforms, $fields ); | ||
1912 | 496 | |||
1913 | 497 | if ( $result ) { | ||
1914 | 498 | $this->initial = false; | ||
1915 | 499 | $this->id = $wpdb->insert_id; | ||
1916 | 500 | |||
1917 | 501 | do_action_ref_array( 'wpcf7_after_create', array( &$this ) ); | ||
1918 | 502 | } else { | ||
1919 | 503 | return false; // Failed to save | ||
1920 | 504 | } | ||
1921 | 505 | |||
1922 | 506 | } else { // Update | ||
1923 | 507 | if ( ! (int) $this->id ) | ||
1924 | 508 | return false; // Missing ID | ||
1925 | 509 | |||
1926 | 510 | $result = $wpdb->update( $wpcf7->contactforms, $fields, | ||
1927 | 511 | array( 'cf7_unit_id' => absint( $this->id ) ) ); | ||
1928 | 512 | |||
1929 | 513 | if ( false !== $result ) { | ||
1930 | 514 | do_action_ref_array( 'wpcf7_after_update', array( &$this ) ); | ||
1931 | 515 | } else { | ||
1932 | 516 | return false; // Failed to save | ||
1933 | 517 | } | ||
1934 | 518 | } | ||
1935 | 519 | |||
1936 | 520 | do_action_ref_array( 'wpcf7_after_save', array( &$this ) ); | ||
1937 | 521 | return true; // Succeeded to save | ||
1938 | 522 | } | ||
1939 | 523 | |||
1940 | 524 | function copy() { | ||
1941 | 525 | $new = new WPCF7_ContactForm(); | ||
1942 | 526 | $new->initial = true; | ||
1943 | 527 | |||
1944 | 528 | $new->title = $this->title . '_copy'; | ||
1945 | 529 | $new->form = $this->form; | ||
1946 | 530 | $new->mail = $this->mail; | ||
1947 | 531 | $new->mail_2 = $this->mail_2; | ||
1948 | 532 | $new->messages = $this->messages; | ||
1949 | 533 | $new->additional_settings = $this->additional_settings; | ||
1950 | 534 | |||
1951 | 535 | return $new; | ||
1952 | 536 | } | ||
1953 | 537 | |||
1954 | 538 | function delete() { | ||
1955 | 539 | global $wpdb, $wpcf7; | ||
1956 | 540 | |||
1957 | 541 | if ( $this->initial ) | ||
1958 | 542 | return; | ||
1959 | 543 | |||
1960 | 544 | $query = $wpdb->prepare( | ||
1961 | 545 | "DELETE FROM $wpcf7->contactforms WHERE cf7_unit_id = %d LIMIT 1", | ||
1962 | 546 | absint( $this->id ) ); | ||
1963 | 547 | |||
1964 | 548 | $wpdb->query( $query ); | ||
1965 | 549 | |||
1966 | 550 | $this->initial = true; | ||
1967 | 551 | $this->id = null; | ||
1968 | 552 | } | ||
1969 | 553 | } | ||
1970 | 554 | |||
1971 | 555 | function wpcf7_contact_form( $id ) { | ||
1972 | 556 | global $wpdb, $wpcf7; | ||
1973 | 557 | |||
1974 | 558 | $query = $wpdb->prepare( "SELECT * FROM $wpcf7->contactforms WHERE cf7_unit_id = %d", $id ); | ||
1975 | 559 | |||
1976 | 560 | if ( ! $row = $wpdb->get_row( $query ) ) | ||
1977 | 561 | return false; // No data | ||
1978 | 562 | |||
1979 | 563 | $contact_form = new WPCF7_ContactForm(); | ||
1980 | 564 | $contact_form->id = $row->cf7_unit_id; | ||
1981 | 565 | $contact_form->title = maybe_unserialize( $row->title ); | ||
1982 | 566 | $contact_form->form = maybe_unserialize( $row->form ); | ||
1983 | 567 | $contact_form->mail = maybe_unserialize( $row->mail ); | ||
1984 | 568 | $contact_form->mail_2 = maybe_unserialize( $row->mail_2 ); | ||
1985 | 569 | $contact_form->messages = maybe_unserialize( $row->messages ); | ||
1986 | 570 | $contact_form->additional_settings = maybe_unserialize( $row->additional_settings ); | ||
1987 | 571 | |||
1988 | 572 | $contact_form->upgrade(); | ||
1989 | 573 | |||
1990 | 574 | return $contact_form; | ||
1991 | 575 | } | ||
1992 | 576 | |||
1993 | 577 | function wpcf7_contact_form_default_pack( $locale = null ) { | ||
1994 | 578 | global $l10n; | ||
1995 | 579 | |||
1996 | 580 | if ( $locale && $locale != get_locale() ) { | ||
1997 | 581 | $mo_orig = $l10n['wpcf7']; | ||
1998 | 582 | unset( $l10n['wpcf7'] ); | ||
1999 | 583 | |||
2000 | 584 | if ( 'en_US' != $locale ) { | ||
2001 | 585 | $mofile = wpcf7_plugin_path( 'languages/wpcf7-' . $locale . '.mo' ); | ||
2002 | 586 | if ( ! load_textdomain( 'wpcf7', $mofile ) ) { | ||
2003 | 587 | $l10n['wpcf7'] = $mo_orig; | ||
2004 | 588 | unset( $mo_orig ); | ||
2005 | 589 | } | ||
2006 | 590 | } | ||
2007 | 591 | } | ||
2008 | 592 | |||
2009 | 593 | $contact_form = new WPCF7_ContactForm(); | ||
2010 | 594 | $contact_form->initial = true; | ||
2011 | 595 | |||
2012 | 596 | $contact_form->title = __( 'Untitled', 'wpcf7' ); | ||
2013 | 597 | $contact_form->form = wpcf7_default_form_template(); | ||
2014 | 598 | $contact_form->mail = wpcf7_default_mail_template(); | ||
2015 | 599 | $contact_form->mail_2 = wpcf7_default_mail_2_template(); | ||
2016 | 600 | $contact_form->messages = wpcf7_default_messages_template(); | ||
2017 | 601 | |||
2018 | 602 | if ( isset( $mo_orig ) ) | ||
2019 | 603 | $l10n['wpcf7'] = $mo_orig; | ||
2020 | 604 | |||
2021 | 605 | return $contact_form; | ||
2022 | 606 | } | ||
2023 | 607 | |||
2024 | 608 | function wpcf7_get_current_contact_form() { | ||
2025 | 609 | global $wpcf7_contact_form; | ||
2026 | 610 | |||
2027 | 611 | if ( ! is_a( $wpcf7_contact_form, 'WPCF7_ContactForm' ) ) | ||
2028 | 612 | return null; | ||
2029 | 613 | |||
2030 | 614 | return $wpcf7_contact_form; | ||
2031 | 615 | } | ||
2032 | 616 | |||
2033 | 617 | function wpcf7_is_posted() { | ||
2034 | 618 | if ( ! $contact_form = wpcf7_get_current_contact_form() ) | ||
2035 | 619 | return false; | ||
2036 | 620 | |||
2037 | 621 | return $contact_form->is_posted(); | ||
2038 | 622 | } | ||
2039 | 623 | |||
2040 | 624 | function wpcf7_get_validation_error( $name ) { | ||
2041 | 625 | if ( ! $contact_form = wpcf7_get_current_contact_form() ) | ||
2042 | 626 | return ''; | ||
2043 | 627 | |||
2044 | 628 | return $contact_form->validation_error( $name ); | ||
2045 | 629 | } | ||
2046 | 630 | |||
2047 | 631 | function wpcf7_get_message( $status ) { | ||
2048 | 632 | if ( ! $contact_form = wpcf7_get_current_contact_form() ) | ||
2049 | 633 | return ''; | ||
2050 | 634 | |||
2051 | 635 | return $contact_form->message( $status ); | ||
2052 | 636 | } | ||
2053 | 637 | |||
2054 | 638 | function wpcf7_scan_shortcode( $cond = null ) { | ||
2055 | 639 | if ( ! $contact_form = wpcf7_get_current_contact_form() ) | ||
2056 | 640 | return null; | ||
2057 | 641 | |||
2058 | 642 | return $contact_form->form_scan_shortcode( $cond ); | ||
2059 | 643 | } | ||
2060 | 644 | |||
2061 | 645 | ?> | ||
2062 | 0 | \ No newline at end of file | 646 | \ No newline at end of file |
2063 | 1 | 647 | ||
2064 | === added file 'wp-content/plugins/contact-form-7/includes/controller.php' | |||
2065 | --- wp-content/plugins/contact-form-7/includes/controller.php 1970-01-01 00:00:00 +0000 | |||
2066 | +++ wp-content/plugins/contact-form-7/includes/controller.php 2011-02-18 16:15:41 +0000 | |||
2067 | @@ -0,0 +1,288 @@ | |||
2068 | 1 | <?php | ||
2069 | 2 | |||
2070 | 3 | add_action( 'init', 'wpcf7_init_switch', 11 ); | ||
2071 | 4 | |||
2072 | 5 | function wpcf7_init_switch() { | ||
2073 | 6 | if ( 'GET' == $_SERVER['REQUEST_METHOD'] && isset( $_GET['_wpcf7_is_ajax_call'] ) ) { | ||
2074 | 7 | wpcf7_ajax_onload(); | ||
2075 | 8 | exit(); | ||
2076 | 9 | } elseif ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST['_wpcf7_is_ajax_call'] ) ) { | ||
2077 | 10 | wpcf7_ajax_json_echo(); | ||
2078 | 11 | exit(); | ||
2079 | 12 | } elseif ( isset( $_POST['_wpcf7'] ) ) { | ||
2080 | 13 | wpcf7_process_nonajax_submitting(); | ||
2081 | 14 | } | ||
2082 | 15 | } | ||
2083 | 16 | |||
2084 | 17 | function wpcf7_ajax_onload() { | ||
2085 | 18 | global $wpcf7_contact_form; | ||
2086 | 19 | |||
2087 | 20 | $echo = ''; | ||
2088 | 21 | |||
2089 | 22 | if ( isset( $_GET['_wpcf7'] ) ) { | ||
2090 | 23 | $id = (int) $_GET['_wpcf7']; | ||
2091 | 24 | |||
2092 | 25 | if ( $wpcf7_contact_form = wpcf7_contact_form( $id ) ) { | ||
2093 | 26 | $items = apply_filters( 'wpcf7_ajax_onload', array() ); | ||
2094 | 27 | $wpcf7_contact_form = null; | ||
2095 | 28 | } | ||
2096 | 29 | } | ||
2097 | 30 | |||
2098 | 31 | $echo = json_encode( $items ); | ||
2099 | 32 | |||
2100 | 33 | if ( $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ) { | ||
2101 | 34 | @header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) ); | ||
2102 | 35 | echo $echo; | ||
2103 | 36 | } | ||
2104 | 37 | } | ||
2105 | 38 | |||
2106 | 39 | function wpcf7_ajax_json_echo() { | ||
2107 | 40 | global $wpcf7_contact_form; | ||
2108 | 41 | |||
2109 | 42 | $echo = ''; | ||
2110 | 43 | |||
2111 | 44 | if ( isset( $_POST['_wpcf7'] ) ) { | ||
2112 | 45 | $id = (int) $_POST['_wpcf7']; | ||
2113 | 46 | $unit_tag = $_POST['_wpcf7_unit_tag']; | ||
2114 | 47 | |||
2115 | 48 | if ( $wpcf7_contact_form = wpcf7_contact_form( $id ) ) { | ||
2116 | 49 | $validation = $wpcf7_contact_form->validate(); | ||
2117 | 50 | |||
2118 | 51 | $items = array( | ||
2119 | 52 | 'mailSent' => false, | ||
2120 | 53 | 'into' => '#' . $unit_tag, | ||
2121 | 54 | 'captcha' => null ); | ||
2122 | 55 | |||
2123 | 56 | $items = apply_filters( 'wpcf7_ajax_json_echo', $items ); | ||
2124 | 57 | |||
2125 | 58 | if ( ! $validation['valid'] ) { // Validation error occured | ||
2126 | 59 | $invalids = array(); | ||
2127 | 60 | foreach ( $validation['reason'] as $name => $reason ) { | ||
2128 | 61 | $invalids[] = array( | ||
2129 | 62 | 'into' => 'span.wpcf7-form-control-wrap.' . $name, | ||
2130 | 63 | 'message' => $reason ); | ||
2131 | 64 | } | ||
2132 | 65 | |||
2133 | 66 | $items['message'] = wpcf7_get_message( 'validation_error' ); | ||
2134 | 67 | $items['invalids'] = $invalids; | ||
2135 | 68 | |||
2136 | 69 | } elseif ( ! $wpcf7_contact_form->accepted() ) { // Not accepted terms | ||
2137 | 70 | $items['message'] = wpcf7_get_message( 'accept_terms' ); | ||
2138 | 71 | |||
2139 | 72 | } elseif ( $wpcf7_contact_form->akismet() ) { // Spam! | ||
2140 | 73 | $items['message'] = wpcf7_get_message( 'akismet_says_spam' ); | ||
2141 | 74 | $items['spam'] = true; | ||
2142 | 75 | |||
2143 | 76 | } elseif ( $wpcf7_contact_form->mail() ) { | ||
2144 | 77 | $items['mailSent'] = true; | ||
2145 | 78 | $items['message'] = wpcf7_get_message( 'mail_sent_ok' ); | ||
2146 | 79 | |||
2147 | 80 | $on_sent_ok = $wpcf7_contact_form->additional_setting( 'on_sent_ok', false ); | ||
2148 | 81 | if ( ! empty( $on_sent_ok ) ) { | ||
2149 | 82 | $on_sent_ok = array_map( 'wpcf7_strip_quote', $on_sent_ok ); | ||
2150 | 83 | } else { | ||
2151 | 84 | $on_sent_ok = null; | ||
2152 | 85 | } | ||
2153 | 86 | $items['onSentOk'] = $on_sent_ok; | ||
2154 | 87 | |||
2155 | 88 | do_action_ref_array( 'wpcf7_mail_sent', array( &$wpcf7_contact_form ) ); | ||
2156 | 89 | |||
2157 | 90 | } else { | ||
2158 | 91 | $items['message'] = wpcf7_get_message( 'mail_sent_ng' ); | ||
2159 | 92 | } | ||
2160 | 93 | |||
2161 | 94 | // remove upload files | ||
2162 | 95 | foreach ( (array) $wpcf7_contact_form->uploaded_files as $name => $path ) { | ||
2163 | 96 | @unlink( $path ); | ||
2164 | 97 | } | ||
2165 | 98 | |||
2166 | 99 | $wpcf7_contact_form = null; | ||
2167 | 100 | } | ||
2168 | 101 | } | ||
2169 | 102 | |||
2170 | 103 | $echo = json_encode( $items ); | ||
2171 | 104 | |||
2172 | 105 | if ( $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ) { | ||
2173 | 106 | @header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) ); | ||
2174 | 107 | echo $echo; | ||
2175 | 108 | } else { | ||
2176 | 109 | @header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) ); | ||
2177 | 110 | echo '<textarea>' . $echo . '</textarea>'; | ||
2178 | 111 | } | ||
2179 | 112 | } | ||
2180 | 113 | |||
2181 | 114 | function wpcf7_process_nonajax_submitting() { | ||
2182 | 115 | global $wpcf7_contact_form; | ||
2183 | 116 | |||
2184 | 117 | if ( ! isset($_POST['_wpcf7'] ) ) | ||
2185 | 118 | return; | ||
2186 | 119 | |||
2187 | 120 | $id = (int) $_POST['_wpcf7']; | ||
2188 | 121 | |||
2189 | 122 | if ( $wpcf7_contact_form = wpcf7_contact_form( $id ) ) { | ||
2190 | 123 | $validation = $wpcf7_contact_form->validate(); | ||
2191 | 124 | |||
2192 | 125 | if ( ! $validation['valid'] ) { | ||
2193 | 126 | $_POST['_wpcf7_validation_errors'] = array( 'id' => $id, 'messages' => $validation['reason'] ); | ||
2194 | 127 | } elseif ( ! $wpcf7_contact_form->accepted() ) { // Not accepted terms | ||
2195 | 128 | $_POST['_wpcf7_mail_sent'] = array( 'id' => $id, 'ok' => false, 'message' => wpcf7_get_message( 'accept_terms' ) ); | ||
2196 | 129 | } elseif ( $wpcf7_contact_form->akismet() ) { // Spam! | ||
2197 | 130 | $_POST['_wpcf7_mail_sent'] = array( 'id' => $id, 'ok' => false, 'message' => wpcf7_get_message( 'akismet_says_spam' ), 'spam' => true ); | ||
2198 | 131 | } elseif ( $wpcf7_contact_form->mail() ) { | ||
2199 | 132 | $_POST['_wpcf7_mail_sent'] = array( 'id' => $id, 'ok' => true, 'message' => wpcf7_get_message( 'mail_sent_ok' ) ); | ||
2200 | 133 | |||
2201 | 134 | do_action_ref_array( 'wpcf7_mail_sent', array( &$wpcf7_contact_form ) ); | ||
2202 | 135 | |||
2203 | 136 | $wpcf7_contact_form->clear_post(); | ||
2204 | 137 | } else { | ||
2205 | 138 | $_POST['_wpcf7_mail_sent'] = array( 'id' => $id, 'ok' => false, 'message' => wpcf7_get_message( 'mail_sent_ng' ) ); | ||
2206 | 139 | } | ||
2207 | 140 | |||
2208 | 141 | // remove upload files | ||
2209 | 142 | foreach ( (array) $wpcf7_contact_form->uploaded_files as $name => $path ) { | ||
2210 | 143 | @unlink( $path ); | ||
2211 | 144 | } | ||
2212 | 145 | |||
2213 | 146 | $wpcf7_contact_form = null; | ||
2214 | 147 | } | ||
2215 | 148 | } | ||
2216 | 149 | |||
2217 | 150 | add_action( 'the_post', 'wpcf7_the_post' ); | ||
2218 | 151 | |||
2219 | 152 | function wpcf7_the_post() { | ||
2220 | 153 | global $wpcf7; | ||
2221 | 154 | |||
2222 | 155 | $wpcf7->processing_within = 'p' . get_the_ID(); | ||
2223 | 156 | $wpcf7->unit_count = 0; | ||
2224 | 157 | } | ||
2225 | 158 | |||
2226 | 159 | add_action( 'loop_end', 'wpcf7_loop_end' ); | ||
2227 | 160 | |||
2228 | 161 | function wpcf7_loop_end() { | ||
2229 | 162 | global $wpcf7; | ||
2230 | 163 | |||
2231 | 164 | $wpcf7->processing_within = ''; | ||
2232 | 165 | } | ||
2233 | 166 | |||
2234 | 167 | add_filter( 'widget_text', 'wpcf7_widget_text_filter', 9 ); | ||
2235 | 168 | |||
2236 | 169 | function wpcf7_widget_text_filter( $content ) { | ||
2237 | 170 | global $wpcf7; | ||
2238 | 171 | |||
2239 | 172 | $wpcf7->widget_count += 1; | ||
2240 | 173 | $wpcf7->processing_within = 'w' . $wpcf7->widget_count; | ||
2241 | 174 | $wpcf7->unit_count = 0; | ||
2242 | 175 | |||
2243 | 176 | $regex = '/\[\s*contact-form\s+(\d+(?:\s+.*)?)\]/'; | ||
2244 | 177 | $content = preg_replace_callback( $regex, 'wpcf7_widget_text_filter_callback', $content ); | ||
2245 | 178 | |||
2246 | 179 | $wpcf7->processing_within = ''; | ||
2247 | 180 | return $content; | ||
2248 | 181 | } | ||
2249 | 182 | |||
2250 | 183 | function wpcf7_widget_text_filter_callback( $matches ) { | ||
2251 | 184 | return do_shortcode( $matches[0] ); | ||
2252 | 185 | } | ||
2253 | 186 | |||
2254 | 187 | add_shortcode( 'contact-form', 'wpcf7_contact_form_tag_func' ); | ||
2255 | 188 | |||
2256 | 189 | function wpcf7_contact_form_tag_func( $atts ) { | ||
2257 | 190 | global $wpcf7, $wpcf7_contact_form; | ||
2258 | 191 | |||
2259 | 192 | if ( is_feed() ) | ||
2260 | 193 | return '[contact-form]'; | ||
2261 | 194 | |||
2262 | 195 | if ( is_string( $atts ) ) | ||
2263 | 196 | $atts = explode( ' ', $atts, 2 ); | ||
2264 | 197 | |||
2265 | 198 | $atts = (array) $atts; | ||
2266 | 199 | |||
2267 | 200 | $id = (int) array_shift( $atts ); | ||
2268 | 201 | |||
2269 | 202 | if ( ! ( $wpcf7_contact_form = wpcf7_contact_form( $id ) ) ) | ||
2270 | 203 | return '[contact-form 404 "Not Found"]'; | ||
2271 | 204 | |||
2272 | 205 | if ( $wpcf7->processing_within ) { // Inside post content or text widget | ||
2273 | 206 | $wpcf7->unit_count += 1; | ||
2274 | 207 | $unit_count = $wpcf7->unit_count; | ||
2275 | 208 | $processing_within = $wpcf7->processing_within; | ||
2276 | 209 | |||
2277 | 210 | } else { // Inside template | ||
2278 | 211 | |||
2279 | 212 | if ( ! isset( $wpcf7->global_unit_count ) ) | ||
2280 | 213 | $wpcf7->global_unit_count = 0; | ||
2281 | 214 | |||
2282 | 215 | $wpcf7->global_unit_count += 1; | ||
2283 | 216 | $unit_count = 1; | ||
2284 | 217 | $processing_within = 't' . $wpcf7->global_unit_count; | ||
2285 | 218 | } | ||
2286 | 219 | |||
2287 | 220 | $unit_tag = 'wpcf7-f' . $id . '-' . $processing_within . '-o' . $unit_count; | ||
2288 | 221 | $wpcf7_contact_form->unit_tag = $unit_tag; | ||
2289 | 222 | |||
2290 | 223 | $form = $wpcf7_contact_form->form_html(); | ||
2291 | 224 | |||
2292 | 225 | $wpcf7_contact_form = null; | ||
2293 | 226 | |||
2294 | 227 | return $form; | ||
2295 | 228 | } | ||
2296 | 229 | |||
2297 | 230 | add_action( 'wp_head', 'wpcf7_head' ); | ||
2298 | 231 | |||
2299 | 232 | function wpcf7_head() { | ||
2300 | 233 | // Cached? | ||
2301 | 234 | if ( wpcf7_script_is() && defined( 'WP_CACHE' ) && WP_CACHE ) : | ||
2302 | 235 | ?> | ||
2303 | 236 | <script type="text/javascript"> | ||
2304 | 237 | //<![CDATA[ | ||
2305 | 238 | var _wpcf7 = { cached: 1 }; | ||
2306 | 239 | //]]> | ||
2307 | 240 | </script> | ||
2308 | 241 | <?php | ||
2309 | 242 | endif; | ||
2310 | 243 | } | ||
2311 | 244 | |||
2312 | 245 | if ( WPCF7_LOAD_JS ) | ||
2313 | 246 | add_action( 'wp_print_scripts', 'wpcf7_enqueue_scripts' ); | ||
2314 | 247 | |||
2315 | 248 | function wpcf7_enqueue_scripts() { | ||
2316 | 249 | // jquery.form.js originally bundled with WordPress is out of date and deprecated | ||
2317 | 250 | // so we need to deregister it and re-register the latest one | ||
2318 | 251 | wp_deregister_script( 'jquery-form' ); | ||
2319 | 252 | wp_register_script( 'jquery-form', wpcf7_plugin_url( 'jquery.form.js' ), | ||
2320 | 253 | array( 'jquery' ), '2.52', true ); | ||
2321 | 254 | |||
2322 | 255 | $in_footer = true; | ||
2323 | 256 | if ( 'header' === WPCF7_LOAD_JS ) | ||
2324 | 257 | $in_footer = false; | ||
2325 | 258 | |||
2326 | 259 | wp_enqueue_script( 'contact-form-7', wpcf7_plugin_url( 'scripts.js' ), | ||
2327 | 260 | array( 'jquery', 'jquery-form' ), WPCF7_VERSION, $in_footer ); | ||
2328 | 261 | |||
2329 | 262 | do_action( 'wpcf7_enqueue_scripts' ); | ||
2330 | 263 | } | ||
2331 | 264 | |||
2332 | 265 | function wpcf7_script_is() { | ||
2333 | 266 | return wp_script_is( 'contact-form-7' ); | ||
2334 | 267 | } | ||
2335 | 268 | |||
2336 | 269 | if ( WPCF7_LOAD_CSS ) | ||
2337 | 270 | add_action( 'wp_print_styles', 'wpcf7_enqueue_styles' ); | ||
2338 | 271 | |||
2339 | 272 | function wpcf7_enqueue_styles() { | ||
2340 | 273 | wp_enqueue_style( 'contact-form-7', wpcf7_plugin_url( 'styles.css' ), | ||
2341 | 274 | array(), WPCF7_VERSION, 'all' ); | ||
2342 | 275 | |||
2343 | 276 | if ( 'rtl' == get_bloginfo( 'text_direction' ) ) { | ||
2344 | 277 | wp_enqueue_style( 'contact-form-7-rtl', wpcf7_plugin_url( 'styles-rtl.css' ), | ||
2345 | 278 | array(), WPCF7_VERSION, 'all' ); | ||
2346 | 279 | } | ||
2347 | 280 | |||
2348 | 281 | do_action( 'wpcf7_enqueue_styles' ); | ||
2349 | 282 | } | ||
2350 | 283 | |||
2351 | 284 | function wpcf7_style_is() { | ||
2352 | 285 | return wp_style_is( 'contact-form-7' ); | ||
2353 | 286 | } | ||
2354 | 287 | |||
2355 | 288 | ?> | ||
2356 | 0 | \ No newline at end of file | 289 | \ No newline at end of file |
2357 | 1 | 290 | ||
2358 | === added file 'wp-content/plugins/contact-form-7/includes/formatting.php' | |||
2359 | --- wp-content/plugins/contact-form-7/includes/formatting.php 1970-01-01 00:00:00 +0000 | |||
2360 | +++ wp-content/plugins/contact-form-7/includes/formatting.php 2011-02-18 16:15:41 +0000 | |||
2361 | @@ -0,0 +1,144 @@ | |||
2362 | 1 | <?php | ||
2363 | 2 | |||
2364 | 3 | function wpcf7_autop( $pee, $br = 1 ) { | ||
2365 | 4 | |||
2366 | 5 | if ( trim( $pee ) === '' ) | ||
2367 | 6 | return ''; | ||
2368 | 7 | $pee = $pee . "\n"; // just to make things a little easier, pad the end | ||
2369 | 8 | $pee = preg_replace( '|<br />\s*<br />|', "\n\n", $pee ); | ||
2370 | 9 | // Space things out a little | ||
2371 | 10 | /* wpcf7: remove select and input */ | ||
2372 | 11 | $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)'; | ||
2373 | 12 | $pee = preg_replace( '!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee ); | ||
2374 | 13 | $pee = preg_replace( '!(</' . $allblocks . '>)!', "$1\n\n", $pee ); | ||
2375 | 14 | $pee = str_replace( array( "\r\n", "\r" ), "\n", $pee ); // cross-platform newlines | ||
2376 | 15 | if ( strpos( $pee, '<object' ) !== false ) { | ||
2377 | 16 | $pee = preg_replace( '|\s*<param([^>]*)>\s*|', "<param$1>", $pee ); // no pee inside object/embed | ||
2378 | 17 | $pee = preg_replace( '|\s*</embed>\s*|', '</embed>', $pee ); | ||
2379 | 18 | } | ||
2380 | 19 | $pee = preg_replace( "/\n\n+/", "\n\n", $pee ); // take care of duplicates | ||
2381 | 20 | // make paragraphs, including one at the end | ||
2382 | 21 | $pees = preg_split( '/\n\s*\n/', $pee, -1, PREG_SPLIT_NO_EMPTY ); | ||
2383 | 22 | $pee = ''; | ||
2384 | 23 | foreach ( $pees as $tinkle ) | ||
2385 | 24 | $pee .= '<p>' . trim( $tinkle, "\n" ) . "</p>\n"; | ||
2386 | 25 | $pee = preg_replace( '|<p>\s*</p>|', '', $pee ); // under certain strange conditions it could create a P of entirely whitespace | ||
2387 | 26 | $pee = preg_replace( '!<p>([^<]+)</(div|address|form|fieldset)>!', "<p>$1</p></$2>", $pee ); | ||
2388 | 27 | $pee = preg_replace( '!<p>\s*(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee ); // don't pee all over a tag | ||
2389 | 28 | $pee = preg_replace( "|<p>(<li.+?)</p>|", "$1", $pee ); // problem with nested lists | ||
2390 | 29 | $pee = preg_replace( '|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee ); | ||
2391 | 30 | $pee = str_replace( '</blockquote></p>', '</p></blockquote>', $pee ); | ||
2392 | 31 | $pee = preg_replace( '!<p>\s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee ); | ||
2393 | 32 | $pee = preg_replace( '!(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee ); | ||
2394 | 33 | if ( $br ) { | ||
2395 | 34 | /* wpcf7: add textarea */ | ||
2396 | 35 | $pee = preg_replace_callback( '/<(script|style|textarea).*?<\/\\1>/s', create_function( '$matches', 'return str_replace("\n", "<WPPreserveNewline />", $matches[0]);' ), $pee ); | ||
2397 | 36 | $pee = preg_replace( '|(?<!<br />)\s*\n|', "<br />\n", $pee ); // optionally make line breaks | ||
2398 | 37 | $pee = str_replace( '<WPPreserveNewline />', "\n", $pee ); | ||
2399 | 38 | } | ||
2400 | 39 | $pee = preg_replace( '!(</?' . $allblocks . '[^>]*>)\s*<br />!', "$1", $pee ); | ||
2401 | 40 | $pee = preg_replace( '!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $pee ); | ||
2402 | 41 | if ( strpos( $pee, '<pre' ) !== false ) | ||
2403 | 42 | $pee = preg_replace_callback( '!(<pre[^>]*>)(.*?)</pre>!is', 'clean_pre', $pee ); | ||
2404 | 43 | $pee = preg_replace( "|\n</p>$|", '</p>', $pee ); | ||
2405 | 44 | |||
2406 | 45 | return $pee; | ||
2407 | 46 | } | ||
2408 | 47 | |||
2409 | 48 | function wpcf7_strip_quote( $text ) { | ||
2410 | 49 | $text = trim( $text ); | ||
2411 | 50 | if ( preg_match( '/^"(.*)"$/', $text, $matches ) ) | ||
2412 | 51 | $text = $matches[1]; | ||
2413 | 52 | elseif ( preg_match( "/^'(.*)'$/", $text, $matches ) ) | ||
2414 | 53 | $text = $matches[1]; | ||
2415 | 54 | return $text; | ||
2416 | 55 | } | ||
2417 | 56 | |||
2418 | 57 | function wpcf7_strip_quote_deep( $arr ) { | ||
2419 | 58 | if ( is_string( $arr ) ) | ||
2420 | 59 | return wpcf7_strip_quote( $arr ); | ||
2421 | 60 | |||
2422 | 61 | if ( is_array( $arr ) ) { | ||
2423 | 62 | $result = array(); | ||
2424 | 63 | foreach ( $arr as $key => $text ) { | ||
2425 | 64 | $result[$key] = wpcf7_strip_quote( $text ); | ||
2426 | 65 | } | ||
2427 | 66 | return $result; | ||
2428 | 67 | } | ||
2429 | 68 | } | ||
2430 | 69 | |||
2431 | 70 | function wpcf7_canonicalize( $text ) { | ||
2432 | 71 | if ( function_exists( 'mb_convert_kana' ) && 'UTF-8' == get_option( 'blog_charset' ) ) | ||
2433 | 72 | $text = mb_convert_kana( $text, 'asKV', 'UTF-8' ); | ||
2434 | 73 | |||
2435 | 74 | $text = strtolower( $text ); | ||
2436 | 75 | $text = trim( $text ); | ||
2437 | 76 | return $text; | ||
2438 | 77 | } | ||
2439 | 78 | |||
2440 | 79 | function wpcf7_sanitize_file_name( $filename ) { | ||
2441 | 80 | /* Memo: | ||
2442 | 81 | // This function does sanitization introduced in http://core.trac.wordpress.org/ticket/11122 | ||
2443 | 82 | // WordPress 2.8.6 will implement it in sanitize_file_name(). | ||
2444 | 83 | // While Contact Form 7's file uploading function uses wp_unique_filename(), and | ||
2445 | 84 | // it in turn calls sanitize_file_name(). Therefore this wpcf7_sanitize_file_name() will be | ||
2446 | 85 | // redundant and unnecessary when you use Contact Form 7 on WordPress 2.8.6 or higher. | ||
2447 | 86 | // This function is provided just for the sake of protecting who uses older WordPress. | ||
2448 | 87 | */ | ||
2449 | 88 | |||
2450 | 89 | // Split the filename into a base and extension[s] | ||
2451 | 90 | $parts = explode( '.', $filename ); | ||
2452 | 91 | |||
2453 | 92 | // Return if only one extension | ||
2454 | 93 | if ( count( $parts ) <= 2 ) | ||
2455 | 94 | return $filename; | ||
2456 | 95 | |||
2457 | 96 | // Process multiple extensions | ||
2458 | 97 | $filename = array_shift( $parts ); | ||
2459 | 98 | $extension = array_pop( $parts ); | ||
2460 | 99 | |||
2461 | 100 | $mimes = array( 'jpg|jpeg|jpe', 'gif', 'png', 'bmp', | ||
2462 | 101 | 'tif|tiff', 'ico', 'asf|asx|wax|wmv|wmx', 'avi', | ||
2463 | 102 | 'divx', 'mov|qt', 'mpeg|mpg|mpe', 'txt|c|cc|h', | ||
2464 | 103 | 'rtx', 'css', 'htm|html', 'mp3|m4a', 'mp4|m4v', | ||
2465 | 104 | 'ra|ram', 'wav', 'ogg', 'mid|midi', 'wma', 'rtf', | ||
2466 | 105 | 'js', 'pdf', 'doc|docx', 'pot|pps|ppt|pptx', 'wri', | ||
2467 | 106 | 'xla|xls|xlsx|xlt|xlw', 'mdb', 'mpp', 'swf', 'class', | ||
2468 | 107 | 'tar', 'zip', 'gz|gzip', 'exe', | ||
2469 | 108 | // openoffice formats | ||
2470 | 109 | 'odt', 'odp', 'ods', 'odg', 'odc', 'odb', 'odf' ); | ||
2471 | 110 | |||
2472 | 111 | // Loop over any intermediate extensions. | ||
2473 | 112 | // Munge them with a trailing underscore if they are a 2 - 5 character | ||
2474 | 113 | // long alpha string not in the extension whitelist. | ||
2475 | 114 | foreach ( (array) $parts as $part) { | ||
2476 | 115 | $filename .= '.' . $part; | ||
2477 | 116 | |||
2478 | 117 | if ( preg_match( '/^[a-zA-Z]{2,5}\d?$/', $part ) ) { | ||
2479 | 118 | $allowed = false; | ||
2480 | 119 | foreach ( $mimes as $ext_preg ) { | ||
2481 | 120 | $ext_preg = '!(^' . $ext_preg . ')$!i'; | ||
2482 | 121 | if ( preg_match( $ext_preg, $part ) ) { | ||
2483 | 122 | $allowed = true; | ||
2484 | 123 | break; | ||
2485 | 124 | } | ||
2486 | 125 | } | ||
2487 | 126 | if ( ! $allowed ) | ||
2488 | 127 | $filename .= '_'; | ||
2489 | 128 | } | ||
2490 | 129 | } | ||
2491 | 130 | $filename .= '.' . $extension; | ||
2492 | 131 | |||
2493 | 132 | return $filename; | ||
2494 | 133 | } | ||
2495 | 134 | |||
2496 | 135 | function wpcf7_is_name( $string ) { | ||
2497 | 136 | // See http://www.w3.org/TR/html401/types.html#h-6.2 | ||
2498 | 137 | // ID and NAME tokens must begin with a letter ([A-Za-z]) | ||
2499 | 138 | // and may be followed by any number of letters, digits ([0-9]), | ||
2500 | 139 | // hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). | ||
2501 | 140 | |||
2502 | 141 | return preg_match( '/^[A-Za-z][-A-Za-z0-9_:.]*$/', $string ); | ||
2503 | 142 | } | ||
2504 | 143 | |||
2505 | 144 | ?> | ||
2506 | 0 | \ No newline at end of file | 145 | \ No newline at end of file |
2507 | 1 | 146 | ||
2508 | === added file 'wp-content/plugins/contact-form-7/includes/functions.php' | |||
2509 | --- wp-content/plugins/contact-form-7/includes/functions.php 1970-01-01 00:00:00 +0000 | |||
2510 | +++ wp-content/plugins/contact-form-7/includes/functions.php 2011-02-18 16:15:41 +0000 | |||
2511 | @@ -0,0 +1,225 @@ | |||
2512 | 1 | <?php | ||
2513 | 2 | |||
2514 | 3 | function wpcf7_messages() { | ||
2515 | 4 | $messages = array( | ||
2516 | 5 | 'mail_sent_ok' => array( | ||
2517 | 6 | 'description' => __( "Sender's message was sent successfully", 'wpcf7' ), | ||
2518 | 7 | 'default' => __( 'Your message was sent successfully. Thanks.', 'wpcf7' ) | ||
2519 | 8 | ), | ||
2520 | 9 | |||
2521 | 10 | 'mail_sent_ng' => array( | ||
2522 | 11 | 'description' => __( "Sender's message was failed to send", 'wpcf7' ), | ||
2523 | 12 | 'default' => __( 'Failed to send your message. Please try later or contact administrator by other way.', 'wpcf7' ) | ||
2524 | 13 | ), | ||
2525 | 14 | |||
2526 | 15 | 'akismet_says_spam' => array( | ||
2527 | 16 | 'description' => __( "Akismet judged the sending activity as spamming", 'wpcf7' ), | ||
2528 | 17 | 'default' => __( 'Failed to send your message. Please try later or contact administrator by other way.', 'wpcf7' ) | ||
2529 | 18 | ), | ||
2530 | 19 | |||
2531 | 20 | 'validation_error' => array( | ||
2532 | 21 | 'description' => __( "Validation errors occurred", 'wpcf7' ), | ||
2533 | 22 | 'default' => __( 'Validation errors occurred. Please confirm the fields and submit it again.', 'wpcf7' ) | ||
2534 | 23 | ), | ||
2535 | 24 | |||
2536 | 25 | 'accept_terms' => array( | ||
2537 | 26 | 'description' => __( "There is a field of term that sender is needed to accept", 'wpcf7' ), | ||
2538 | 27 | 'default' => __( 'Please accept the terms to proceed.', 'wpcf7' ) | ||
2539 | 28 | ), | ||
2540 | 29 | |||
2541 | 30 | 'invalid_email' => array( | ||
2542 | 31 | 'description' => __( "Email address that sender entered is invalid", 'wpcf7' ), | ||
2543 | 32 | 'default' => __( 'Email address seems invalid.', 'wpcf7' ) | ||
2544 | 33 | ), | ||
2545 | 34 | |||
2546 | 35 | 'invalid_required' => array( | ||
2547 | 36 | 'description' => __( "There is a field that sender is needed to fill in", 'wpcf7' ), | ||
2548 | 37 | 'default' => __( 'Please fill the required field.', 'wpcf7' ) | ||
2549 | 38 | ) | ||
2550 | 39 | ); | ||
2551 | 40 | |||
2552 | 41 | return apply_filters( 'wpcf7_messages', $messages ); | ||
2553 | 42 | } | ||
2554 | 43 | |||
2555 | 44 | function wpcf7_default_form_template() { | ||
2556 | 45 | $template = | ||
2557 | 46 | '<p>' . __( 'Your Name', 'wpcf7' ) . ' ' . __( '(required)', 'wpcf7' ) . '<br />' . "\n" | ||
2558 | 47 | . ' [text* your-name] </p>' . "\n\n" | ||
2559 | 48 | . '<p>' . __( 'Your Email', 'wpcf7' ) . ' ' . __( '(required)', 'wpcf7' ) . '<br />' . "\n" | ||
2560 | 49 | . ' [email* your-email] </p>' . "\n\n" | ||
2561 | 50 | . '<p>' . __( 'Subject', 'wpcf7' ) . '<br />' . "\n" | ||
2562 | 51 | . ' [text your-subject] </p>' . "\n\n" | ||
2563 | 52 | . '<p>' . __( 'Your Message', 'wpcf7' ) . '<br />' . "\n" | ||
2564 | 53 | . ' [textarea your-message] </p>' . "\n\n" | ||
2565 | 54 | . '<p>[submit "' . __( 'Send', 'wpcf7' ) . '"]</p>'; | ||
2566 | 55 | |||
2567 | 56 | return $template; | ||
2568 | 57 | } | ||
2569 | 58 | |||
2570 | 59 | function wpcf7_default_mail_template() { | ||
2571 | 60 | $subject = '[your-subject]'; | ||
2572 | 61 | $sender = '[your-name] <[your-email]>'; | ||
2573 | 62 | $body = sprintf( __( 'From: %s', 'wpcf7' ), '[your-name] <[your-email]>' ) . "\n" | ||
2574 | 63 | . sprintf( __( 'Subject: %s', 'wpcf7' ), '[your-subject]' ) . "\n\n" | ||
2575 | 64 | . __( 'Message Body:', 'wpcf7' ) . "\n" . '[your-message]' . "\n\n" . '--' . "\n" | ||
2576 | 65 | . sprintf( __( 'This mail is sent via contact form on %1$s %2$s', 'wpcf7' ), | ||
2577 | 66 | get_bloginfo( 'name' ), get_bloginfo( 'url' ) ); | ||
2578 | 67 | $recipient = get_option( 'admin_email' ); | ||
2579 | 68 | $additional_headers = ''; | ||
2580 | 69 | $attachments = ''; | ||
2581 | 70 | $use_html = 0; | ||
2582 | 71 | return compact( 'subject', 'sender', 'body', 'recipient', 'additional_headers', 'attachments', 'use_html' ); | ||
2583 | 72 | } | ||
2584 | 73 | |||
2585 | 74 | function wpcf7_default_mail_2_template() { | ||
2586 | 75 | $active = false; | ||
2587 | 76 | $subject = '[your-subject]'; | ||
2588 | 77 | $sender = '[your-name] <[your-email]>'; | ||
2589 | 78 | $body = __( 'Message body:', 'wpcf7' ) . "\n" . '[your-message]' . "\n\n" . '--' . "\n" | ||
2590 | 79 | . sprintf( __( 'This mail is sent via contact form on %1$s %2$s', 'wpcf7' ), | ||
2591 | 80 | get_bloginfo( 'name' ), get_bloginfo( 'url' ) ); | ||
2592 | 81 | $recipient = '[your-email]'; | ||
2593 | 82 | $additional_headers = ''; | ||
2594 | 83 | $attachments = ''; | ||
2595 | 84 | $use_html = 0; | ||
2596 | 85 | return compact( 'active', 'subject', 'sender', 'body', 'recipient', 'additional_headers', 'attachments', 'use_html' ); | ||
2597 | 86 | } | ||
2598 | 87 | |||
2599 | 88 | function wpcf7_default_messages_template() { | ||
2600 | 89 | $messages = array(); | ||
2601 | 90 | |||
2602 | 91 | foreach ( wpcf7_messages() as $key => $arr ) { | ||
2603 | 92 | $messages[$key] = $arr['default']; | ||
2604 | 93 | } | ||
2605 | 94 | |||
2606 | 95 | return $messages; | ||
2607 | 96 | } | ||
2608 | 97 | |||
2609 | 98 | function wpcf7_is_multisite() { // will be removed when WordPress 2.9 is not supported | ||
2610 | 99 | if ( function_exists( 'is_multisite' ) ) | ||
2611 | 100 | return is_multisite(); | ||
2612 | 101 | |||
2613 | 102 | return false; | ||
2614 | 103 | } | ||
2615 | 104 | |||
2616 | 105 | function wpcf7_is_main_site() { // will be removed when WordPress 2.9 is not supported | ||
2617 | 106 | if ( function_exists( 'is_main_site' ) ) | ||
2618 | 107 | return is_main_site(); | ||
2619 | 108 | |||
2620 | 109 | return false; | ||
2621 | 110 | } | ||
2622 | 111 | |||
2623 | 112 | function wpcf7_upload_dir( $type = false ) { | ||
2624 | 113 | global $switched; | ||
2625 | 114 | |||
2626 | 115 | $siteurl = get_option( 'siteurl' ); | ||
2627 | 116 | $upload_path = trim( get_option( 'upload_path' ) ); | ||
2628 | 117 | |||
2629 | 118 | $main_override = wpcf7_is_multisite() && defined( 'MULTISITE' ) && wpcf7_is_main_site(); | ||
2630 | 119 | |||
2631 | 120 | if ( empty( $upload_path ) ) { | ||
2632 | 121 | $dir = WP_CONTENT_DIR . '/uploads'; | ||
2633 | 122 | } else { | ||
2634 | 123 | $dir = $upload_path; | ||
2635 | 124 | |||
2636 | 125 | if ( 'wp-content/uploads' == $upload_path ) { | ||
2637 | 126 | $dir = WP_CONTENT_DIR . '/uploads'; | ||
2638 | 127 | } elseif ( 0 !== strpos( $dir, ABSPATH ) ) { | ||
2639 | 128 | // $dir is absolute, $upload_path is (maybe) relative to ABSPATH | ||
2640 | 129 | $dir = path_join( ABSPATH, $dir ); | ||
2641 | 130 | } | ||
2642 | 131 | } | ||
2643 | 132 | |||
2644 | 133 | if ( ! $url = get_option( 'upload_url_path' ) ) { | ||
2645 | 134 | if ( empty( $upload_path ) | ||
2646 | 135 | || ( 'wp-content/uploads' == $upload_path ) | ||
2647 | 136 | || ( $upload_path == $dir ) ) | ||
2648 | 137 | $url = WP_CONTENT_URL . '/uploads'; | ||
2649 | 138 | else | ||
2650 | 139 | $url = trailingslashit( $siteurl ) . $upload_path; | ||
2651 | 140 | } | ||
2652 | 141 | |||
2653 | 142 | if ( defined( 'UPLOADS' ) && ! $main_override | ||
2654 | 143 | && ( ! isset( $switched ) || $switched === false ) ) { | ||
2655 | 144 | $dir = ABSPATH . UPLOADS; | ||
2656 | 145 | $url = trailingslashit( $siteurl ) . UPLOADS; | ||
2657 | 146 | } | ||
2658 | 147 | |||
2659 | 148 | if ( wpcf7_is_multisite() && ! $main_override | ||
2660 | 149 | && ( ! isset( $switched ) || $switched === false ) ) { | ||
2661 | 150 | |||
2662 | 151 | if ( defined( 'BLOGUPLOADDIR' ) ) | ||
2663 | 152 | $dir = untrailingslashit( BLOGUPLOADDIR ); | ||
2664 | 153 | |||
2665 | 154 | $url = str_replace( UPLOADS, 'files', $url ); | ||
2666 | 155 | } | ||
2667 | 156 | |||
2668 | 157 | $uploads = apply_filters( 'wpcf7_upload_dir', array( 'dir' => $dir, 'url' => $url ) ); | ||
2669 | 158 | |||
2670 | 159 | if ( 'dir' == $type ) | ||
2671 | 160 | return $uploads['dir']; | ||
2672 | 161 | if ( 'url' == $type ) | ||
2673 | 162 | return $uploads['url']; | ||
2674 | 163 | |||
2675 | 164 | return $uploads; | ||
2676 | 165 | } | ||
2677 | 166 | |||
2678 | 167 | function wpcf7_l10n() { | ||
2679 | 168 | $l10n = array( | ||
2680 | 169 | 'af' => __( 'Afrikaans', 'wpcf7' ), | ||
2681 | 170 | 'sq' => __( 'Albanian', 'wpcf7' ), | ||
2682 | 171 | 'ar' => __( 'Arabic', 'wpcf7' ), | ||
2683 | 172 | 'hy_AM' => __( 'Armenian', 'wpcf7' ), | ||
2684 | 173 | 'bn_BD' => __( 'Bangla', 'wpcf7' ), | ||
2685 | 174 | 'bs' => __( 'Bosnian', 'wpcf7' ), | ||
2686 | 175 | 'pt_BR' => __( 'Brazilian Portuguese', 'wpcf7' ), | ||
2687 | 176 | 'bg_BG' => __( 'Bulgarian', 'wpcf7' ), | ||
2688 | 177 | 'ca' => __( 'Catalan', 'wpcf7' ), | ||
2689 | 178 | 'zh_CN' => __( 'Chinese (Simplified)', 'wpcf7' ), | ||
2690 | 179 | 'zh_TW' => __( 'Chinese (Traditional)', 'wpcf7' ), | ||
2691 | 180 | 'hr' => __( 'Croatian', 'wpcf7' ), | ||
2692 | 181 | 'cs_CZ' => __( 'Czech', 'wpcf7' ), | ||
2693 | 182 | 'da_DK' => __( 'Danish', 'wpcf7' ), | ||
2694 | 183 | 'nl_NL' => __( 'Dutch', 'wpcf7' ), | ||
2695 | 184 | 'en_US' => __( 'English', 'wpcf7' ), | ||
2696 | 185 | 'et' => __( 'Estonian', 'wpcf7' ), | ||
2697 | 186 | 'fi' => __( 'Finnish', 'wpcf7' ), | ||
2698 | 187 | 'fr_FR' => __( 'French', 'wpcf7' ), | ||
2699 | 188 | 'gl_ES' => __( 'Galician', 'wpcf7' ), | ||
2700 | 189 | 'ka_GE' => __( 'Georgian', 'wpcf7' ), | ||
2701 | 190 | 'de_DE' => __( 'German', 'wpcf7' ), | ||
2702 | 191 | 'el' => __( 'Greek', 'wpcf7' ), | ||
2703 | 192 | 'he_IL' => __( 'Hebrew', 'wpcf7' ), | ||
2704 | 193 | 'hi_IN' => __( 'Hindi', 'wpcf7' ), | ||
2705 | 194 | 'hu_HU' => __( 'Hungarian', 'wpcf7' ), | ||
2706 | 195 | 'id_ID' => __( 'Indonesian', 'wpcf7' ), | ||
2707 | 196 | 'it_IT' => __( 'Italian', 'wpcf7' ), | ||
2708 | 197 | 'ja' => __( 'Japanese', 'wpcf7' ), | ||
2709 | 198 | 'ko_KR' => __( 'Korean', 'wpcf7' ), | ||
2710 | 199 | 'lv' => __( 'Latvian', 'wpcf7' ), | ||
2711 | 200 | 'lt_LT' => __( 'Lithuanian', 'wpcf7' ), | ||
2712 | 201 | 'mk_MK' => __( 'Macedonian', 'wpcf7' ), | ||
2713 | 202 | 'ms_MY' => __( 'Malay', 'wpcf7' ), | ||
2714 | 203 | 'ml_IN' => __( 'Malayalam', 'wpcf7' ), | ||
2715 | 204 | 'nb_NO' => __( 'Norwegian', 'wpcf7' ), | ||
2716 | 205 | 'fa_IR' => __( 'Persian', 'wpcf7' ), | ||
2717 | 206 | 'pl_PL' => __( 'Polish', 'wpcf7' ), | ||
2718 | 207 | 'pt_PT' => __( 'Portuguese', 'wpcf7' ), | ||
2719 | 208 | 'ru_RU' => __( 'Russian', 'wpcf7' ), | ||
2720 | 209 | 'ro_RO' => __( 'Romanian', 'wpcf7' ), | ||
2721 | 210 | 'sr_RS' => __( 'Serbian', 'wpcf7' ), | ||
2722 | 211 | 'sk' => __( 'Slovak', 'wpcf7' ), | ||
2723 | 212 | 'sl_SI' => __( 'Slovene', 'wpcf7' ), | ||
2724 | 213 | 'es_ES' => __( 'Spanish', 'wpcf7' ), | ||
2725 | 214 | 'sv_SE' => __( 'Swedish', 'wpcf7' ), | ||
2726 | 215 | 'ta' => __( 'Tamil', 'wpcf7' ), | ||
2727 | 216 | 'th' => __( 'Thai', 'wpcf7' ), | ||
2728 | 217 | 'tr_TR' => __( 'Turkish', 'wpcf7' ), | ||
2729 | 218 | 'uk' => __( 'Ukrainian', 'wpcf7' ), | ||
2730 | 219 | 'vi' => __( 'Vietnamese', 'wpcf7' ) | ||
2731 | 220 | ); | ||
2732 | 221 | |||
2733 | 222 | return $l10n; | ||
2734 | 223 | } | ||
2735 | 224 | |||
2736 | 225 | ?> | ||
2737 | 0 | \ No newline at end of file | 226 | \ No newline at end of file |
2738 | 1 | 227 | ||
2739 | === added file 'wp-content/plugins/contact-form-7/includes/pipe.php' | |||
2740 | --- wp-content/plugins/contact-form-7/includes/pipe.php 1970-01-01 00:00:00 +0000 | |||
2741 | +++ wp-content/plugins/contact-form-7/includes/pipe.php 2011-02-18 16:15:41 +0000 | |||
2742 | @@ -0,0 +1,67 @@ | |||
2743 | 1 | <?php | ||
2744 | 2 | |||
2745 | 3 | class WPCF7_Pipe { | ||
2746 | 4 | |||
2747 | 5 | var $before = ''; | ||
2748 | 6 | var $after = ''; | ||
2749 | 7 | |||
2750 | 8 | function WPCF7_Pipe( $text ) { | ||
2751 | 9 | $pipe_pos = strpos( $text, '|' ); | ||
2752 | 10 | if ( false === $pipe_pos ) { | ||
2753 | 11 | $this->before = $this->after = $text; | ||
2754 | 12 | } else { | ||
2755 | 13 | $this->before = substr( $text, 0, $pipe_pos ); | ||
2756 | 14 | $this->after = substr( $text, $pipe_pos + 1 ); | ||
2757 | 15 | } | ||
2758 | 16 | } | ||
2759 | 17 | } | ||
2760 | 18 | |||
2761 | 19 | class WPCF7_Pipes { | ||
2762 | 20 | |||
2763 | 21 | var $pipes = array(); | ||
2764 | 22 | |||
2765 | 23 | function WPCF7_Pipes( $texts ) { | ||
2766 | 24 | if ( ! is_array( $texts ) ) | ||
2767 | 25 | return; | ||
2768 | 26 | |||
2769 | 27 | foreach ( $texts as $text ) { | ||
2770 | 28 | $this->add_pipe( $text ); | ||
2771 | 29 | } | ||
2772 | 30 | } | ||
2773 | 31 | |||
2774 | 32 | function add_pipe( $text ) { | ||
2775 | 33 | $pipe = new WPCF7_Pipe( $text ); | ||
2776 | 34 | $this->pipes[] = $pipe; | ||
2777 | 35 | } | ||
2778 | 36 | |||
2779 | 37 | function do_pipe( $before ) { | ||
2780 | 38 | foreach ( $this->pipes as $pipe ) { | ||
2781 | 39 | if ( $pipe->before == $before ) | ||
2782 | 40 | return $pipe->after; | ||
2783 | 41 | } | ||
2784 | 42 | return $before; | ||
2785 | 43 | } | ||
2786 | 44 | |||
2787 | 45 | function collect_befores() { | ||
2788 | 46 | $befores = array(); | ||
2789 | 47 | |||
2790 | 48 | foreach ( $this->pipes as $pipe ) { | ||
2791 | 49 | $befores[] = $pipe->before; | ||
2792 | 50 | } | ||
2793 | 51 | |||
2794 | 52 | return $befores; | ||
2795 | 53 | } | ||
2796 | 54 | |||
2797 | 55 | function zero() { | ||
2798 | 56 | return empty( $this->pipes ); | ||
2799 | 57 | } | ||
2800 | 58 | |||
2801 | 59 | function random_pipe() { | ||
2802 | 60 | if ( $this->zero() ) | ||
2803 | 61 | return null; | ||
2804 | 62 | |||
2805 | 63 | return $this->pipes[array_rand( $this->pipes )]; | ||
2806 | 64 | } | ||
2807 | 65 | } | ||
2808 | 66 | |||
2809 | 67 | ?> | ||
2810 | 0 | \ No newline at end of file | 68 | \ No newline at end of file |
2811 | 1 | 69 | ||
2812 | === added file 'wp-content/plugins/contact-form-7/includes/shortcodes.php' | |||
2813 | --- wp-content/plugins/contact-form-7/includes/shortcodes.php 1970-01-01 00:00:00 +0000 | |||
2814 | +++ wp-content/plugins/contact-form-7/includes/shortcodes.php 2011-02-18 16:15:41 +0000 | |||
2815 | @@ -0,0 +1,171 @@ | |||
2816 | 1 | <?php | ||
2817 | 2 | |||
2818 | 3 | class WPCF7_ShortcodeManager { | ||
2819 | 4 | |||
2820 | 5 | var $shortcode_tags = array(); | ||
2821 | 6 | |||
2822 | 7 | // Taggs scanned at the last time of do_shortcode() | ||
2823 | 8 | var $scanned_tags = null; | ||
2824 | 9 | |||
2825 | 10 | // Executing shortcodes (true) or just scanning (false) | ||
2826 | 11 | var $exec = true; | ||
2827 | 12 | |||
2828 | 13 | function add_shortcode( $tag, $func, $has_name = false ) { | ||
2829 | 14 | if ( is_callable( $func ) ) | ||
2830 | 15 | $this->shortcode_tags[$tag] = array( | ||
2831 | 16 | 'function' => $func, | ||
2832 | 17 | 'has_name' => (boolean) $has_name ); | ||
2833 | 18 | } | ||
2834 | 19 | |||
2835 | 20 | function remove_shortcode( $tag ) { | ||
2836 | 21 | unset( $this->shortcode_tags[$tag] ); | ||
2837 | 22 | } | ||
2838 | 23 | |||
2839 | 24 | function normalize_shortcode( $content ) { | ||
2840 | 25 | if ( empty( $this->shortcode_tags ) || ! is_array( $this->shortcode_tags ) ) | ||
2841 | 26 | return $content; | ||
2842 | 27 | |||
2843 | 28 | $pattern = $this->get_shortcode_regex(); | ||
2844 | 29 | return preg_replace_callback( '/' . $pattern . '/s', | ||
2845 | 30 | array( &$this, 'normalize_space_cb' ), $content ); | ||
2846 | 31 | } | ||
2847 | 32 | |||
2848 | 33 | function normalize_space_cb( $m ) { | ||
2849 | 34 | // allow [[foo]] syntax for escaping a tag | ||
2850 | 35 | if ( $m[1] == '[' && $m[6] == ']' ) | ||
2851 | 36 | return $m[0]; | ||
2852 | 37 | |||
2853 | 38 | return preg_replace( '/\s+/', ' ', $m[0] ); | ||
2854 | 39 | } | ||
2855 | 40 | |||
2856 | 41 | function do_shortcode( $content, $exec = true ) { | ||
2857 | 42 | $this->exec = (bool) $exec; | ||
2858 | 43 | $this->scanned_tags = array(); | ||
2859 | 44 | |||
2860 | 45 | if ( empty( $this->shortcode_tags ) || ! is_array( $this->shortcode_tags ) ) | ||
2861 | 46 | return $content; | ||
2862 | 47 | |||
2863 | 48 | $pattern = $this->get_shortcode_regex(); | ||
2864 | 49 | return preg_replace_callback( '/' . $pattern . '/s', | ||
2865 | 50 | array( &$this, 'do_shortcode_tag' ), $content ); | ||
2866 | 51 | } | ||
2867 | 52 | |||
2868 | 53 | function scan_shortcode( $content ) { | ||
2869 | 54 | $this->do_shortcode( $content, false ); | ||
2870 | 55 | return $this->scanned_tags; | ||
2871 | 56 | } | ||
2872 | 57 | |||
2873 | 58 | function get_shortcode_regex() { | ||
2874 | 59 | $tagnames = array_keys( $this->shortcode_tags ); | ||
2875 | 60 | $tagregexp = join( '|', array_map( 'preg_quote', $tagnames ) ); | ||
2876 | 61 | |||
2877 | 62 | return '(\[?)\[(' . $tagregexp . ')(?:\s(.*?))?(?:\s(\/))?\](?:(.+?)\[\/\2\])?(\]?)'; | ||
2878 | 63 | } | ||
2879 | 64 | |||
2880 | 65 | function do_shortcode_tag( $m ) { | ||
2881 | 66 | // allow [[foo]] syntax for escaping a tag | ||
2882 | 67 | if ( $m[1] == '[' && $m[6] == ']' ) { | ||
2883 | 68 | return substr( $m[0], 1, -1 ); | ||
2884 | 69 | } | ||
2885 | 70 | |||
2886 | 71 | $tag = $m[2]; | ||
2887 | 72 | $attr = $this->shortcode_parse_atts( $m[3] ); | ||
2888 | 73 | |||
2889 | 74 | $scanned_tag = array(); | ||
2890 | 75 | $scanned_tag['type'] = $tag; | ||
2891 | 76 | |||
2892 | 77 | if ( is_array( $attr ) ) { | ||
2893 | 78 | if ( is_array( $attr['options'] ) ) { | ||
2894 | 79 | if ( $this->shortcode_tags[$tag]['has_name'] && ! empty( $attr['options'] ) ) { | ||
2895 | 80 | $scanned_tag['name'] = array_shift( $attr['options'] ); | ||
2896 | 81 | |||
2897 | 82 | if ( ! wpcf7_is_name( $scanned_tag['name'] ) ) | ||
2898 | 83 | return $m[0]; // Invalid name is used. Ignore this tag. | ||
2899 | 84 | } | ||
2900 | 85 | |||
2901 | 86 | $scanned_tag['options'] = (array) $attr['options']; | ||
2902 | 87 | } | ||
2903 | 88 | |||
2904 | 89 | $scanned_tag['raw_values'] = (array) $attr['values']; | ||
2905 | 90 | |||
2906 | 91 | if ( WPCF7_USE_PIPE ) { | ||
2907 | 92 | $pipes = new WPCF7_Pipes( $scanned_tag['raw_values'] ); | ||
2908 | 93 | $scanned_tag['values'] = $pipes->collect_befores(); | ||
2909 | 94 | $scanned_tag['pipes'] = $pipes; | ||
2910 | 95 | } else { | ||
2911 | 96 | $scanned_tag['values'] = $scanned_tag['raw_values']; | ||
2912 | 97 | } | ||
2913 | 98 | |||
2914 | 99 | $scanned_tag['labels'] = $scanned_tag['values']; | ||
2915 | 100 | |||
2916 | 101 | } else { | ||
2917 | 102 | $scanned_tag['attr'] = $attr; | ||
2918 | 103 | } | ||
2919 | 104 | |||
2920 | 105 | $content = trim( $m[5] ); | ||
2921 | 106 | $content = preg_replace( "/<br\s*\/?>$/m", '', $content ); | ||
2922 | 107 | $scanned_tag['content'] = $content; | ||
2923 | 108 | |||
2924 | 109 | $scanned_tag = apply_filters( 'wpcf7_form_tag', $scanned_tag, $this->exec ); | ||
2925 | 110 | |||
2926 | 111 | $this->scanned_tags[] = $scanned_tag; | ||
2927 | 112 | |||
2928 | 113 | if ( $this->exec ) { | ||
2929 | 114 | $func = $this->shortcode_tags[$tag]['function']; | ||
2930 | 115 | return $m[1] . call_user_func( $func, $scanned_tag ) . $m[6]; | ||
2931 | 116 | } else { | ||
2932 | 117 | return $m[0]; | ||
2933 | 118 | } | ||
2934 | 119 | } | ||
2935 | 120 | |||
2936 | 121 | function shortcode_parse_atts( $text ) { | ||
2937 | 122 | $atts = array( 'options' => array(), 'values' => array() ); | ||
2938 | 123 | $text = preg_replace( "/[\x{00a0}\x{200b}]+/u", " ", $text ); | ||
2939 | 124 | $text = stripcslashes( trim( $text ) ); | ||
2940 | 125 | |||
2941 | 126 | $pattern = '%^([-+*=0-9a-zA-Z:.!?#$&@_/|\%\s]*?)((?:\s*"[^"]*"|\s*\'[^\']*\')*)$%'; | ||
2942 | 127 | |||
2943 | 128 | if ( preg_match( $pattern, $text, $match ) ) { | ||
2944 | 129 | if ( ! empty( $match[1] ) ) { | ||
2945 | 130 | $atts['options'] = preg_split( '/[\s]+/', trim( $match[1] ) ); | ||
2946 | 131 | } | ||
2947 | 132 | if ( ! empty( $match[2] ) ) { | ||
2948 | 133 | preg_match_all( '/"[^"]*"|\'[^\']*\'/', $match[2], $matched_values ); | ||
2949 | 134 | $atts['values'] = wpcf7_strip_quote_deep( $matched_values[0] ); | ||
2950 | 135 | } | ||
2951 | 136 | } else { | ||
2952 | 137 | $atts = $text; | ||
2953 | 138 | } | ||
2954 | 139 | |||
2955 | 140 | return $atts; | ||
2956 | 141 | } | ||
2957 | 142 | |||
2958 | 143 | } | ||
2959 | 144 | |||
2960 | 145 | $wpcf7_shortcode_manager = new WPCF7_ShortcodeManager(); | ||
2961 | 146 | |||
2962 | 147 | function wpcf7_add_shortcode( $tag, $func, $has_name = false ) { | ||
2963 | 148 | global $wpcf7_shortcode_manager; | ||
2964 | 149 | |||
2965 | 150 | return $wpcf7_shortcode_manager->add_shortcode( $tag, $func, $has_name ); | ||
2966 | 151 | } | ||
2967 | 152 | |||
2968 | 153 | function wpcf7_remove_shortcode( $tag ) { | ||
2969 | 154 | global $wpcf7_shortcode_manager; | ||
2970 | 155 | |||
2971 | 156 | return $wpcf7_shortcode_manager->remove_shortcode( $tag ); | ||
2972 | 157 | } | ||
2973 | 158 | |||
2974 | 159 | function wpcf7_do_shortcode( $content ) { | ||
2975 | 160 | global $wpcf7_shortcode_manager; | ||
2976 | 161 | |||
2977 | 162 | return $wpcf7_shortcode_manager->do_shortcode( $content ); | ||
2978 | 163 | } | ||
2979 | 164 | |||
2980 | 165 | function wpcf7_get_shortcode_regex() { | ||
2981 | 166 | global $wpcf7_shortcode_manager; | ||
2982 | 167 | |||
2983 | 168 | return $wpcf7_shortcode_manager->get_shortcode_regex(); | ||
2984 | 169 | } | ||
2985 | 170 | |||
2986 | 171 | ?> | ||
2987 | 0 | \ No newline at end of file | 172 | \ No newline at end of file |
2988 | 1 | 173 | ||
2989 | === added file 'wp-content/plugins/contact-form-7/includes/taggenerator.php' | |||
2990 | --- wp-content/plugins/contact-form-7/includes/taggenerator.php 1970-01-01 00:00:00 +0000 | |||
2991 | +++ wp-content/plugins/contact-form-7/includes/taggenerator.php 2011-02-18 16:15:41 +0000 | |||
2992 | @@ -0,0 +1,49 @@ | |||
2993 | 1 | <?php | ||
2994 | 2 | |||
2995 | 3 | function wpcf7_add_tag_generator( $name, $title, $elm_id, $callback, $options = array() ) { | ||
2996 | 4 | global $wpcf7_tag_generators; | ||
2997 | 5 | |||
2998 | 6 | $name = trim( $name ); | ||
2999 | 7 | if ( '' == $name ) | ||
3000 | 8 | return false; | ||
3001 | 9 | |||
3002 | 10 | if ( ! is_array( $wpcf7_tag_generators ) ) | ||
3003 | 11 | $wpcf7_tag_generators = array(); | ||
3004 | 12 | |||
3005 | 13 | $wpcf7_tag_generators[$name] = array( | ||
3006 | 14 | 'title' => $title, | ||
3007 | 15 | 'content' => $elm_id, | ||
3008 | 16 | 'options' => $options ); | ||
3009 | 17 | |||
3010 | 18 | if ( is_callable( $callback ) ) | ||
3011 | 19 | add_action( 'wpcf7_admin_footer', $callback ); | ||
3012 | 20 | |||
3013 | 21 | return true; | ||
3014 | 22 | } | ||
3015 | 23 | |||
3016 | 24 | function wpcf7_print_tag_generators() { | ||
3017 | 25 | global $wpcf7_tag_generators; | ||
3018 | 26 | |||
3019 | 27 | $output = array(); | ||
3020 | 28 | |||
3021 | 29 | foreach ( (array) $wpcf7_tag_generators as $name => $tg ) { | ||
3022 | 30 | $pane = " " . esc_js( $name ) . ": { "; | ||
3023 | 31 | $pane .= "title: '" . esc_js( $tg['title'] ) . "'"; | ||
3024 | 32 | $pane .= ", content: '" . esc_js( $tg['content'] ) . "'"; | ||
3025 | 33 | |||
3026 | 34 | foreach ( (array) $tg['options'] as $option_name => $option_value ) { | ||
3027 | 35 | if ( is_int( $option_value ) ) | ||
3028 | 36 | $pane .= ", $option_name: $option_value"; | ||
3029 | 37 | else | ||
3030 | 38 | $pane .= ", $option_name: '" . esc_js( $option_value ) . "'"; | ||
3031 | 39 | } | ||
3032 | 40 | |||
3033 | 41 | $pane .= " }"; | ||
3034 | 42 | |||
3035 | 43 | $output[] = $pane; | ||
3036 | 44 | } | ||
3037 | 45 | |||
3038 | 46 | echo implode( ",\n", $output ) . "\n"; | ||
3039 | 47 | } | ||
3040 | 48 | |||
3041 | 49 | ?> | ||
3042 | 0 | \ No newline at end of file | 50 | \ No newline at end of file |
3043 | 1 | 51 | ||
3044 | === added file 'wp-content/plugins/contact-form-7/jquery.form.js' | |||
3045 | --- wp-content/plugins/contact-form-7/jquery.form.js 1970-01-01 00:00:00 +0000 | |||
3046 | +++ wp-content/plugins/contact-form-7/jquery.form.js 2011-02-18 16:15:41 +0000 | |||
3047 | @@ -0,0 +1,791 @@ | |||
3048 | 1 | /*! | ||
3049 | 2 | * jQuery Form Plugin | ||
3050 | 3 | * version: 2.52 (07-DEC-2010) | ||
3051 | 4 | * @requires jQuery v1.3.2 or later | ||
3052 | 5 | * | ||
3053 | 6 | * Examples and documentation at: http://malsup.com/jquery/form/ | ||
3054 | 7 | * Dual licensed under the MIT and GPL licenses: | ||
3055 | 8 | * http://www.opensource.org/licenses/mit-license.php | ||
3056 | 9 | * http://www.gnu.org/licenses/gpl.html | ||
3057 | 10 | */ | ||
3058 | 11 | ;(function($) { | ||
3059 | 12 | |||
3060 | 13 | /* | ||
3061 | 14 | Usage Note: | ||
3062 | 15 | ----------- | ||
3063 | 16 | Do not use both ajaxSubmit and ajaxForm on the same form. These | ||
3064 | 17 | functions are intended to be exclusive. Use ajaxSubmit if you want | ||
3065 | 18 | to bind your own submit handler to the form. For example, | ||
3066 | 19 | |||
3067 | 20 | $(document).ready(function() { | ||
3068 | 21 | $('#myForm').bind('submit', function(e) { | ||
3069 | 22 | e.preventDefault(); // <-- important | ||
3070 | 23 | $(this).ajaxSubmit({ | ||
3071 | 24 | target: '#output' | ||
3072 | 25 | }); | ||
3073 | 26 | }); | ||
3074 | 27 | }); | ||
3075 | 28 | |||
3076 | 29 | Use ajaxForm when you want the plugin to manage all the event binding | ||
3077 | 30 | for you. For example, | ||
3078 | 31 | |||
3079 | 32 | $(document).ready(function() { | ||
3080 | 33 | $('#myForm').ajaxForm({ | ||
3081 | 34 | target: '#output' | ||
3082 | 35 | }); | ||
3083 | 36 | }); | ||
3084 | 37 | |||
3085 | 38 | When using ajaxForm, the ajaxSubmit function will be invoked for you | ||
3086 | 39 | at the appropriate time. | ||
3087 | 40 | */ | ||
3088 | 41 | |||
3089 | 42 | /** | ||
3090 | 43 | * ajaxSubmit() provides a mechanism for immediately submitting | ||
3091 | 44 | * an HTML form using AJAX. | ||
3092 | 45 | */ | ||
3093 | 46 | $.fn.ajaxSubmit = function(options) { | ||
3094 | 47 | // fast fail if nothing selected (http://dev.jquery.com/ticket/2752) | ||
3095 | 48 | if (!this.length) { | ||
3096 | 49 | log('ajaxSubmit: skipping submit process - no element selected'); | ||
3097 | 50 | return this; | ||
3098 | 51 | } | ||
3099 | 52 | |||
3100 | 53 | if (typeof options == 'function') { | ||
3101 | 54 | options = { success: options }; | ||
3102 | 55 | } | ||
3103 | 56 | |||
3104 | 57 | var action = this.attr('action'); | ||
3105 | 58 | var url = (typeof action === 'string') ? $.trim(action) : ''; | ||
3106 | 59 | if (url) { | ||
3107 | 60 | // clean url (don't include hash vaue) | ||
3108 | 61 | url = (url.match(/^([^#]+)/)||[])[1]; | ||
3109 | 62 | } | ||
3110 | 63 | url = url || window.location.href || ''; | ||
3111 | 64 | |||
3112 | 65 | options = $.extend(true, { | ||
3113 | 66 | url: url, | ||
3114 | 67 | type: this.attr('method') || 'GET', | ||
3115 | 68 | iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank' | ||
3116 | 69 | }, options); | ||
3117 | 70 | |||
3118 | 71 | // hook for manipulating the form data before it is extracted; | ||
3119 | 72 | // convenient for use with rich editors like tinyMCE or FCKEditor | ||
3120 | 73 | var veto = {}; | ||
3121 | 74 | this.trigger('form-pre-serialize', [this, options, veto]); | ||
3122 | 75 | if (veto.veto) { | ||
3123 | 76 | log('ajaxSubmit: submit vetoed via form-pre-serialize trigger'); | ||
3124 | 77 | return this; | ||
3125 | 78 | } | ||
3126 | 79 | |||
3127 | 80 | // provide opportunity to alter form data before it is serialized | ||
3128 | 81 | if (options.beforeSerialize && options.beforeSerialize(this, options) === false) { | ||
3129 | 82 | log('ajaxSubmit: submit aborted via beforeSerialize callback'); | ||
3130 | 83 | return this; | ||
3131 | 84 | } | ||
3132 | 85 | |||
3133 | 86 | var n,v,a = this.formToArray(options.semantic); | ||
3134 | 87 | if (options.data) { | ||
3135 | 88 | options.extraData = options.data; | ||
3136 | 89 | for (n in options.data) { | ||
3137 | 90 | if(options.data[n] instanceof Array) { | ||
3138 | 91 | for (var k in options.data[n]) { | ||
3139 | 92 | a.push( { name: n, value: options.data[n][k] } ); | ||
3140 | 93 | } | ||
3141 | 94 | } | ||
3142 | 95 | else { | ||
3143 | 96 | v = options.data[n]; | ||
3144 | 97 | v = $.isFunction(v) ? v() : v; // if value is fn, invoke it | ||
3145 | 98 | a.push( { name: n, value: v } ); | ||
3146 | 99 | } | ||
3147 | 100 | } | ||
3148 | 101 | } | ||
3149 | 102 | |||
3150 | 103 | // give pre-submit callback an opportunity to abort the submit | ||
3151 | 104 | if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) { | ||
3152 | 105 | log('ajaxSubmit: submit aborted via beforeSubmit callback'); | ||
3153 | 106 | return this; | ||
3154 | 107 | } | ||
3155 | 108 | |||
3156 | 109 | // fire vetoable 'validate' event | ||
3157 | 110 | this.trigger('form-submit-validate', [a, this, options, veto]); | ||
3158 | 111 | if (veto.veto) { | ||
3159 | 112 | log('ajaxSubmit: submit vetoed via form-submit-validate trigger'); | ||
3160 | 113 | return this; | ||
3161 | 114 | } | ||
3162 | 115 | |||
3163 | 116 | var q = $.param(a); | ||
3164 | 117 | |||
3165 | 118 | if (options.type.toUpperCase() == 'GET') { | ||
3166 | 119 | options.url += (options.url.indexOf('?') >= 0 ? '&' : '?') + q; | ||
3167 | 120 | options.data = null; // data is null for 'get' | ||
3168 | 121 | } | ||
3169 | 122 | else { | ||
3170 | 123 | options.data = q; // data is the query string for 'post' | ||
3171 | 124 | } | ||
3172 | 125 | |||
3173 | 126 | var $form = this, callbacks = []; | ||
3174 | 127 | if (options.resetForm) { | ||
3175 | 128 | callbacks.push(function() { $form.resetForm(); }); | ||
3176 | 129 | } | ||
3177 | 130 | if (options.clearForm) { | ||
3178 | 131 | callbacks.push(function() { $form.clearForm(); }); | ||
3179 | 132 | } | ||
3180 | 133 | |||
3181 | 134 | // perform a load on the target only if dataType is not provided | ||
3182 | 135 | if (!options.dataType && options.target) { | ||
3183 | 136 | var oldSuccess = options.success || function(){}; | ||
3184 | 137 | callbacks.push(function(data) { | ||
3185 | 138 | var fn = options.replaceTarget ? 'replaceWith' : 'html'; | ||
3186 | 139 | $(options.target)[fn](data).each(oldSuccess, arguments); | ||
3187 | 140 | }); | ||
3188 | 141 | } | ||
3189 | 142 | else if (options.success) { | ||
3190 | 143 | callbacks.push(options.success); | ||
3191 | 144 | } | ||
3192 | 145 | |||
3193 | 146 | options.success = function(data, status, xhr) { // jQuery 1.4+ passes xhr as 3rd arg | ||
3194 | 147 | var context = options.context || options; // jQuery 1.4+ supports scope context | ||
3195 | 148 | for (var i=0, max=callbacks.length; i < max; i++) { | ||
3196 | 149 | callbacks[i].apply(context, [data, status, xhr || $form, $form]); | ||
3197 | 150 | } | ||
3198 | 151 | }; | ||
3199 | 152 | |||
3200 | 153 | // are there files to upload? | ||
3201 | 154 | var fileInputs = $('input:file', this).length > 0; | ||
3202 | 155 | var mp = 'multipart/form-data'; | ||
3203 | 156 | var multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp); | ||
3204 | 157 | |||
3205 | 158 | // options.iframe allows user to force iframe mode | ||
3206 | 159 | // 06-NOV-09: now defaulting to iframe mode if file input is detected | ||
3207 | 160 | if (options.iframe !== false && (fileInputs || options.iframe || multipart)) { | ||
3208 | 161 | // hack to fix Safari hang (thanks to Tim Molendijk for this) | ||
3209 | 162 | // see: http://groups.google.com/group/jquery-dev/browse_thread/thread/36395b7ab510dd5d | ||
3210 | 163 | if (options.closeKeepAlive) { | ||
3211 | 164 | $.get(options.closeKeepAlive, fileUpload); | ||
3212 | 165 | } | ||
3213 | 166 | else { | ||
3214 | 167 | fileUpload(); | ||
3215 | 168 | } | ||
3216 | 169 | } | ||
3217 | 170 | else { | ||
3218 | 171 | $.ajax(options); | ||
3219 | 172 | } | ||
3220 | 173 | |||
3221 | 174 | // fire 'notify' event | ||
3222 | 175 | this.trigger('form-submit-notify', [this, options]); | ||
3223 | 176 | return this; | ||
3224 | 177 | |||
3225 | 178 | |||
3226 | 179 | // private function for handling file uploads (hat tip to YAHOO!) | ||
3227 | 180 | function fileUpload() { | ||
3228 | 181 | var form = $form[0]; | ||
3229 | 182 | |||
3230 | 183 | if ($(':input[name=submit],:input[id=submit]', form).length) { | ||
3231 | 184 | // if there is an input with a name or id of 'submit' then we won't be | ||
3232 | 185 | // able to invoke the submit fn on the form (at least not x-browser) | ||
3233 | 186 | alert('Error: Form elements must not have name or id of "submit".'); | ||
3234 | 187 | return; | ||
3235 | 188 | } | ||
3236 | 189 | |||
3237 | 190 | var s = $.extend(true, {}, $.ajaxSettings, options); | ||
3238 | 191 | s.context = s.context || s; | ||
3239 | 192 | var id = 'jqFormIO' + (new Date().getTime()), fn = '_'+id; | ||
3240 | 193 | window[fn] = function() { | ||
3241 | 194 | var f = $io.data('form-plugin-onload'); | ||
3242 | 195 | if (f) { | ||
3243 | 196 | f(); | ||
3244 | 197 | window[fn] = undefined; | ||
3245 | 198 | try { delete window[fn]; } catch(e){} | ||
3246 | 199 | } | ||
3247 | 200 | } | ||
3248 | 201 | var $io = $('<iframe id="' + id + '" name="' + id + '" src="'+ s.iframeSrc +'" onload="window[\'_\'+this.id]()" />'); | ||
3249 | 202 | var io = $io[0]; | ||
3250 | 203 | |||
3251 | 204 | $io.css({ position: 'absolute', top: '-1000px', left: '-1000px' }); | ||
3252 | 205 | |||
3253 | 206 | var xhr = { // mock object | ||
3254 | 207 | aborted: 0, | ||
3255 | 208 | responseText: null, | ||
3256 | 209 | responseXML: null, | ||
3257 | 210 | status: 0, | ||
3258 | 211 | statusText: 'n/a', | ||
3259 | 212 | getAllResponseHeaders: function() {}, | ||
3260 | 213 | getResponseHeader: function() {}, | ||
3261 | 214 | setRequestHeader: function() {}, | ||
3262 | 215 | abort: function() { | ||
3263 | 216 | this.aborted = 1; | ||
3264 | 217 | $io.attr('src', s.iframeSrc); // abort op in progress | ||
3265 | 218 | } | ||
3266 | 219 | }; | ||
3267 | 220 | |||
3268 | 221 | var g = s.global; | ||
3269 | 222 | // trigger ajax global events so that activity/block indicators work like normal | ||
3270 | 223 | if (g && ! $.active++) { | ||
3271 | 224 | $.event.trigger("ajaxStart"); | ||
3272 | 225 | } | ||
3273 | 226 | if (g) { | ||
3274 | 227 | $.event.trigger("ajaxSend", [xhr, s]); | ||
3275 | 228 | } | ||
3276 | 229 | |||
3277 | 230 | if (s.beforeSend && s.beforeSend.call(s.context, xhr, s) === false) { | ||
3278 | 231 | if (s.global) { | ||
3279 | 232 | $.active--; | ||
3280 | 233 | } | ||
3281 | 234 | return; | ||
3282 | 235 | } | ||
3283 | 236 | if (xhr.aborted) { | ||
3284 | 237 | return; | ||
3285 | 238 | } | ||
3286 | 239 | |||
3287 | 240 | var cbInvoked = false; | ||
3288 | 241 | var timedOut = 0; | ||
3289 | 242 | |||
3290 | 243 | // add submitting element to data if we know it | ||
3291 | 244 | var sub = form.clk; | ||
3292 | 245 | if (sub) { | ||
3293 | 246 | var n = sub.name; | ||
3294 | 247 | if (n && !sub.disabled) { | ||
3295 | 248 | s.extraData = s.extraData || {}; | ||
3296 | 249 | s.extraData[n] = sub.value; | ||
3297 | 250 | if (sub.type == "image") { | ||
3298 | 251 | s.extraData[n+'.x'] = form.clk_x; | ||
3299 | 252 | s.extraData[n+'.y'] = form.clk_y; | ||
3300 | 253 | } | ||
3301 | 254 | } | ||
3302 | 255 | } | ||
3303 | 256 | |||
3304 | 257 | // take a breath so that pending repaints get some cpu time before the upload starts | ||
3305 | 258 | function doSubmit() { | ||
3306 | 259 | // make sure form attrs are set | ||
3307 | 260 | var t = $form.attr('target'), a = $form.attr('action'); | ||
3308 | 261 | |||
3309 | 262 | // update form attrs in IE friendly way | ||
3310 | 263 | form.setAttribute('target',id); | ||
3311 | 264 | if (form.getAttribute('method') != 'POST') { | ||
3312 | 265 | form.setAttribute('method', 'POST'); | ||
3313 | 266 | } | ||
3314 | 267 | if (form.getAttribute('action') != s.url) { | ||
3315 | 268 | form.setAttribute('action', s.url); | ||
3316 | 269 | } | ||
3317 | 270 | |||
3318 | 271 | // ie borks in some cases when setting encoding | ||
3319 | 272 | if (! s.skipEncodingOverride) { | ||
3320 | 273 | $form.attr({ | ||
3321 | 274 | encoding: 'multipart/form-data', | ||
3322 | 275 | enctype: 'multipart/form-data' | ||
3323 | 276 | }); | ||
3324 | 277 | } | ||
3325 | 278 | |||
3326 | 279 | // support timout | ||
3327 | 280 | if (s.timeout) { | ||
3328 | 281 | setTimeout(function() { timedOut = true; cb(); }, s.timeout); | ||
3329 | 282 | } | ||
3330 | 283 | |||
3331 | 284 | // add "extra" data to form if provided in options | ||
3332 | 285 | var extraInputs = []; | ||
3333 | 286 | try { | ||
3334 | 287 | if (s.extraData) { | ||
3335 | 288 | for (var n in s.extraData) { | ||
3336 | 289 | extraInputs.push( | ||
3337 | 290 | $('<input type="hidden" name="'+n+'" value="'+s.extraData[n]+'" />') | ||
3338 | 291 | .appendTo(form)[0]); | ||
3339 | 292 | } | ||
3340 | 293 | } | ||
3341 | 294 | |||
3342 | 295 | // add iframe to doc and submit the form | ||
3343 | 296 | $io.appendTo('body'); | ||
3344 | 297 | $io.data('form-plugin-onload', cb); | ||
3345 | 298 | form.submit(); | ||
3346 | 299 | } | ||
3347 | 300 | finally { | ||
3348 | 301 | // reset attrs and remove "extra" input elements | ||
3349 | 302 | form.setAttribute('action',a); | ||
3350 | 303 | if(t) { | ||
3351 | 304 | form.setAttribute('target', t); | ||
3352 | 305 | } else { | ||
3353 | 306 | $form.removeAttr('target'); | ||
3354 | 307 | } | ||
3355 | 308 | $(extraInputs).remove(); | ||
3356 | 309 | } | ||
3357 | 310 | } | ||
3358 | 311 | |||
3359 | 312 | if (s.forceSync) { | ||
3360 | 313 | doSubmit(); | ||
3361 | 314 | } | ||
3362 | 315 | else { | ||
3363 | 316 | setTimeout(doSubmit, 10); // this lets dom updates render | ||
3364 | 317 | } | ||
3365 | 318 | |||
3366 | 319 | var data, doc, domCheckCount = 50; | ||
3367 | 320 | |||
3368 | 321 | function cb() { | ||
3369 | 322 | if (cbInvoked) { | ||
3370 | 323 | return; | ||
3371 | 324 | } | ||
3372 | 325 | |||
3373 | 326 | $io.removeData('form-plugin-onload'); | ||
3374 | 327 | |||
3375 | 328 | var ok = true; | ||
3376 | 329 | try { | ||
3377 | 330 | if (timedOut) { | ||
3378 | 331 | throw 'timeout'; | ||
3379 | 332 | } | ||
3380 | 333 | // extract the server response from the iframe | ||
3381 | 334 | doc = io.contentWindow ? io.contentWindow.document : io.contentDocument ? io.contentDocument : io.document; | ||
3382 | 335 | |||
3383 | 336 | var isXml = s.dataType == 'xml' || doc.XMLDocument || $.isXMLDoc(doc); | ||
3384 | 337 | log('isXml='+isXml); | ||
3385 | 338 | if (!isXml && window.opera && (doc.body == null || doc.body.innerHTML == '')) { | ||
3386 | 339 | if (--domCheckCount) { | ||
3387 | 340 | // in some browsers (Opera) the iframe DOM is not always traversable when | ||
3388 | 341 | // the onload callback fires, so we loop a bit to accommodate | ||
3389 | 342 | log('requeing onLoad callback, DOM not available'); | ||
3390 | 343 | setTimeout(cb, 250); | ||
3391 | 344 | return; | ||
3392 | 345 | } | ||
3393 | 346 | // let this fall through because server response could be an empty document | ||
3394 | 347 | //log('Could not access iframe DOM after mutiple tries.'); | ||
3395 | 348 | //throw 'DOMException: not available'; | ||
3396 | 349 | } | ||
3397 | 350 | |||
3398 | 351 | //log('response detected'); | ||
3399 | 352 | cbInvoked = true; | ||
3400 | 353 | xhr.responseText = doc.documentElement ? doc.documentElement.innerHTML : null; | ||
3401 | 354 | xhr.responseXML = doc.XMLDocument ? doc.XMLDocument : doc; | ||
3402 | 355 | xhr.getResponseHeader = function(header){ | ||
3403 | 356 | var headers = {'content-type': s.dataType}; | ||
3404 | 357 | return headers[header]; | ||
3405 | 358 | }; | ||
3406 | 359 | |||
3407 | 360 | var scr = /(json|script)/.test(s.dataType); | ||
3408 | 361 | if (scr || s.textarea) { | ||
3409 | 362 | // see if user embedded response in textarea | ||
3410 | 363 | var ta = doc.getElementsByTagName('textarea')[0]; | ||
3411 | 364 | if (ta) { | ||
3412 | 365 | xhr.responseText = ta.value; | ||
3413 | 366 | } | ||
3414 | 367 | else if (scr) { | ||
3415 | 368 | // account for browsers injecting pre around json response | ||
3416 | 369 | var pre = doc.getElementsByTagName('pre')[0]; | ||
3417 | 370 | var b = doc.getElementsByTagName('body')[0]; | ||
3418 | 371 | if (pre) { | ||
3419 | 372 | xhr.responseText = pre.textContent; | ||
3420 | 373 | } | ||
3421 | 374 | else if (b) { | ||
3422 | 375 | xhr.responseText = b.innerHTML; | ||
3423 | 376 | } | ||
3424 | 377 | } | ||
3425 | 378 | } | ||
3426 | 379 | else if (s.dataType == 'xml' && !xhr.responseXML && xhr.responseText != null) { | ||
3427 | 380 | xhr.responseXML = toXml(xhr.responseText); | ||
3428 | 381 | } | ||
3429 | 382 | data = $.httpData(xhr, s.dataType); | ||
3430 | 383 | } | ||
3431 | 384 | catch(e){ | ||
3432 | 385 | log('error caught:',e); | ||
3433 | 386 | ok = false; | ||
3434 | 387 | xhr.error = e; | ||
3435 | 388 | $.handleError(s, xhr, 'error', e); | ||
3436 | 389 | } | ||
3437 | 390 | |||
3438 | 391 | if (xhr.aborted) { | ||
3439 | 392 | log('upload aborted'); | ||
3440 | 393 | ok = false; | ||
3441 | 394 | } | ||
3442 | 395 | |||
3443 | 396 | // ordering of these callbacks/triggers is odd, but that's how $.ajax does it | ||
3444 | 397 | if (ok) { | ||
3445 | 398 | s.success.call(s.context, data, 'success', xhr); | ||
3446 | 399 | if (g) { | ||
3447 | 400 | $.event.trigger("ajaxSuccess", [xhr, s]); | ||
3448 | 401 | } | ||
3449 | 402 | } | ||
3450 | 403 | if (g) { | ||
3451 | 404 | $.event.trigger("ajaxComplete", [xhr, s]); | ||
3452 | 405 | } | ||
3453 | 406 | if (g && ! --$.active) { | ||
3454 | 407 | $.event.trigger("ajaxStop"); | ||
3455 | 408 | } | ||
3456 | 409 | if (s.complete) { | ||
3457 | 410 | s.complete.call(s.context, xhr, ok ? 'success' : 'error'); | ||
3458 | 411 | } | ||
3459 | 412 | |||
3460 | 413 | // clean up | ||
3461 | 414 | setTimeout(function() { | ||
3462 | 415 | $io.removeData('form-plugin-onload'); | ||
3463 | 416 | $io.remove(); | ||
3464 | 417 | xhr.responseXML = null; | ||
3465 | 418 | }, 100); | ||
3466 | 419 | } | ||
3467 | 420 | |||
3468 | 421 | function toXml(s, doc) { | ||
3469 | 422 | if (window.ActiveXObject) { | ||
3470 | 423 | doc = new ActiveXObject('Microsoft.XMLDOM'); | ||
3471 | 424 | doc.async = 'false'; | ||
3472 | 425 | doc.loadXML(s); | ||
3473 | 426 | } | ||
3474 | 427 | else { | ||
3475 | 428 | doc = (new DOMParser()).parseFromString(s, 'text/xml'); | ||
3476 | 429 | } | ||
3477 | 430 | return (doc && doc.documentElement && doc.documentElement.tagName != 'parsererror') ? doc : null; | ||
3478 | 431 | } | ||
3479 | 432 | } | ||
3480 | 433 | }; | ||
3481 | 434 | |||
3482 | 435 | /** | ||
3483 | 436 | * ajaxForm() provides a mechanism for fully automating form submission. | ||
3484 | 437 | * | ||
3485 | 438 | * The advantages of using this method instead of ajaxSubmit() are: | ||
3486 | 439 | * | ||
3487 | 440 | * 1: This method will include coordinates for <input type="image" /> elements (if the element | ||
3488 | 441 | * is used to submit the form). | ||
3489 | 442 | * 2. This method will include the submit element's name/value data (for the element that was | ||
3490 | 443 | * used to submit the form). | ||
3491 | 444 | * 3. This method binds the submit() method to the form for you. | ||
3492 | 445 | * | ||
3493 | 446 | * The options argument for ajaxForm works exactly as it does for ajaxSubmit. ajaxForm merely | ||
3494 | 447 | * passes the options argument along after properly binding events for submit elements and | ||
3495 | 448 | * the form itself. | ||
3496 | 449 | */ | ||
3497 | 450 | $.fn.ajaxForm = function(options) { | ||
3498 | 451 | // in jQuery 1.3+ we can fix mistakes with the ready state | ||
3499 | 452 | if (this.length === 0) { | ||
3500 | 453 | var o = { s: this.selector, c: this.context }; | ||
3501 | 454 | if (!$.isReady && o.s) { | ||
3502 | 455 | log('DOM not ready, queuing ajaxForm'); | ||
3503 | 456 | $(function() { | ||
3504 | 457 | $(o.s,o.c).ajaxForm(options); | ||
3505 | 458 | }); | ||
3506 | 459 | return this; | ||
3507 | 460 | } | ||
3508 | 461 | // is your DOM ready? http://docs.jquery.com/Tutorials:Introducing_$(document).ready() | ||
3509 | 462 | log('terminating; zero elements found by selector' + ($.isReady ? '' : ' (DOM not ready)')); | ||
3510 | 463 | return this; | ||
3511 | 464 | } | ||
3512 | 465 | |||
3513 | 466 | return this.ajaxFormUnbind().bind('submit.form-plugin', function(e) { | ||
3514 | 467 | if (!e.isDefaultPrevented()) { // if event has been canceled, don't proceed | ||
3515 | 468 | e.preventDefault(); | ||
3516 | 469 | $(this).ajaxSubmit(options); | ||
3517 | 470 | } | ||
3518 | 471 | }).bind('click.form-plugin', function(e) { | ||
3519 | 472 | var target = e.target; | ||
3520 | 473 | var $el = $(target); | ||
3521 | 474 | if (!($el.is(":submit,input:image"))) { | ||
3522 | 475 | // is this a child element of the submit el? (ex: a span within a button) | ||
3523 | 476 | var t = $el.closest(':submit'); | ||
3524 | 477 | if (t.length == 0) { | ||
3525 | 478 | return; | ||
3526 | 479 | } | ||
3527 | 480 | target = t[0]; | ||
3528 | 481 | } | ||
3529 | 482 | var form = this; | ||
3530 | 483 | form.clk = target; | ||
3531 | 484 | if (target.type == 'image') { | ||
3532 | 485 | if (e.offsetX != undefined) { | ||
3533 | 486 | form.clk_x = e.offsetX; | ||
3534 | 487 | form.clk_y = e.offsetY; | ||
3535 | 488 | } else if (typeof $.fn.offset == 'function') { // try to use dimensions plugin | ||
3536 | 489 | var offset = $el.offset(); | ||
3537 | 490 | form.clk_x = e.pageX - offset.left; | ||
3538 | 491 | form.clk_y = e.pageY - offset.top; | ||
3539 | 492 | } else { | ||
3540 | 493 | form.clk_x = e.pageX - target.offsetLeft; | ||
3541 | 494 | form.clk_y = e.pageY - target.offsetTop; | ||
3542 | 495 | } | ||
3543 | 496 | } | ||
3544 | 497 | // clear form vars | ||
3545 | 498 | setTimeout(function() { form.clk = form.clk_x = form.clk_y = null; }, 100); | ||
3546 | 499 | }); | ||
3547 | 500 | }; | ||
3548 | 501 | |||
3549 | 502 | // ajaxFormUnbind unbinds the event handlers that were bound by ajaxForm | ||
3550 | 503 | $.fn.ajaxFormUnbind = function() { | ||
3551 | 504 | return this.unbind('submit.form-plugin click.form-plugin'); | ||
3552 | 505 | }; | ||
3553 | 506 | |||
3554 | 507 | /** | ||
3555 | 508 | * formToArray() gathers form element data into an array of objects that can | ||
3556 | 509 | * be passed to any of the following ajax functions: $.get, $.post, or load. | ||
3557 | 510 | * Each object in the array has both a 'name' and 'value' property. An example of | ||
3558 | 511 | * an array for a simple login form might be: | ||
3559 | 512 | * | ||
3560 | 513 | * [ { name: 'username', value: 'jresig' }, { name: 'password', value: 'secret' } ] | ||
3561 | 514 | * | ||
3562 | 515 | * It is this array that is passed to pre-submit callback functions provided to the | ||
3563 | 516 | * ajaxSubmit() and ajaxForm() methods. | ||
3564 | 517 | */ | ||
3565 | 518 | $.fn.formToArray = function(semantic) { | ||
3566 | 519 | var a = []; | ||
3567 | 520 | if (this.length === 0) { | ||
3568 | 521 | return a; | ||
3569 | 522 | } | ||
3570 | 523 | |||
3571 | 524 | var form = this[0]; | ||
3572 | 525 | var els = semantic ? form.getElementsByTagName('*') : form.elements; | ||
3573 | 526 | if (!els) { | ||
3574 | 527 | return a; | ||
3575 | 528 | } | ||
3576 | 529 | |||
3577 | 530 | var i,j,n,v,el,max,jmax; | ||
3578 | 531 | for(i=0, max=els.length; i < max; i++) { | ||
3579 | 532 | el = els[i]; | ||
3580 | 533 | n = el.name; | ||
3581 | 534 | if (!n) { | ||
3582 | 535 | continue; | ||
3583 | 536 | } | ||
3584 | 537 | |||
3585 | 538 | if (semantic && form.clk && el.type == "image") { | ||
3586 | 539 | // handle image inputs on the fly when semantic == true | ||
3587 | 540 | if(!el.disabled && form.clk == el) { | ||
3588 | 541 | a.push({name: n, value: $(el).val()}); | ||
3589 | 542 | a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y}); | ||
3590 | 543 | } | ||
3591 | 544 | continue; | ||
3592 | 545 | } | ||
3593 | 546 | |||
3594 | 547 | v = $.fieldValue(el, true); | ||
3595 | 548 | if (v && v.constructor == Array) { | ||
3596 | 549 | for(j=0, jmax=v.length; j < jmax; j++) { | ||
3597 | 550 | a.push({name: n, value: v[j]}); | ||
3598 | 551 | } | ||
3599 | 552 | } | ||
3600 | 553 | else if (v !== null && typeof v != 'undefined') { | ||
3601 | 554 | a.push({name: n, value: v}); | ||
3602 | 555 | } | ||
3603 | 556 | } | ||
3604 | 557 | |||
3605 | 558 | if (!semantic && form.clk) { | ||
3606 | 559 | // input type=='image' are not found in elements array! handle it here | ||
3607 | 560 | var $input = $(form.clk), input = $input[0]; | ||
3608 | 561 | n = input.name; | ||
3609 | 562 | if (n && !input.disabled && input.type == 'image') { | ||
3610 | 563 | a.push({name: n, value: $input.val()}); | ||
3611 | 564 | a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y}); | ||
3612 | 565 | } | ||
3613 | 566 | } | ||
3614 | 567 | return a; | ||
3615 | 568 | }; | ||
3616 | 569 | |||
3617 | 570 | /** | ||
3618 | 571 | * Serializes form data into a 'submittable' string. This method will return a string | ||
3619 | 572 | * in the format: name1=value1&name2=value2 | ||
3620 | 573 | */ | ||
3621 | 574 | $.fn.formSerialize = function(semantic) { | ||
3622 | 575 | //hand off to jQuery.param for proper encoding | ||
3623 | 576 | return $.param(this.formToArray(semantic)); | ||
3624 | 577 | }; | ||
3625 | 578 | |||
3626 | 579 | /** | ||
3627 | 580 | * Serializes all field elements in the jQuery object into a query string. | ||
3628 | 581 | * This method will return a string in the format: name1=value1&name2=value2 | ||
3629 | 582 | */ | ||
3630 | 583 | $.fn.fieldSerialize = function(successful) { | ||
3631 | 584 | var a = []; | ||
3632 | 585 | this.each(function() { | ||
3633 | 586 | var n = this.name; | ||
3634 | 587 | if (!n) { | ||
3635 | 588 | return; | ||
3636 | 589 | } | ||
3637 | 590 | var v = $.fieldValue(this, successful); | ||
3638 | 591 | if (v && v.constructor == Array) { | ||
3639 | 592 | for (var i=0,max=v.length; i < max; i++) { | ||
3640 | 593 | a.push({name: n, value: v[i]}); | ||
3641 | 594 | } | ||
3642 | 595 | } | ||
3643 | 596 | else if (v !== null && typeof v != 'undefined') { | ||
3644 | 597 | a.push({name: this.name, value: v}); | ||
3645 | 598 | } | ||
3646 | 599 | }); | ||
3647 | 600 | //hand off to jQuery.param for proper encoding | ||
3648 | 601 | return $.param(a); | ||
3649 | 602 | }; | ||
3650 | 603 | |||
3651 | 604 | /** | ||
3652 | 605 | * Returns the value(s) of the element in the matched set. For example, consider the following form: | ||
3653 | 606 | * | ||
3654 | 607 | * <form><fieldset> | ||
3655 | 608 | * <input name="A" type="text" /> | ||
3656 | 609 | * <input name="A" type="text" /> | ||
3657 | 610 | * <input name="B" type="checkbox" value="B1" /> | ||
3658 | 611 | * <input name="B" type="checkbox" value="B2"/> | ||
3659 | 612 | * <input name="C" type="radio" value="C1" /> | ||
3660 | 613 | * <input name="C" type="radio" value="C2" /> | ||
3661 | 614 | * </fieldset></form> | ||
3662 | 615 | * | ||
3663 | 616 | * var v = $(':text').fieldValue(); | ||
3664 | 617 | * // if no values are entered into the text inputs | ||
3665 | 618 | * v == ['',''] | ||
3666 | 619 | * // if values entered into the text inputs are 'foo' and 'bar' | ||
3667 | 620 | * v == ['foo','bar'] | ||
3668 | 621 | * | ||
3669 | 622 | * var v = $(':checkbox').fieldValue(); | ||
3670 | 623 | * // if neither checkbox is checked | ||
3671 | 624 | * v === undefined | ||
3672 | 625 | * // if both checkboxes are checked | ||
3673 | 626 | * v == ['B1', 'B2'] | ||
3674 | 627 | * | ||
3675 | 628 | * var v = $(':radio').fieldValue(); | ||
3676 | 629 | * // if neither radio is checked | ||
3677 | 630 | * v === undefined | ||
3678 | 631 | * // if first radio is checked | ||
3679 | 632 | * v == ['C1'] | ||
3680 | 633 | * | ||
3681 | 634 | * The successful argument controls whether or not the field element must be 'successful' | ||
3682 | 635 | * (per http://www.w3.org/TR/html4/interact/forms.html#successful-controls). | ||
3683 | 636 | * The default value of the successful argument is true. If this value is false the value(s) | ||
3684 | 637 | * for each element is returned. | ||
3685 | 638 | * | ||
3686 | 639 | * Note: This method *always* returns an array. If no valid value can be determined the | ||
3687 | 640 | * array will be empty, otherwise it will contain one or more values. | ||
3688 | 641 | */ | ||
3689 | 642 | $.fn.fieldValue = function(successful) { | ||
3690 | 643 | for (var val=[], i=0, max=this.length; i < max; i++) { | ||
3691 | 644 | var el = this[i]; | ||
3692 | 645 | var v = $.fieldValue(el, successful); | ||
3693 | 646 | if (v === null || typeof v == 'undefined' || (v.constructor == Array && !v.length)) { | ||
3694 | 647 | continue; | ||
3695 | 648 | } | ||
3696 | 649 | v.constructor == Array ? $.merge(val, v) : val.push(v); | ||
3697 | 650 | } | ||
3698 | 651 | return val; | ||
3699 | 652 | }; | ||
3700 | 653 | |||
3701 | 654 | /** | ||
3702 | 655 | * Returns the value of the field element. | ||
3703 | 656 | */ | ||
3704 | 657 | $.fieldValue = function(el, successful) { | ||
3705 | 658 | var n = el.name, t = el.type, tag = el.tagName.toLowerCase(); | ||
3706 | 659 | if (successful === undefined) { | ||
3707 | 660 | successful = true; | ||
3708 | 661 | } | ||
3709 | 662 | |||
3710 | 663 | if (successful && (!n || el.disabled || t == 'reset' || t == 'button' || | ||
3711 | 664 | (t == 'checkbox' || t == 'radio') && !el.checked || | ||
3712 | 665 | (t == 'submit' || t == 'image') && el.form && el.form.clk != el || | ||
3713 | 666 | tag == 'select' && el.selectedIndex == -1)) { | ||
3714 | 667 | return null; | ||
3715 | 668 | } | ||
3716 | 669 | |||
3717 | 670 | if (tag == 'select') { | ||
3718 | 671 | var index = el.selectedIndex; | ||
3719 | 672 | if (index < 0) { | ||
3720 | 673 | return null; | ||
3721 | 674 | } | ||
3722 | 675 | var a = [], ops = el.options; | ||
3723 | 676 | var one = (t == 'select-one'); | ||
3724 | 677 | var max = (one ? index+1 : ops.length); | ||
3725 | 678 | for(var i=(one ? index : 0); i < max; i++) { | ||
3726 | 679 | var op = ops[i]; | ||
3727 | 680 | if (op.selected) { | ||
3728 | 681 | var v = op.value; | ||
3729 | 682 | if (!v) { // extra pain for IE... | ||
3730 | 683 | v = (op.attributes && op.attributes['value'] && !(op.attributes['value'].specified)) ? op.text : op.value; | ||
3731 | 684 | } | ||
3732 | 685 | if (one) { | ||
3733 | 686 | return v; | ||
3734 | 687 | } | ||
3735 | 688 | a.push(v); | ||
3736 | 689 | } | ||
3737 | 690 | } | ||
3738 | 691 | return a; | ||
3739 | 692 | } | ||
3740 | 693 | return $(el).val(); | ||
3741 | 694 | }; | ||
3742 | 695 | |||
3743 | 696 | /** | ||
3744 | 697 | * Clears the form data. Takes the following actions on the form's input fields: | ||
3745 | 698 | * - input text fields will have their 'value' property set to the empty string | ||
3746 | 699 | * - select elements will have their 'selectedIndex' property set to -1 | ||
3747 | 700 | * - checkbox and radio inputs will have their 'checked' property set to false | ||
3748 | 701 | * - inputs of type submit, button, reset, and hidden will *not* be effected | ||
3749 | 702 | * - button elements will *not* be effected | ||
3750 | 703 | */ | ||
3751 | 704 | $.fn.clearForm = function() { | ||
3752 | 705 | return this.each(function() { | ||
3753 | 706 | $('input,select,textarea', this).clearFields(); | ||
3754 | 707 | }); | ||
3755 | 708 | }; | ||
3756 | 709 | |||
3757 | 710 | /** | ||
3758 | 711 | * Clears the selected form elements. | ||
3759 | 712 | */ | ||
3760 | 713 | $.fn.clearFields = $.fn.clearInputs = function() { | ||
3761 | 714 | return this.each(function() { | ||
3762 | 715 | var t = this.type, tag = this.tagName.toLowerCase(); | ||
3763 | 716 | if (t == 'text' || t == 'password' || tag == 'textarea') { | ||
3764 | 717 | this.value = ''; | ||
3765 | 718 | } | ||
3766 | 719 | else if (t == 'checkbox' || t == 'radio') { | ||
3767 | 720 | this.checked = false; | ||
3768 | 721 | } | ||
3769 | 722 | else if (tag == 'select') { | ||
3770 | 723 | this.selectedIndex = -1; | ||
3771 | 724 | } | ||
3772 | 725 | }); | ||
3773 | 726 | }; | ||
3774 | 727 | |||
3775 | 728 | /** | ||
3776 | 729 | * Resets the form data. Causes all form elements to be reset to their original value. | ||
3777 | 730 | */ | ||
3778 | 731 | $.fn.resetForm = function() { | ||
3779 | 732 | return this.each(function() { | ||
3780 | 733 | // guard against an input with the name of 'reset' | ||
3781 | 734 | // note that IE reports the reset function as an 'object' | ||
3782 | 735 | if (typeof this.reset == 'function' || (typeof this.reset == 'object' && !this.reset.nodeType)) { | ||
3783 | 736 | this.reset(); | ||
3784 | 737 | } | ||
3785 | 738 | }); | ||
3786 | 739 | }; | ||
3787 | 740 | |||
3788 | 741 | /** | ||
3789 | 742 | * Enables or disables any matching elements. | ||
3790 | 743 | */ | ||
3791 | 744 | $.fn.enable = function(b) { | ||
3792 | 745 | if (b === undefined) { | ||
3793 | 746 | b = true; | ||
3794 | 747 | } | ||
3795 | 748 | return this.each(function() { | ||
3796 | 749 | this.disabled = !b; | ||
3797 | 750 | }); | ||
3798 | 751 | }; | ||
3799 | 752 | |||
3800 | 753 | /** | ||
3801 | 754 | * Checks/unchecks any matching checkboxes or radio buttons and | ||
3802 | 755 | * selects/deselects and matching option elements. | ||
3803 | 756 | */ | ||
3804 | 757 | $.fn.selected = function(select) { | ||
3805 | 758 | if (select === undefined) { | ||
3806 | 759 | select = true; | ||
3807 | 760 | } | ||
3808 | 761 | return this.each(function() { | ||
3809 | 762 | var t = this.type; | ||
3810 | 763 | if (t == 'checkbox' || t == 'radio') { | ||
3811 | 764 | this.checked = select; | ||
3812 | 765 | } | ||
3813 | 766 | else if (this.tagName.toLowerCase() == 'option') { | ||
3814 | 767 | var $sel = $(this).parent('select'); | ||
3815 | 768 | if (select && $sel[0] && $sel[0].type == 'select-one') { | ||
3816 | 769 | // deselect all other options | ||
3817 | 770 | $sel.find('option').selected(false); | ||
3818 | 771 | } | ||
3819 | 772 | this.selected = select; | ||
3820 | 773 | } | ||
3821 | 774 | }); | ||
3822 | 775 | }; | ||
3823 | 776 | |||
3824 | 777 | // helper fn for console logging | ||
3825 | 778 | // set $.fn.ajaxSubmit.debug to true to enable debug logging | ||
3826 | 779 | function log() { | ||
3827 | 780 | if ($.fn.ajaxSubmit.debug) { | ||
3828 | 781 | var msg = '[jquery.form] ' + Array.prototype.join.call(arguments,''); | ||
3829 | 782 | if (window.console && window.console.log) { | ||
3830 | 783 | window.console.log(msg); | ||
3831 | 784 | } | ||
3832 | 785 | else if (window.opera && window.opera.postError) { | ||
3833 | 786 | window.opera.postError(msg); | ||
3834 | 787 | } | ||
3835 | 788 | } | ||
3836 | 789 | }; | ||
3837 | 790 | |||
3838 | 791 | })(jQuery); | ||
3839 | 0 | 792 | ||
3840 | === added directory 'wp-content/plugins/contact-form-7/languages' | |||
3841 | === added file 'wp-content/plugins/contact-form-7/languages/readme.txt' | |||
3842 | --- wp-content/plugins/contact-form-7/languages/readme.txt 1970-01-01 00:00:00 +0000 | |||
3843 | +++ wp-content/plugins/contact-form-7/languages/readme.txt 2011-02-18 16:15:41 +0000 | |||
3844 | @@ -0,0 +1,9 @@ | |||
3845 | 1 | == For Translators == | ||
3846 | 2 | |||
3847 | 3 | Note: this folder contains MO files and POT file only. If you are looking for PO file, you can download it from here: | ||
3848 | 4 | |||
3849 | 5 | http://plugins.svn.wordpress.org/contact-form-7/branches/languages/ | ||
3850 | 6 | |||
3851 | 7 | If you have created your own translation, or have an update of an existing one, please send it to Takayuki Miyoshi <takayukister@gmail.com> so that I can bundle it into the next release of Contact Form 7. | ||
3852 | 8 | |||
3853 | 9 | Thank you. | ||
3854 | 0 | \ No newline at end of file | 10 | \ No newline at end of file |
3855 | 1 | 11 | ||
3856 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-af.mo' | |||
3857 | 2 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-af.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-af.mo 2011-02-18 16:15:41 +0000 differ | 12 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-af.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-af.mo 2011-02-18 16:15:41 +0000 differ |
3858 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-ar.mo' | |||
3859 | 3 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ar.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ar.mo 2011-02-18 16:15:41 +0000 differ | 13 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ar.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ar.mo 2011-02-18 16:15:41 +0000 differ |
3860 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-bg_BG.mo' | |||
3861 | 4 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-bg_BG.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-bg_BG.mo 2011-02-18 16:15:41 +0000 differ | 14 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-bg_BG.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-bg_BG.mo 2011-02-18 16:15:41 +0000 differ |
3862 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-bn_BD.mo' | |||
3863 | 5 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-bn_BD.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-bn_BD.mo 2011-02-18 16:15:41 +0000 differ | 15 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-bn_BD.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-bn_BD.mo 2011-02-18 16:15:41 +0000 differ |
3864 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-bs.mo' | |||
3865 | 6 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-bs.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-bs.mo 2011-02-18 16:15:41 +0000 differ | 16 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-bs.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-bs.mo 2011-02-18 16:15:41 +0000 differ |
3866 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-ca.mo' | |||
3867 | 7 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ca.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ca.mo 2011-02-18 16:15:41 +0000 differ | 17 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ca.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ca.mo 2011-02-18 16:15:41 +0000 differ |
3868 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-cs_CZ.mo' | |||
3869 | 8 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-cs_CZ.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-cs_CZ.mo 2011-02-18 16:15:41 +0000 differ | 18 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-cs_CZ.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-cs_CZ.mo 2011-02-18 16:15:41 +0000 differ |
3870 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-da_DK.mo' | |||
3871 | 9 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-da_DK.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-da_DK.mo 2011-02-18 16:15:41 +0000 differ | 19 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-da_DK.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-da_DK.mo 2011-02-18 16:15:41 +0000 differ |
3872 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-de_DE.mo' | |||
3873 | 10 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-de_DE.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-de_DE.mo 2011-02-18 16:15:41 +0000 differ | 20 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-de_DE.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-de_DE.mo 2011-02-18 16:15:41 +0000 differ |
3874 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-el.mo' | |||
3875 | 11 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-el.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-el.mo 2011-02-18 16:15:41 +0000 differ | 21 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-el.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-el.mo 2011-02-18 16:15:41 +0000 differ |
3876 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-es_ES.mo' | |||
3877 | 12 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-es_ES.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-es_ES.mo 2011-02-18 16:15:41 +0000 differ | 22 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-es_ES.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-es_ES.mo 2011-02-18 16:15:41 +0000 differ |
3878 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-et.mo' | |||
3879 | 13 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-et.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-et.mo 2011-02-18 16:15:41 +0000 differ | 23 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-et.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-et.mo 2011-02-18 16:15:41 +0000 differ |
3880 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-fa_IR.mo' | |||
3881 | 14 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-fa_IR.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-fa_IR.mo 2011-02-18 16:15:41 +0000 differ | 24 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-fa_IR.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-fa_IR.mo 2011-02-18 16:15:41 +0000 differ |
3882 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-fi.mo' | |||
3883 | 15 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-fi.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-fi.mo 2011-02-18 16:15:41 +0000 differ | 25 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-fi.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-fi.mo 2011-02-18 16:15:41 +0000 differ |
3884 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-fr_FR.mo' | |||
3885 | 16 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-fr_FR.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-fr_FR.mo 2011-02-18 16:15:41 +0000 differ | 26 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-fr_FR.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-fr_FR.mo 2011-02-18 16:15:41 +0000 differ |
3886 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-gl_ES.mo' | |||
3887 | 17 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-gl_ES.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-gl_ES.mo 2011-02-18 16:15:41 +0000 differ | 27 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-gl_ES.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-gl_ES.mo 2011-02-18 16:15:41 +0000 differ |
3888 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-he_IL.mo' | |||
3889 | 18 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-he_IL.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-he_IL.mo 2011-02-18 16:15:41 +0000 differ | 28 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-he_IL.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-he_IL.mo 2011-02-18 16:15:41 +0000 differ |
3890 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-hi_IN.mo' | |||
3891 | 19 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-hi_IN.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-hi_IN.mo 2011-02-18 16:15:41 +0000 differ | 29 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-hi_IN.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-hi_IN.mo 2011-02-18 16:15:41 +0000 differ |
3892 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-hr.mo' | |||
3893 | 20 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-hr.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-hr.mo 2011-02-18 16:15:41 +0000 differ | 30 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-hr.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-hr.mo 2011-02-18 16:15:41 +0000 differ |
3894 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-hu_HU.mo' | |||
3895 | 21 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-hu_HU.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-hu_HU.mo 2011-02-18 16:15:41 +0000 differ | 31 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-hu_HU.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-hu_HU.mo 2011-02-18 16:15:41 +0000 differ |
3896 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-hy_AM.mo' | |||
3897 | 22 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-hy_AM.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-hy_AM.mo 2011-02-18 16:15:41 +0000 differ | 32 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-hy_AM.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-hy_AM.mo 2011-02-18 16:15:41 +0000 differ |
3898 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-id_ID.mo' | |||
3899 | 23 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-id_ID.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-id_ID.mo 2011-02-18 16:15:41 +0000 differ | 33 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-id_ID.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-id_ID.mo 2011-02-18 16:15:41 +0000 differ |
3900 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-it_IT.mo' | |||
3901 | 24 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-it_IT.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-it_IT.mo 2011-02-18 16:15:41 +0000 differ | 34 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-it_IT.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-it_IT.mo 2011-02-18 16:15:41 +0000 differ |
3902 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-ja.mo' | |||
3903 | 25 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ja.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ja.mo 2011-02-18 16:15:41 +0000 differ | 35 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ja.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ja.mo 2011-02-18 16:15:41 +0000 differ |
3904 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-ka_GE.mo' | |||
3905 | 26 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ka_GE.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ka_GE.mo 2011-02-18 16:15:41 +0000 differ | 36 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ka_GE.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ka_GE.mo 2011-02-18 16:15:41 +0000 differ |
3906 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-ko_KR.mo' | |||
3907 | 27 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ko_KR.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ko_KR.mo 2011-02-18 16:15:41 +0000 differ | 37 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ko_KR.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ko_KR.mo 2011-02-18 16:15:41 +0000 differ |
3908 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-lt_LT.mo' | |||
3909 | 28 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-lt_LT.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-lt_LT.mo 2011-02-18 16:15:41 +0000 differ | 38 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-lt_LT.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-lt_LT.mo 2011-02-18 16:15:41 +0000 differ |
3910 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-lv.mo' | |||
3911 | 29 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-lv.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-lv.mo 2011-02-18 16:15:41 +0000 differ | 39 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-lv.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-lv.mo 2011-02-18 16:15:41 +0000 differ |
3912 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-mk_MK.mo' | |||
3913 | 30 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-mk_MK.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-mk_MK.mo 2011-02-18 16:15:41 +0000 differ | 40 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-mk_MK.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-mk_MK.mo 2011-02-18 16:15:41 +0000 differ |
3914 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-ml_IN.mo' | |||
3915 | 31 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ml_IN.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ml_IN.mo 2011-02-18 16:15:41 +0000 differ | 41 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ml_IN.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ml_IN.mo 2011-02-18 16:15:41 +0000 differ |
3916 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-ms_MY.mo' | |||
3917 | 32 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ms_MY.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ms_MY.mo 2011-02-18 16:15:41 +0000 differ | 42 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ms_MY.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ms_MY.mo 2011-02-18 16:15:41 +0000 differ |
3918 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-nb_NO.mo' | |||
3919 | 33 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-nb_NO.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-nb_NO.mo 2011-02-18 16:15:41 +0000 differ | 43 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-nb_NO.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-nb_NO.mo 2011-02-18 16:15:41 +0000 differ |
3920 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-nl_NL.mo' | |||
3921 | 34 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-nl_NL.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-nl_NL.mo 2011-02-18 16:15:41 +0000 differ | 44 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-nl_NL.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-nl_NL.mo 2011-02-18 16:15:41 +0000 differ |
3922 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-pl_PL.mo' | |||
3923 | 35 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-pl_PL.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-pl_PL.mo 2011-02-18 16:15:41 +0000 differ | 45 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-pl_PL.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-pl_PL.mo 2011-02-18 16:15:41 +0000 differ |
3924 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-pt_BR.mo' | |||
3925 | 36 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-pt_BR.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-pt_BR.mo 2011-02-18 16:15:41 +0000 differ | 46 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-pt_BR.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-pt_BR.mo 2011-02-18 16:15:41 +0000 differ |
3926 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-pt_PT.mo' | |||
3927 | 37 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-pt_PT.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-pt_PT.mo 2011-02-18 16:15:41 +0000 differ | 47 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-pt_PT.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-pt_PT.mo 2011-02-18 16:15:41 +0000 differ |
3928 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-ro_RO.mo' | |||
3929 | 38 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ro_RO.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ro_RO.mo 2011-02-18 16:15:41 +0000 differ | 48 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ro_RO.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ro_RO.mo 2011-02-18 16:15:41 +0000 differ |
3930 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-ru_RU.mo' | |||
3931 | 39 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ru_RU.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ru_RU.mo 2011-02-18 16:15:41 +0000 differ | 49 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ru_RU.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ru_RU.mo 2011-02-18 16:15:41 +0000 differ |
3932 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-sk.mo' | |||
3933 | 40 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-sk.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-sk.mo 2011-02-18 16:15:41 +0000 differ | 50 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-sk.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-sk.mo 2011-02-18 16:15:41 +0000 differ |
3934 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-sl_SI.mo' | |||
3935 | 41 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-sl_SI.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-sl_SI.mo 2011-02-18 16:15:41 +0000 differ | 51 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-sl_SI.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-sl_SI.mo 2011-02-18 16:15:41 +0000 differ |
3936 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-sq.mo' | |||
3937 | 42 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-sq.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-sq.mo 2011-02-18 16:15:41 +0000 differ | 52 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-sq.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-sq.mo 2011-02-18 16:15:41 +0000 differ |
3938 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-sr_RS.mo' | |||
3939 | 43 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-sr_RS.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-sr_RS.mo 2011-02-18 16:15:41 +0000 differ | 53 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-sr_RS.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-sr_RS.mo 2011-02-18 16:15:41 +0000 differ |
3940 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-sv_SE.mo' | |||
3941 | 44 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-sv_SE.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-sv_SE.mo 2011-02-18 16:15:41 +0000 differ | 54 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-sv_SE.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-sv_SE.mo 2011-02-18 16:15:41 +0000 differ |
3942 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-ta.mo' | |||
3943 | 45 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ta.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ta.mo 2011-02-18 16:15:41 +0000 differ | 55 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-ta.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-ta.mo 2011-02-18 16:15:41 +0000 differ |
3944 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-th.mo' | |||
3945 | 46 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-th.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-th.mo 2011-02-18 16:15:41 +0000 differ | 56 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-th.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-th.mo 2011-02-18 16:15:41 +0000 differ |
3946 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-tr_TR.mo' | |||
3947 | 47 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-tr_TR.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-tr_TR.mo 2011-02-18 16:15:41 +0000 differ | 57 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-tr_TR.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-tr_TR.mo 2011-02-18 16:15:41 +0000 differ |
3948 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-uk.mo' | |||
3949 | 48 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-uk.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-uk.mo 2011-02-18 16:15:41 +0000 differ | 58 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-uk.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-uk.mo 2011-02-18 16:15:41 +0000 differ |
3950 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-vi.mo' | |||
3951 | 49 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-vi.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-vi.mo 2011-02-18 16:15:41 +0000 differ | 59 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-vi.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-vi.mo 2011-02-18 16:15:41 +0000 differ |
3952 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-zh_CN.mo' | |||
3953 | 50 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-zh_CN.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-zh_CN.mo 2011-02-18 16:15:41 +0000 differ | 60 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-zh_CN.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-zh_CN.mo 2011-02-18 16:15:41 +0000 differ |
3954 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7-zh_TW.mo' | |||
3955 | 51 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-zh_TW.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-zh_TW.mo 2011-02-18 16:15:41 +0000 differ | 61 | Binary files wp-content/plugins/contact-form-7/languages/wpcf7-zh_TW.mo 1970-01-01 00:00:00 +0000 and wp-content/plugins/contact-form-7/languages/wpcf7-zh_TW.mo 2011-02-18 16:15:41 +0000 differ |
3956 | === added file 'wp-content/plugins/contact-form-7/languages/wpcf7.pot' | |||
3957 | --- wp-content/plugins/contact-form-7/languages/wpcf7.pot 1970-01-01 00:00:00 +0000 | |||
3958 | +++ wp-content/plugins/contact-form-7/languages/wpcf7.pot 2011-02-18 16:15:41 +0000 | |||
3959 | @@ -0,0 +1,842 @@ | |||
3960 | 1 | msgid "" | ||
3961 | 2 | msgstr "" | ||
3962 | 3 | "Project-Id-Version: Contact Form 7\n" | ||
3963 | 4 | "Report-Msgid-Bugs-To: \n" | ||
3964 | 5 | "POT-Creation-Date: 2011-01-06 09:35+0900\n" | ||
3965 | 6 | "PO-Revision-Date: 2011-01-06 09:35+0900\n" | ||
3966 | 7 | "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n" | ||
3967 | 8 | "Language-Team: \n" | ||
3968 | 9 | "MIME-Version: 1.0\n" | ||
3969 | 10 | "Content-Type: text/plain; charset=UTF-8\n" | ||
3970 | 11 | "Content-Transfer-Encoding: 8bit\n" | ||
3971 | 12 | "X-Poedit-SourceCharset: utf-8\n" | ||
3972 | 13 | "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_c\n" | ||
3973 | 14 | "X-Poedit-Basepath: ../..\n" | ||
3974 | 15 | "Plural-Forms: nplurals=1; plural=0;\n" | ||
3975 | 16 | "X-Poedit-SearchPath-0: contact-form-7\n" | ||
3976 | 17 | |||
3977 | 18 | #: contact-form-7/admin/admin.php:120 | ||
3978 | 19 | #: contact-form-7/admin/edit.php:17 | ||
3979 | 20 | #: contact-form-7/admin/edit.php:30 | ||
3980 | 21 | msgid "Contact Form 7" | ||
3981 | 22 | msgstr "" | ||
3982 | 23 | |||
3983 | 24 | #: contact-form-7/admin/admin.php:120 | ||
3984 | 25 | msgid "Contact" | ||
3985 | 26 | msgstr "" | ||
3986 | 27 | |||
3987 | 28 | #: contact-form-7/admin/admin.php:123 | ||
3988 | 29 | msgid "Edit Contact Forms" | ||
3989 | 30 | msgstr "" | ||
3990 | 31 | |||
3991 | 32 | #: contact-form-7/admin/admin.php:123 | ||
3992 | 33 | msgid "Edit" | ||
3993 | 34 | msgstr "" | ||
3994 | 35 | |||
3995 | 36 | #: contact-form-7/admin/admin.php:162 | ||
3996 | 37 | msgid "Generate Tag" | ||
3997 | 38 | msgstr "" | ||
3998 | 39 | |||
3999 | 40 | #: contact-form-7/admin/admin.php:163 | ||
4000 | 41 | msgid "Show" | ||
4001 | 42 | msgstr "" | ||
4002 | 43 | |||
4003 | 44 | #: contact-form-7/admin/admin.php:164 | ||
4004 | 45 | msgid "Hide" | ||
4005 | 46 | msgstr "" | ||
4006 | 47 | |||
4007 | 48 | #: contact-form-7/admin/admin.php:261 | ||
4008 | 49 | msgid "Contact form" | ||
4009 | 50 | msgstr "" | ||
4010 | 51 | |||
4011 | 52 | #: contact-form-7/admin/admin.php:280 | ||
4012 | 53 | msgid "Settings" | ||
4013 | 54 | msgstr "" | ||
4014 | 55 | |||
4015 | 56 | #: contact-form-7/admin/admin.php:291 | ||
4016 | 57 | msgid "http://contactform7.com/" | ||
4017 | 58 | msgstr "" | ||
4018 | 59 | |||
4019 | 60 | #: contact-form-7/admin/admin.php:292 | ||
4020 | 61 | msgid "Contactform7.com" | ||
4021 | 62 | msgstr "" | ||
4022 | 63 | |||
4023 | 64 | #: contact-form-7/admin/admin.php:293 | ||
4024 | 65 | msgid "http://contactform7.com/docs/" | ||
4025 | 66 | msgstr "" | ||
4026 | 67 | |||
4027 | 68 | #: contact-form-7/admin/admin.php:294 | ||
4028 | 69 | msgid "Docs" | ||
4029 | 70 | msgstr "" | ||
4030 | 71 | |||
4031 | 72 | #: contact-form-7/admin/admin.php:295 | ||
4032 | 73 | msgid "http://contactform7.com/faq/" | ||
4033 | 74 | msgstr "" | ||
4034 | 75 | |||
4035 | 76 | #: contact-form-7/admin/admin.php:296 | ||
4036 | 77 | msgid "FAQ" | ||
4037 | 78 | msgstr "" | ||
4038 | 79 | |||
4039 | 80 | #: contact-form-7/admin/admin.php:297 | ||
4040 | 81 | msgid "http://contactform7.com/support/" | ||
4041 | 82 | msgstr "" | ||
4042 | 83 | |||
4043 | 84 | #: contact-form-7/admin/admin.php:298 | ||
4044 | 85 | msgid "Support" | ||
4045 | 86 | msgstr "" | ||
4046 | 87 | |||
4047 | 88 | #: contact-form-7/admin/admin.php:312 | ||
4048 | 89 | msgid "Contact form created." | ||
4049 | 90 | msgstr "" | ||
4050 | 91 | |||
4051 | 92 | #: contact-form-7/admin/admin.php:315 | ||
4052 | 93 | msgid "Contact form saved." | ||
4053 | 94 | msgstr "" | ||
4054 | 95 | |||
4055 | 96 | #: contact-form-7/admin/admin.php:318 | ||
4056 | 97 | msgid "Contact form deleted." | ||
4057 | 98 | msgstr "" | ||
4058 | 99 | |||
4059 | 100 | #: contact-form-7/admin/admin.php:321 | ||
4060 | 101 | msgid "Database table created." | ||
4061 | 102 | msgstr "" | ||
4062 | 103 | |||
4063 | 104 | #: contact-form-7/admin/admin.php:324 | ||
4064 | 105 | msgid "Failed to create database table." | ||
4065 | 106 | msgstr "" | ||
4066 | 107 | |||
4067 | 108 | #: contact-form-7/admin/admin.php:358 | ||
4068 | 109 | msgid "Contact Form 7 needs your support. Please donate today." | ||
4069 | 110 | msgstr "" | ||
4070 | 111 | |||
4071 | 112 | #: contact-form-7/admin/admin.php:359 | ||
4072 | 113 | msgid "Your contribution is needed for making this plugin better." | ||
4073 | 114 | msgstr "" | ||
4074 | 115 | |||
4075 | 116 | #: contact-form-7/admin/admin.php:365 | ||
4076 | 117 | msgid "http://contactform7.com/donate/" | ||
4077 | 118 | msgstr "" | ||
4078 | 119 | |||
4079 | 120 | #: contact-form-7/admin/admin.php:365 | ||
4080 | 121 | msgid "Donate" | ||
4081 | 122 | msgstr "" | ||
4082 | 123 | |||
4083 | 124 | #: contact-form-7/admin/edit.php:9 | ||
4084 | 125 | #, php-format | ||
4085 | 126 | msgid "<strong>The database table for Contact Form 7 does not exist.</strong> You must <a href=\"%s\">create the table</a> for it to work." | ||
4086 | 127 | msgstr "" | ||
4087 | 128 | |||
4088 | 129 | #: contact-form-7/admin/edit.php:12 | ||
4089 | 130 | msgid "<strong>The database table for Contact Form 7 does not exist.</strong>" | ||
4090 | 131 | msgstr "" | ||
4091 | 132 | |||
4092 | 133 | #: contact-form-7/admin/edit.php:45 | ||
4093 | 134 | msgid "Add new" | ||
4094 | 135 | msgstr "" | ||
4095 | 136 | |||
4096 | 137 | #: contact-form-7/admin/edit.php:67 | ||
4097 | 138 | msgid "Copy this code and paste it into your post, page or text widget content." | ||
4098 | 139 | msgstr "" | ||
4099 | 140 | |||
4100 | 141 | #: contact-form-7/admin/edit.php:75 | ||
4101 | 142 | #: contact-form-7/admin/edit.php:309 | ||
4102 | 143 | msgid "Save" | ||
4103 | 144 | msgstr "" | ||
4104 | 145 | |||
4105 | 146 | #: contact-form-7/admin/edit.php:82 | ||
4106 | 147 | msgid "Copy" | ||
4107 | 148 | msgstr "" | ||
4108 | 149 | |||
4109 | 150 | #: contact-form-7/admin/edit.php:87 | ||
4110 | 151 | msgid "Delete" | ||
4111 | 152 | msgstr "" | ||
4112 | 153 | |||
4113 | 154 | #: contact-form-7/admin/edit.php:89 | ||
4114 | 155 | msgid "" | ||
4115 | 156 | "You are about to delete this contact form.\n" | ||
4116 | 157 | " 'Cancel' to stop, 'OK' to delete." | ||
4117 | 158 | msgstr "" | ||
4118 | 159 | |||
4119 | 160 | #: contact-form-7/admin/edit.php:104 | ||
4120 | 161 | msgid "Form" | ||
4121 | 162 | msgstr "" | ||
4122 | 163 | |||
4123 | 164 | #: contact-form-7/admin/edit.php:128 | ||
4124 | 165 | msgid "Mail" | ||
4125 | 166 | msgstr "" | ||
4126 | 167 | |||
4127 | 168 | #: contact-form-7/admin/edit.php:135 | ||
4128 | 169 | #: contact-form-7/admin/edit.php:202 | ||
4129 | 170 | msgid "To:" | ||
4130 | 171 | msgstr "" | ||
4131 | 172 | |||
4132 | 173 | #: contact-form-7/admin/edit.php:140 | ||
4133 | 174 | #: contact-form-7/admin/edit.php:207 | ||
4134 | 175 | msgid "From:" | ||
4135 | 176 | msgstr "" | ||
4136 | 177 | |||
4137 | 178 | #: contact-form-7/admin/edit.php:145 | ||
4138 | 179 | #: contact-form-7/admin/edit.php:212 | ||
4139 | 180 | msgid "Subject:" | ||
4140 | 181 | msgstr "" | ||
4141 | 182 | |||
4142 | 183 | #: contact-form-7/admin/edit.php:152 | ||
4143 | 184 | #: contact-form-7/admin/edit.php:219 | ||
4144 | 185 | msgid "Additional headers:" | ||
4145 | 186 | msgstr "" | ||
4146 | 187 | |||
4147 | 188 | #: contact-form-7/admin/edit.php:157 | ||
4148 | 189 | #: contact-form-7/admin/edit.php:224 | ||
4149 | 190 | msgid "File attachments:" | ||
4150 | 191 | msgstr "" | ||
4151 | 192 | |||
4152 | 193 | #: contact-form-7/admin/edit.php:165 | ||
4153 | 194 | #: contact-form-7/admin/edit.php:232 | ||
4154 | 195 | msgid "Use HTML content type" | ||
4155 | 196 | msgstr "" | ||
4156 | 197 | |||
4157 | 198 | #: contact-form-7/admin/edit.php:172 | ||
4158 | 199 | #: contact-form-7/admin/edit.php:239 | ||
4159 | 200 | #: contact-form-7/includes/functions.php:78 | ||
4160 | 201 | msgid "Message body:" | ||
4161 | 202 | msgstr "" | ||
4162 | 203 | |||
4163 | 204 | #: contact-form-7/admin/edit.php:188 | ||
4164 | 205 | msgid "Mail (2)" | ||
4165 | 206 | msgstr "" | ||
4166 | 207 | |||
4167 | 208 | #: contact-form-7/admin/edit.php:194 | ||
4168 | 209 | msgid "Use mail (2)" | ||
4169 | 210 | msgstr "" | ||
4170 | 211 | |||
4171 | 212 | #: contact-form-7/admin/edit.php:255 | ||
4172 | 213 | msgid "Messages" | ||
4173 | 214 | msgstr "" | ||
4174 | 215 | |||
4175 | 216 | #: contact-form-7/admin/edit.php:285 | ||
4176 | 217 | msgid "Additional Settings" | ||
4177 | 218 | msgstr "" | ||
4178 | 219 | |||
4179 | 220 | #: contact-form-7/admin/edit.php:333 | ||
4180 | 221 | #, php-format | ||
4181 | 222 | msgid "Use the default language (%s)" | ||
4182 | 223 | msgstr "" | ||
4183 | 224 | |||
4184 | 225 | #: contact-form-7/admin/edit.php:334 | ||
4185 | 226 | #: contact-form-7/admin/edit.php:347 | ||
4186 | 227 | msgid "Add New" | ||
4187 | 228 | msgstr "" | ||
4188 | 229 | |||
4189 | 230 | #: contact-form-7/admin/edit.php:337 | ||
4190 | 231 | msgid "Or" | ||
4191 | 232 | msgstr "" | ||
4192 | 233 | |||
4193 | 234 | #: contact-form-7/admin/edit.php:342 | ||
4194 | 235 | msgid "(select language)" | ||
4195 | 236 | msgstr "" | ||
4196 | 237 | |||
4197 | 238 | #: contact-form-7/includes/classes.php:596 | ||
4198 | 239 | msgid "Untitled" | ||
4199 | 240 | msgstr "" | ||
4200 | 241 | |||
4201 | 242 | #: contact-form-7/includes/functions.php:6 | ||
4202 | 243 | msgid "Sender's message was sent successfully" | ||
4203 | 244 | msgstr "" | ||
4204 | 245 | |||
4205 | 246 | #: contact-form-7/includes/functions.php:7 | ||
4206 | 247 | msgid "Your message was sent successfully. Thanks." | ||
4207 | 248 | msgstr "" | ||
4208 | 249 | |||
4209 | 250 | #: contact-form-7/includes/functions.php:11 | ||
4210 | 251 | msgid "Sender's message was failed to send" | ||
4211 | 252 | msgstr "" | ||
4212 | 253 | |||
4213 | 254 | #: contact-form-7/includes/functions.php:12 | ||
4214 | 255 | #: contact-form-7/includes/functions.php:17 | ||
4215 | 256 | msgid "Failed to send your message. Please try later or contact administrator by other way." | ||
4216 | 257 | msgstr "" | ||
4217 | 258 | |||
4218 | 259 | #: contact-form-7/includes/functions.php:16 | ||
4219 | 260 | msgid "Akismet judged the sending activity as spamming" | ||
4220 | 261 | msgstr "" | ||
4221 | 262 | |||
4222 | 263 | #: contact-form-7/includes/functions.php:21 | ||
4223 | 264 | msgid "Validation errors occurred" | ||
4224 | 265 | msgstr "" | ||
4225 | 266 | |||
4226 | 267 | #: contact-form-7/includes/functions.php:22 | ||
4227 | 268 | msgid "Validation errors occurred. Please confirm the fields and submit it again." | ||
4228 | 269 | msgstr "" | ||
4229 | 270 | |||
4230 | 271 | #: contact-form-7/includes/functions.php:26 | ||
4231 | 272 | msgid "There is a field of term that sender is needed to accept" | ||
4232 | 273 | msgstr "" | ||
4233 | 274 | |||
4234 | 275 | #: contact-form-7/includes/functions.php:27 | ||
4235 | 276 | msgid "Please accept the terms to proceed." | ||
4236 | 277 | msgstr "" | ||
4237 | 278 | |||
4238 | 279 | #: contact-form-7/includes/functions.php:31 | ||
4239 | 280 | msgid "Email address that sender entered is invalid" | ||
4240 | 281 | msgstr "" | ||
4241 | 282 | |||
4242 | 283 | #: contact-form-7/includes/functions.php:32 | ||
4243 | 284 | msgid "Email address seems invalid." | ||
4244 | 285 | msgstr "" | ||
4245 | 286 | |||
4246 | 287 | #: contact-form-7/includes/functions.php:36 | ||
4247 | 288 | msgid "There is a field that sender is needed to fill in" | ||
4248 | 289 | msgstr "" | ||
4249 | 290 | |||
4250 | 291 | #: contact-form-7/includes/functions.php:37 | ||
4251 | 292 | msgid "Please fill the required field." | ||
4252 | 293 | msgstr "" | ||
4253 | 294 | |||
4254 | 295 | #: contact-form-7/includes/functions.php:46 | ||
4255 | 296 | msgid "Your Name" | ||
4256 | 297 | msgstr "" | ||
4257 | 298 | |||
4258 | 299 | #: contact-form-7/includes/functions.php:46 | ||
4259 | 300 | #: contact-form-7/includes/functions.php:48 | ||
4260 | 301 | msgid "(required)" | ||
4261 | 302 | msgstr "" | ||
4262 | 303 | |||
4263 | 304 | #: contact-form-7/includes/functions.php:48 | ||
4264 | 305 | msgid "Your Email" | ||
4265 | 306 | msgstr "" | ||
4266 | 307 | |||
4267 | 308 | #: contact-form-7/includes/functions.php:50 | ||
4268 | 309 | msgid "Subject" | ||
4269 | 310 | msgstr "" | ||
4270 | 311 | |||
4271 | 312 | #: contact-form-7/includes/functions.php:52 | ||
4272 | 313 | msgid "Your Message" | ||
4273 | 314 | msgstr "" | ||
4274 | 315 | |||
4275 | 316 | #: contact-form-7/includes/functions.php:54 | ||
4276 | 317 | msgid "Send" | ||
4277 | 318 | msgstr "" | ||
4278 | 319 | |||
4279 | 320 | #: contact-form-7/includes/functions.php:62 | ||
4280 | 321 | #, php-format | ||
4281 | 322 | msgid "From: %s" | ||
4282 | 323 | msgstr "" | ||
4283 | 324 | |||
4284 | 325 | #: contact-form-7/includes/functions.php:63 | ||
4285 | 326 | #, php-format | ||
4286 | 327 | msgid "Subject: %s" | ||
4287 | 328 | msgstr "" | ||
4288 | 329 | |||
4289 | 330 | #: contact-form-7/includes/functions.php:64 | ||
4290 | 331 | msgid "Message Body:" | ||
4291 | 332 | msgstr "" | ||
4292 | 333 | |||
4293 | 334 | #: contact-form-7/includes/functions.php:65 | ||
4294 | 335 | #: contact-form-7/includes/functions.php:79 | ||
4295 | 336 | #, php-format | ||
4296 | 337 | msgid "This mail is sent via contact form on %1$s %2$s" | ||
4297 | 338 | msgstr "" | ||
4298 | 339 | |||
4299 | 340 | #: contact-form-7/includes/functions.php:169 | ||
4300 | 341 | msgid "Afrikaans" | ||
4301 | 342 | msgstr "" | ||
4302 | 343 | |||
4303 | 344 | #: contact-form-7/includes/functions.php:170 | ||
4304 | 345 | msgid "Albanian" | ||
4305 | 346 | msgstr "" | ||
4306 | 347 | |||
4307 | 348 | #: contact-form-7/includes/functions.php:171 | ||
4308 | 349 | msgid "Arabic" | ||
4309 | 350 | msgstr "" | ||
4310 | 351 | |||
4311 | 352 | #: contact-form-7/includes/functions.php:172 | ||
4312 | 353 | msgid "Armenian" | ||
4313 | 354 | msgstr "" | ||
4314 | 355 | |||
4315 | 356 | #: contact-form-7/includes/functions.php:173 | ||
4316 | 357 | msgid "Bangla" | ||
4317 | 358 | msgstr "" | ||
4318 | 359 | |||
4319 | 360 | #: contact-form-7/includes/functions.php:174 | ||
4320 | 361 | msgid "Bosnian" | ||
4321 | 362 | msgstr "" | ||
4322 | 363 | |||
4323 | 364 | #: contact-form-7/includes/functions.php:175 | ||
4324 | 365 | msgid "Brazilian Portuguese" | ||
4325 | 366 | msgstr "" | ||
4326 | 367 | |||
4327 | 368 | #: contact-form-7/includes/functions.php:176 | ||
4328 | 369 | msgid "Bulgarian" | ||
4329 | 370 | msgstr "" | ||
4330 | 371 | |||
4331 | 372 | #: contact-form-7/includes/functions.php:177 | ||
4332 | 373 | msgid "Catalan" | ||
4333 | 374 | msgstr "" | ||
4334 | 375 | |||
4335 | 376 | #: contact-form-7/includes/functions.php:178 | ||
4336 | 377 | msgid "Chinese (Simplified)" | ||
4337 | 378 | msgstr "" | ||
4338 | 379 | |||
4339 | 380 | #: contact-form-7/includes/functions.php:179 | ||
4340 | 381 | msgid "Chinese (Traditional)" | ||
4341 | 382 | msgstr "" | ||
4342 | 383 | |||
4343 | 384 | #: contact-form-7/includes/functions.php:180 | ||
4344 | 385 | msgid "Croatian" | ||
4345 | 386 | msgstr "" | ||
4346 | 387 | |||
4347 | 388 | #: contact-form-7/includes/functions.php:181 | ||
4348 | 389 | msgid "Czech" | ||
4349 | 390 | msgstr "" | ||
4350 | 391 | |||
4351 | 392 | #: contact-form-7/includes/functions.php:182 | ||
4352 | 393 | msgid "Danish" | ||
4353 | 394 | msgstr "" | ||
4354 | 395 | |||
4355 | 396 | #: contact-form-7/includes/functions.php:183 | ||
4356 | 397 | msgid "Dutch" | ||
4357 | 398 | msgstr "" | ||
4358 | 399 | |||
4359 | 400 | #: contact-form-7/includes/functions.php:184 | ||
4360 | 401 | msgid "English" | ||
4361 | 402 | msgstr "" | ||
4362 | 403 | |||
4363 | 404 | #: contact-form-7/includes/functions.php:185 | ||
4364 | 405 | msgid "Estonian" | ||
4365 | 406 | msgstr "" | ||
4366 | 407 | |||
4367 | 408 | #: contact-form-7/includes/functions.php:186 | ||
4368 | 409 | msgid "Finnish" | ||
4369 | 410 | msgstr "" | ||
4370 | 411 | |||
4371 | 412 | #: contact-form-7/includes/functions.php:187 | ||
4372 | 413 | msgid "French" | ||
4373 | 414 | msgstr "" | ||
4374 | 415 | |||
4375 | 416 | #: contact-form-7/includes/functions.php:188 | ||
4376 | 417 | msgid "Galician" | ||
4377 | 418 | msgstr "" | ||
4378 | 419 | |||
4379 | 420 | #: contact-form-7/includes/functions.php:189 | ||
4380 | 421 | msgid "Georgian" | ||
4381 | 422 | msgstr "" | ||
4382 | 423 | |||
4383 | 424 | #: contact-form-7/includes/functions.php:190 | ||
4384 | 425 | msgid "German" | ||
4385 | 426 | msgstr "" | ||
4386 | 427 | |||
4387 | 428 | #: contact-form-7/includes/functions.php:191 | ||
4388 | 429 | msgid "Greek" | ||
4389 | 430 | msgstr "" | ||
4390 | 431 | |||
4391 | 432 | #: contact-form-7/includes/functions.php:192 | ||
4392 | 433 | msgid "Hebrew" | ||
4393 | 434 | msgstr "" | ||
4394 | 435 | |||
4395 | 436 | #: contact-form-7/includes/functions.php:193 | ||
4396 | 437 | msgid "Hindi" | ||
4397 | 438 | msgstr "" | ||
4398 | 439 | |||
4399 | 440 | #: contact-form-7/includes/functions.php:194 | ||
4400 | 441 | msgid "Hungarian" | ||
4401 | 442 | msgstr "" | ||
4402 | 443 | |||
4403 | 444 | #: contact-form-7/includes/functions.php:195 | ||
4404 | 445 | msgid "Indonesian" | ||
4405 | 446 | msgstr "" | ||
4406 | 447 | |||
4407 | 448 | #: contact-form-7/includes/functions.php:196 | ||
4408 | 449 | msgid "Italian" | ||
4409 | 450 | msgstr "" | ||
4410 | 451 | |||
4411 | 452 | #: contact-form-7/includes/functions.php:197 | ||
4412 | 453 | msgid "Japanese" | ||
4413 | 454 | msgstr "" | ||
4414 | 455 | |||
4415 | 456 | #: contact-form-7/includes/functions.php:198 | ||
4416 | 457 | msgid "Korean" | ||
4417 | 458 | msgstr "" | ||
4418 | 459 | |||
4419 | 460 | #: contact-form-7/includes/functions.php:199 | ||
4420 | 461 | msgid "Latvian" | ||
4421 | 462 | msgstr "" | ||
4422 | 463 | |||
4423 | 464 | #: contact-form-7/includes/functions.php:200 | ||
4424 | 465 | msgid "Lithuanian" | ||
4425 | 466 | msgstr "" | ||
4426 | 467 | |||
4427 | 468 | #: contact-form-7/includes/functions.php:201 | ||
4428 | 469 | msgid "Macedonian" | ||
4429 | 470 | msgstr "" | ||
4430 | 471 | |||
4431 | 472 | #: contact-form-7/includes/functions.php:202 | ||
4432 | 473 | msgid "Malay" | ||
4433 | 474 | msgstr "" | ||
4434 | 475 | |||
4435 | 476 | #: contact-form-7/includes/functions.php:203 | ||
4436 | 477 | msgid "Malayalam" | ||
4437 | 478 | msgstr "" | ||
4438 | 479 | |||
4439 | 480 | #: contact-form-7/includes/functions.php:204 | ||
4440 | 481 | msgid "Norwegian" | ||
4441 | 482 | msgstr "" | ||
4442 | 483 | |||
4443 | 484 | #: contact-form-7/includes/functions.php:205 | ||
4444 | 485 | msgid "Persian" | ||
4445 | 486 | msgstr "" | ||
4446 | 487 | |||
4447 | 488 | #: contact-form-7/includes/functions.php:206 | ||
4448 | 489 | msgid "Polish" | ||
4449 | 490 | msgstr "" | ||
4450 | 491 | |||
4451 | 492 | #: contact-form-7/includes/functions.php:207 | ||
4452 | 493 | msgid "Portuguese" | ||
4453 | 494 | msgstr "" | ||
4454 | 495 | |||
4455 | 496 | #: contact-form-7/includes/functions.php:208 | ||
4456 | 497 | msgid "Russian" | ||
4457 | 498 | msgstr "" | ||
4458 | 499 | |||
4459 | 500 | #: contact-form-7/includes/functions.php:209 | ||
4460 | 501 | msgid "Romanian" | ||
4461 | 502 | msgstr "" | ||
4462 | 503 | |||
4463 | 504 | #: contact-form-7/includes/functions.php:210 | ||
4464 | 505 | msgid "Serbian" | ||
4465 | 506 | msgstr "" | ||
4466 | 507 | |||
4467 | 508 | #: contact-form-7/includes/functions.php:211 | ||
4468 | 509 | msgid "Slovak" | ||
4469 | 510 | msgstr "" | ||
4470 | 511 | |||
4471 | 512 | #: contact-form-7/includes/functions.php:212 | ||
4472 | 513 | msgid "Slovene" | ||
4473 | 514 | msgstr "" | ||
4474 | 515 | |||
4475 | 516 | #: contact-form-7/includes/functions.php:213 | ||
4476 | 517 | msgid "Spanish" | ||
4477 | 518 | msgstr "" | ||
4478 | 519 | |||
4479 | 520 | #: contact-form-7/includes/functions.php:214 | ||
4480 | 521 | msgid "Swedish" | ||
4481 | 522 | msgstr "" | ||
4482 | 523 | |||
4483 | 524 | #: contact-form-7/includes/functions.php:215 | ||
4484 | 525 | msgid "Tamil" | ||
4485 | 526 | msgstr "" | ||
4486 | 527 | |||
4487 | 528 | #: contact-form-7/includes/functions.php:216 | ||
4488 | 529 | msgid "Thai" | ||
4489 | 530 | msgstr "" | ||
4490 | 531 | |||
4491 | 532 | #: contact-form-7/includes/functions.php:217 | ||
4492 | 533 | msgid "Turkish" | ||
4493 | 534 | msgstr "" | ||
4494 | 535 | |||
4495 | 536 | #: contact-form-7/includes/functions.php:218 | ||
4496 | 537 | msgid "Ukrainian" | ||
4497 | 538 | msgstr "" | ||
4498 | 539 | |||
4499 | 540 | #: contact-form-7/includes/functions.php:219 | ||
4500 | 541 | msgid "Vietnamese" | ||
4501 | 542 | msgstr "" | ||
4502 | 543 | |||
4503 | 544 | #: contact-form-7/modules/acceptance.php:150 | ||
4504 | 545 | msgid "Acceptance" | ||
4505 | 546 | msgstr "" | ||
4506 | 547 | |||
4507 | 548 | #: contact-form-7/modules/acceptance.php:159 | ||
4508 | 549 | #: contact-form-7/modules/captcha.php:202 | ||
4509 | 550 | #: contact-form-7/modules/checkbox.php:208 | ||
4510 | 551 | #: contact-form-7/modules/file.php:244 | ||
4511 | 552 | msgid "Name" | ||
4512 | 553 | msgstr "" | ||
4513 | 554 | |||
4514 | 555 | #: contact-form-7/modules/acceptance.php:164 | ||
4515 | 556 | #: contact-form-7/modules/acceptance.php:167 | ||
4516 | 557 | #: contact-form-7/modules/captcha.php:209 | ||
4517 | 558 | #: contact-form-7/modules/captcha.php:212 | ||
4518 | 559 | #: contact-form-7/modules/captcha.php:217 | ||
4519 | 560 | #: contact-form-7/modules/captcha.php:220 | ||
4520 | 561 | #: contact-form-7/modules/captcha.php:224 | ||
4521 | 562 | #: contact-form-7/modules/captcha.php:235 | ||
4522 | 563 | #: contact-form-7/modules/captcha.php:238 | ||
4523 | 564 | #: contact-form-7/modules/captcha.php:243 | ||
4524 | 565 | #: contact-form-7/modules/captcha.php:246 | ||
4525 | 566 | #: contact-form-7/modules/checkbox.php:213 | ||
4526 | 567 | #: contact-form-7/modules/checkbox.php:216 | ||
4527 | 568 | #: contact-form-7/modules/file.php:249 | ||
4528 | 569 | #: contact-form-7/modules/file.php:252 | ||
4529 | 570 | #: contact-form-7/modules/file.php:257 | ||
4530 | 571 | #: contact-form-7/modules/file.php:260 | ||
4531 | 572 | msgid "optional" | ||
4532 | 573 | msgstr "" | ||
4533 | 574 | |||
4534 | 575 | #: contact-form-7/modules/acceptance.php:173 | ||
4535 | 576 | msgid "Make this checkbox checked by default?" | ||
4536 | 577 | msgstr "" | ||
4537 | 578 | |||
4538 | 579 | #: contact-form-7/modules/acceptance.php:174 | ||
4539 | 580 | msgid "Make this checkbox work inversely?" | ||
4540 | 581 | msgstr "" | ||
4541 | 582 | |||
4542 | 583 | #: contact-form-7/modules/acceptance.php:175 | ||
4543 | 584 | msgid "* That means visitor who accepts the term unchecks it." | ||
4544 | 585 | msgstr "" | ||
4545 | 586 | |||
4546 | 587 | #: contact-form-7/modules/acceptance.php:180 | ||
4547 | 588 | #: contact-form-7/modules/captcha.php:251 | ||
4548 | 589 | #: contact-form-7/modules/checkbox.php:236 | ||
4549 | 590 | #: contact-form-7/modules/file.php:265 | ||
4550 | 591 | msgid "Copy this code and paste it into the form left." | ||
4551 | 592 | msgstr "" | ||
4552 | 593 | |||
4553 | 594 | #: contact-form-7/modules/captcha.php:66 | ||
4554 | 595 | msgid "To use CAPTCHA, you need <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a> plugin installed." | ||
4555 | 596 | msgstr "" | ||
4556 | 597 | |||
4557 | 598 | #: contact-form-7/modules/captcha.php:177 | ||
4558 | 599 | msgid "The code that sender entered does not match the CAPTCHA" | ||
4559 | 600 | msgstr "" | ||
4560 | 601 | |||
4561 | 602 | #: contact-form-7/modules/captcha.php:178 | ||
4562 | 603 | msgid "Your entered code is incorrect." | ||
4563 | 604 | msgstr "" | ||
4564 | 605 | |||
4565 | 606 | #: contact-form-7/modules/captcha.php:188 | ||
4566 | 607 | msgid "CAPTCHA" | ||
4567 | 608 | msgstr "" | ||
4568 | 609 | |||
4569 | 610 | #: contact-form-7/modules/captcha.php:199 | ||
4570 | 611 | msgid "Note: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed." | ||
4571 | 612 | msgstr "" | ||
4572 | 613 | |||
4573 | 614 | #: contact-form-7/modules/captcha.php:206 | ||
4574 | 615 | msgid "Image settings" | ||
4575 | 616 | msgstr "" | ||
4576 | 617 | |||
4577 | 618 | #: contact-form-7/modules/captcha.php:217 | ||
4578 | 619 | msgid "Foreground color" | ||
4579 | 620 | msgstr "" | ||
4580 | 621 | |||
4581 | 622 | #: contact-form-7/modules/captcha.php:220 | ||
4582 | 623 | msgid "Background color" | ||
4583 | 624 | msgstr "" | ||
4584 | 625 | |||
4585 | 626 | #: contact-form-7/modules/captcha.php:224 | ||
4586 | 627 | msgid "Image size" | ||
4587 | 628 | msgstr "" | ||
4588 | 629 | |||
4589 | 630 | #: contact-form-7/modules/captcha.php:225 | ||
4590 | 631 | msgid "Small" | ||
4591 | 632 | msgstr "" | ||
4592 | 633 | |||
4593 | 634 | #: contact-form-7/modules/captcha.php:226 | ||
4594 | 635 | msgid "Medium" | ||
4595 | 636 | msgstr "" | ||
4596 | 637 | |||
4597 | 638 | #: contact-form-7/modules/captcha.php:227 | ||
4598 | 639 | msgid "Large" | ||
4599 | 640 | msgstr "" | ||
4600 | 641 | |||
4601 | 642 | #: contact-form-7/modules/captcha.php:232 | ||
4602 | 643 | msgid "Input field settings" | ||
4603 | 644 | msgstr "" | ||
4604 | 645 | |||
4605 | 646 | #: contact-form-7/modules/captcha.php:252 | ||
4606 | 647 | msgid "For image" | ||
4607 | 648 | msgstr "" | ||
4608 | 649 | |||
4609 | 650 | #: contact-form-7/modules/captcha.php:254 | ||
4610 | 651 | msgid "For input field" | ||
4611 | 652 | msgstr "" | ||
4612 | 653 | |||
4613 | 654 | #: contact-form-7/modules/captcha.php:284 | ||
4614 | 655 | #, php-format | ||
4615 | 656 | msgid "This contact form contains CAPTCHA fields, but the temporary folder for the files (%s) does not exist or is not writable. You can create the folder or change its permission manually." | ||
4616 | 657 | msgstr "" | ||
4617 | 658 | |||
4618 | 659 | #: contact-form-7/modules/captcha.php:290 | ||
4619 | 660 | msgid "This contact form contains CAPTCHA fields, but the necessary libraries (GD and FreeType) are not available on your server." | ||
4620 | 661 | msgstr "" | ||
4621 | 662 | |||
4622 | 663 | #: contact-form-7/modules/checkbox.php:181 | ||
4623 | 664 | msgid "Checkboxes" | ||
4624 | 665 | msgstr "" | ||
4625 | 666 | |||
4626 | 667 | #: contact-form-7/modules/checkbox.php:184 | ||
4627 | 668 | msgid "Radio buttons" | ||
4628 | 669 | msgstr "" | ||
4629 | 670 | |||
4630 | 671 | #: contact-form-7/modules/checkbox.php:205 | ||
4631 | 672 | #: contact-form-7/modules/file.php:243 | ||
4632 | 673 | msgid "Required field?" | ||
4633 | 674 | msgstr "" | ||
4634 | 675 | |||
4635 | 676 | #: contact-form-7/modules/checkbox.php:221 | ||
4636 | 677 | msgid "Choices" | ||
4637 | 678 | msgstr "" | ||
4638 | 679 | |||
4639 | 680 | #: contact-form-7/modules/checkbox.php:223 | ||
4640 | 681 | msgid "* One choice per line." | ||
4641 | 682 | msgstr "" | ||
4642 | 683 | |||
4643 | 684 | #: contact-form-7/modules/checkbox.php:227 | ||
4644 | 685 | msgid "Put a label first, a checkbox last?" | ||
4645 | 686 | msgstr "" | ||
4646 | 687 | |||
4647 | 688 | #: contact-form-7/modules/checkbox.php:228 | ||
4648 | 689 | msgid "Wrap each item with <label> tag?" | ||
4649 | 690 | msgstr "" | ||
4650 | 691 | |||
4651 | 692 | #: contact-form-7/modules/checkbox.php:230 | ||
4652 | 693 | msgid "Make checkboxes exclusive?" | ||
4653 | 694 | msgstr "" | ||
4654 | 695 | |||
4655 | 696 | #: contact-form-7/modules/checkbox.php:238 | ||
4656 | 697 | msgid "And, put this code into the Mail fields below." | ||
4657 | 698 | msgstr "" | ||
4658 | 699 | |||
4659 | 700 | #: contact-form-7/modules/file.php:207 | ||
4660 | 701 | msgid "Uploading a file fails for any reason" | ||
4661 | 702 | msgstr "" | ||
4662 | 703 | |||
4663 | 704 | #: contact-form-7/modules/file.php:208 | ||
4664 | 705 | msgid "Failed to upload file." | ||
4665 | 706 | msgstr "" | ||
4666 | 707 | |||
4667 | 708 | #: contact-form-7/modules/file.php:212 | ||
4668 | 709 | msgid "Uploaded file is not allowed file type" | ||
4669 | 710 | msgstr "" | ||
4670 | 711 | |||
4671 | 712 | #: contact-form-7/modules/file.php:213 | ||
4672 | 713 | msgid "This file type is not allowed." | ||
4673 | 714 | msgstr "" | ||
4674 | 715 | |||
4675 | 716 | #: contact-form-7/modules/file.php:217 | ||
4676 | 717 | msgid "Uploaded file is too large" | ||
4677 | 718 | msgstr "" | ||
4678 | 719 | |||
4679 | 720 | #: contact-form-7/modules/file.php:218 | ||
4680 | 721 | msgid "This file is too large." | ||
4681 | 722 | msgstr "" | ||
4682 | 723 | |||
4683 | 724 | #: contact-form-7/modules/file.php:222 | ||
4684 | 725 | msgid "Uploading a file fails for PHP error" | ||
4685 | 726 | msgstr "" | ||
4686 | 727 | |||
4687 | 728 | #: contact-form-7/modules/file.php:223 | ||
4688 | 729 | msgid "Failed to upload file. Error occurred." | ||
4689 | 730 | msgstr "" | ||
4690 | 731 | |||
4691 | 732 | #: contact-form-7/modules/file.php:234 | ||
4692 | 733 | msgid "File upload" | ||
4693 | 734 | msgstr "" | ||
4694 | 735 | |||
4695 | 736 | #: contact-form-7/modules/file.php:257 | ||
4696 | 737 | msgid "File size limit" | ||
4697 | 738 | msgstr "" | ||
4698 | 739 | |||
4699 | 740 | #: contact-form-7/modules/file.php:257 | ||
4700 | 741 | msgid "bytes" | ||
4701 | 742 | msgstr "" | ||
4702 | 743 | |||
4703 | 744 | #: contact-form-7/modules/file.php:260 | ||
4704 | 745 | msgid "Acceptable file types" | ||
4705 | 746 | msgstr "" | ||
4706 | 747 | |||
4707 | 748 | #: contact-form-7/modules/file.php:267 | ||
4708 | 749 | msgid "And, put this code into the File Attachments field below." | ||
4709 | 750 | msgstr "" | ||
4710 | 751 | |||
4711 | 752 | #: contact-form-7/modules/file.php:292 | ||
4712 | 753 | #, php-format | ||
4713 | 754 | msgid "This contact form contains file uploading fields, but the temporary folder for the files (%s) does not exist or is not writable. You can create the folder or change its permission manually." | ||
4714 | 755 | msgstr "" | ||
4715 | 756 | |||
4716 | 757 | #: contact-form-7/modules/icl.php:74 | ||
4717 | 758 | msgid "This contact form contains [icl] tags, but they are obsolete and no longer functioning on this version of Contact Form 7. <a href=\"http://contactform7.com/2009/12/25/contact-form-in-your-language/#Creating_contact_form_in_different_languages\" target=\"_blank\">There is a simpler way for creating contact forms of other languages</a> and you are recommended to use it." | ||
4718 | 759 | msgstr "" | ||
4719 | 760 | |||
4720 | 761 | #: contact-form-7/modules/quiz.php:160 | ||
4721 | 762 | msgid "Sender doesn't enter the correct answer to the quiz" | ||
4722 | 763 | msgstr "" | ||
4723 | 764 | |||
4724 | 765 | #: contact-form-7/modules/quiz.php:161 | ||
4725 | 766 | msgid "Your answer is not correct." | ||
4726 | 767 | msgstr "" | ||
4727 | 768 | |||
4728 | 769 | #: contact-form-7/modules/quiz.php:171 | ||
4729 | 770 | msgid "Quiz" | ||
4730 | 771 | msgstr "" | ||
4731 | 772 | |||
4732 | 773 | #: contact-form-7/modules/quiz.php:201 | ||
4733 | 774 | msgid "Quizzes" | ||
4734 | 775 | msgstr "" | ||
4735 | 776 | |||
4736 | 777 | #: contact-form-7/modules/quiz.php:203 | ||
4737 | 778 | msgid "* quiz|answer (e.g. 1+1=?|2)" | ||
4738 | 779 | msgstr "" | ||
4739 | 780 | |||
4740 | 781 | #: contact-form-7/modules/select.php:150 | ||
4741 | 782 | msgid "Drop-down menu" | ||
4742 | 783 | msgstr "" | ||
4743 | 784 | |||
4744 | 785 | #: contact-form-7/modules/select.php:179 | ||
4745 | 786 | msgid "Allow multiple selections?" | ||
4746 | 787 | msgstr "" | ||
4747 | 788 | |||
4748 | 789 | #: contact-form-7/modules/select.php:180 | ||
4749 | 790 | msgid "Insert a blank item as the first option?" | ||
4750 | 791 | msgstr "" | ||
4751 | 792 | |||
4752 | 793 | #: contact-form-7/modules/submit.php:54 | ||
4753 | 794 | msgid "Sending ..." | ||
4754 | 795 | msgstr "" | ||
4755 | 796 | |||
4756 | 797 | #: contact-form-7/modules/submit.php:66 | ||
4757 | 798 | msgid "Submit button" | ||
4758 | 799 | msgstr "" | ||
4759 | 800 | |||
4760 | 801 | #: contact-form-7/modules/submit.php:84 | ||
4761 | 802 | msgid "Label" | ||
4762 | 803 | msgstr "" | ||
4763 | 804 | |||
4764 | 805 | #: contact-form-7/modules/text.php:138 | ||
4765 | 806 | msgid "Text field" | ||
4766 | 807 | msgstr "" | ||
4767 | 808 | |||
4768 | 809 | #: contact-form-7/modules/text.php:141 | ||
4769 | 810 | msgid "Email field" | ||
4770 | 811 | msgstr "" | ||
4771 | 812 | |||
4772 | 813 | #: contact-form-7/modules/text.php:183 | ||
4773 | 814 | msgid "Akismet" | ||
4774 | 815 | msgstr "" | ||
4775 | 816 | |||
4776 | 817 | #: contact-form-7/modules/text.php:185 | ||
4777 | 818 | msgid "This field requires author's name" | ||
4778 | 819 | msgstr "" | ||
4779 | 820 | |||
4780 | 821 | #: contact-form-7/modules/text.php:186 | ||
4781 | 822 | msgid "This field requires author's URL" | ||
4782 | 823 | msgstr "" | ||
4783 | 824 | |||
4784 | 825 | #: contact-form-7/modules/text.php:188 | ||
4785 | 826 | msgid "This field requires author's email address" | ||
4786 | 827 | msgstr "" | ||
4787 | 828 | |||
4788 | 829 | #: contact-form-7/modules/text.php:194 | ||
4789 | 830 | #: contact-form-7/modules/textarea.php:156 | ||
4790 | 831 | msgid "Default value" | ||
4791 | 832 | msgstr "" | ||
4792 | 833 | |||
4793 | 834 | #: contact-form-7/modules/text.php:197 | ||
4794 | 835 | #: contact-form-7/modules/textarea.php:159 | ||
4795 | 836 | msgid "Use this text as watermark?" | ||
4796 | 837 | msgstr "" | ||
4797 | 838 | |||
4798 | 839 | #: contact-form-7/modules/textarea.php:125 | ||
4799 | 840 | msgid "Text area" | ||
4800 | 841 | msgstr "" | ||
4801 | 842 | |||
4802 | 0 | 843 | ||
4803 | === added file 'wp-content/plugins/contact-form-7/license.txt' | |||
4804 | --- wp-content/plugins/contact-form-7/license.txt 1970-01-01 00:00:00 +0000 | |||
4805 | +++ wp-content/plugins/contact-form-7/license.txt 2011-02-18 16:15:41 +0000 | |||
4806 | @@ -0,0 +1,339 @@ | |||
4807 | 1 | GNU GENERAL PUBLIC LICENSE | ||
4808 | 2 | Version 2, June 1991 | ||
4809 | 3 | |||
4810 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., | ||
4811 | 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
4812 | 6 | Everyone is permitted to copy and distribute verbatim copies | ||
4813 | 7 | of this license document, but changing it is not allowed. | ||
4814 | 8 | |||
4815 | 9 | Preamble | ||
4816 | 10 | |||
4817 | 11 | The licenses for most software are designed to take away your | ||
4818 | 12 | freedom to share and change it. By contrast, the GNU General Public | ||
4819 | 13 | License is intended to guarantee your freedom to share and change free | ||
4820 | 14 | software--to make sure the software is free for all its users. This | ||
4821 | 15 | General Public License applies to most of the Free Software | ||
4822 | 16 | Foundation's software and to any other program whose authors commit to | ||
4823 | 17 | using it. (Some other Free Software Foundation software is covered by | ||
4824 | 18 | the GNU Lesser General Public License instead.) You can apply it to | ||
4825 | 19 | your programs, too. | ||
4826 | 20 | |||
4827 | 21 | When we speak of free software, we are referring to freedom, not | ||
4828 | 22 | price. Our General Public Licenses are designed to make sure that you | ||
4829 | 23 | have the freedom to distribute copies of free software (and charge for | ||
4830 | 24 | this service if you wish), that you receive source code or can get it | ||
4831 | 25 | if you want it, that you can change the software or use pieces of it | ||
4832 | 26 | in new free programs; and that you know you can do these things. | ||
4833 | 27 | |||
4834 | 28 | To protect your rights, we need to make restrictions that forbid | ||
4835 | 29 | anyone to deny you these rights or to ask you to surrender the rights. | ||
4836 | 30 | These restrictions translate to certain responsibilities for you if you | ||
4837 | 31 | distribute copies of the software, or if you modify it. | ||
4838 | 32 | |||
4839 | 33 | For example, if you distribute copies of such a program, whether | ||
4840 | 34 | gratis or for a fee, you must give the recipients all the rights that | ||
4841 | 35 | you have. You must make sure that they, too, receive or can get the | ||
4842 | 36 | source code. And you must show them these terms so they know their | ||
4843 | 37 | rights. | ||
4844 | 38 | |||
4845 | 39 | We protect your rights with two steps: (1) copyright the software, and | ||
4846 | 40 | (2) offer you this license which gives you legal permission to copy, | ||
4847 | 41 | distribute and/or modify the software. | ||
4848 | 42 | |||
4849 | 43 | Also, for each author's protection and ours, we want to make certain | ||
4850 | 44 | that everyone understands that there is no warranty for this free | ||
4851 | 45 | software. If the software is modified by someone else and passed on, we | ||
4852 | 46 | want its recipients to know that what they have is not the original, so | ||
4853 | 47 | that any problems introduced by others will not reflect on the original | ||
4854 | 48 | authors' reputations. | ||
4855 | 49 | |||
4856 | 50 | Finally, any free program is threatened constantly by software | ||
4857 | 51 | patents. We wish to avoid the danger that redistributors of a free | ||
4858 | 52 | program will individually obtain patent licenses, in effect making the | ||
4859 | 53 | program proprietary. To prevent this, we have made it clear that any | ||
4860 | 54 | patent must be licensed for everyone's free use or not licensed at all. | ||
4861 | 55 | |||
4862 | 56 | The precise terms and conditions for copying, distribution and | ||
4863 | 57 | modification follow. | ||
4864 | 58 | |||
4865 | 59 | GNU GENERAL PUBLIC LICENSE | ||
4866 | 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
4867 | 61 | |||
4868 | 62 | 0. This License applies to any program or other work which contains | ||
4869 | 63 | a notice placed by the copyright holder saying it may be distributed | ||
4870 | 64 | under the terms of this General Public License. The "Program", below, | ||
4871 | 65 | refers to any such program or work, and a "work based on the Program" | ||
4872 | 66 | means either the Program or any derivative work under copyright law: | ||
4873 | 67 | that is to say, a work containing the Program or a portion of it, | ||
4874 | 68 | either verbatim or with modifications and/or translated into another | ||
4875 | 69 | language. (Hereinafter, translation is included without limitation in | ||
4876 | 70 | the term "modification".) Each licensee is addressed as "you". | ||
4877 | 71 | |||
4878 | 72 | Activities other than copying, distribution and modification are not | ||
4879 | 73 | covered by this License; they are outside its scope. The act of | ||
4880 | 74 | running the Program is not restricted, and the output from the Program | ||
4881 | 75 | is covered only if its contents constitute a work based on the | ||
4882 | 76 | Program (independent of having been made by running the Program). | ||
4883 | 77 | Whether that is true depends on what the Program does. | ||
4884 | 78 | |||
4885 | 79 | 1. You may copy and distribute verbatim copies of the Program's | ||
4886 | 80 | source code as you receive it, in any medium, provided that you | ||
4887 | 81 | conspicuously and appropriately publish on each copy an appropriate | ||
4888 | 82 | copyright notice and disclaimer of warranty; keep intact all the | ||
4889 | 83 | notices that refer to this License and to the absence of any warranty; | ||
4890 | 84 | and give any other recipients of the Program a copy of this License | ||
4891 | 85 | along with the Program. | ||
4892 | 86 | |||
4893 | 87 | You may charge a fee for the physical act of transferring a copy, and | ||
4894 | 88 | you may at your option offer warranty protection in exchange for a fee. | ||
4895 | 89 | |||
4896 | 90 | 2. You may modify your copy or copies of the Program or any portion | ||
4897 | 91 | of it, thus forming a work based on the Program, and copy and | ||
4898 | 92 | distribute such modifications or work under the terms of Section 1 | ||
4899 | 93 | above, provided that you also meet all of these conditions: | ||
4900 | 94 | |||
4901 | 95 | a) You must cause the modified files to carry prominent notices | ||
4902 | 96 | stating that you changed the files and the date of any change. | ||
4903 | 97 | |||
4904 | 98 | b) You must cause any work that you distribute or publish, that in | ||
4905 | 99 | whole or in part contains or is derived from the Program or any | ||
4906 | 100 | part thereof, to be licensed as a whole at no charge to all third | ||
4907 | 101 | parties under the terms of this License. | ||
4908 | 102 | |||
4909 | 103 | c) If the modified program normally reads commands interactively | ||
4910 | 104 | when run, you must cause it, when started running for such | ||
4911 | 105 | interactive use in the most ordinary way, to print or display an | ||
4912 | 106 | announcement including an appropriate copyright notice and a | ||
4913 | 107 | notice that there is no warranty (or else, saying that you provide | ||
4914 | 108 | a warranty) and that users may redistribute the program under | ||
4915 | 109 | these conditions, and telling the user how to view a copy of this | ||
4916 | 110 | License. (Exception: if the Program itself is interactive but | ||
4917 | 111 | does not normally print such an announcement, your work based on | ||
4918 | 112 | the Program is not required to print an announcement.) | ||
4919 | 113 | |||
4920 | 114 | These requirements apply to the modified work as a whole. If | ||
4921 | 115 | identifiable sections of that work are not derived from the Program, | ||
4922 | 116 | and can be reasonably considered independent and separate works in | ||
4923 | 117 | themselves, then this License, and its terms, do not apply to those | ||
4924 | 118 | sections when you distribute them as separate works. But when you | ||
4925 | 119 | distribute the same sections as part of a whole which is a work based | ||
4926 | 120 | on the Program, the distribution of the whole must be on the terms of | ||
4927 | 121 | this License, whose permissions for other licensees extend to the | ||
4928 | 122 | entire whole, and thus to each and every part regardless of who wrote it. | ||
4929 | 123 | |||
4930 | 124 | Thus, it is not the intent of this section to claim rights or contest | ||
4931 | 125 | your rights to work written entirely by you; rather, the intent is to | ||
4932 | 126 | exercise the right to control the distribution of derivative or | ||
4933 | 127 | collective works based on the Program. | ||
4934 | 128 | |||
4935 | 129 | In addition, mere aggregation of another work not based on the Program | ||
4936 | 130 | with the Program (or with a work based on the Program) on a volume of | ||
4937 | 131 | a storage or distribution medium does not bring the other work under | ||
4938 | 132 | the scope of this License. | ||
4939 | 133 | |||
4940 | 134 | 3. You may copy and distribute the Program (or a work based on it, | ||
4941 | 135 | under Section 2) in object code or executable form under the terms of | ||
4942 | 136 | Sections 1 and 2 above provided that you also do one of the following: | ||
4943 | 137 | |||
4944 | 138 | a) Accompany it with the complete corresponding machine-readable | ||
4945 | 139 | source code, which must be distributed under the terms of Sections | ||
4946 | 140 | 1 and 2 above on a medium customarily used for software interchange; or, | ||
4947 | 141 | |||
4948 | 142 | b) Accompany it with a written offer, valid for at least three | ||
4949 | 143 | years, to give any third party, for a charge no more than your | ||
4950 | 144 | cost of physically performing source distribution, a complete | ||
4951 | 145 | machine-readable copy of the corresponding source code, to be | ||
4952 | 146 | distributed under the terms of Sections 1 and 2 above on a medium | ||
4953 | 147 | customarily used for software interchange; or, | ||
4954 | 148 | |||
4955 | 149 | c) Accompany it with the information you received as to the offer | ||
4956 | 150 | to distribute corresponding source code. (This alternative is | ||
4957 | 151 | allowed only for noncommercial distribution and only if you | ||
4958 | 152 | received the program in object code or executable form with such | ||
4959 | 153 | an offer, in accord with Subsection b above.) | ||
4960 | 154 | |||
4961 | 155 | The source code for a work means the preferred form of the work for | ||
4962 | 156 | making modifications to it. For an executable work, complete source | ||
4963 | 157 | code means all the source code for all modules it contains, plus any | ||
4964 | 158 | associated interface definition files, plus the scripts used to | ||
4965 | 159 | control compilation and installation of the executable. However, as a | ||
4966 | 160 | special exception, the source code distributed need not include | ||
4967 | 161 | anything that is normally distributed (in either source or binary | ||
4968 | 162 | form) with the major components (compiler, kernel, and so on) of the | ||
4969 | 163 | operating system on which the executable runs, unless that component | ||
4970 | 164 | itself accompanies the executable. | ||
4971 | 165 | |||
4972 | 166 | If distribution of executable or object code is made by offering | ||
4973 | 167 | access to copy from a designated place, then offering equivalent | ||
4974 | 168 | access to copy the source code from the same place counts as | ||
4975 | 169 | distribution of the source code, even though third parties are not | ||
4976 | 170 | compelled to copy the source along with the object code. | ||
4977 | 171 | |||
4978 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program | ||
4979 | 173 | except as expressly provided under this License. Any attempt | ||
4980 | 174 | otherwise to copy, modify, sublicense or distribute the Program is | ||
4981 | 175 | void, and will automatically terminate your rights under this License. | ||
4982 | 176 | However, parties who have received copies, or rights, from you under | ||
4983 | 177 | this License will not have their licenses terminated so long as such | ||
4984 | 178 | parties remain in full compliance. | ||
4985 | 179 | |||
4986 | 180 | 5. You are not required to accept this License, since you have not | ||
4987 | 181 | signed it. However, nothing else grants you permission to modify or | ||
4988 | 182 | distribute the Program or its derivative works. These actions are | ||
4989 | 183 | prohibited by law if you do not accept this License. Therefore, by | ||
4990 | 184 | modifying or distributing the Program (or any work based on the | ||
4991 | 185 | Program), you indicate your acceptance of this License to do so, and | ||
4992 | 186 | all its terms and conditions for copying, distributing or modifying | ||
4993 | 187 | the Program or works based on it. | ||
4994 | 188 | |||
4995 | 189 | 6. Each time you redistribute the Program (or any work based on the | ||
4996 | 190 | Program), the recipient automatically receives a license from the | ||
4997 | 191 | original licensor to copy, distribute or modify the Program subject to | ||
4998 | 192 | these terms and conditions. You may not impose any further | ||
4999 | 193 | restrictions on the recipients' exercise of the rights granted herein. | ||
5000 | 194 | You are not responsible for enforcing compliance by third parties to |
The diff has been truncated for viewing.