-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
public_html
/
wp-content
/
plugins
/
contact-form-7
/
includes
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
block-editor
--
NONE
css
--
NONE
js
--
NONE
.htaccess
0.231KB
Edit File
Delete File
Rename
capabilities.php
0.814KB
Edit File
Delete File
Rename
config-validator.php
19.483KB
Edit File
Delete File
Rename
contact-form-functions.php
6.6KB
Edit File
Delete File
Rename
contact-form-template.php
5.438KB
Edit File
Delete File
Rename
contact-form.php
28.371KB
Edit File
Delete File
Rename
controller.php
3.079KB
Edit File
Delete File
Rename
file.php
9.027KB
Edit File
Delete File
Rename
form-tag.php
8.659KB
Edit File
Delete File
Rename
form-tags-manager.php
8.72KB
Edit File
Delete File
Rename
formatting.php
13.731KB
Edit File
Delete File
Rename
functions.php
15.251KB
Edit File
Delete File
Rename
integration.php
7.634KB
Edit File
Delete File
Rename
l10n.php
2.085KB
Edit File
Delete File
Rename
mail.php
12.063KB
Edit File
Delete File
Rename
pipe.php
1.865KB
Edit File
Delete File
Rename
rest-api.php
11.498KB
Edit File
Delete File
Rename
shortcodes.php
2.63KB
Edit File
Delete File
Rename
special-mail-tags.php
6.055KB
Edit File
Delete File
Rename
submission.php
17.635KB
Edit File
Delete File
Rename
upgrade.php
2.049KB
Edit File
Delete File
Rename
validation-functions.php
4.331KB
Edit File
Delete File
Rename
validation.php
1.767KB
Edit File
Delete File
Rename
<?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 = trim( $text ); } else { $this->before = trim( substr( $text, 0, $pipe_pos ) ); $this->after = trim( substr( $text, $pipe_pos + 1 ) ); } } } /** * Class representing a list of pipes. */ class WPCF7_Pipes { private $pipes = array(); public function __construct( array $texts ) { foreach ( $texts as $text ) { $this->add_pipe( $text ); } } private function add_pipe( $text ) { $pipe = new WPCF7_Pipe( $text ); $this->pipes[] = $pipe; } 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( function( WPCF7_Pipe $pipe ) { return array( $pipe->before, $pipe->after, ); }, $this->pipes ); } }
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat