Server IP : 52.91.253.208 / Your IP : 3.133.158.32 [ Web Server : Apache System : Linux ip-172-26-9-9 4.19.0-25-cloud-amd64 #1 SMP Debian 4.19.289-1 (2023-07-24) x86_64 User : daemon ( 1) PHP Version : 7.3.18 Disable Function : NONE Domains : 3 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/redirection/matches/ |
Upload File : |
<?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; } }