Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1a2
- > include('../_connect.php');
- 269a271
- > $bypass_opt_in = !$subform && $_POST['silent']=='true';
- 276,277c278,279
- < $list_name = $row['name'];
- < $opt_in = $_POST['silent']=='true' ? 0 : $row['opt_in'];
- ---
- > $list_name = $row['name'];
- > $opt_in = $bypass_opt_in ? 0 : $row['opt_in'];
- 339c341
- <
- ---
- > $not_a_bot = false;
- 361a364,371
- > else
- > {
- > $not_a_bot = true;
- > }
- > }
- > else
- > {
- > $not_a_bot = true;
- 420a431,450
- > else
- > {
- > if(isset($_POST['api_key'])) $api_key = mysqli_real_escape_string($mysqli, $_POST['api_key']);
- > else $api_key = null;
- >
- > if($api_key==null)
- > {
- > echo 'API key not passed',
- > exit;
- > }
- > else if(!verify_api_key($api_key))
- > {
- > echo 'Invalid API key'
- > exit;
- > }
- > else
- > {
- > $not_a_bot = true;
- > }
- > }
- 422c452
- < if($feedback!=_('Some fields are missing.') && $feedback!=_('Email address is invalid.') && $feedback!=_('Consent not given.') && $feedback!=_('Failed reCAPTCHA test.') && $feedback!=_('Invalid secret key.'))
- ---
- > if($not_a_bot && $feedback!=_('Some fields are missing.') && $feedback!=_('Email address is invalid.') && $feedback!=_('Consent not given.') && $feedback!=_('Failed reCAPTCHA test.') && $feedback!=_('Invalid secret key.'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement