GRAYBYTE WORDPRESS FILE MANAGER1329

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/wpforms-lite/includes/functions/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/wpforms-lite/includes/functions//plugins.php
<?php
/**
 * Helper functions to perform various plugins and addons related actions.
 *
 * @since 1.8.2.2
 */

use WPForms\Requirements\Requirements;

/**
 * Check if addon met requirements.
 *
 * @since 1.8.2.2
 *
 * @param array $requirements Addon requirements.
 *
 * @return bool
 */
function wpforms_requirements( array $requirements ): bool {

	return Requirements::get_instance()->validate( $requirements );
}

/**
 * Determine if an addon is active and passed all requirements.
 *
 * @since 1.9.2
 *
 * @param string $addon_slug Addon slug without `wpforms-` prefix.
 *
 * @return bool
 */
function wpforms_is_addon_initialized( string $addon_slug ): bool {

	$basename = sprintf( 'wpforms-%1$s/wpforms-%1$s.php', $addon_slug );

	if ( is_multisite() ) {
		$active_plugins = (array) get_option( 'active_plugins', [] );

		if ( in_array( $basename, $active_plugins, true ) ) {
			return true;
		}
	}

	return Requirements::get_instance()->is_validated( $basename );
}

/**
 * Check addon requirements and activate addon or plugin.
 *
 * @since 1.8.4
 * @since 1.9.2 Keep addons active even if they don't meet requirements.
 *
 * @param string $plugin Path to the plugin file relative to the plugins' directory.
 *
 * @return null|WP_Error Null on success, WP_Error on invalid file.
 */
function wpforms_activate_plugin( string $plugin ) {

	$activate = activate_plugin( $plugin );

	if ( is_wp_error( $activate ) ) {
		return $activate;
	}

	$requirements = Requirements::get_instance();

	if ( $requirements->is_validated( $plugin ) ) {
		return null;
	}

	return new WP_Error( 'wpforms_addon_incompatible', $requirements->get_notice( $plugin ) );
}

/**
 * Compares two "PHP-standardized" version number strings.
 *
 * Removes any "-RCn", "-beta" from version numbers first.
 *
 * @since 1.9.4
 *
 * @param string $version1 Version number.
 * @param string $version2 Version number.
 * @param string $operator Comparison operator.
 *
 * @return bool
 */
function wpforms_version_compare( $version1, $version2, $operator ): bool {

	// If the version is not a string, return false.
	if ( ! is_string( $version1 ) || ! is_string( $version2 ) ) {
		return false;
	}

	// Strip dash and anything after it.
	$clean_version_number = function ( $version ) {
		return preg_replace( '/-.+/', '', $version );
	};

	return version_compare(
		$clean_version_number( $version1 ),
		$clean_version_number( $version2 ),
		$operator
	);
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:21
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:21
inteuuod / inteuuod
0644
access.php
10.478 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
builder.php
1.377 KB
June 17 2025 13:49:02
inteuuod / inteuuod
0644
checks.php
15.965 KB
June 17 2025 13:49:02
inteuuod / inteuuod
0644
colors.php
3.972 KB
November 28 2023 16:59:36
inteuuod / inteuuod
0644
data-presets.php
19.031 KB
February 16 2023 18:36:38
inteuuod / inteuuod
0644
date-time.php
2.824 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
debug.php
5.229 KB
September 26 2024 15:36:36
inteuuod / inteuuod
0644
education.php
2.894 KB
June 17 2025 13:49:02
inteuuod / inteuuod
0644
escape-sanitize.php
13.899 KB
January 28 2025 17:46:12
inteuuod / inteuuod
0644
filesystem-media.php
6.6 KB
April 24 2025 14:53:30
inteuuod / inteuuod
0644
form-fields.php
16.983 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
forms.php
13.321 KB
April 24 2025 14:53:30
inteuuod / inteuuod
0644
list.php
6.875 KB
June 13 2024 16:24:36
inteuuod / inteuuod
0644
payments.php
21.876 KB
April 24 2025 14:53:30
inteuuod / inteuuod
0644
plugins.php
2.375 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
privacy.php
2.516 KB
February 27 2025 17:40:00
inteuuod / inteuuod
0644
providers.php
1.992 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
utilities.php
8.538 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF