AlkantarClanX12
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/clselect/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clselect/__pycache__/clselect.cpython-311.pyc |
� %�4gW � � � d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlmZ d dlm Z d dl mZ dd l mZmZ dd lmZ d dlmZ G d� d e� � ZdS )� )�absolute_import)�print_function)�divisionN)�glob)�map)�configparser� )�ClSelectExcept�BaseClSelectException)�clprint)� in_cagefsc �� � e Zd Z e� � rdndZe� d�Ze� d�ZdZe� d�Ze� d�Z e� d�Z d Zd ZdZ dZeez Ze ez Zd Zeez Ze ez Zed� � � Zed� � � Zd2d�Zd� Zd� Zd� Zd� Zd� Zd� Zd3d�Zd� Zd� Z d� Z!d� Z"d3d�Z#d� Z$d4d!�Z%d"� Z& ee&� � Z&d#� Z' ee'� � Z'd$� Z( ee(� � Z(d5d&�Z)d'� Z*d(� Z+d)� Z,d*� Z-d6d+�Z.d6d,�Z/d-� Z0d4d.�Z1d/� Z2d3d0�Z3d6d1�Z4d S )7�ClSelectz/etc/cl.selector.conf.dz/etc/cl.selectorz/selector.confz /defaults.cfgz/usr/bin/phpz/native.confz /user.confz/php.extensions.d/z/usr/sbin/cagefsctlz/var/lvez/var/lve/php.dat.dz /php%s.datz/php_native_ver.datc � � t � � rd S ddlm} m} n# t $ r t d� � �w xY w | � � s |� � st d� � �d S d S )Nr ��!multiphp_system_default_is_ea_php�selector_modules_must_be_usedzCageFS not installed.zesystem default PHP version is alt-php. PHP Selector is disabled. Use cPanel MultiPHP manager instead.)r �clcagefslib.selector.configurer r �ImportErrorr r s �H/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clselect.py�%check_multiphp_system_default_versionz.ClSelect.check_multiphp_system_default_version/ s� � ��;�;� ��F� A�w�w�w�w�w�w�w�w�w��� A� A� A�'�(?�@�@�@� A���� 1�0�2�2� Q�;X�;X�;Z�;Z� Q�'� )P� Q� Q� Q� Q� Q� Q� Qs � �5c �T � t j � t j � � S �N)�os�path�existsr � USER_CONF� � r �work_without_cagefszClSelect.work_without_cagefs<