| Server IP : 185.143.234.130 / Your IP : 185.215.232.195 Web Server : LiteSpeed System : Linux jambul.7ho.st 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 User : renecafe ( 1327) PHP Version : 8.1.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/xray/adviser/__pycache__/ |
Upload File : |
�
�N9i5� � �b � d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m
Z
mZ ddlm
Z
mZmZmZmZ ddlmZ ddlmZ ddlmZmZmZmZmZmZmZmZmZmZm Z dd l!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z' dd
l(m)Z) ddl*m+Z+ ddl,m-Z- dd
l.m/Z0 ddl1m2Z2 ddl3m4Z4 ddl5m6Z6m7Z7 ddl8m9Z9m:Z:m;Z;m<Z< ddl=m>Z>m?Z? ddl@mAZAmBZB ddlCmDZDmEZEmFZF ddlGmHZHmIZImJZJmKZK ddlLmMZM ddlNmOZO ddlPmQZQmRZR ddlSmTZTmUZU ddlVmWZW ddlXmYZYmZZZ dZ[dZ\d e]fd!�Z^ G d"� d#e� � Z_e G d$� d%� � � � Z` G d&� d'� � ZadS )(zB
This module contains X Ray Smart Advice local utility main class
� N)�contextmanager)�asdict� dataclass)�Any�Tuple�Optional�List�Dict)�Enum)�LicenseApproveStatus)�is_feature_allowed�is_subscription_pending�get_subscription_upgrade_url�get_license_approve_status�approve_license_agreement�get_license_agreement_text�get_subscriptions_info�get_user_auth_key�2is_smart_advice_notifications_disabled_server_wide�.is_smart_advice_reminders_disabled_server_wide�5is_smart_advice_wordpress_plugin_disabled_server_wide)�docroot�is_panel_feature_supported�get_user_emails_list�panel_awp_link� getCPName�userdomains)�
is_wp_path)�drop_privileges)�Feature)�gettext� )�get_advice_instance)�SmartAdviceProgress� )�
get_client�
api_client)�advice_pending_storage�advice_processed_storage�advice_list_cache�advice_reason_max_len)�get_lve_limits�
get_lve_usage)� XRayError�SmartAdvicePluginError)�user_mode_advice_verification�username_verification�get_xray_exec_user)� timestamp� safe_move�get_user_php_version�filelock)�report_usage_action_or_error)�ClWposGetter)�get_mu_directory�"create_mu_plugins_dir_if_not_exist)�plugin_installed�prepare_system_analytics_data)�report_analytics)�ImunifyManager�ADV_TYPE�;zE/opt/cloudlinux/flags/enabled-flags.d/xray-smart-advice-disabled.flag�returnc �J � t j � t � � S �N)�os�path�exists�SMART_ADVICE_DISABLED_FLAG� � �K/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/adviser/cli_api.py�_sa_disabledrK O s � �
�7�>�>�4�5�5�5rI c � � e Zd ZdZdZdS )�
AdviceActions�apply�rollbackN)�__name__�
__module__�__qualname__�APPLY�ROLLBACKrH rI rJ rM rM S s � � � � � ��E��H�H�HrI rM c �V � e Zd ZU eed<