| Server IP : 63.34.246.71 / Your IP : 172.31.20.164 Web Server : Apache/2.4.68 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 System : Linux ip-172-31-10-208.eu-west-1.compute.internal 6.8.0-1044-aws #46~22.04.1-Ubuntu SMP Tue Dec 2 12:52:18 UTC 2025 x86_64 User : kazang ( 1006) PHP Version : 8.2.31 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/kazang/web/kazang.com/public_html/wp-content/plugins/formidable-wpml/ |
Upload File : |
<?php
/*
Plugin Name: Formidable Multilingual
Description: Add multilingual support for Formidable
Plugin URI: https://formidableforms.com/
Author: Strategy11
Author URI: https://formidableforms.com/
Version: 1.13
Test Domain: formidable-wpml
*/
/**
* @param string $class_name
* @return void
*/
function frm_wpml_autoloader( $class_name ) {
$path = dirname( __FILE__ );
// Only load Frm classes here
if ( $class_name !== 'FormidableWPML' && ! preg_match( '/^FrmWpml.+$/', $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_wpml_autoloader' );
// Load hooks
add_action( 'plugins_loaded', 'FrmWpmlHooksController::load_hooks', 10 );
add_filter( 'frmreg_global_messages', 'FrmWpmlAppController::translate_reg_settings', 10, 2 );