Skip to content
Permalink
Browse files Browse the repository at this point in the history
V.3.22 - Japanese language file is added to the plugin. Cross Site Re…
…quest Forgery bug was fixed.

git-svn-id: https://plugins.svn.wordpress.org/contact-form-plugin/trunk@576692 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
bestwebsoft committed Jul 24, 2012
1 parent 3ad1628 commit 8398d96
Show file tree
Hide file tree
Showing 42 changed files with 896 additions and 536 deletions.
9 changes: 6 additions & 3 deletions contact_form.php
Expand Up @@ -4,7 +4,7 @@
Plugin URI: http://bestwebsoft.com/plugin/
Description: Plugin for Contact Form.
Author: BestWebSoft
Version: 3.21
Version: 3.22
Author URI: http://bestwebsoft.com/
License: GPLv2 or later
*/
Expand Down Expand Up @@ -160,7 +160,7 @@ function cntctfrm_settings_page() {

$error = "";
// Save data for settings page
if( isset( $_REQUEST['cntctfrm_form_submit'] ) ) {
if( isset( $_REQUEST['cntctfrm_form_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'cntctfrm_nonce_name' ) ) {
$cntctfrm_options_submit['cntctfrm_user_email'] = $_REQUEST['cntctfrm_user_email'];
$cntctfrm_options_submit['cntctfrm_custom_email'] = $_REQUEST['cntctfrm_custom_email'];
$cntctfrm_options_submit['cntctfrm_select_email'] = $_REQUEST['cntctfrm_select_email'];
Expand Down Expand Up @@ -383,6 +383,7 @@ function cntctfrm_settings_page() {
<p class="submit">
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
</p>
<?php wp_nonce_field( plugin_basename(__FILE__), 'cntctfrm_nonce_name' ); ?>
</form>
</div>
<?php
Expand All @@ -401,6 +402,8 @@ function cntctfrm_display_form() {
$name = isset( $_REQUEST['cntctfrm_contact_name'] ) ? $_REQUEST['cntctfrm_contact_name'] : "";
$email = isset( $_REQUEST['cntctfrm_contact_email'] ) ? $_REQUEST['cntctfrm_contact_email'] : "";
$subject = isset( $_REQUEST['cntctfrm_contact_subject'] ) ? $_REQUEST['cntctfrm_contact_subject'] : "";
$name = strip_tags( $name );
$subject = strip_tags( $subject );
$message = isset( $_REQUEST['cntctfrm_contact_message'] ) ? $_REQUEST['cntctfrm_contact_message'] : "";
$send_copy = isset( $_REQUEST['cntctfrm_contact_send_copy'] ) ? $_REQUEST['cntctfrm_contact_send_copy'] : "";
// If it is good
Expand Down Expand Up @@ -484,7 +487,7 @@ function cntctfrm_display_form() {
</div>';
}

if(has_filter('cntctfrm_display_captcha')) {
if( has_filter( 'cntctfrm_display_captcha' ) ) {
$content .= apply_filters( 'cntctfrm_display_captcha' , $error_message );
}

Expand Down
Binary file modified languages/contact_form-ar.mo
Binary file not shown.
56 changes: 28 additions & 28 deletions languages/contact_form-ar.po
Expand Up @@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: contact_form\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-07-10 10:48+0300\n"
"PO-Revision-Date: 2012-07-10 10:49+0300\n"
"POT-Creation-Date: 2012-07-24 19:10+0300\n"
"PO-Revision-Date: 2012-07-24 19:10+0300\n"
"Last-Translator: zos <zos@bestwebsoft.com>\n"
"Language-Team: Hammad Alshammari (ABU HATIM) www.abuhatim.net <al3zz.com@gmail.com>\n"
"Language: \n"
Expand All @@ -28,8 +28,8 @@ msgid "Read more"
msgstr "اقرأ المزيد"

#: contact_form.php:78
#: contact_form.php:802
#: contact_form.php:811
#: contact_form.php:805
#: contact_form.php:814
msgid "Settings"
msgstr "إعدادات"

Expand Down Expand Up @@ -206,22 +206,22 @@ msgid "Display additional info in email"
msgstr "عرض معلومات اضافية في البريد الالكتروني"

#: contact_form.php:354
#: contact_form.php:673
#: contact_form.php:676
msgid "Sent from (ip address)"
msgstr "ارسلت من (عنوان IP)"

#: contact_form.php:355
#: contact_form.php:678
#: contact_form.php:681
msgid "Date/Time"
msgstr "الوقت/التاريخ"

#: contact_form.php:356
#: contact_form.php:683
#: contact_form.php:686
msgid "Coming from (referer)"
msgstr "Coming from (referer)"

#: contact_form.php:357
#: contact_form.php:688
#: contact_form.php:691
msgid "Using (user agent)"
msgstr "باستخدام (وكيل المستخدم)"

Expand Down Expand Up @@ -254,83 +254,83 @@ msgstr ""
msgid "Save Changes"
msgstr "حفظ التغييرات"

#: contact_form.php:417
#: contact_form.php:420
msgid "Sorry, your e-mail could not be delivered."
msgstr "عذراً, لم نستطيع تسليم رسالتك."

#: contact_form.php:475
#: contact_form.php:478
msgid "You can attach files of the following types"
msgstr "يمكنك إرفاق الملفات من الأنواع التالية"

#: contact_form.php:483
#: contact_form.php:486
msgid "Send me a copy"
msgstr "أرسل لي نسخة"

#: contact_form.php:493
#: contact_form.php:496
msgid "Submit"
msgstr "تقدم"

#: contact_form.php:532
#: contact_form.php:535
msgid "Your name is required."
msgstr "مطلوب اسمك."

#: contact_form.php:533
#: contact_form.php:536
msgid "A proper e-mail address is required."
msgstr "مطلوب بريد الكتروني صحيح."

#: contact_form.php:534
#: contact_form.php:537
msgid "Subject text is required."
msgstr "مطلوب نص الموضوع."

#: contact_form.php:535
#: contact_form.php:538
msgid "Message text is required."
msgstr "مطلوب نص الرسالة."

#: contact_form.php:536
#: contact_form.php:539
msgid "Please make corrections below and try again."
msgstr "يرجى إجراء التصحيحات أدناه وحاول مرة أخرى."

#: contact_form.php:567
#: contact_form.php:570
msgid "Attachment is broken."
msgstr "المرفق تعطل."

#: contact_form.php:580
#: contact_form.php:583
msgid "Please complete the CAPTCHA."
msgstr "يرجى استكمال رمز التحقق."

#: contact_form.php:696
#: contact_form.php:699
msgid "Contact from"
msgstr "اتصل من"

#: contact_form.php:701
#: contact_form.php:704
msgid "Name"
msgstr "الأسم"

#: contact_form.php:704
#: contact_form.php:707
msgid "Email"
msgstr "البريد الألكتروني"

#: contact_form.php:707
#: contact_form.php:710
msgid "Subject"
msgstr "موضوع الرسالة"

#: contact_form.php:710
#: contact_form.php:713
msgid "Message"
msgstr "الرسالة"

#: contact_form.php:713
#: contact_form.php:716
msgid "Site"
msgstr "الموقع"

#: contact_form.php:758
#: contact_form.php:761
msgid "If you can see this MIME than your client doesn't accept MIME types!"
msgstr "إذا يمكنك أن ترى هذه MIME من العميل الخاص بك لا يقبل أنواع MIME!"

#: contact_form.php:812
#: contact_form.php:815
msgid "FAQ"
msgstr "أسئلة وأجوبة"

#: contact_form.php:813
#: contact_form.php:816
msgid "Support"
msgstr "دعم"

Expand Down
Binary file modified languages/contact_form-bg_BG.mo
Binary file not shown.
56 changes: 28 additions & 28 deletions languages/contact_form-bg_BG.po
Expand Up @@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: contact_form\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-07-10 10:49+0300\n"
"PO-Revision-Date: 2012-07-10 10:49+0300\n"
"POT-Creation-Date: 2012-07-24 19:10+0300\n"
"PO-Revision-Date: 2012-07-24 19:10+0300\n"
"Last-Translator: zos <zos@bestwebsoft.com>\n"
"Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
"Language: \n"
Expand All @@ -28,8 +28,8 @@ msgid "Read more"
msgstr "Прочетете повече"

#: contact_form.php:78
#: contact_form.php:802
#: contact_form.php:811
#: contact_form.php:805
#: contact_form.php:814
msgid "Settings"
msgstr "Настройки"

Expand Down Expand Up @@ -206,22 +206,22 @@ msgid "Display additional info in email"
msgstr ""

#: contact_form.php:354
#: contact_form.php:673
#: contact_form.php:676
msgid "Sent from (ip address)"
msgstr "Изпратено от (ip адрес)"

#: contact_form.php:355
#: contact_form.php:678
#: contact_form.php:681
msgid "Date/Time"
msgstr "Дата/Час"

#: contact_form.php:356
#: contact_form.php:683
#: contact_form.php:686
msgid "Coming from (referer)"
msgstr "Идва от (referer)"

#: contact_form.php:357
#: contact_form.php:688
#: contact_form.php:691
msgid "Using (user agent)"
msgstr "Използвайки (user agent)"

Expand Down Expand Up @@ -254,83 +254,83 @@ msgstr ""
msgid "Save Changes"
msgstr "Запис на промените"

#: contact_form.php:417
#: contact_form.php:420
msgid "Sorry, your e-mail could not be delivered."
msgstr "Съжаляваме, Вашето съобщение не може да бъде изпратено."

#: contact_form.php:475
#: contact_form.php:478
msgid "You can attach files of the following types"
msgstr "Можете да прикачвате файлове от следните типове"

#: contact_form.php:483
#: contact_form.php:486
msgid "Send me a copy"
msgstr "Изпрати ми копие"

#: contact_form.php:493
#: contact_form.php:496
msgid "Submit"
msgstr "Изпрати"

#: contact_form.php:532
#: contact_form.php:535
msgid "Your name is required."
msgstr "Вашето име е задължително."

#: contact_form.php:533
#: contact_form.php:536
msgid "A proper e-mail address is required."
msgstr "Правилният Email адрес е задължителен."

#: contact_form.php:534
#: contact_form.php:537
msgid "Subject text is required."
msgstr "Заглавието е задължитено."

#: contact_form.php:535
#: contact_form.php:538
msgid "Message text is required."
msgstr "Текстовото съобщение е задължително."

#: contact_form.php:536
#: contact_form.php:539
msgid "Please make corrections below and try again."
msgstr "Моля направете необходимите корекции по-долу и опитайте отново."

#: contact_form.php:567
#: contact_form.php:570
msgid "Attachment is broken."
msgstr "Прикаченият файл не се поддържа"

#: contact_form.php:580
#: contact_form.php:583
msgid "Please complete the CAPTCHA."
msgstr "Моля попълнете CAPTCHA."

#: contact_form.php:696
#: contact_form.php:699
msgid "Contact from"
msgstr "Форма за контакт"

#: contact_form.php:701
#: contact_form.php:704
msgid "Name"
msgstr "Име"

#: contact_form.php:704
#: contact_form.php:707
msgid "Email"
msgstr "Email"

#: contact_form.php:707
#: contact_form.php:710
msgid "Subject"
msgstr "Относно"

#: contact_form.php:710
#: contact_form.php:713
msgid "Message"
msgstr "Съобщение"

#: contact_form.php:713
#: contact_form.php:716
msgid "Site"
msgstr "Сайт"

#: contact_form.php:758
#: contact_form.php:761
msgid "If you can see this MIME than your client doesn't accept MIME types!"
msgstr "Ако видиждате това значи, че вашият MIME клиент за електронна поща не поддържа MIME тип!"

#: contact_form.php:812
#: contact_form.php:815
msgid "FAQ"
msgstr "FAQ"

#: contact_form.php:813
#: contact_form.php:816
msgid "Support"
msgstr "Поддръжка"

Expand Down
Binary file modified languages/contact_form-da_DK.mo
Binary file not shown.

0 comments on commit 8398d96

Please sign in to comment.