ok
Direktori : /opt/cloudlinux/venv/lib64/python3.11/site-packages/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/__pycache__/cldetectlib.cpython-311.pyc |
� ;G�f�H � �� � d dl Z d dlZd dlZd dlZd dlZd dlmZmZmZ d dl m Z d dlmZm Z dadadadad adadadZdZd ZdZd ZdZdZd ZdZdadadZ dZ!dZ"e j# �$ e� � reZneZd� Z%d� Z&d=d�Z'd� Z(d� Z)d� Z*d� Z+d� Z,d� Z-d� Z.d� Z/d� Z0d� Z1d � Z2d!� Z3d"� Z4d#� Z5d$� Z6d%� Z7d&� Z8d'� Z9d(� Z:d)� Z;d*� Z<d+� Z=d,� Z>d-� Z?d.� Z@d/� ZAd0� ZBd1� ZCd2� ZDd3� ZEd4� ZFd5� ZGd6� ZHd7� ZId8� ZJd9� ZKd>d<�ZLdS )?� N)�ConfigParser�NoSectionError� NoOptionError)�cpapi)� SysCtlConf�SYSCTL_CL_CONF_FILE�0 �apachez%/usr/local/lsws/conf/httpd_config.xmlz&/usr/local/lsws/conf/httpd_config.confz/usr/local/lsws/VERSIONz*/usr/lib/systemd/system/postgresql.servicez/etc/rc.d/init.d/postgresqlz/var/lock/cldeploy.lckz/etc/sysconfig/cloudlinuxz/etc/ssh/sshd_configzCloudLinux OS Shared ProzCloudLinux OS SharedzCloudLinux OS Soloc �H � t j � d� � rdS dS )Nz/etc/cpanel/ea4/is_ea4TF��os�path�exists� � �py/cldetectlib.py�is_ea4r M s# � � �w�~�~�.�/�/� ��t��5r c �: � da dad a t j � � } | d a | d a| d an# t $ r Y nw xY w t dd�� � 5 }|� � � }t j d |� � d }t j d|� � d }da |� d |� �a d d d � � dS # 1 swxY w Y n# t $ r Y nw xY wt j � d� � rda dadS t j � d� � rda dadS t j � d� � st j � d� � rda dadS t j � d� � rda dadS t j � d� � rda dadS t j � d� � rda dadS t j � d� � rda dadS t j � d� � rd a dadS d!S )"N�Unknown�0�name�version�additional_infoz/hsphere/shared/version�utf-8��encodingzRelease:\s+(.+)r zVersion:\s+(.+)�H-Sphere�.T�/lib64/libnss_ng.so� HostingNG�none�/usr/local/cwpsrv�CentOS_WEB_Panel�'/etc/httpd/conf.d/atomia-pa-apache.conf�!/storage/configuration/cloudlinux�Atomia_agent�/usr/local/CyberCP� Cyberpanel� /var/phmgr�PlaneHoster�/usr/local/vesta�Vesta�/etc/virtualmin-license�VirtualminWebmin�/usr/local/webuzo/universal.php�WebuzoF)�CP_NAME� CP_VERSION�CP_ISP_TYPEr �get_cp_description� Exception�open�read�re�findallr r �isfile�isdir)� panel_data�f�data�releaser s r �getCPr@ T s� � � �G��J��K� ��-�/�/� ��V�$��� �*� � �!2�3����� � � ��� ���� � �+�g� >� >� >� �!��6�6�8�8�D��j�!3�T�:�:�1�=�G��j�!3�T�:�:�1�=�G� �G�#�/�/�g�/�/�J�� � � � � � � � � � � � ���� � � � � �� � � � ��� ���� �w�~�~�+�,�,� ���� ��t� �w�}�}�(�)�)� �$��� ��t� �w�~�~�?�@�@� ��G�M�M�=�>�>�� ��� ��t� �w�}�}�)�*�*� ���� ��t� �w�}�}�\�"�"� ���� ��t� �w�}�}�'�(�(� ���� ��t� �w�~�~�/�0�0� �$��� ��t� �w�~�~�7�8�8� ���� ��t� �5sF �+4 � A� A�C �AB8�+C �8B<�<C �?B<� C � C�C� c �� � t | dd�� � 5 }|� � � }d d d � � n# 1 swxY w Y n# t $ r |cY S w xY w|D ]�}|� � � }|� |� � rb|� |� � }t |� � dk r:|d � � � |k r|d � � � c S ��|S )N�rr r � r � )r6 � readlines�IOError�strip� startswith�split�len)� file_name� param_name� separator�default_valr= �content�line� linePartss r �get_param_from_filerS � s2 � �� �)�S�7� 3� 3� 3� $�q��k�k�m�m�G� $� $� $� $� $� $� $� $� $� $� $���� $� $� $� $���� � � ���������� ,� ,���z�z�|�|���?�?�:�&�&� ,�� � �9�-�-�I��I���!�#�#�)�A�,�*<�*<�*>�*>�*�*L�*L� ��|�)�)�+�+�+�+�+���s, �A �5�A �9�A �9�A �A�Ac � � t rt S t j � d� � rda �nt j � d� � rda �n�t j � d� � rda �n�t j � d� � st j � d� � rd a �n�t j � d � � rda �ntt j � d� � rd a �nQt j � d� � rda �n.t j � d� � rda �nt j � d� � st j � d� � rda n�t j � d� � rda n�t j � d� � rda n�t j � d� � rda ndt j � d� � rda nBt j � d� � rda n t j � � } | r | d a nd a t S )!Nz/usr/local/cpanel/cpanel�cPanelz/usr/local/psa/version�Pleskz"/usr/local/directadmin/directadmin�DirectAdminz/usr/local/ispmgr/bin/ispmgrz/usr/local/mgr5� ISPManagerz/usr/local/interworx� InterWorxz/hsphere/sharedr r r r"