return the system info with the given name.

@param string $sShopInfoName - internal name of the info record

@return TdbShopSystemInfo
5067
public function GetShopInfo($sShopInfoName)
    {
        $oInfo = TdbShopSystemInfo::GetNewInstance();
        if (!$oInfo->LoadFromFields(array('shop_id' => $this->id, 'name_internal' => $sShopInfoName))) {
            $oInfo = null;
        }

        return $oInfo;
    }
514144
protected function getExportModuleSpotName($sPageId)
    {
        $sSpotName = '';
        $sQuery = "SELECT `cms_master_pagedef_spot`.`name` FROM `cms_tpl_page_cms_master_pagedef_spot`
                    INNER JOIN `cms_master_pagedef_spot`ON `cms_master_pagedef_spot`.`id` = `cms_tpl_page_cms_master_pagedef_spot`.`cms_master_pagedef_spot_id`
                     WHERE `cms_tpl_page_cms_master_pagedef_spot`.`cms_tpl_page_id` = '".$sPageId."'
                       AND `static` = '0'";
        $oRes = MySqlLegacySupport::getInstance()->query($sQuery);
        if (MySqlLegacySupport::getInstance()->num_rows($oRes) > 0) {
            while ($aRow = MySqlLegacySupport::getInstance()->fetch_assoc($oRes)) {
                $sSpotName = $aRow['name'];
            }
        }

        return $sSpotName;
    }
349897
public function getHeaderInfo() {
        if ($this->header_info == null) {
            $this->client->openFolder($this->folder_path);
            $this->header_info = imap_headerinfo($this->client->getConnection(), $this->getMessageNo());
        }

        return $this->header_info;
    }
173774
public function getInfo()
    {
        $this->hostIpinfo();
        $this->clientIpinfo();
        $this->getServerInfoSoftware();
        $this->serverInfoHardware();
        $this->uptime();
        $this->databaseInfo();

        return $this->results;
    }
1076785
public static String getSysInfo() {
        String info = sysInfo.get();

        if (info == null) {
            final String version = Build.VERSION.RELEASE; // "1.0" or "3.4b5"
            final String model = Build.MODEL;

            info = String.format(
                Locale.ENGLISH,
                SYS_INFO,
                (version.length() <= 0) ? "0.0" : version,
                (model.length() <= 0) ? "unknown" : model);

            sysInfo.compareAndSet(null, info);
        }

        return info;
    }
842010
def system_info(conf, args):
    """"""
    src = conf.config['instances'][args.src]
    src_url = api.build_system_url(build_instance_url(src))
    src_auth = tuple([conf.creds['instances'][args.src]['user'],
                      conf.creds['instances'][args.src]['pass']])
    verify_ssl = src.get('verify_ssl', True)
    sysinfo_json = api.system_info(src_url, src_auth, verify_ssl)
    return sysinfo_json
728764
public function stat_sysinfo()
    {
        if (!$this->is_loggedin) {
            return false;
        }

        $response = $this->exec_curl('/api/s/' . $this->site . '/stat/sysinfo');

        return $this->process_response($response);
    }
809118
public static function getUserOperatingSystemName()
    {
        $info = self::getUserWebBrowserInfo();

        $knownSystems = [
            'Linux' => 'Linux',
            'Win'   => 'Windows',
            'Mac'   => 'Mac OS',
        ];

        foreach ($knownSystems as $pattern => $systemName) {
            $matches = [];
            $matchCount = preg_match(sprintf('|%s|', $pattern), $info, $matches);

            if ($matchCount > 0) {
                return $systemName;
            }
        }

        return '';
    }
901299
async def sysinfo(dev: Device):
    """"""
    click.echo(await dev.get_system_info())
    click.echo(await dev.get_interface_information())
544831
public static function get_session_info() {
        $browser_info = get_browser_info();
        $result = new stdClass;
        $result->ip = get_client_ip();
        $result->browser_info = (object)$browser_info;

        return $result;
    }
1374595
public static String getSysInfo() {
        String info = sysInfo.get();

        if (info == null) {
            info = String.format(Locale.ENGLISH, SYS_INFO, System.getProperty("os.name", "unknown"));

            sysInfo.compareAndSet(null, info);
        }

        return info;
    }
717273
public function getUserPaymorrowIpAddress()
    {
        /** @var  $oUtilsServer oxUtilsServer */
        $oUtilsServer = oxRegistry::get( "oxUtilsServer" );
        $sIpAddress   = $oUtilsServer->getRemoteAddress();

        return strpos( $sIpAddress, ':' ) ? $oUtilsServer->getServerVar( 'REMOTE_ADDR' ) : $sIpAddress;
    }
567050
public function getServerInfos()
    {
        //====================================================================//
        // Init Result Array
        $response = new ArrayObject(array(), ArrayObject::ARRAY_AS_PROPS);

        //====================================================================//
        // Server Infos
        $response->ServerType = 'PHP';                              // INFO - Server Language Type
        $response->ServerVersion = PHP_VERSION;                     // INFO - Server Language Version
        $response->ProtocolVersion = SPL_PROTOCOL;                  // INFO - Server Protocal Version
        //====================================================================//
        // Server Infos
        $response->Self = Splash::input('PHP_SELF');                // INFO - Current Url
        $response->ServerAddress = Splash::input('SERVER_ADDR');    // INFO - Server IP Address
        // Read System Folder without symlinks
        $response->ServerRoot = realpath((string) Splash::input('DOCUMENT_ROOT'));
        $response->UserAgent = Splash::input('HTTP_USER_AGENT');    // INFO - Browser User Agent
        $response->WsMethod = Splash::configuration()->WsMethod;    // Current Splash WebService Component

        //====================================================================//
        // Server Urls
        //====================================================================//
        // CRITICAL - Server Host Name
        $response->ServerHost = $this->getServerName();

        //====================================================================//
        // Server IPv4 Address
        $response->ServerIP = Splash::input('SERVER_ADDR');

        //====================================================================//
        // Server WebService Path
        if (isset(Splash::configuration()->ServerPath)) {
            $response->ServerPath = Splash::configuration()->ServerPath;
        } else {
            $fullPath = dirname(__DIR__);
            $relPath = explode((string) $response->ServerRoot, $fullPath);
            if (is_array($relPath) && isset($relPath[1])) {
                $response->ServerPath = $relPath[1].'/soap.php';
            } else {
                $response->ServerPath = null;
            }
        }

        $response->setFlags(ArrayObject::STD_PROP_LIST);

        return $response;
    }
564718
def ssh_get_info(node):
    """"""
    ssh_key = ""
    if node.cloud == "aws":
        raw_key = node.extra['key_name']
        ssh_key = "-i {0}{1}.pem ".format(CONFIG_DIR, raw_key)
        ssh_user = ssh_calc_aws(node)
    elif node.cloud == "azure":
        ssh_user = node.extra['properties']['osProfile']['adminUsername']
    elif node.cloud == "gcp":
        items = node.extra['metadata'].get('items', [{}])
        keyname = items['key' == 'ssh-keys'].get('value', "")
        pos = keyname.find(":")
        ssh_user = keyname[0:pos]
    elif node.cloud == "alicloud":
        ssh_user = ""
    return ssh_user, ssh_key
1062059
public function getHeaderInfo()
	{
		if( !$this->info )
			$this->info	= imap_headerinfo( $this->stream, $this->messageNumber );
		return $this->info;
	}
818246
protected function getPhpInfo(): string
	{
		ob_start();
		phpinfo();
		$result = ob_get_contents();
		ob_end_clean();

		$result = preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $result);
		$result = preg_replace('/,\s*/', ', ', $result);
		return $result;
	}
1207130
public function getInstallInfo($moduleName)
    {
        if (!isset($this->installInfos[$moduleName])) {
            throw new NoSuchModuleException(sprintf(
                'Could not get install info: The module "%s" is not installed.',
                $moduleName
            ));
        }

        return $this->installInfos[$moduleName];
    }