diff --git a/comments.php b/comments.php
index f49a20d..886f189 100644
--- a/comments.php
+++ b/comments.php
@@ -113,9 +113,10 @@ function threadedComments($comments, $options) {
-
+
+ ip; $location = get_ip_location($ip); display_location($location); ?>
diff --git a/functions.php b/functions.php
index e048d41..4e797b4 100644
--- a/functions.php
+++ b/functions.php
@@ -389,21 +389,21 @@ function commentApprove($widget, $email = NULL)
}
/** 获取评论者地址 */
-function get_ip_location($ip) {
- $apiUrl = "https://www.nazo.run/ip/{$ip}";
- $response = file_get_contents($apiUrl);
- $data = json_decode($response, true);
-
- if ($data && $data['code'] == 0) {
- return array(
- 'country' => $data['data']['country'],
- 'region' => $data['data']['region'],
- 'city' => $data['data']['city']
- );
- }
-}
-function display_location($location) {
- echo htmlspecialchars($location['country'] ?? 'Unknown') . ' ' .
- htmlspecialchars($location['region'] ?? ' ') . ' ' .
- htmlspecialchars($location['city'] ?? ' ');
-}
\ No newline at end of file
+//function get_ip_location($ip) {
+// $apiUrl = "https://www.nazo.run/ip/{$ip}";
+// $response = file_get_contents($apiUrl);
+// $data = json_decode($response, true);
+//
+// if ($data && $data['code'] == 0) {
+// return array(
+ // 'country' => $data['data']['country'],
+// 'region' => $data['data']['region'],
+// 'city' => $data['data']['city']
+// );
+// }
+//}
+//function display_location($location) {
+// echo htmlspecialchars($location['country'] ?? 'Unknown') . ' ' .
+// htmlspecialchars($location['region'] ?? ' ') . ' ' .
+// htmlspecialchars($location['city'] ?? ' ');
+//}
\ No newline at end of file