Version 3.4.1

1. 更新纯真数据库
2. 修复一系列bug
This commit is contained in:
Firesun
2016-12-27 22:12:43 +08:00
parent e63a14d32a
commit c246503ca8
3 changed files with 3 additions and 3 deletions

View File

@@ -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;
}
@@ -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;
}

View File

@@ -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);

BIN
qqwry.dat

Binary file not shown.