[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: utils.d.cts
/** * Normalises alias mappings, ensuring that more specific aliases are resolved before less specific ones. * This function also ensures that aliases do not resolve to themselves cyclically. * * @param _aliases - A set of alias mappings where each key is an alias and its value is the actual path it points to. * @returns a set of normalised alias mappings. */ declare function normalizeAliases(_aliases: Record<string, string>): Record<string, string>; /** * Resolves a path string to its alias if applicable, otherwise returns the original path. * This function normalises the path, resolves the alias and then joins it to the alias target if necessary. * * @param path - The path string to resolve. * @param aliases - A set of alias mappings to use for resolution. * @returns the resolved path as a string. */ declare function resolveAlias(path: string, aliases: Record<string, string>): string; /** * Resolves a path string to its possible alias. * * Returns an array of possible alias resolutions (could be empty), sorted by specificity (longest first). */ declare function reverseResolveAlias(path: string, aliases: Record<string, string>): string[]; /** * Extracts the filename from a given path, excluding any directory paths and the file extension. * * @param path - The full path of the file from which to extract the filename. * @returns the filename without the extension, or `undefined` if the filename cannot be extracted. */ declare function filename(path: string): string | undefined; export { filename, normalizeAliases, resolveAlias, reverseResolveAlias };
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium331.web-hosting.com
Server IP: 184.94.213.169
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.9 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:
Yes
pkexec:
No
git:
Yes
User Info
Username: livedhms
User ID (UID): 1344
Group ID (GID): 1349
Script Owner UID: 1344
Current Dir Owner: 1344