Current Path: > home > transcarter > public_html > wp-content > plugins > leadin > > > public > utils
Operation : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Software : Apache Server IP : 198.54.126.42 | Your IP: 216.73.216.135 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
class-proxyutils.php | File | 2000 bytes | July 17 2025 21:06:25. | |
class-queryparameters.php | File | 2283 bytes | July 17 2025 21:06:25. | |
class-requestutils.php | File | 1113 bytes | July 17 2025 21:06:25. | |
class-shortcoderenderutils.php | File | 4883 bytes | July 17 2025 21:06:25. | |
class-versions.php | File | 1567 bytes | July 17 2025 21:06:25. |
<?php namespace Leadin\utils; /** * Static class containing all the utility functions related to versioning. */ class Versions { /** * Return the given version until the patch version * eg: 6.4.2.1-beta => 6.4.2 * * @param String $version version. */ private static function parse_version( $version ) { preg_match( '/^\d+(\.\d+){0,2}/', $version, $match ); if ( empty( $match ) ) { return ''; } return $match[0]; } /** * Return the current WordPress version. */ public static function get_wp_version() { global $wp_version; return self::parse_version( $wp_version ); } /** * Return the current PHP version. */ public static function get_php_version() { return self::parse_version( phpversion() ); } /** * Return true if the current PHP version is not supported. */ public static function is_php_version_not_supported() { return version_compare( phpversion(), LEADIN_REQUIRED_PHP_VERSION, '<' ); } /** * Return true if the current WordPress version is not supported. */ public static function is_wp_version_not_supported() { global $wp_version; return version_compare( $wp_version, LEADIN_REQUIRED_WP_VERSION, '<' ); } /** * Return true if a given version is less than the supported version * * @param String $version Given version to check. * @param String $version_to_compare The version number to test the given version against. */ public static function is_version_less_than( $version, $version_to_compare ) { return version_compare( $version, $version_to_compare, '<' ); } }
SILENT KILLER Tool