Domain Parking PHP Script with Google ReCaptcha
Documentation for the Domain Parking Script 1.0.0
When you purchase the product, you will get all files nicely sorted in a folder.
The "app" folder contains all the logic of the script. You don't need to change any of the files inside and it's highly recommended not to do this!
The main Configuration File
Before you can use the domain parking script, you need to configure the file "config.php". The script is set via the configuration file named "config.php". The file contains a PHP array, which can be easily edited with a text editor, or better with a code editor like Atom or Notepad++.
$config = [ 'domainName' => '', 'senderEmail' => 'firstname.lastname@example.org', 'adminEmail' => 'email@example.com', 'browserTitle' => 'Buy this domain right now', 'domainTitle' => 'BUY THIS DOMAIN', 'domainDescription' => '', 'formTitle' => 'Fill out this form please:', 'footerText' => '© 2019-2021 Domain Parking Script 1.0.0', 'buttonText' => 'LET'S GO!', 'formLabelName' => '', 'formLabelEmail' => '', 'formLabelMessage' => '', 'formSuccessMessage' => '', 'emailSubject' => 'New request for: ###DOMAIN###', 'domains' => [ 'my-domain.com' => [ 'captchaSiteKey' => '932f8OFEHFWJEFJEWFEWFWKEFJEWFWEF-Sv2y-233232x', 'captchaSecretKey' => '8FJefkwfwefwefwFEFFFEFEF-h_p1hK7dybeLF6Gh', ], 'my-other-domain.com' => [ 'captchaSiteKey' => '932f8OFEHFWJEFJEWFEWFWKEFJEWFWEF-Sv2y-233232x', 'captchaSecretKey' => '8FJefkwfwefwefwFEFFFEFEF-h_p1hK7dybeLF6Gh', ], ] ];
Configuration values explained
Have a look at the table with the values, so you know which parameters are necessary for the script to work.
|If you leave this parameter empty, the script detects domains automatically. If you enter a domain here, the script will only recognize the given domain name.|
|yes||Email address of the form sender|
|yes||Email address of the form reciever / admin|
|Title of the browser tab / page title for SEO|
|Text to display with the domain name, like "THIS DOMAIN IS FOR SALE" for instance. In the default template, the text is right above the domain name.|
|Adds a description. In the default template, the text is displayed between the domain name and the request form.|
|Adds an extra title for the form. You can leave this parameter empty.|
|Adds a centered text for the footer, like a copyright note. You can leave this parameter empty.|
|yes||Text of the send button.|
|yes||Field label of the name form field This value is also used for the labels in your email.|
|yes||Field label of the email form field. This value is also used for the labels in your email.|
|yes||Field label of the message form field. This value is also used for the labels in your email.|
|yes||Text of the message after successfully sending the form.|
|yes||Subject of the email for the form receiver. You can add the current domain to your text by adding the marker|
|yes||Contains an array of domain settings for Google ReCaptcha. You don't need to enter different Google keys for each domain. In Google you can set up multiple domains per Property, so that you can use the same keys for all domains. But it's very important that each domain has it's own entry. Otherwise the script will not work.|
Upload the Script
To use the script, you need to upload the contents of the folder to a folder in your web space and then redirect at least one domain to it. It is important that the domains really point to the folder as root folder and are not only forwarded via meta tag or redirect. Otherwise the script will not recognize the domains.
Using an FTP-Client
You can use an FTP-Client like FileZilla to upload the Script to your web server.