🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-15 04:43:18 | PHP 8.1.34
📂
/ (Root)
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clselect
/
__pycache__
📍 /opt/cloudlinux/venv/lib/python3.11/site-packages/clselect/__pycache__
🔄 Refresh
✏️
Editing: cluseroptselect.cpython-311.pyc
Read Only
� ��j#g � � � d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlZd dl m Z d dlmZ ddl mZ dd lmZ d d lmZ d dlmZ ddlmZ d d lmZ d dlmZ d dlmZmZmZmZmZ d� Z G d� de� � Z!dS )� )�absolute_import)�print_function)�divisionN)�map)� iteritems� )�ClUserExtSelect)�ClSelectExcept)� clcaptain)�clcagefs)�utils)�unescape)�ExternalProgramFailed)� PhpConfReader�PhpConfBaseException�PhpConfReadError�PhpConfLoadException�!PhpConfNoSuchAlternativeExceptionc �P �� t j | d�� � }�fd�� �|� � S )zRSafely evaluate a bitwise expression containing only integers and |&~!^ operators.�eval)�modec � �� t | t j � � r �| j � � S t | t j � � r!t | j t � � r| j S t t d� � r!t | t j � � r| j S t | t j � � r�t | j t j t j f� � rNt | j t j � � r �| j � � nt �| j � � � � S t d� � �t | t j � � r� �| j � � } �| j � � }t | j t j � � r||z S t | j t j � � r||z S t | j t j � � r||z S t d� � �t d� � �)N�Numzunsupported unary operatorzunsupported binary operatorzunsupported expression)� isinstance�ast� Expression�body�Constant�value�int�hasattrr �n�UnaryOp�op�Invert�Not�operand� ValueError�BinOp�left�right�BitOr�BitAnd�BitXor)�noder* r+ �_evals ��O/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/cluseroptselect.pyr0 z!_eval_bitwise_expr.<locals>._eval# s� �� ��d�C�N�+�+� $��5���#�#�#��d�C�L�)�)� �j���S�.I�.I� ��:�� �3���� �:�d�C�G�#<�#<� ��6�M��d�C�K�(�(� ;��$�'�C�J���#8�9�9� q�/9�$�'�3�:�/N�/N�p���d�l�+�+�+�+�TW�\a�\a�bf�bn�\o�\o�Xo�Tp�Tp�p��9�:�:�:��d�C�I�&�&� <��5���#�#�D��E�$�*�%�%�E��$�'�3�9�-�-� $��e�|�#��$�'�3�:�.�.� $��e�|�#��$�'�3�:�.�.� $��e�|�#��:�;�;�;��1�2�2�2� )r �parse)�expr�treer0 s @r1 �_eval_bitwise_exprr6 s@ �� ��9�T��'�'�'�D�3� 3� 3� 3� 3�2 �5��;�;�r2 c �r � e Zd ZdZ ej � � rdndZd$d�Z d%d �Z d&d �Z d&d�Z d'd�Zd(d �Zd)d�Z d*d�Zd� Zd� Zd� Zd+d�Z ee� � Zd,d�Z ee� � Zd-d�Z ee� � Zd+d�Zd� Z ee� � Zd� Zd� Z ee� � Zd� Zd� Zd� Zd� Zd� Zd(d �Z d+d!�Z!d"� Z"d#� Z#dS ).�ClUserOptSelectz+ Class for processing user options z /etc/cl.selector.conf.d/php.confz/etc/cl.selector/php.conf�phpNc �� � t j | ||� � i | _ t � � | _ ddddddd�| _ d� t | j � � D � � | _ d S ) Nz z"z'z>z<z&)� �"�'�>�<�&c � � i | ]\ }}||�� S � rB )�.0�k�vs r1 � <dictcomp>z,ClUserOptSelect.__init__.<locals>.<dictcomp>K s � �$Y�$Y�$Y�d�a��Q��$Y�$Y�$Yr2 )r �__init__� _whitelist�set�_user_excludes�_html_escape_tabler �_html_unescape_table)�self�item�exclude_pid_lists r1 rG zClUserOptSelect.__init__E sq � �� ��t�-=�>�>�>����!�e�e���(0�x�h�(.�V�'�#K� #K���$Y�$Y�i��@W�6X�6X�$Y�$Y�$Y��!�!�!r2 FTc �$ � i } |dk r/| � ||d�� � } | � | ||� � } t j | j | j � | j � |� � � � t j || |||� � S )z� Inserts supplied options into current ones @param optset: string @param decoder: string @param website: Website or None for per-domain configuration � T��optset�decoder�expect_separator) �_process_option_string�_remove_forbidden_optionsr �apply_for_at_least_one_user�insert_json_options�_clpwd� get_names�get_uidr �UnableToSaveData) rM �user�versionrS rT �append�quiet�create�website�optionss r1 �insert_optionszClUserOptSelect.insert_optionsM s� � � ���R�<�<��1�1��w�� 2� G� G�G��4�4�W�g�u�M�M�G��0��$��K�!�!�$�+�"5�"5�d�";�";�<�<��+��W�f�f�g� � � r2 c �& � | � |� � | � |||�� � }| � |� � \ }} } | � |� � }|r|� |� � n|}| � |� � }|r| � |� � }| � || | � � }t dt |� � � � D ]M} || }|� d� � }t |� � dk r�3|d dk r|d dz || <