Sindbad~EG File Manager

Current Path : /home/escuelai/www/wp-content/plugins/redirection/matches/
Upload File :
Current File : /home/escuelai/www/wp-content/plugins/redirection/matches/cookie.php

<?php

require_once dirname( __FILE__ ) . '/http-header.php';

/**
 * Check that a cookie value exists
 */
class Cookie_Match extends Header_Match {
	public function name() {
		return __( 'URL and cookie', 'redirection' );
	}

	public function is_match( $url ) {
		if ( $this->regex ) {
			$regex = new Red_Regex( $this->value, true );
			return $regex->is_match( Redirection_Request::get_cookie( $this->name ) );
		}

		return Redirection_Request::get_cookie( $this->name ) === $this->value;
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists