HEX
Server: Apache
System:
User: ()
PHP: 7.4.33
Disabled: system,passthru,shell_exec,exec,proc_close,proc_open,proc_get_status,proc_nice,proc_terminate,highlight_file,escapeshellcmd,pclose,debugger_off,debugger_on,leak,listen,define_syslog_variables,ftp_exec,posix_uname,posix_getpwuid,get_current_user,getmyuid,getmygid,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,escapeshellarg,myshellexec,escapeshellarg,disk_free_space,disk_total_space,show_source,dl,symlink,listen,syslog,php_ini_scanned_files,inurl,apache_setenv,closelog,rar_open,bzopen,bzread,bzwrite,shellcode,show_source,apache_get_modules,apache_get_version,apache_note,openlog,crack_check,crack_closedict,pcntl_exec,ini_alter,backtick,cmd,virtual,getservbyport,myshellexec,hypot,pg_host,phpini,link,readlink,syslog,id,ftok,posix_access,error_log,sym,php_u,psockopen,apache_child_k_closedict,crack_getlastmessage,crack_opendict,php_ini,ini_restore,popen,curl_multi_exec,php_uname
Upload Files
File: /home/homework/public_html/kurs3/wp-content/plugins/jetpack/modules/enhanced-distribution.php
<?php
/**
 * Module Name: Enhanced Distribution
 * Module Description: Increase reach and traffic.
 * Sort Order: 5
 * First Introduced: 1.2
 * Requires Connection: Yes
 * Auto Activate: Public
 * Module Tags: Writing
 * Feature: Engagement
 * Additional Search Queries: google, seo, firehose, search, broadcast, broadcasting
 */

// In case it's active prior to upgrading to 1.9
function jetpack_enhanced_distribution_before_activate_default_modules() {
	$old_version = Jetpack_Options::get_option( 'old_version' );
	list( $old_version ) = explode( ':', $old_version );

	if ( version_compare( $old_version, '1.9-something', '>=' ) ) {
		return;
	}

	Jetpack::check_privacy( __FILE__ );
}

add_action( 'jetpack_before_activate_default_modules', 'jetpack_enhanced_distribution_before_activate_default_modules' );

/**
 * If a request has ?get_freshly_pressed_data=true appended
 * to the end, then let's provide the necessary data back via JSON.
 */
if ( isset( $_GET['get_freshly_pressed_data'] ) ) {
	add_action( 'template_redirect', 'jetpack_get_freshly_pressed_data' );
	function jetpack_get_freshly_pressed_data() {
		if ( is_single() ) {
			wp_send_json_success( array(
				'blog_id' => Jetpack_Options::get_option( 'id' ),
				'post_id' => get_the_ID(),
			) );
		} else {
			wp_send_json_error( array(
				'message' => 'Not Singular',
			) );
		}
	}
}

add_action( 'rss_head',  'jetpack_enhanced_distribution_feed_id' );
add_action( 'rss_item',  'jetpack_enhanced_distribution_post_id' );
add_action( 'rss2_head', 'jetpack_enhanced_distribution_feed_id' );
add_action( 'rss2_item', 'jetpack_enhanced_distribution_post_id' );

function jetpack_enhanced_distribution_feed_id(){
	(int) $id = Jetpack_Options::get_option( 'id' );
	if ( $id > 0 ) {
		$output = sprintf( '<site xmlns="com-wordpress:feed-additions:1">%d</site>', $id );
		echo $output;
	}
}

function jetpack_enhanced_distribution_post_id(){
	$id = get_the_ID();
	if ( $id ) {
		$output = sprintf( '<post-id xmlns="com-wordpress:feed-additions:1">%d</post-id>', $id );
		echo $output;
	}
}