diff --git a/app/utils/CheckUtils.php b/app/utils/CheckUtils.php index 523b378..fea5529 100644 --- a/app/utils/CheckUtils.php +++ b/app/utils/CheckUtils.php @@ -12,12 +12,12 @@ class CheckUtils if (!$urlarr) { return ['status' => false, 'errmsg' => 'Invalid URL', 'usetime' => 0]; } - if (str_starts_with($urlarr['host'], '[') && str_ends_with($urlarr['host'], ']')) { - $urlarr['host'] = substr($urlarr['host'], 1, -1); - } + if (str_starts_with($urlarr['host'], '[') && str_ends_with($urlarr['host'], ']')) { + $urlarr['host'] = substr($urlarr['host'], 1, -1); + } if (!empty($ip) && !filter_var($urlarr['host'], FILTER_VALIDATE_IP) && filter_var($ip, FILTER_VALIDATE_IP)) { - $port = $urlarr['port'] ?? ($urlarr['scheme'] == 'https' ? 443 : 80); - $resolve = $urlarr['host'] . ':' . $port . ':' . $ip; + $port = $urlarr['port'] ?? ($urlarr['scheme'] == 'https' ? 443 : 80); + $resolve = $urlarr['host'] . ':' . $port . ':' . $ip; } $ch = curl_init(); if ($proxy) { diff --git a/app/view/index/index.html b/app/view/index/index.html index 5b9d0a1..4621bb8 100644 --- a/app/view/index/index.html +++ b/app/view/index/index.html @@ -71,25 +71,25 @@
-
-
- {if $info.no_https} -
-
- 当前正在使用HTTP访问,可能存在被窃取敏感信息风险,请使用HTTPS访问! -
-
- {/if} - {if $info.old_browser} -
-
- 当前浏览器是兼容模式,为确保后台功能正常使用,请切换到极速模式
- 操作方法:点击浏览器地址栏右侧的IE符号→选择“极速模式” -
-
- {/if} -
-
+
+
+ {if $info.no_https} +
+
+ 当前正在使用HTTP访问,可能存在被窃取敏感信息风险,请使用HTTPS访问! +
+
+ {/if} + {if $info.old_browser} +
+
+ 当前浏览器是兼容模式,为确保后台功能正常使用,请切换到极速模式
+ 操作方法:点击浏览器地址栏右侧的IE符号→选择“极速模式” +
+
+ {/if} +
+
@@ -145,10 +145,10 @@
- + - + @@ -157,10 +157,10 @@ - + - +
框架版本 {$info.framework_version}
PHP版本 {$info.php_version}数据库版本 {$info.mysql_version}
Web服务器 {$info.software}
服务器时间 {$info.date}