Skip to content

Commit

Permalink
Version 3.4.1
Browse files Browse the repository at this point in the history
1. 更新纯真数据库
2. 修复一系列bug
  • Loading branch information
firesunCN committed Dec 27, 2016
1 parent e63a14d commit c246503
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dio.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function load_xss_record( $id ) {

$isChange = false;
if ( !isset( $info['location'] ) ) {
$info['location'] = convertip( $info['user_IP'], IPDATA_PATH );
$info['location'] = convertIP( $info['user_IP'], IPDATA_PATH );
$isChange = true;
}

Expand Down Expand Up @@ -115,7 +115,7 @@ function list_xss_record_detail() {
$isChange = false;
//如果没有设置location,就查询qqwry.dat判断location
if ( !isset( $info['location'] ) ) {
$info['location'] = convertip( $info['user_IP'], IPDATA_PATH );
$info['location'] = convertIP( $info['user_IP'], IPDATA_PATH );
$isChange = true;
}

Expand Down
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function getRealIP(){
}

//基于Discuz X3.1 function_misc.php 函数已过滤,可直接输出
function convertip($ip, $ipdatafile) {
function convertIP($ip, $ipdatafile) {
$ipaddr = '未知';
if (preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/", $ip)) {
$iparray = explode('.', $ip);
Expand Down
Binary file modified qqwry.dat
Binary file not shown.

0 comments on commit c246503

Please sign in to comment.