관리-도구
편집 파일: directadmin.cpython-311.pyc
� P�Cg&� � �J � d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m Z mZmZ ddl mZ ddlZddlmZmZmZmZmZmZ ddlmZ ddlmZ dd lmZmZ dd lmZm Z m!Z!m"Z"m#Z#m$Z$ ddl%m&Z&m'Z'm(Z( ddl)m*Z+ dd l,m-Z- ddl.m/Z/m0Z0m1Z1m2Z2 dZ3dZ4ej5 �6 e4d� � Z7ej5 �6 e4d� � Z8ej5 �6 e4d� � Z9ej5 �6 e8d� � Z:ej5 �6 e4dd� � Z;dZ<dZ=ej5 �6 e8d� � Z>ej5 �6 e>d� � Z?ej5 �6 e>d� � Z@ ejA d ejB e<� � � �� � ZCd� ZDd� ZEd� ZFd � ZGd!� ZHdDd#�ZIdEd%�ZJdFd'�ZKd(� ZLd)� ZMd*� ZNd+� ZOd,� ZPd-� ZQdGd.�ZRd/� ZSd0� ZT e'jU e=g�1� � d2e eVeVf fd3�� � ZWd4� ZXdHd5�ZYd6� Z*d7� ZZd8� Z[d9� Z\d:� Z]d;� Z^d<� Z_d=� Z`d>� Zad?� Zbd@� ZcdA� Zd G dB� dCe'� � ZedS )Iz. CloudLinux API for DirectAdmin control panel � N)� format_exc)�Dict�List�Tuple)�urlparse)�WebConfigMissing�WebConfigParsingError�apache_conf_parser� load_fast�nginx_conf_parser�&read_unicode_file_with_decode_fallback)�load)�ClPwd)�"_docroot_under_user_via_custom_bin�get_domains_via_custom_binary)�CpApiTypeError�NoDBAccessData�NoDomain�NoPanelUser�ParsingError� ReadFileError)�DomainDescription�GeneralPanelPluginV1�PHPDescription��get_admin_email)�Feature)�ExternalProgramFailed�find_module_param_in_config�get_file_lines�grep�DirectAdminz/usr/local/directadminzconf/directadmin.conf�datazconf/mysql.conf�users�custombuildzoptions.confz user.confz/etc/virtual/domainowners�adminz reseller.list� admin.listz.+/(.+)/c �~ � t j � d� � pt j � d� � S )N�"/usr/local/directadmin/directadminz(/usr/local/directadmin/custombuild/build)�os�path�isfile� � ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.17-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/cpapi/plugins/directadmin.py�detectr0 K s2 � � �7�>�>�>�?�?� F� �7�>�>�D�E�E�Fr. c � � i } t t � � }|d | d<