<?php

$recipient = "email@email.com";  // Your email address (Ideally, a domain-specific email address; e.g., info@your-domain.com) In case of problems: https://www.kontaktformular.com/en/faq-script-php-contact-form.html#not-receive-email

$yourname = "Your name";  // Your name

$cfg['Data_privacy_policy'] = 0;  //  0 = Without data privacy policy   1 = With data privacy policy

$dataprivacypolicy = "data-protection.php";  //  Path to data privacy notice. You can replace "data-protection.php" with a link or URL (must begin with "http://www.")
    
$cfg['Loading_Spinner'] = 1;  //  0 = Without a loading spinner in the send button    1 = With loading spinner in the send button
    
$cfg['Success_message'] = 0;  //  0 = Without success message (redirect to file thankyou.php)     1 = With success message (no redirect to file thankyou.php)
    
$thankyou = "thankyou.php";  // If success message was disabled by a '0': Path to the thank you page. You can replace "thankyou.php" with a link or URL. (must begin with "http://www."!) The corresponding thank you page can also be displayed outside of an iframe using the following script: https://www.kontaktformular.com/en/embed-form-script-php-contact-form.html#outsideiframe

$cfg['Do_not_apply_the_iFrame_when_accessing_the_thankyou.php_file'] = 1;  //  0 = Thank you page (thankyou.php) is displayed within an iFrame   1 = Thank you page (thankyou.php) is displayed outside of an iFrame


    

// Spam protection - settings // (A well-thought-out IP blocking is also possible. See: https://www.kontaktformular.com/en/contact-form-spam-protection-captcha-bad-word-filter-time-out-honeypot.html#IP_blocking)

$cfg['Security_code'] = 0;  //  0 = Without security code   1 = With security code

$cfg['Security_question'] = 0;  //  0 = Without security question   1 = With security question

$cfg['Honeypot'] = 0;  //  0 = Without honeypot   1 = With honeypot 
	
$cfg['Time-out'] = 0;  //  Minimum number of seconds between displaying and sending the form	 0 = No time-out
	
$cfg['Click_check'] = 0;  //  0 = Without click check   1 = With click check

$cfg['Links'] = 100;  //  Number of maximum links allowed  (0 = no links allowed)
	
$cfg['Badwordfilter'] = 'sex%, pussy%, porn%, %.ru, %.ru/%';  // Words for bad word filter 0 or empty = No bad word filter

// How the bad word filter works:
// badword = matches when message includes the full word   
// badword% = matches when message includes the bad word AND when a word begins with the bad word   
// %badword = matches when message includes the bad word AND when a word ends with the bad word    
// %badword% = matches when message includes the bad word AND when a word contains the bad word
	
$cfg['Badwordfields'] = 'title, first_name, name, telephone, email, subject, message';  //   Names of fields to be checked with the bad word filter - case sensitive!
	



// Rate Limiting (per IP address) // IMPORTANT: The file rate_limiting/log/ip_log.txt needs write permissions: chmod 666

$cfg['Rate_Limiting'] = 0;  //  0 = No limitation on views  1 = Views from the contact form are limited (effective DDoS protection!)

$Maximum_views = 50; //  Set maximum views per IP address (Recommendation: 50 views)

$Password_for_the_login_area = 'admin'; //  Open the login area for the log file in the browser: rate_limiting/login.php. Please regularly clear the log file through the login area.




// Other settings //

$cfg['Send_copy'] = 0;    //  0 = Never send a copy   1 = Ask user before sending copy   2 = Always send a copy (without asking)

$cfg['HTML5_error_messages'] = 1;  //  0 = Without HTML5 error messages   1 = With HTML5 error messages




// You can activate the SMTP function in the next step. Important: You must have installed at least PHP 5.5 or higher on your web server! Open phpinfo.php in your browser to check your current PHP version. //

$smtp = array();

$smtp['enabled'] = 0; // Do you want the contact form to send emails via an SMTP server?   Yes = 1   No = 0

$smtp['host'] = 'smtp.example.com'; // SMTP server host (e.g. smtp.gmail.com)
   
$smtp['user'] = 'name'; // User name to authenticate yourself on the SMTP server (could be the aforementioned email address!)

$smtp['password'] = 'password'; // Password to authenticate yourself on the SMTP server.

$smtp['encryption'] = 'tls'; // Type of encryption used when connected to your SMTP server: '', 'ssl' or 'tls'

$smtp['port'] = 587; // TCP port, at which your SMTP server can be reached.

$smtp['debug'] = 0; // Debug level (0 - 4)
      
    
    
    
// You can activate the upload function in the next step.

$cfg['NUM_ATTACHMENT_FIELDS'] = 0;	// Number of attachment fields

$cfg['UPLOAD_ACTIVE'] = 1;		// 1 = Attachments are sent as email attachments (standard) 2 = Attachments are uploaded to a directory (please complete the information below)

$cfg['WHITELIST_EXT'] = 'pdf|png|jpg';	// Allowed file extensions - for example: pdf|png|jpg

$cfg['MAX_FILE_SIZE'] = 1024;		// Maximum file size of one file in KB. (This option depends on the PHP and server settings.)

$cfg['MAX_ATTACHMENT_SIZE'] = 2048;	// Maximum file size of several files in KB. (if more than 1 upload field)

$cfg['BLACKLIST_IP'] = array('12.345.67.89');	// Blocked IPs - for example: array('192.168.1.2', '192.168.2.4');


// If you want to upload the attachments to a directory, please complete this information

$cfg['UPLOAD_FOLDER'] = 'upload';	// You must create an "upload" folder. This requires write permissions. (chmod 777)

$cfg['DOWNLOAD_URL'] = 'https://www.website.com/contactform';	// Path to the form (without / at the end)




// Define maximum number of characters per field //

$number_of_characters_company = "50";  // Maximum number of characters for field "Company" (between the quotation marks)

$number_of_characters_first_name = "50"; // Maximum number of characters for field "First Name" (between the quotation marks)

$number_of_characters_name = "50"; // Maximum number of characters for field "Last Name" (between the quotation marks)

$number_of_characters_email = "50"; // Maximum number of characters for field "Email" (between the quotation marks)

$number_of_characters_telephone = "50"; // Maximum number of characters for field "Telephone" (between the quotation marks)

$number_of_characters_subject = "50"; // Maximum number of characters for field "Subject" (between the quotation marks)

?> 