12 $systemInformation =
array(
13 'php' => static::getPhpInfo(),
14 'db' => static::getDbInfo(),
15 'memcache' => static::getMemCacheInfo(),
16 'environment' => static::getEnvironmentInfo()
18 return $systemInformation;
29 $additionalInformation =
array(
30 'pulling' => static::getPullingInfo(),
31 'sites' => static::getSites(),
32 'modules' => static::getModulesInfo()
34 return $additionalInformation;
44 $host = COption::GetOptionString(
"main",
"server_name",
$_SERVER[
"HTTP_HOST"]);
57 $host = static::getCurrentHost();
58 return preg_replace(
'#:\d+$#D',
'',
$host);
67 return (mb_strtoupper(mb_substr(PHP_OS, 0, 3)) ===
"WIN");
76 return PHP_SAPI ===
'cli';
88 public static function isIpValid($ip, $allowPrivate =
false, $allowRes =
false)
91 if (ip2long($ip) ===
false)
94 $ipOctets = explode(
'.', $ip);
98 if ($ipOctets[0] == 10)
101 if ($ipOctets[0] == 172 && $ipOctets[1] >= 16 && $ipOctets[1] <= 31)
104 if ($ipOctets[0] == 192 && $ipOctets[1] == 168)
112 if ($ipOctets[0] == 0)
115 if ($ipOctets[0] == 100 && $ipOctets[1] >= 64 && $ipOctets[1] <= 127)
118 if ($ipOctets[0] == 169 && $ipOctets[1] == 254)
121 if ($ipOctets[0] == 192 && $ipOctets[1] == 0 && $ipOctets[2] == 2)
124 if ($ipOctets[0] == 127 && $ipOctets[1] == 0 && $ipOctets[2] == 0)
127 if ($ipOctets[0] >= 224 && $ipOctets[0] <= 255)
143 $dbSites = CSite::GetList(
'sort',
'asc',
array(
'ACTIVE' =>
'Y'));
147 'ID' => $arSite[
'ID'],
148 'DOMAINS' =>
array(),
151 $domains = explode(
"\n", $arSite[
"DOMAINS"]);
152 foreach($domains as $domainName)
154 $domainName = trim($domainName,
"\r\t ");
155 if ($domainName !=
"")
157 $punyName = $converter->Encode($domainName);
158 if ($punyName !==
false)
179 foreach ($folders as $folder)
181 if (!file_exists(
$_SERVER[
"DOCUMENT_ROOT"].$folder))
193 && is_dir(
$_SERVER[
"DOCUMENT_ROOT"] . $folder .
"/" .
$dir)
194 && !in_array(
$dir, [
'.',
'..',
'main'],
true)
197 if (
$info = CModule::CreateModuleObject(
$dir))
199 if (
$info->IsInstalled())
221 'enabled' => CModule::IncludeModule(
'pull') && CPullOptions::ModuleEnable()
225 $result[
'nginx_used'] = CPullOptions::GetQueueServerStatus();
228 $result[
'server_protocol'] = CPullOptions::GetQueueServerVersion();
229 $result[
'publish_url'] = CPullOptions::GetPublishUrl();
231 $result[
'pulling_url'] = CPullOptions::GetListenUrl();
232 $result[
'pulling_url_secure'] = CPullOptions::GetListenSecureUrl();
234 $result[
'websocket_url'] = CPullOptions::GetWebSocketUrl();
235 $result[
'websocket_url_secure'] = CPullOptions::GetWebSocketSecureUrl();
249 "vm_version" => static::getBitrixVMVersion()
260 $result = getenv(
'BITRIX_VA_VER');
274 "sapi" => @php_sapi_name(),
275 "version" => @phpversion(),
276 "extensions" => implode(
', ',@get_loaded_extensions())
291 "version" =>
$DB->GetVersion(),
292 "hosts" => static::getDBHosts()
305 if(defined(
"BX_MEMCACHE_CLUSTER"))
306 $result .= BX_MEMCACHE_CLUSTER;
307 if(defined(
"BX_CACHE_SID"))
321 if(CModule::IncludeModule(
"cluster"))
323 $clusterMemcaches = CClusterMemcache::GetList();
324 while($clusterMemcacheServer = $clusterMemcaches->Fetch())
328 "host" => $clusterMemcacheServer[
"HOST"],
329 "port" => $clusterMemcacheServer[
"PORT"],
345 if(defined(
'BX_MEMCACHE_HOST'))
346 $result[
"host"] = BX_MEMCACHE_HOST;
348 if(defined(
'BX_MEMCACHE_PORT'))
349 $result[
"port"] = BX_MEMCACHE_PORT;
368 $clusterMemcache = static::getMemCacheInfoFromCluster();
369 $nativeMemcache = static::getMemCacheInfoFromConstants();
370 if(!empty($clusterMemcache) || !empty($nativeMemcache))
372 return array_merge($clusterMemcache, $nativeMemcache);
387 $memcacheHosts = static::getMemCachedHosts();
388 if(!empty($memcacheHosts))
391 "hosts" => $memcacheHosts,
392 "sid" => static::getMemcacheSID()
406 $cluserDB = static::getDBHostsFromCluster();
407 $nativeDB = static::getDBHostsFromConstants();
408 if(!empty($nativeDB) || !empty($cluserDB))
410 return array_merge($nativeDB, $cluserDB);
426 if(CModule::IncludeModule(
"cluster"))
433 "=ROLE_ID" =>
array(
"SLAVE",
"MASTER")
439 while($clusterDBServer = $clusterDBs->Fetch())
442 "host" => $clusterDBServer[
"DB_HOST"]
static GetList($arOrder=false, $arFilter=false, $arSelect=false)
static ToASCII($domainName, &$arErrors)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
$_SERVER["DOCUMENT_ROOT"]
if($NS['step']==6) if( $NS[ 'step']==7) if(COption::GetOptionInt('main', 'disk_space', 0) > 0) $info
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"