{"id":95,"date":"2011-11-11T06:01:53","date_gmt":"2011-11-11T06:01:53","guid":{"rendered":"http:\/\/info.ffteixeira.net\/2011\/11\/11\/fastsecurecontactform-with-qtranslate\/"},"modified":"2011-11-11T06:01:53","modified_gmt":"2011-11-11T06:01:53","slug":"fastsecurecontactform-with-qtranslate","status":"publish","type":"post","link":"https:\/\/blog.ffteixeira.net\/?p=95","title":{"rendered":"FastSecureContactForm with qTranslate"},"content":{"rendered":"<p><code><code>FastSecureContactForm working with qTranslate<\/code><\/code><\/p>\n<p><code><code>In \/wp-content\/plugins\/si-contact-form\/si-contact-form.php near line 224 you should have<br \/>\n<\/code><\/code><em><code><code><\/code><\/code><\/em><\/p>\n<p><!--more--><br \/>\n<code><code>FastSecureContactForm working with qTranslate<\/code><\/code><\/p>\n<p><code><code>In \/wp-content\/plugins\/si-contact-form\/si-contact-form.php near line 224 you should have<br \/>\n<\/code><\/code><em><code><code><\/code><\/code><\/em><\/p>\n<p><!--more-->\/\/ set the type of request (SSL or not)<br \/>\nif ( getenv(&#8216;HTTPS&#8217;) == &#8216;on&#8217; ) {<br \/>\n$form_action_url = &#8216;https:\/\/&#8217;.$_SERVER[&#8216;HTTP_HOST&#8217;].$_SERVER[&#8216;REQUEST_URI&#8217;];<br \/>\n} else {<br \/>\n$form_action_url = &#8216;http:\/\/&#8217;.$_SERVER[&#8216;HTTP_HOST&#8217;].$_SERVER[&#8216;REQUEST_URI&#8217;];<br \/>\n}<\/p>\n<p><code>and replace 'em with<br \/>\n<\/code><\/p>\n<p><em><code>if(get_locale() == 'en_US') {<br \/>\nif ( getenv('HTTPS') == 'on' ) {<br \/>\n$form_action_url = 'https:\/\/'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];<br \/>\n} else {<br \/>\n$form_action_url = 'http:\/\/'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];<br \/>\n}<br \/>\n} else {<br \/>\nif ( getenv('HTTPS') == 'on' ) {<br \/>\n$form_action_url = 'https:\/\/'.$_SERVER['HTTP_HOST'].'\/fr\/'.$_SERVER['REQUEST_URI'];<br \/>\n} else {<br \/>\n$form_action_url = 'http:\/\/'.$_SERVER['HTTP_HOST'].'\/fr\/'.$_SERVER['REQUEST_URI'];<br \/>\n}<br \/>\n}<\/code><\/em><\/p>\n<p><a title=\"Credits\" href=\"http:\/\/wordpress.org\/support\/topic\/plugin-fast-secure-contact-form-doesnt-work-with-qtranslate\" target=\"_blank\" rel=\"noopener noreferrer\">Credits<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FastSecureContactForm working with qTranslate In \/wp-content\/plugins\/si-contact-form\/si-contact-form.php near line 224 you should have<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=95"}],"version-history":[{"count":0,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}