X7ROOT File Manager
Current Path:
/home/u408670528/domains/vittoriabeltrame.com/public_html/assets/php
home
/
u408670528
/
domains
/
vittoriabeltrame.com
/
public_html
/
assets
/
php
/
📁
..
📄
.DS_Store
(6 KB)
📄
contact-form-recaptcha-v2.php
(4.88 KB)
📄
contact-form-recaptcha-v3.php
(4.96 KB)
📄
contact-form-refresh-captcha.php
(406 B)
📄
contact-form-verify-captcha.php
(394 B)
📄
contact-form.php
(3.06 KB)
📁
instagram
📄
instagram-token.php
(2.01 KB)
📁
mailchimp
📄
newsletter-subscribe.php
(1.15 KB)
📁
php-mailer
📁
simple-php-captcha
📁
tweet-php
📄
twitter-feed.php
(2.69 KB)
Editing: newsletter-subscribe.php
<?php /* Name: Newsletter Subscribe Written by: Okler Themes - (http://www.okler.net) Theme Version: 9.4.0 */ include('./mailchimp/mailchimp.php'); use \DrewM\MailChimp\MailChimp; // Step 1 - Set the apiKey - How get your Mailchimp API KEY - http://kb.mailchimp.com/article/where-can-i-find-my-api-key $apiKey = '43d3e1373f391fd19d810e37c3cb3f8b-us12'; // Step 2 - Set the listId - How to get your Mailchimp LIST ID - http://kb.mailchimp.com/article/how-can-i-find-my-list-id $listId = '7e0cf8d640'; if (isset($_POST['email'])) { $email = $_POST['email']; } else if (isset($_GET['email'])) { $email = $_GET['email']; } else { $email = ''; } $MailChimp = new MailChimp($apiKey); $result = $MailChimp->post('lists/' . $listId . '/members', array( 'email_address' => $email, 'merge_fields' => array('FNAME'=>'', 'LNAME'=>''), // Step 3 (Optional) - Vars - More Information - http://kb.mailchimp.com/merge-tags/using/getting-started-with-merge-tags 'status' => 'subscribed' )); if ($result['id'] != '') { $arrResult = array('response'=>'success'); } else { $arrResult = array('response'=>'error','message'=>$result['detail']); } echo json_encode($arrResult);
Upload File
Create Folder