diff --git a/dio.php b/dio.php index f0933e8..62473ec 100644 --- a/dio.php +++ b/dio.php @@ -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; } diff --git a/functions.php b/functions.php index 4c8bc04..db2e126 100644 --- a/functions.php +++ b/functions.php @@ -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); diff --git a/qqwry.dat b/qqwry.dat index 967ad2c..e8da145 100644 Binary files a/qqwry.dat and b/qqwry.dat differ