文件操作 - cookie.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/clear2perfection/public_html/wp-content/plugins/redirection/matches/cookie.php
编辑文件内容
<?php require_once __DIR__ . '/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 ); $cookie = Redirection_Request::get_cookie( $this->name ); if ( $cookie === false ) { return false; } return $regex->is_match( $cookie ); } return Redirection_Request::get_cookie( $this->name ) === $this->value; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件