✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ webm004.cluster127.gra.hosting.ovh.net ​🇻​♯➤ 6.18.42-ovh-vps-grsec-zfs+ #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 54.36.91.62 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.191
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ _dyuweyrj4,_dyuweyrj4r,dl

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/wp-tmp-bundled/wordpress-seo/admin//class-database-proxy.php
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin
 */

/**
 * Represents the proxy for communicating with the database.
 */
class WPSEO_Database_Proxy {

	/**
	 * Holds the table name.
	 *
	 * @var string
	 */
	protected $table_name;

	/**
	 * Determines whether to suppress errors or not.
	 *
	 * @var bool
	 */
	protected $suppress_errors = true;

	/**
	 * Determines if this table is multisite.
	 *
	 * @var bool
	 */
	protected $is_multisite_table = false;

	/**
	 * Holds the last suppressed state.
	 *
	 * @var bool
	 */
	protected $last_suppressed_state;

	/**
	 * Holds the WordPress database object.
	 *
	 * @var wpdb
	 */
	protected $database;

	/**
	 * Holds the table prefix.
	 *
	 * @var string
	 */
	protected $table_prefix;

	/**
	 * Sets the class attributes and registers the table.
	 *
	 * @param wpdb   $database           The database object.
	 * @param string $table_name         The table name that is represented.
	 * @param bool   $suppress_errors    Should the errors be suppressed.
	 * @param bool   $is_multisite_table Should the table be global in multisite.
	 */
	public function __construct( $database, $table_name, $suppress_errors = true, $is_multisite_table = false ) {
		$this->table_name         = $table_name;
		$this->suppress_errors    = (bool) $suppress_errors;
		$this->is_multisite_table = (bool) $is_multisite_table;
		$this->database           = $database;

		// If the table prefix was provided, strip it as it's handled automatically.
		$table_prefix = $this->get_table_prefix();
		if ( ! empty( $table_prefix ) && strpos( $this->table_name, $table_prefix ) === 0 ) {
			$this->table_prefix = substr( $this->table_name, strlen( $table_prefix ) );
		}

		if ( ! $this->is_table_registered() ) {
			$this->register_table();
		}
	}

	/**
	 * Inserts data into the database.
	 *
	 * @param array             $data   Data to insert.
	 * @param array|string|null $format Formats for the data.
	 *
	 * @return int|false Total amount of inserted rows or false on error.
	 */
	public function insert( array $data, $format = null ) {
		$this->pre_execution();

		$result = $this->database->insert( $this->get_table_name(), $data, $format );

		$this->post_execution();

		return $result;
	}

	/**
	 * Updates data in the database.
	 *
	 * @param array             $data         Data to update on the table.
	 * @param array             $where        Where condition as key => value array.
	 * @param array|string|null $format       Optional. Data prepare format.
	 * @param array|string|null $where_format Optional. Where prepare format.
	 *
	 * @return int|false False when the update request is invalid, int on number of rows changed.
	 */
	public function update( array $data, array $where, $format = null, $where_format = null ) {
		$this->pre_execution();

		$result = $this->database->update( $this->get_table_name(), $data, $where, $format, $where_format );

		$this->post_execution();

		return $result;
	}

	/**
	 * Upserts data in the database.
	 *
	 * Performs an insert into and if key is duplicate it will update the existing record.
	 *
	 * @param array             $data         Data to update on the table.
	 * @param array|null        $where        Unused. Where condition as key => value array.
	 * @param array|string|null $format       Optional. Data prepare format.
	 * @param array|string|null $where_format Optional. Where prepare format.
	 *
	 * @return int|false False when the upsert request is invalid, int on number of rows changed.
	 */
	public function upsert( array $data, ?array $where = null, $format = null, $where_format = null ) {
		if ( $where_format !== null ) {
			_deprecated_argument( __METHOD__, '7.7.0', 'The where_format argument is deprecated' );
		}

		$this->pre_execution();

		$update  = [];
		$keys    = [];
		$columns = array_keys( $data );
		foreach ( $columns as $column ) {
			$keys[]   = '`' . $column . '`';
			$update[] = sprintf( '`%1$s` = VALUES(`%1$s`)', $column );
		}

		$query = sprintf(
			'INSERT INTO `%1$s` (%2$s) VALUES ( %3$s ) ON DUPLICATE KEY UPDATE %4$s',
			$this->get_table_name(),
			implode( ', ', $keys ),
			implode( ', ', array_fill( 0, count( $data ), '%s' ) ),
			implode( ', ', $update ),
		);

		$result = $this->database->query(
			$this->database->prepare(
				$query,
				array_values( $data ),
			),
		);

		$this->post_execution();

		return $result;
	}

	/**
	 * Deletes a record from the database.
	 *
	 * @param array             $where  Where clauses for the query.
	 * @param array|string|null $format Formats for the data.
	 *
	 * @return int|false
	 */
	public function delete( array $where, $format = null ) {
		$this->pre_execution();

		$result = $this->database->delete( $this->get_table_name(), $where, $format );

		$this->post_execution();

		return $result;
	}

	/**
	 * Executes the given query and returns the results.
	 *
	 * @param string $query The query to execute.
	 *
	 * @return array|object|null The resultset
	 */
	public function get_results( $query ) {
		$this->pre_execution();

		$results = $this->database->get_results( $query );

		$this->post_execution();

		return $results;
	}

	/**
	 * Creates a table to the database.
	 *
	 * @param array $columns The columns to create.
	 * @param array $indexes The indexes to use.
	 *
	 * @return bool True when creation is successful.
	 */
	public function create_table( array $columns, array $indexes = [] ) {
		$create_table = sprintf(
			'CREATE TABLE IF NOT EXISTS %1$s ( %2$s ) %3$s',
			$this->get_table_name(),
			implode( ',', array_merge( $columns, $indexes ) ),
			$this->database->get_charset_collate(),
		);

		$this->pre_execution();

		$is_created = (bool) $this->database->query( $create_table );

		$this->post_execution();

		return $is_created;
	}

	/**
	 * Checks if there is an error.
	 *
	 * @return bool Returns true when there is an error.
	 */
	public function has_error() {
		return ( $this->database->last_error !== '' );
	}

	/**
	 * Executed before a query will be ran.
	 *
	 * @return void
	 */
	protected function pre_execution() {
		if ( $this->suppress_errors ) {
			$this->last_suppressed_state = $this->database->suppress_errors();
		}
	}

	/**
	 * Executed after a query has been ran.
	 *
	 * @return void
	 */
	protected function post_execution() {
		if ( $this->suppress_errors ) {
			$this->database->suppress_errors( $this->last_suppressed_state );
		}
	}

	/**
	 * Returns the full table name.
	 *
	 * @return string Full table name including prefix.
	 */
	public function get_table_name() {
		return $this->get_table_prefix() . $this->table_name;
	}

	/**
	 * Returns the prefix to use for the table.
	 *
	 * @return string The table prefix depending on the database context.
	 */
	protected function get_table_prefix() {
		if ( $this->is_multisite_table ) {
			return $this->database->base_prefix;
		}

		return $this->database->get_blog_prefix();
	}

	/**
	 * Registers the table with WordPress.
	 *
	 * @return void
	 */
	protected function register_table() {
		$table_name      = $this->table_name;
		$full_table_name = $this->get_table_name();

		$this->database->$table_name = $full_table_name;

		if ( $this->is_multisite_table ) {
			$this->database->ms_global_tables[] = $table_name;
			return;
		}

		$this->database->tables[] = $table_name;
	}

	/**
	 * Checks if the table has been registered with WordPress.
	 *
	 * @return bool True if the table is registered, false otherwise.
	 */
	protected function is_table_registered() {
		if ( $this->is_multisite_table ) {
			return in_array( $this->table_name, $this->database->ms_global_tables, true );
		}

		return in_array( $this->table_name, $this->database->tables, true );
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
23 Sep 2026 6.59 AM
docteuh / users
0755
ajax
--
10 Sep 2026 9.50 AM
docteuh / users
0755
capabilities
--
10 Sep 2026 9.50 AM
docteuh / users
0755
endpoints
--
10 Sep 2026 9.50 AM
docteuh / users
0755
exceptions
--
10 Sep 2026 9.50 AM
docteuh / users
0755
formatter
--
10 Sep 2026 9.50 AM
docteuh / users
0755
import
--
10 Sep 2026 9.50 AM
docteuh / users
0755
listeners
--
10 Sep 2026 9.50 AM
docteuh / users
0755
metabox
--
10 Sep 2026 9.50 AM
docteuh / users
0755
notifiers
--
10 Sep 2026 9.50 AM
docteuh / users
0755
services
--
10 Sep 2026 9.50 AM
docteuh / users
0755
statistics
--
10 Sep 2026 9.50 AM
docteuh / users
0755
taxonomy
--
10 Sep 2026 9.50 AM
docteuh / users
0755
tracking
--
21 Sep 2026 9.43 PM
docteuh / users
0755
watchers
--
10 Sep 2026 9.50 AM
docteuh / users
0755
admin-settings-changed-listener.php
2.388 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
ajax.php
11.161 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-admin-asset-analysis-worker-location.php
1.807 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-admin-asset-dev-server-location.php
1.605 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-admin-asset-manager.php
20.573 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-admin-editor-specific-replace-vars.php
6.347 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-admin-gutenberg-compatibility-notification.php
2.551 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-admin-help-panel.php
2.697 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-admin-init.php
10.717 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-admin-recommended-replace-vars-20260829042903.php
5.984 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-admin-recommended-replace-vars.php
5.984 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-admin-utils.php
2.149 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-admin.php
12.73 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-asset.php
4.302 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-bulk-description-editor-list-table.php
2.052 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-bulk-editor-list-table.php
29.433 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-bulk-title-editor-list-table.php
2.233 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-collector.php
0.981 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-database-proxy-20260903235427.php
7.508 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-database-proxy.php
7.508 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-export.php
3.462 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-expose-shortlinks.php
7.085 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-my-yoast-proxy.php
6.14 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-option-tabs-formatter.php
2.838 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-option-tabs.php
2.257 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-paper-presenter.php
3.516 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-plugin-availability.php
10.064 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-plugin-conflict.php
4.044 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-premium-popup.php
2.808 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-primary-term-admin.php
7.318 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-product-upsell-notice.php
5.754 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-remote-request.php
3.128 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-schema-person-upgrade-notification.php
2.232 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-suggested-plugins.php
4.328 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-wincher-dashboard-widget.php
3.531 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-yoast-columns.php
3.521 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-yoast-dashboard-widget.php
3.928 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-yoast-input-validation.php
7.205 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-yoast-network-admin.php
9.972 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-yoast-network-settings-api.php
4.143 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-yoast-notification-center.php
26.023 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-yoast-notification.php
10.098 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-yoast-notifications.php
7.63 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-yoast-plugin-conflict-ajax.php
3.424 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
class-yoast-plugin-conflict.php
10.288 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260829102432-20260830003633-20260830003700-20260830003856-20260830144522.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
index.php
0.037 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
integration-interface.php
0.416 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
interface-collection.php
0.251 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
interface-installable.php
0.248 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
string-helper.php
1.189 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
yoast.svg
1.334 KB
23 Jun 2026 6.19 PM
docteuh / users
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF