Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux pod-100823:apache2_74:v0.5.7 5.4.0-1138-gcp #147~18.04.1-Ubuntu SMP Mon Oct 7 21:46:26 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33.7
Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system
Directory :  /nas/content/live/attorneyexperi/wp-content/plugins/imagify/inc/3rd-party/hosting/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /nas/content/live/attorneyexperi/wp-content/plugins/imagify/inc/3rd-party/hosting/siteground.php
<?php
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );

add_filter( 'http_request_args', 'imagify_siteground_change_user_agent', 10, 2 );
/**
 * Filter the arguments used in a HTTP request to change the User Agent for requests "to self", to prevent firewalls to be triggered.
 *
 * @since  1.6.13
 * @author Grégory Viguier
 *
 * @param  array  $r   An array of HTTP request arguments.
 * @param  string $url The request URL.
 * @return array
 */
function imagify_siteground_change_user_agent( $r, $url ) {
	static $user_agent;
	static $site_url;

	$url = wp_parse_url( $url );

	if ( empty( $url['path'] ) ) {
		return $r;
	}

	$paths = array(
		'/wp-admin/admin-ajax.php',
		'/wp-admin/admin-post.php',
		'/wp-cron.php',
	);

	if ( ! isset( $site_url ) ) {
		$site_url = wp_parse_url( site_url( '/' ) );
	}

	// Limit to requests to self.
	if ( false === strpos( $url['path'], $site_url['path'] ) && false === strpos( $site_url['path'], $url['path'] ) ) {
		return $r;
	}

	// Limit to requests to admin-ajax.php, admin-post.php, and wp-cron.php.
	foreach ( $paths as $i => $path ) {
		if ( false !== strpos( $url['path'], $path ) ) {
			$paths = false;
			break;
		}
	}

	if ( $paths ) {
		return $r;
	}

	// Randomize the User-Agent.
	if ( ! isset( $user_agent ) ) {
		$user_agent = wp_generate_password( 12, false );
		/**
		 * Filter the User-Agent used for requests "to self".
		 *
		 * @since  1.7.1
		 * @author Grégory Viguier
		 *
		 * @param string $user_agent The User-Agent.
		 * @param array  $r          An array of HTTP request arguments.
		 * @param array  $url        The request URL, parsed.
		 */
		$user_agent = apply_filters( 'imagify_user_agent_for_internal_requests', $user_agent, $r, $url );
	}

	$r['user-agent'] = $user_agent;

	return $r;
}

Spamworldpro Mini