📁
SKYSHELL MANAGER
PHP v8.1.34
Create
Create
Path:
root
/
home
/
terracebizon
/
public_html
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
config.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
12934.91 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: wpos_admin.cpython-311.pyc
� �wlj~* � �� � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlZd dlZd dl mZ d dlmZ d dlmZmZmZmZmZmZ d dlmZ d dlmZ d dlmZ d d lmZm Z m!Z!m"Z"m#Z# d d l$m%Z% d dl&m'Z' d dl(m)Z)m*Z* d d l+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3 d dl4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z< d dl=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJ d dlKmLZL d dlMmNZN d dlOmPZP d dlQmRZRmSZSmTZTmUZUmVZVmWZWmXZXmYZYmZZZm[Z[m\Z\m]Z]m^Z^m_Z_m`Z`maZa d dlbmcZc d dldmeZfmgZg d dlhmiZimjZj d dlkmlZlmmZmmnZn d dlompZp d dlqmrZrmsZs d dltmuZumvZvmwZwmxZxmyZymzZzm{Z{m|Z|m}Z}m~Z~mZm�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z� d dl�m�Z�m�Z�m�Z�m�Z� d dl�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z� d dl�m�Z�m�Z� d dl�m�Z� d dl�m�Z� d d l�m�Z� d d!l�m�Z�m�Z�m�Z� efd"� � Z� efd#� � Z� eid$d%ejd&�'� � Z� ele�� � Z�d(Z� e j� d)� � Z� G d*� d+e�� � Z�d,e�d-e�d.ee�e,f d/ee�e,f fd0�Z�d1� Z�d2� Z�d,e�d-e�d3ee� d4ee� fd5�Z�d,e�d6eee�e�e�f fd7�Z�d8� Z� d>d9e�d:e�dz d;e�dz d<e�dz d6df d=�Z�dS )?� )�absolute_importN)�deepcopy)�asdict)�Dict�Iterator�Set�Tuple�List�Optional)�Enum)�5is_smart_advice_wordpress_plugin_disabled_server_wide)� pid_exists)�cpusers�userdomains�is_admin�cpinfo� getCPName)�get_or_create_unique_identifier��migrate_configs)�install_cron_files�clean_clwpos_crons)� FeatureStatus�FeatureStatusEnum�AdminSuitesConfig�any_suite_visible_on_server�is_module_visible_for_user�StatusSource�extract_suites�is_suite_visible_for_user)�ALL_OPTIMIZATION_FEATURES�OBJECT_CACHE_FEATURE�CDN_FEATURE�enable_without_config_affecting� disable_without_config_affecting�DocRootPath�SITE_OPTIMIZATION_FEATURE�Feature) � ALL_SUITES�BILLABLE_SUITES�UNSUPPORTED_SUITES_FOR_RESELLER�any_suite_allowed_on_server�get_suites_allowed_path�get_admin_suites_config�write_suites_allowed�extract_features�is_module_allowed_for_user�PremiumSuite�CDNSuitePro�CDNSuite�AWPSuite)�drop_privileges)� WposError)� UserConfig)�ALT_PHP_REDIS_ENABLE_UTILITY�CLWPOS_UIDS_PATH�PHP_REDIS_ENABLE_UTILITY�SUITES_MARKERS�MIGRATION_NEEDED_MARKER� SCAN_CACHE�ADMIN_ENABLE_FEATURE_STATUS�ADMIN_ENABLE_FEATURE_PID�$ADMIN_UPDATE_OBJECT_CACHE_BANNER_PID�USERS_PLUGINS_SYNCING_PID�CLN_URL�SMART_ADVICE_ROOT_UTILITY�ON_OFF_IDENTIFIERS�XRAY_MANAGER_UTILITY�CLWPOS_WHMCS_STATS_FILE�MANAGE_SUITE_IN_CLN_DOC)�reload_redis)�gettext�billing)�ArgumentParser�CustomFormatter)� setup_logging�init_wpos_sentry_safely�ADMIN_LOGFILE_PATH)� NoPackage)�ReportGenerator�ReportGeneratorError)�catch_error�error_and_exit� print_data�check_license_decorator�set_wpos_icon_visibility�acquire_lock�write_public_options�get_pw�is_redis_configuration_running�install_monitoring_daemon�get_server_wide_options�is_ui_icon_hidden�ServerWideOptions�daemon_communicate�ExtendedJSONEncoder�is_shared_pro_safely�get_supported_suites�jwt_token_check�should_xray_user_agent_enabled�should_xray_user_agent_disabled�get_accelerate_wp_version�is_user_owned_by_reseller�ensure_maxcache_available)�get_backup_folders�backup_accelerate_wp�+restore_accelerate_wp_public_options_backup�%make_accelerate_wp_backups_deprecated)�install_dynamic_panel_hooks�"install_yum_universal_hook_alt_php�!install_yum_universal_hook_ea_php�$install_yum_universal_hook_plesk_php�$uninstall_yum_universal_hook_alt_php�#uninstall_yum_universal_hook_ea_php�&uninstall_yum_universal_hook_plesk_php�uninstall_dynamic_panel_hooks)�setup_mount_dir_cagefs�_remount_cagefs��fill_current_wpos_statistics)�has_wps)� disable_quota)�configure_accelerate_wp�configure_accelerate_wp_premium�configure_accelerate_wp_cdnz{Unable to run CL AccelerateWP daemon. Caching databases won't start and work. You can find detailed information in log filez�Configuration of PHP redis extension is running in background process. This may take up to several minutes. Until the end of this process functionality of CL AccelerateWP is limited.z/usr/bin/clwpos-adminz3Utility for control CL AccelerateWP admin interfaceF)�formatter_class�allow_abbrev�ALLz^[a-zA-Z0-9._-]+$c � � e Zd ZdZ G d� de� � Zd� Zed� � � Zd� Z e d� � � Ze d� � � Ze d � � � Z d edz dedz fd �Ze� � � defd�� � Zee� dd�� � e� ddd�� � e� ddd�� � e� � � edefd�� � � � � � � � � � � � Zee� ddd�� � e� � � ed� � � � � � � � � Zee� � � edefd�� � � � � � Zee� � � edefd�� � � � � � Ze dLd �� � Zd!ee dee fd"�Zedefd#�� � Zd$� Zd%� Z d&ee fd'�Z!d(� Z"edefd)�� � Z#d*� Z$d+� Z%eed,� � � � � Z&edefd-�� � Z'defd.�Z(edefd/�� � Z)ed0� � � Z*d1� Z+d2� Z,d3� Z-d4� Z.d5� Z/ee� � � d6� � � � � Z0ee� � � dMdefd7�� � � � Z1ee� � � d8� � � � � Z2ee� � � d9� � � � � Z3e d:e4d;e5defd<�� � Z6d=� Z7d>ed?ee d@e8dAe9dBe:j; dCe<dDedEede=ee>e f fdF�Z?dG� Z@dH� ZAdIefdJ�ZBedK� � � ZCdS )N�CloudlinuxWposAdminz6 Class for run cloudlinux-wpos-admin commands c � � e Zd ZdZdZdZdZdS )�"CloudlinuxWposAdmin.EnablingStatuszH Basic statuses while feature is enabling in background �idle�progress�doneN)�__name__� __module__�__qualname__�__doc__�IDLE�PROGRESS�DONE� � �H/opt/cloudlinux/venv/lib64/python3.11/site-packages/clwpos/wpos_admin.py�EnablingStatusr� � s) � � � � � � � � �������r� r� c �F � d| _ | t t � � | _ t | j � � d| _ d| _ t t j � d� � � � | _ | j rt j | _ d S t j | _ d S )NFz/var/clwposzmodules_allowed.json�CL_WPOS_WAIT_CHILD_PROCESS)�_is_jsonrN r� �_loggerrO �clwpos_path�modules_allowed_name�bool�os�environ�get�wait_child_process� subprocess�run� exec_func�Popen��selfs r� �__init__zCloudlinuxWposAdmin.__init__� s� � ��� ��&�$�X�.�.������-�-�-�(���$:��!�"&�r�z�~�~�6R�'S�'S�"T�"T����"� .�'�^�D�N�N�N�'�-�D�N�N�Nr� c �8 � | � |� � | _ d| _ | j � dt | j � � � � t | | j j � dd� � � � � � }t | j |� � dS )zs Run command action :param argv: sys.argv[1:] :return: clwpos-user utility retcode Tz6CloudLinux Admin CLI command called with arguments: %s�-�_N) �_parse_args�_optsr� r� �info�str�getattr�command�replacerV )r� �argv�results r� r� zCloudlinuxWposAdmin.run� s� � � �%�%�d�+�+�� ��� �����R�TW�X\�Xb�Tc�Tc�d�d�d�D���t�z�1�9�9�#�s�C�C�D�D�F�F���4�=�&�)�)�)�)�)r� c � � t ��N)�NotImplementedError)r� r� s r� r� zCloudlinuxWposAdmin._parse_args� s � �!�!r� c � � | D ]{}t j |� � ret j � t j |� � � � s4t t j |� � d� � � � � �|d S )N�w)r<