Version 3.4.1
1. 更新纯真数据库 2. 修复一系列bug
This commit is contained in:
4
dio.php
4
dio.php
@@ -49,7 +49,7 @@ function load_xss_record( $id ) {
|
|||||||
|
|
||||||
$isChange = false;
|
$isChange = false;
|
||||||
if ( !isset( $info['location'] ) ) {
|
if ( !isset( $info['location'] ) ) {
|
||||||
$info['location'] = convertip( $info['user_IP'], IPDATA_PATH );
|
$info['location'] = convertIP( $info['user_IP'], IPDATA_PATH );
|
||||||
$isChange = true;
|
$isChange = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,7 +115,7 @@ function list_xss_record_detail() {
|
|||||||
$isChange = false;
|
$isChange = false;
|
||||||
//如果没有设置location,就查询qqwry.dat判断location
|
//如果没有设置location,就查询qqwry.dat判断location
|
||||||
if ( !isset( $info['location'] ) ) {
|
if ( !isset( $info['location'] ) ) {
|
||||||
$info['location'] = convertip( $info['user_IP'], IPDATA_PATH );
|
$info['location'] = convertIP( $info['user_IP'], IPDATA_PATH );
|
||||||
$isChange = true;
|
$isChange = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ function getRealIP(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
//基于Discuz X3.1 function_misc.php 函数已过滤,可直接输出
|
//基于Discuz X3.1 function_misc.php 函数已过滤,可直接输出
|
||||||
function convertip($ip, $ipdatafile) {
|
function convertIP($ip, $ipdatafile) {
|
||||||
$ipaddr = '未知';
|
$ipaddr = '未知';
|
||||||
if (preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/", $ip)) {
|
if (preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/", $ip)) {
|
||||||
$iparray = explode('.', $ip);
|
$iparray = explode('.', $ip);
|
||||||
|
|||||||
Reference in New Issue
Block a user