관리-도구
편집 파일: wordpress_plugin_manager.cpython-311.pyc
� b��f� � � � d dl Z d dlZd dlZd dlZd dlZd dlmZ G d� d� � Z G d� de� � Z de iZ d� Zd efd �Z d� Zd� ZdS ) � N)�gettextc �N � e Zd ZdZdZdZdZdZdZd� Z d� Z d� Zdedefd �Z d � ZdS )�Pluginz\ Helper class which hides differences of WordPress plugins behind abstract methods. � Nc � � | � � � x}�dS |D ]}d|| v r|| d c S �t j d| j � � dS )z'Get the plugin version from plugin dataN�versionz Can't get the %s plugin version.)�_get_data_dict�logging�error�NAME)�self�plugin_data�sections �\/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/adviser/wordpress_plugin_manager.py�_get_versionzPlugin._get_version st � ��.�.�0�0�0�K�9��4�"� 7� 7�G��K��0�0�0�"�7�+�I�6�6�6�6� 1� � �9�4�9�E�E�E��t� c � �� t j � � ��� | j � � �fd��� � � D � � }|S )zRead the ini filec �V �� i | ]%}|t �� |� � � � ��&S � )�dict�items)�.0�s� config_objects �r � <dictcomp>z)Plugin._read_ini_file.<locals>.<dictcomp>- s1 �� �Q�Q�Q�1��$�}�*�*�1�-�-�.�.�Q�Q�Qr )�configparser�ConfigParser�read�INFO_FILE_PATH�sections)r �outputr s @r �_read_ini_filezPlugin._read_ini_file) sR �� �$�1�3�3� ����4�.�/�/�/�Q�Q�Q�Q� �8N�8N�8P�8P�Q�Q�Q��� r c �� � | j �\t j � | j � � r| � � � }|| _ nt j d| j � � dS | j S )�!Get the plugin data from ini fileNzCan't read the %s plugin data.) �PLUGIN_DATA�os�path�existsr r"