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; use Leadin\data\Portal_Options; use Leadin\data\Filters; /** * Static class containing all the utility functions related to proxy mappings. */ class ProxyUtils { /** * Info logger function to log messages. * * @param string $message The message to log. */ public static function info_log( $message ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound, WordPress.NamingConventions.ValidHookName.UseUnderscores do_action( 'qm/debug', $message ); } /** * Error logger function to log messages. * * @param string $message The message to log. */ public static function error_log( $message ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound, WordPress.NamingConventions.ValidHookName.UseUnderscores do_action( 'qm/error', $message ); } /** * Get the client IP address. * * @return string The client IP address. */ public static function get_client_ip() { $ip_keys = array( 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR', ); foreach ( $ip_keys as $key ) { if ( isset( $_SERVER[ $key ] ) && ! empty( $_SERVER[ $key ] ) ) { return sanitize_text_field( wp_unslash( $_SERVER[ $key ] ) ); } } return ''; } /** * Get the destination domain. * * @return string The destination domain. */ public static function get_destination_domain() { return isset( $_SERVER['HTTP_HOST'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_HOST'] ) ) : ''; } /** * Get the proxy plugin mapping API base URL. * * @return string The API base URL. */ public static function get_plugin_mappings_api_url() { return Filters::apply_plugin_mappings_api_url(); } /** * Get the proxy base URL. * * @return string The proxy base URL. */ public static function get_proxy_base_url() { return Filters::apply_sites_proxy_cdn_filters(); } }
SILENT KILLER Tool