$96 GRAYBYTE WORDPRESS FILE MANAGER $27

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/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/xray//shared_library.py
# -*- coding: utf-8 -*-
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2021 All Rights Reserv
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT
"""
This module contains X-ray objects that we pass
to other projects (such as SSA) for reuse
"""
import json
from typing import Optional

from xray.manager import initialize_manager
from xray.internal.exceptions import XRayError, XRayMissingDomain
from xray.internal.nginx_utils import NginxUserCache
from xray.internal.utils import read_sys_id
from xray.internal.types import DomainInfo


try:
    xray_manager = initialize_manager(read_sys_id())
except XRayError as e:
    xray_manager = None

# Passing an object to start autotracing
start_autotracing = xray_manager.start_autotracing if xray_manager else None


def tasks_list():
    """Returns list of current tasks"""
    try:
        return json.loads(xray_manager.tasks_list())['data']['result']
    except (json.JSONDecodeError, AttributeError, KeyError, XRayError):
        return list()


def domain_info(domain_name: str) -> Optional[DomainInfo]:
    """
    Passing an object to retrieve information about
    given domain from control panel environment
    """
    try:
        return xray_manager.get_domain_info(domain_name)
    except (AttributeError, XRayMissingDomain):
        # if there is no such domain name among the existing ones
        return None

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
17 Dec 2025 3.08 AM
root / root
0755
__pycache__
--
17 Dec 2025 2.54 AM
root / root
0755
adviser
--
16 Dec 2025 9.31 PM
root / root
0755
agent
--
16 Dec 2025 9.31 PM
root / root
0755
analytics
--
16 Dec 2025 9.31 PM
root / root
0755
apiclient
--
16 Dec 2025 9.31 PM
root / root
0755
console_utils
--
16 Dec 2025 9.31 PM
root / root
0755
continuous
--
16 Dec 2025 9.31 PM
root / root
0755
hooks
--
16 Dec 2025 9.31 PM
root / root
0755
internal
--
16 Dec 2025 9.31 PM
root / root
0755
manager
--
16 Dec 2025 9.31 PM
root / root
0755
reconfiguration
--
16 Dec 2025 9.31 PM
root / root
0755
__init__.py
0.649 KB
20 Oct 2025 7.04 PM
root / root
0644
cl-smart-advice-user.py
0.711 KB
20 Oct 2025 7.04 PM
root / root
0755
cl-smart-advice.py
0.694 KB
20 Oct 2025 7.04 PM
root / root
0755
cloudlinux-xray-agent.py
0.366 KB
20 Oct 2025 7.04 PM
root / root
0755
cloudlinux-xray-continuous.py
0.374 KB
20 Oct 2025 7.04 PM
root / root
0755
cloudlinux-xray-manager.py
0.375 KB
20 Oct 2025 7.04 PM
root / root
0755
cloudlinux-xray-migrate.py
1.471 KB
20 Oct 2025 7.04 PM
root / root
0755
cloudlinux-xray-user-agent.py
0.363 KB
20 Oct 2025 7.04 PM
root / root
0755
cloudlinux-xray-user-manager.py
0.377 KB
20 Oct 2025 7.04 PM
root / root
0755
create_user_uid_dirs.py
0.762 KB
20 Oct 2025 7.04 PM
root / root
0644
imunify_manager.py
8.516 KB
20 Oct 2025 7.04 PM
root / root
0644
shared_library.py
1.395 KB
20 Oct 2025 7.04 PM
root / root
0644
smart_advice_plugin_helpers.py
5.02 KB
20 Oct 2025 7.04 PM
root / root
0644
smart_advice_plugin_manager.py
12.816 KB
20 Oct 2025 7.04 PM
root / root
0755
user_agent.py
5.665 KB
20 Oct 2025 7.04 PM
root / root
0644
xray_hooks.py
1.776 KB
20 Oct 2025 7.04 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF