https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /opt/alt/python37/lib/python3.7/site-packages/clcommon/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python37/lib/python3.7/site-packages/clcommon/__pycache__/clconfig.cpython-37.pyc
B

(
c��@sDddlmZddlmZddlmZddlZdZdd�Zdd	�ZdS)
�)�absolute_import)�division)�print_functionNz/var/cpanel/cpanel.configc	Cshyt|�}|��}Wnttfk
r,dSXx4|D],}|�d|�r4|��|���d�dSq4WdS)z�
    Get param from config file
    :param path: Path to config file
    :type path: str
    :param param: Key for param in config file
    :type param: str
    Fz%s=�=�N)�open�	readlines�OSError�IOError�
startswith�close�strip�split)�path�param�fd�data�line�r�B/opt/alt/python37/lib/python3.7/site-packages/clcommon/clconfig.py�	get_params
rc
Cs�d||f}tj�|�s<t|d��}|�|�WdQRXdSt|��}|��}WdQRXxTt|�D]H\}}|�d|�rb|||<t|d��}|�d�|��WdQRXdSqbWt|d��}|�|�WdQRXdS)a
    Replaces config file with path to config file with line param=value
    :param path: Path to config file
    :type path: str
    :param param: Key for param in config file
    :type key: str
    :param value: Value for param in config file
    :type value: str
    z%s=%s
�wNz%s=��a)	�osr�existsr�writer�	enumerater�join)rr�valueZnew_line�fr�irrrr�
replace_param#s

r")Z
__future__rrrrZCPANEL_CONFIG_PATHrr"rrrr�<module>s

https://t.me/AnonymousX5 - 2025