??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/rosestpetronal.nl/wp-content/plugins/contact-form-7/includes/pipe.php
⬅ Kembali
<?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();
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 block-editor
dir
—
2026-06-11 12:00
📁 config-validator
dir
—
2026-06-11 12:00
📁 css
dir
—
2026-06-11 12:00
📁 js
dir
—
2026-06-11 12:00
📁 swv
dir
—
2026-06-11 12:00
🐘 capabilities.php
php
834 B
2026-06-11 12:00
🐘 contact-form-functions.php
php
10.3 KB
2026-06-11 12:00
🐘 contact-form-template.php
php
5.6 KB
2026-06-11 12:00
🐘 contact-form.php
php
30.7 KB
2026-06-11 12:00
🐘 controller.php
php
3.2 KB
2026-06-11 12:00
🐘 file.php
php
10.1 KB
2026-06-11 12:00
🐘 filesystem.php
php
3 KB
2026-06-11 12:00
🐘 form-tag.php
php
14.3 KB
2026-06-11 12:00
🐘 form-tags-manager.php
php
14.6 KB
2026-06-11 12:00
🐘 formatting.php
php
14.5 KB
2026-06-11 12:00
🐘 functions.php
php
17 KB
2026-06-11 12:00
🐘 html-formatter.php
php
20.7 KB
2026-06-11 12:00
🐘 integration.php
php
8.8 KB
2026-06-11 12:00
🐘 l10n.php
php
3.4 KB
2026-06-11 12:00
🐘 mail-tag.php
php
4.1 KB
2026-06-11 12:00
🐘 mail.php
php
15.1 KB
2026-06-11 12:00
🐘 pipe.php
php
2.6 KB
2026-06-11 12:00
🐘 pocket-holder.php
php
325 B
2026-06-11 12:00
🐘 rest-api.php
php
13 KB
2026-06-11 12:00
🐘 shortcodes.php
php
2.7 KB
2026-06-11 12:00
🐘 special-mail-tags.php
php
6.5 KB
2026-06-11 12:00
🐘 submission.php
php
20.2 KB
2026-06-11 12:00
🐘 upgrade.php
php
3.1 KB
2026-06-11 12:00
🐘 validation-functions.php
php
6.7 KB
2026-06-11 12:00
🐘 validation.php
php
3.3 KB
2026-06-11 12:00