403Webshell
Server IP : 172.67.214.6  /  Your IP : 216.73.216.73
Web Server : LiteSpeed
System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : redwjova ( 1790)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /home/redwjova/sort.llc/wp-content/plugins/malcare-security/form_testing/handlers/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/redwjova/sort.llc/wp-content/plugins/malcare-security/form_testing/handlers/gravity_form.php
<?php

if (!defined('ABSPATH')) exit;
if (!class_exists('BVGravityFormHandler')) :

class BVGravityFormHandler {
	private $form_id;
	private $bypass_params = array();

	public function __construct($form_id, $bypass_params) {
		$this->form_id = $form_id;
		$this->bypass_params = $bypass_params;
	}

	public function bypass() {
		if (array_key_exists('should_bypass_captcha', $this->bypass_params)) {
			$this->bypassCaptcha();
		}

		if (array_key_exists('should_bypass_email', $this->bypass_params)) {
			$this->bypassEmail();
		}
	}

	public function bypassCaptcha() {
		if ($this->form_id === null) {
			return;
		}

		add_filter('gform_pre_validation_' . $this->form_id, function($form) {
			foreach ($form['fields'] as &$field) {
				if ($field->type === 'captcha') {
					$field->visibility = 'hidden';
				}
			}
			return $form;
		}, PHP_INT_MAX);
	}

	public function bypassEmail() {
		add_filter('gform_pre_send_email', function ($email_data) {
			$email_data['abort_email'] = true;
			return $email_data;
		}, PHP_INT_MAX);
	}
}

endif;

Youez - 2016 - github.com/yon3zu
LinuXploit