[ Avaa Bypassed ]




Upload:

Command:

www-data@18.226.251.231: ~ $
<?php

class WPCF7_SWV_DateRule extends WPCF7_SWV_Rule {

	const rule_name = 'date';

	public function matches( $context ) {
		if ( false === parent::matches( $context ) ) {
			return false;
		}

		if ( empty( $context['text'] ) ) {
			return false;
		}

		return true;
	}

	public function validate( $context ) {
		$field = $this->get_property( 'field' );
		$input = isset( $_POST[$field] ) ? $_POST[$field] : '';
		$input = wpcf7_array_flatten( $input );
		$input = wpcf7_exclude_blank( $input );

		foreach ( $input as $i ) {
			if ( ! wpcf7_is_date( $i ) ) {
				return new WP_Error( 'wpcf7_invalid_date',
					$this->get_property( 'error' )
				);
			}
		}

		return true;
	}

}

Filemanager

Name Type Size Permission Actions
date.php File 684 B 0644
dayofweek.php File 1.09 KB 0644
email.php File 688 B 0644
enum.php File 956 B 0644
file.php File 1.42 KB 0644
maxdate.php File 825 B 0644
maxfilesize.php File 796 B 0644
maxitems.php File 787 B 0644
maxlength.php File 869 B 0644
maxnumber.php File 851 B 0644
mindate.php File 825 B 0644
minfilesize.php File 796 B 0644
minitems.php File 787 B 0644
minlength.php File 869 B 0644
minnumber.php File 851 B 0644
number.php File 692 B 0644
required.php File 654 B 0644
requiredfile.php File 695 B 0644
tel.php File 680 B 0644
time.php File 684 B 0644
url.php File 680 B 0644