email successfully sent[:de]Vielen Dank
e-Mail erfolgreich versandt', 'mlcf');
add_option('mlcf_error_message', '[:en]Please fill in the required fields[:de]Bitte füllen Sie alle notwendigen Felder aus', 'mlcf');
add_option('mlcf_error_wrong_mail', '[:en]Please check your email[:de]Bitte überprüfen Sie ihre e-Mail Adresse', 'mlcf');
add_option('mlcf_field_name', '[:en]Name * [:de]Name * ', 'mlcf');
add_option('mlcf_field_email', '[:en]Your e-mail * [:de] e-Mail * ', 'mlcf');
add_option('mlcf_field_subject', '[:en]Subject[:de]Betreff', 'mlcf');
add_option('mlcf_field_www', '[:en]Your website [:de]Ihre Website ', 'mlcf');
add_option('mlcf_field_message', '[:en]Your message:[:de]Nachricht:', 'mlcf');
add_option('mlcf_field_required', '[:en]* Please fill in the required fields[:de]* Bitte füllen Sie alle benötigten Felder aus', 'mlcf');
add_option('mlcf_field_submit', '[:en]Submit[:de]Senden', 'mlcf');
add_option('mlcf_recaptcha_enabled', false, 'mlcf');
add_option('mlcf_recaptcha_private', '6Le-tcQSAAAAAF0zyxYijsjUOL3AnSJaLmN-IEw-', 'mlcf');
add_option('mlcf_recaptcha_public', '6Le-tcQSAAAAADDyIpTh9wP8to_4HHeSMkp6KNTN', 'mlcf');
add_option('mlcf_recaptcha_error_msg', ''."[:en]The reCAPTCHA wasn't entered correctly. Please try again[:de]".''."Das Captcha stimmt nicht.", 'mlcf');
/*check form submission and update options*/
if ('process' == $_POST['stage'])
{
update_option('mlcf_email', $_POST['mlcf_email']);
update_option('mlcf_subject', $_POST['mlcf_subject']);
update_option('mlcf_email_from', $_POST['mlcf_email_from']);
update_option('mlcf_success_message', $_POST['mlcf_success_message']);
update_option('mlcf_error_message', $_POST['mlcf_error_message']);
update_option('mlcf_error_wrong_mail', $_POST['mlcf_error_wrong_mail']);
update_option('mlcf_field_name', $_POST['mlcf_field_name']);
update_option('mlcf_field_email', $_POST['mlcf_field_email']);
update_option('mlcf_field_subject', $_POST['mlcf_field_subject']);
update_option('mlcf_field_www', $_POST['mlcf_field_www']);
update_option('mlcf_field_message', $_POST['mlcf_field_message']);
update_option('mlcf_field_required', $_POST['mlcf_field_required']);
update_option('mlcf_field_submit', $_POST['mlcf_field_submit']);
update_option('mlcf_recaptcha_enabled', $_POST['mlcf_recaptcha_enabled']);
update_option('mlcf_recaptcha_private', $_POST['mlcf_recaptcha_private']);
update_option('mlcf_recaptcha_public', $_POST['mlcf_recaptcha_public']);
update_option('mlcf_recaptcha_error_msg', $_POST['mlcf_recaptcha_error_msg']);
update_option('mlcf_delete_options', $_POST['mlcf_delete_options']);
}
/*Get options for form fields*/
$mlcf_email = stripslashes(get_option('mlcf_email'));
$mlcf_subject = stripslashes(get_option('mlcf_subject'));
$mlcf_email_from = stripslashes(get_option('mlcf_email_from'));
$mlcf_success_message = stripslashes(get_option('mlcf_success_message'));
$mlcf_error_message = stripslashes(get_option('mlcf_error_message'));
$mlcf_error_wrong_mail = stripslashes(get_option('mlcf_error_wrong_mail'));
$mlcf_field_name = stripslashes(get_option('mlcf_field_name'));
$mlcf_field_email = stripslashes(get_option('mlcf_field_email'));
$mlcf_field_subject = stripslashes(get_option('mlcf_field_subject'));
$mlcf_field_www = stripslashes(get_option('mlcf_field_www'));
$mlcf_field_message = stripslashes(get_option('mlcf_field_message'));
$mlcf_field_required = stripslashes(get_option('mlcf_field_required'));
$mlcf_field_submit = stripslashes(get_option('mlcf_field_submit'));
if ( get_option('mlcf_recaptcha_enabled') ){
$mlcf_recaptcha_enabled = ' value="true" checked="checked"';
$mlcf_recaptcha_class_enabled ='mlcf_recaptcha_class_enabled';
$mlcf_recaptcha_error_msg =get_option('mlcf_recaptcha_error_msg');
}else{
$mlcf_recaptcha_enabled = 'value="false"';
$mlcf_recaptcha_input_enabled = ' disabled="disabled" ';
$mlcf_recaptcha_class_enabled = 'mlcf_recaptcha_class_enabled disabled';
}
$mlcf_recaptcha_private = stripslashes(get_option('mlcf_recaptcha_private'));
$mlcf_recaptcha_public = stripslashes(get_option('mlcf_recaptcha_public'));
$mlcf_delete_options = get_option('mlcf_delete_options') ? ' value="true" checked="checked"' : 'value="false"';
?>