uawdijnntqw1x1x1
IP : 216.73.216.163
Hostname : yjpwxulqtt
Kernel : Linux yjpwxulqtt 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen
OS : Linux
PATH:
/
home
/
user
/
web
/
pansionat-v-yaroslavle.ru
/
public_html
/
bitrix
/
modules
/
main
/
..
/
main
/
lib
/
web
/
uri.php
/
/
<?php /** * Bitrix Framework * @package bitrix * @subpackage main * @copyright 2001-2014 Bitrix */ namespace Bitrix\Main\Web; class Uri { protected $scheme; protected $host; protected $port; protected $user; protected $pass; protected $path; protected $query; protected $fragment; /** * @param string $url */ public function __construct($url) { if(strpos($url, "/") === 0) { //we don't support "current scheme" e.g. "//host/path" $url = "/".ltrim($url, "/"); } $parsedUrl = parse_url($url); if($parsedUrl !== false) { $this->scheme = (isset($parsedUrl["scheme"])? strtolower($parsedUrl["scheme"]) : "http"); $this->host = $parsedUrl["host"]; if(isset($parsedUrl["port"])) { $this->port = $parsedUrl["port"]; } else { $this->port = ($this->scheme == "https"? 443 : 80); } $this->user = $parsedUrl["user"]; $this->pass = $parsedUrl["pass"]; $this->path = ((isset($parsedUrl["path"])? $parsedUrl["path"] : "/")); $this->query = $parsedUrl["query"]; $this->fragment = $parsedUrl["fragment"]; } } /** * @deprecated Use getLocator() or getUri(). */ public function getUrl() { return $this->getLocator(); } /** * Return the URI without a fragment. * @return string */ public function getLocator() { $url = ""; if($this->host <> '') { $url .= $this->scheme."://".$this->host; if(($this->scheme == "http" && $this->port <> 80) || ($this->scheme == "https" && $this->port <> 443)) { $url .= ":".$this->port; } } $url .= $this->getPathQuery(); return $url; } /** * Return the URI with a fragment, if any. * @return string */ public function getUri() { $url = $this->getLocator(); if($this->fragment <> '') { $url .= "#".$this->fragment; } return $url; } /** * Returns the fragment. * @return string */ public function getFragment() { return $this->fragment; } /** * Returns the host. * @return string */ public function getHost() { return $this->host; } /** * Sets the host * @param string $host Host name. * @return $this */ public function setHost($host) { $this->host = $host; return $this; } /** * Returns the password. * @return string */ public function getPass() { return $this->pass; } /** * Sets the password. * @param string $pass Password, * @return $this */ public function setPass($pass) { $this->pass = $pass; return $this; } /** * Returns the path. * @return string */ public function getPath() { return $this->path; } /** * Sets the path. * @param string $path * @return $this */ public function setPath($path) { $this->path = $path; return $this; } /** * Returns the path with the query. * @return string */ public function getPathQuery() { $pathQuery = $this->path; if($this->query <> "") { $pathQuery .= '?'.$this->query; } return $pathQuery; } /** * Returns the port number. * @return string */ public function getPort() { return $this->port; } /** * Returns the query. * @return string */ public function getQuery() { return $this->query; } /** * Returns the scheme. * @return string */ public function getScheme() { return $this->scheme; } /** * Returns the user. * @return string */ public function getUser() { return $this->user; } /** * Sets the user. * @param string $user User. * @return $this */ public function setUser($user) { $this->user = $user; return $this; } /** * Deletes parameters from the query. * @param array $params Parameters to delete. * @return $this */ public function deleteParams(array $params) { if($this->query <> '') { $currentParams = array(); parse_str($this->query, $currentParams); foreach($params as $param) { unset($currentParams[$param]); } $this->query = http_build_query($currentParams, "", "&"); } return $this; } /** * Adds parameters to query or replaces existing ones. * @param array $params Parameters to add. * @return $this */ public function addParams(array $params) { $currentParams = array(); if($this->query <> '') { parse_str($this->query, $currentParams); } $currentParams = array_replace($currentParams, $params); $this->query = http_build_query($currentParams, "", "&"); return $this; } }
/home/user/web/pansionat-v-yaroslavle.ru/public_html/bitrix/modules/main/../main/lib/web/uri.php