HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/nationalfundingsolutionsgrp/public_html/wp-content/plugins/formidable-signature/signature.php
<?php
/**
 * Plugin Name: Formidable Digital Signatures
 * Description: Collect e-signatures in your Formidable forms
 * Version: 3.0.2
 * Plugin URI: https://formidableforms.com
 * Author URI: https://formidableforms.com
 * Author: Strategy11
 * Text domain: frmsig
 *
 * @package frmsig
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}

/**
 * SPL autoloader.
 *
 * @param string $class_name class name.
 * @return void
 */
function frm_sig_autoloader( $class_name ) {
	$path = dirname( __FILE__ );

	// Only load Frm classes here.
	if ( ! preg_match( '/^FrmSig.+$/', $class_name ) ) {
		return;
	}

	if ( preg_match( '/^.+Helper$/', $class_name ) ) {
		$path .= '/helpers/' . $class_name . '.php';
	} elseif ( preg_match( '/^.+Controller$/', $class_name ) ) {
		$path .= '/controllers/' . $class_name . '.php';
	} else {
		$path .= '/models/' . $class_name . '.php';
	}

	if ( file_exists( $path ) ) {
		include $path;
	}
}

// Add the autoloader.
spl_autoload_register( 'frm_sig_autoloader' );

// Load hooks.
add_action( 'plugins_loaded', 'FrmSigHooksController::load_hooks' );

register_activation_hook( __FILE__, 'frm_signature_update_stylesheet_on_activation' );

/**
 * Update signature style on activation.
 *
 * @return void
 */
function frm_signature_update_stylesheet_on_activation() {
	if ( ! function_exists( 'load_formidable_forms' ) ) {
		return;
	}

	FrmSigHooksController::load_hooks();
	FrmSigAppController::update_stylesheet();
}