File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/date.php.tar
var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-includes/date.php 0000644 00000000620 15153002105 0020561 0 ustar 00 <?php
/**
* Class for generating SQL clauses that filter a primary query according to date.
*
* This file is deprecated, use 'wp-includes/class-wp-date-query.php' instead.
*
* @deprecated 5.3.0
* @package WordPress
*/
_deprecated_file( basename( __FILE__ ), '5.3.0', WPINC . '/class-wp-date-query.php' );
/** WP_Date_Query class */
require_once ABSPATH . WPINC . '/class-wp-date-query.php';
vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/contact-form-7/includes/swv/php/rules/date.php 0000644 00000001076 15155345433 0031163 0 ustar 00 var/www <?php
namespace Contactable\SWV;
class DateRule extends 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 ) {
$input = $this->get_default_input();
$input = wpcf7_array_flatten( $input );
$input = wpcf7_exclude_blank( $input );
foreach ( $input as $i ) {
if ( ! wpcf7_is_date( $i ) ) {
return $this->create_error();
}
}
return true;
}
}