Refactor IP region lookup to use external API

Replaced the local ip2region database and related PHP classes with an external API (ip.asbid.cn) for IP region lookup in functions.php. Removed the entire ip2region directory and its dependencies, simplifying maintenance and reducing local storage requirements. Updated caching logic to store API results for one month. Also updated the theme version in index.php to 1.1.
This commit is contained in:
浪子
2025-06-29 11:29:04 +08:00
parent c106a387f2
commit 074af5187a
10 changed files with 75 additions and 1048 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
*
* @package Typecho Pouck Theme
* @author 老孙博客
* @version 1.0.4
* @version 1.1
* @link http://www.imsun.org
*/