REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.29 KB
Close
/proc/thread-self/root/proc/thread-self/root/opt/cloudlinux/venv/lib/python3.11/site-packages/ssa/clos_ssa_ini.py
Text
Base64
# -*- 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
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 6 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
autotracing
DIR
-
drwxr-xr-x
2026-03-14 07:02:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
configuration
DIR
-
drwxr-xr-x
2026-03-14 07:02:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
internal
DIR
-
drwxr-xr-x
2026-03-14 07:02:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
modules
DIR
-
drwxr-xr-x
2026-03-14 07:02:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ssa_utils
DIR
-
drwxr-xr-x
2026-03-14 07:02:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__pycache__
DIR
-
drwxr-xr-x
2026-03-14 07:03:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
agent.py
2.55 KB
lrw-r--r--
2026-02-10 14:39:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
clos_ssa_ini.py
1.29 KB
lrw-r--r--
2026-02-10 14:39:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cloudlinux-autotracing.py
382 B
lrwxr-xr-x
2026-02-10 14:39:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cloudlinux-ssa-agent.py
374 B
lrwxr-xr-x
2026-02-10 14:39:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cloudlinux-ssa-manager.py
378 B
lrwxr-xr-x
2026-02-10 14:39:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
db.py
8.07 KB
lrw-r--r--
2026-02-10 14:39:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
manager.py
20.43 KB
lrw-r--r--
2026-02-10 14:39:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
website_isolation.py
8.39 KB
lrw-r--r--
2026-02-10 14:39:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
0 B
lrw-r--r--
2026-02-10 14:39:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).