Changeset 3400110
- Timestamp:
- 11/21/2025 01:21:13 AM (4 months ago)
- Location:
- infility-global/trunk
- Files:
-
- 3 edited
-
infility_global.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
-
widgets/contact-form-plugins/contact-form-plugins.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
infility-global/trunk/infility_global.php
r3399332 r3400110 4 4 Plugin URI: https://www.infility.cn/ 5 5 Description: Infility公共插件 6 Version: 2.14.3 46 Version: 2.14.35 7 7 Author: Infility 8 8 Author URI: https://www.infility.cn/ … … 134 134 v2.14.31 (20251119) Ben: 新增导入term的seo标题和描述 135 135 v2.14.34 (20251120) Ben: 新增古腾堡模块转换不变quote 136 v2.14.35 (20251121) Ben: 修复wcf7表单代理ip出现2个时,地址显示错误问题 136 137 */ 137 138 … … 139 140 function __construct() 140 141 { 141 define( 'INFILITY_GLOBAL_VERSION', '2.14.3 4' );142 define( 'INFILITY_GLOBAL_VERSION', '2.14.35' ); 142 143 define( 'INFILITY_GLOBAL_PATH', plugin_dir_path( __FILE__ ) ); // fullpath/wp-content/plugins/infility-global/ // 有斜杠 143 144 define( 'INFILITY_GLOBAL_URL', plugins_url( '/', __FILE__ ) ); // https://the_domain/wp-content/plugins/infility-global/ // 斜杠是自己加的 -
infility-global/trunk/readme.txt
r3399332 r3400110 367 367 = 2.14.34 = 368 368 新增古腾堡模块转换不变quote 369 370 = 2.14.35 = 371 修复wcf7表单代理ip出现2个时,地址显示错误问题 -
infility-global/trunk/widgets/contact-form-plugins/contact-form-plugins.php
r3341372 r3400110 340 340 $trackingInfo .= __('Proxy Server IP:','infility-global') . ' ' . $_SERVER["HTTP_X_FORWARDED_FOR"] . $lineBreak; 341 341 if ( is_plugin_active( 'geoip-detect/geoip-detect.php' ) ) { 342 $trackingcountryproxy = geoip_detect_get_info_from_ip($_SERVER["HTTP_X_FORWARDED_FOR"]); 342 if(strstr($_SERVER["HTTP_X_FORWARDED_FOR"],',')){ 343 $x_forwarded_for = trim(explode(',',$_SERVER["HTTP_X_FORWARDED_FOR"])[1]); 344 }else{ 345 $x_forwarded_for = $_SERVER["HTTP_X_FORWARDED_FOR"]; 346 } 347 $trackingcountryproxy = geoip_detect_get_info_from_ip($x_forwarded_for); 343 348 $trackingInfo .= __('Country:','infility-global') . ' ' . $trackingcountryproxy->country_name . ' (' . $trackingcountryproxy->country_code . ' - ' . $trackingcountryproxy->continent_code . ')'; 344 349 $trackingInfoNoIp .= __('Country:','infility-global') . ' ' . $trackingcountryproxy->country_name . ' (' . $trackingcountryproxy->country_code . ' - ' . $trackingcountryproxy->continent_code . ')';
Note: See TracChangeset
for help on using the changeset viewer.