Skip to content

Commit

Permalink
Prepare 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
catscarlet committed Oct 21, 2018
1 parent 3b923c0 commit 1b8006d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
25 changes: 13 additions & 12 deletions Changelog_en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Changelog

## 0.2.0
## 1.0.0

Today I luckily found how to generate the url for querying IP-Geolocation on ipip.net. So this is the update for it.

Now you can click the address-info and open a new page of ipip.net to get more information about the IP-Geolocation information.

IPIP.net doesn't offer English version of database. I decide that the 0.1.x version will no longer be supported.

Users using 0.2.x please update to this version.

## 0.2.x

Support IPIP.net DATX database. DAT database is no longer supported.

Expand All @@ -12,18 +22,9 @@ I don't know why the database file is smaller than the older one.

IPIP.net will not support .dat database any longer, so a new version of WP-IPIP is on working for the .datx database.

## 0.1.2
## 0.1-0.1.2

- First commit
- Update to new IPIP lib and database (201707).

Notice the database file is much larger than before, so it will cost more memory.

## 0.1.1

- 增加选项配置页面,提供部分安装信息
- 增加 Readme.md 中的信息
- 优化代码

## 0.1

- 首次提交
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

将文件复制到 WordPress 的插件目录下即可,文件应该在 `/wp-content/plugins/wp-ipip` 目录下。

结构
项目文件结构

```
└── wp-content
Expand Down Expand Up @@ -42,27 +42,27 @@ IPIP 数据库文件路径:`{插件路径}/17mon/php/17monipdb.datx`,直接

### 更新

插件未在 WordPress 上保存任何数据,所以建议更新时删除旧插件并上传新文件
插件未在 WordPress 上保存任何数据,建议更新时删除旧插件并上传新文件

### 卸载

插件未在 WordPress 上保存任何数据,所以可以直接删除。

## 使用

插件启用后,将会在评论页面将会在 IP 下显示物理地址
插件启用后,将会在评论页面将会在 IP 下显示其物理地址。点击此链接可以打开 IPIP.net 上关于此 IP 的详细信息

IPIP 免费版精度支持到地级市。

本插件不支持 IPIP 收费版数据库。

## 注意事项

插件使用的数据库文件需要在运行时载入内存,整个插件会占用约 4M 左右的内存。按照经验,Wordpress 在运行时要占用 28M 左右的内存。如果您的服务器对 PHP 运行内存限制为 32M 或者更低的话,会出现评论页面无法正确载入,或载入后页面功能失效的问题
插件使用的数据库文件需要在运行时载入内存,整个插件会占用约 4M 左右的内存。如果出现评论页面无法正确载入,或载入后页面功能失效的问题,请检查您服务器的内存限制。按照以往经验,不加载其他插件的 4.3.X 版本启动后会使用约 28M 内存,如果您的服务器对 PHP 运行内存限制为 32M 或者更低的话,将无法正常使用本插件

请先确认自己的 PHP 运行环境是否有类似限制。

## 已知兼容性问题
## 兼容性

### PHP

Expand All @@ -74,7 +74,7 @@ IPIP 免费版精度支持到地级市。

### wp-useragent

与插件 wp-useragent 曾存在兼容性问题。具体原因是因为 wp-useragent 并未使用 Wordpress 推荐的 filter & return 方式输出结果,并非本插件的问题。已在此版本中优化。
与插件 wp-useragent 兼容

## 链接

Expand Down
10 changes: 5 additions & 5 deletions wp-ipip-options.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ <h1 id="wp-ipip">WP-IPIP</h1>
<hr>
<h2>简介</h2>
<p>
<strong>WP-IPIP</strong>是一款根据 IP 显示评论来源地址的插件。
<strong>WP-IPIP</strong> 是一款根据 IP 显示评论来源地址的插件。
</p>
<br>
<h2>设置</h2>
<h3 id="ipip-">IPIP数据库文件</h3>
<h3 id="ipip-database">IPIP.net 数据库文件</h3>
<p>文件状态:{{$ipip_data_status}}</p>
<p>说明:默认 IPIP 的数据库文件存放于插件目录下的<code>/17mon/php/</code>目录下,文件名为<code>17monipdb.datx</code></p>
<p>您可以到 <a href="https://www.ipip.net/" target="_blank">IPIP.net 官网</a> 下载更新的数据库文件,并上传到插件目录下的<code>/17mon/php/</code>目录下。</p>
<p>自 0.2.0 版本开始,仅支持免费版 DATX 数据库。如果您需要使用 DAT 数据库,请使用 0.1.X 版本。</p>
<hr>
<h2>项目地址</h2>
<p>GitHub:<a href="https://github.com/catscarlet/wp-ipip" target="_blank">https://github.com/catscarlet/wp-ipip</a></p>
<p>本项目暂未包含于 WordPress Plugin 仓库中,如有必要请到 <a href="https://github.com/catscarlet/wp-ipip/releases/latest" target="_blank">这里</a> 下载最新的版本</p>
<p>GitHub:<a href="https://github.com/catscarlet/wp-ipip" target="_blank" ref="nofollow noreferrer">https://github.com/catscarlet/wp-ipip</a>
</p>
<p>本项目暂未包含于 WordPress Plugin 仓库中,因此不支持自动更新。点击 <a href="https://github.com/catscarlet/wp-ipip/releases/latest" target="_blank" ref="nofollow noreferrer">这里</a> 下载最新的版本</p>
</body>
</html>
4 changes: 2 additions & 2 deletions wp-ipip.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Plugin Name: WP-IPIP
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
Description: 根据评论IP地址定位物理地址,使用IPIP.net数据库。
Version: 0.2.0
Author: Catscarlet
Version: 1.0.0
Author: 石樱灯笼
Author URI: https://www.catscarlet.com
*/

Expand Down

0 comments on commit 1b8006d

Please sign in to comment.