HEX
Server: Apache
System: Linux smartwebfx.com 5.4.0-211-generic #231-Ubuntu SMP Tue Mar 11 17:06:58 UTC 2025 x86_64
User: fastshipsa (1010)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: /home/fastshipsa/public_html/wp-content/plugins/formidable-registration/formidable-registration.php
<?php
/*
Plugin Name: Formidable Registration
Plugin URI: https://formidableforms.com/knowledgebase/user-registration/
Description: Register users through a Formidable form
Author: Strategy11
Author URI: https://formidableforms.com/
Version: 2.13
Text Domain: frmreg
*/

/**
 * @return void
 */
function frmreg_forms_autoloader( $class_name ) {
	// Only load FrmReg classes here
	if ( ! preg_match( '/^FrmReg.+$/', $class_name ) ) {
		return;
	}

	$path = __DIR__;

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

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

// Add the autoloader
spl_autoload_register( 'frmreg_forms_autoloader' );

add_action( 'plugins_loaded', 'FrmRegHooksController::load_hooks' );
add_action( 'plugins_loaded', 'FrmRegAppController::load_lang' );