| Server IP : 192.241.186.36 / Your IP : 216.73.216.199 Web Server : Apache/2.4.29 (Ubuntu) System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64 User : root ( 0) PHP Version : 7.4.32 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/pushyard/wp-content/plugins/formidable/ |
Upload File : |
<?php
/*
Plugin Name: Formidable Forms
Description: Quickly and easily create drag-and-drop forms
Version: 6.2.3
Plugin URI: https://formidableforms.com/
Author URI: https://formidableforms.com/
Author: Strategy11 Form Builder Team
Text Domain: formidable
*/
/*
Copyright 2010 Formidable Forms
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
if ( ! defined( 'ABSPATH' ) ) {
die( 'You are not allowed to call this page directly.' );
}
add_action( 'plugins_loaded', 'load_formidable_forms', 0 );
/**
* @return void
*/
function load_formidable_forms() {
global $frm_vars;
$frm_vars = array(
'load_css' => false,
'forms_loaded' => array(),
'created_entries' => array(),
'pro_is_authorized' => false,
);
// For reverse compatibility. Load Pro if it's still nested.
$frm_path = dirname( __FILE__ );
if ( file_exists( $frm_path . '/pro/formidable-pro.php' ) ) {
include( $frm_path . '/pro/formidable-pro.php' );
}
FrmHooksController::trigger_load_hook();
}
// if __autoload is active, put it on the spl_autoload stack
if ( is_array( spl_autoload_functions() ) && in_array( '__autoload', spl_autoload_functions() ) ) {
spl_autoload_register( '__autoload' );
}
// Add the autoloader
spl_autoload_register( 'frm_forms_autoloader' );
/**
* @return void
*/
function frm_forms_autoloader( $class_name ) {
// Only load Frm classes here
if ( ! preg_match( '/^Frm.+$/', $class_name ) || preg_match( '/^FrmPro.+$/', $class_name ) ) {
return;
}
frm_class_autoloader( $class_name, dirname( __FILE__ ) );
}
/**
* Autoload the Formidable and Pro classes
*
* @since 3.0
*
* @return void
*/
function frm_class_autoloader( $class_name, $filepath ) {
$deprecated = array( 'FrmEntryFormat', 'FrmPointers', 'FrmEDD_SL_Plugin_Updater' );
$is_deprecated = in_array( $class_name, $deprecated ) || preg_match( '/^.+Deprecate/', $class_name );
if ( $is_deprecated ) {
$filepath .= '/deprecated/';
} else {
$filepath .= '/classes/';
if ( preg_match( '/^.+Helper$/', $class_name ) ) {
$filepath .= 'helpers/';
} else if ( preg_match( '/^.+Controller$/', $class_name ) ) {
$filepath .= 'controllers/';
} else if ( preg_match( '/^.+Factory$/', $class_name ) ) {
$filepath .= 'factories/';
} else {
$filepath .= 'models/';
if ( strpos( $class_name, 'Field' ) && ! file_exists( $filepath . $class_name . '.php' ) ) {
$filepath .= 'fields/';
}
}
}
$filepath .= $class_name . '.php';
if ( file_exists( $filepath ) ) {
require( $filepath );
}
}
add_action( 'activate_' . FrmAppHelper::plugin_folder() . '/formidable.php', 'frm_maybe_install' );
/**
* @return void
*/
function frm_maybe_install() {
if ( get_transient( FrmWelcomeController::$option_name ) !== 'no' ) {
set_transient( FrmWelcomeController::$option_name, FrmWelcomeController::$menu_slug, 60 );
}
}