$23 GRAYBYTE WORDPRESS FILE MANAGER $76

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/ubukode.com/wp-content/plugins/contact-form-7/includes/

HOME
Current File : /home/bravrvjk/ubukode.com/wp-content/plugins/contact-form-7/includes//pipe.php
<?php
/**
 * Pipe-related classes.
 *
 * @link https://contactform7.com/selectable-recipient-with-pipes/
 */


/**
 * Class representing a pair of pipe.
 */
class WPCF7_Pipe {

	public $before = '';
	public $after = '';

	public function __construct( $text ) {
		$text = (string) $text;

		$pipe_pos = strpos( $text, '|' );

		if ( false === $pipe_pos ) {
			$this->before = $this->after = wpcf7_strip_whitespaces( $text );
		} else {
			$this->before = wpcf7_strip_whitespaces( substr( $text, 0, $pipe_pos ) );
			$this->after = wpcf7_strip_whitespaces( substr( $text, $pipe_pos + 1 ) );
		}
	}
}


/**
 * Class representing a list of pipes.
 */
class WPCF7_Pipes {

	private $pipes = array();

	public function __construct( $texts = null ) {
		foreach ( (array) $texts as $text ) {
			$this->add_pipe( $text );
		}
	}

	private function add_pipe( $text ) {
		$pipe = new WPCF7_Pipe( $text );
		$this->pipes[] = $pipe;
	}

	public function merge( self $another ) {
		$this->pipes = array_merge( $this->pipes, $another->pipes );
	}

	public function do_pipe( $input ) {
		$input_canonical = wpcf7_canonicalize( $input, array(
			'strto' => 'as-is',
		) );

		foreach ( $this->pipes as $pipe ) {
			$before_canonical = wpcf7_canonicalize( $pipe->before, array(
				'strto' => 'as-is',
			) );

			if ( $input_canonical === $before_canonical ) {
				return $pipe->after;
			}
		}

		return $input;
	}

	public function collect_befores() {
		$befores = array();

		foreach ( $this->pipes as $pipe ) {
			$befores[] = $pipe->before;
		}

		return $befores;
	}

	public function collect_afters() {
		$afters = array();

		foreach ( $this->pipes as $pipe ) {
			$afters[] = $pipe->after;
		}

		return $afters;
	}

	public function zero() {
		return empty( $this->pipes );
	}

	public function random_pipe() {
		if ( $this->zero() ) {
			return null;
		}

		return $this->pipes[array_rand( $this->pipes )];
	}

	public function to_array() {
		return array_map(
			static function ( WPCF7_Pipe $pipe ) {
				return array(
					$pipe->before,
					$pipe->after,
				);
			},
			$this->pipes
		);
	}
}


/**
 * Trait for classes that hold cross-tag WPCF7_Pipes object.
 */
trait WPCF7_PipesHolder {

	protected $pipes;

	public function get_pipes( $field_name ) {
		if ( isset( $this->pipes[$field_name] ) ) {
			return $this->pipes[$field_name];
		}

		$result = new WPCF7_Pipes();

		$tags = $this->scan_form_tags( array(
			'name' => $field_name,
		) );

		foreach ( $tags as $tag ) {
			if ( $tag->pipes instanceof WPCF7_Pipes ) {
				$result->merge( $tag->pipes );
			}
		}

		return $this->pipes[$field_name] = $result;
	}

	public function scan_form_tags() {
		return array();
	}

}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
9 Feb 2026 2.56 AM
bravrvjk / bravrvjk
0755
block-editor
--
9 Feb 2026 2.56 AM
bravrvjk / bravrvjk
0755
config-validator
--
9 Feb 2026 2.56 AM
bravrvjk / bravrvjk
0755
css
--
9 Feb 2026 2.56 AM
bravrvjk / bravrvjk
0755
js
--
9 Feb 2026 2.56 AM
bravrvjk / bravrvjk
0755
swv
--
9 Feb 2026 2.56 AM
bravrvjk / bravrvjk
0755
capabilities.php
0.814 KB
26 Nov 2018 11.08 PM
bravrvjk / bravrvjk
0644
contact-form-functions.php
10.265 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
contact-form-template.php
5.643 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
contact-form.php
30.744 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
controller.php
3.162 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
file.php
10.126 KB
5 Aug 2025 12.17 PM
bravrvjk / bravrvjk
0644
filesystem.php
2.997 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
form-tag.php
14.286 KB
29 Oct 2025 12.57 PM
bravrvjk / bravrvjk
0644
form-tags-manager.php
14.567 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
formatting.php
14.474 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
functions.php
16.978 KB
5 Aug 2025 12.17 PM
bravrvjk / bravrvjk
0644
html-formatter.php
20.657 KB
5 Aug 2025 12.17 PM
bravrvjk / bravrvjk
0644
integration.php
8.759 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
l10n.php
3.374 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
mail-tag.php
4.097 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
mail.php
15.147 KB
8 Feb 2026 2.28 PM
bravrvjk / bravrvjk
0644
pipe.php
2.618 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
pocket-holder.php
0.317 KB
10 Dec 2022 12.43 PM
bravrvjk / bravrvjk
0644
rest-api.php
12.99 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
shortcodes.php
2.662 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
special-mail-tags.php
6.528 KB
5 Aug 2025 12.17 PM
bravrvjk / bravrvjk
0644
submission.php
20.232 KB
5 Aug 2025 12.17 PM
bravrvjk / bravrvjk
0644
upgrade.php
3.099 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
validation-functions.php
6.667 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644
validation.php
3.256 KB
26 Jun 2025 1.13 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF