$90 GRAYBYTE WORDPRESS FILE MANAGER $21

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/xray/manager/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/xray/manager//__init__.py
# -*- coding: utf-8 -*-

# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2021 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT

import os
from .base import BaseManager
from .cpanel import CPanelManager
from .custom import CustomManager
from .directadmin import DirectAdminManager
from .plesk import PleskManager
from ..internal.utils import read_jwt_token


def initialize_manager(system_id: str) -> 'Manager instance':
    """
    Factory function for appropriate manager initialization
    :return: appropriate manager instance
    """
    # check validity of JWT token as early as possible
    read_jwt_token()
    if os.path.isfile('/usr/local/cpanel/cpanel'):
        m = CPanelManager
    elif os.path.isfile('/usr/local/psa/version'):
        m = PleskManager
    elif os.path.isdir('/usr/local/directadmin') and os.path.isfile(
            '/usr/local/directadmin/custombuild/build'):
        m = DirectAdminManager
    else:
        m = CustomManager

    is_phpinfo_mode = os.path.exists('/opt/cloudlinux/flags/enabled-flags.d/'
                                     'xray-per-domain-php-version-mode.flag')
    return m(system_id, phpinfo_mode=is_phpinfo_mode)

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Dec 2025 9.31 PM
root / root
0755
__pycache__
--
16 Dec 2025 9.32 PM
root / root
0755
__init__.py
1.22 KB
20 Oct 2025 7.04 PM
root / root
0644
base.py
30.591 KB
20 Oct 2025 7.04 PM
root / root
0644
cpanel.py
8.256 KB
20 Oct 2025 7.04 PM
root / root
0644
custom.py
5.986 KB
20 Oct 2025 7.04 PM
root / root
0644
directadmin.py
12.874 KB
20 Oct 2025 7.04 PM
root / root
0644
plesk.py
6.801 KB
20 Oct 2025 7.04 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF