Changeset 1484174
- Timestamp:
- 08/26/2016 02:41:59 PM (10 years ago)
- Location:
- safly-cloud-protection
- Files:
-
- 12 added
- 3 edited
-
tags/1.7.2 (added)
-
tags/1.7.2/LICENSE.txt (added)
-
tags/1.7.2/core (added)
-
tags/1.7.2/core/safly-avatar.php (added)
-
tags/1.7.2/core/safly-interact.php (added)
-
tags/1.7.2/core/safly-request-test.php (added)
-
tags/1.7.2/index.php (added)
-
tags/1.7.2/options.php (added)
-
tags/1.7.2/readme.txt (added)
-
tags/1.7.2/safly-protection.php (added)
-
tags/1.7.2/variables.php (added)
-
tags/1.7.2/wrapper.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/safly-protection.php (modified) (4 diffs)
-
trunk/wrapper.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
safly-cloud-protection/trunk/readme.txt
r1479548 r1484174 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.6.0 6 Stable tag: 1.7. 26 Stable tag: 1.7.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 == Changelog == 50 50 51 = 1.7.3 = 52 * Improvement: SaFly Cloud Protection - Processing time 53 51 54 = 1.7.2 = 52 55 * Improvement: Offer more options … … 90 93 == Upgrade Notice == 91 94 95 = 1.7.3 = 96 Improvement: SaFly Cloud Protection - Processing time 97 92 98 = 1.7.2 = 93 99 Improvement: Offer more options -
safly-cloud-protection/trunk/safly-protection.php
r1479569 r1484174 1 1 <?php 2 //ini_set("display_errors", "On");3 2 /* 4 3 Plugin Name: SaFly Cloud Protection 5 4 Plugin URI: https://www.safly.org 6 5 Description: A secure plug-in which helps you be away from being collected, brute force attack and so on, Based on SaFly Cloud API, Designed by SaFly.ORG™. 多方位保护您的 WordPress,基于 SaFly Interact WAF™ 创新技术。 7 Version: 1.7. 26 Version: 1.7.3 8 7 Author: SaFly.ORG™ 9 8 Author URI: https://www.safly.org … … 30 29 */ 31 30 31 //ini_set('display_errors', 'On'); 32 32 33 // Make sure we don't expose any info if called directly 33 34 if (!function_exists('add_action')) { … … 36 37 } 37 38 38 define('SaFly_VERSION', '1.7.2'); 39 //SaFly Cloud Protection - Processing time 40 $safly_processing_t1 = microtime(TRUE); 41 42 define('SaFly_VERSION', '1.7.3'); 39 43 define('SaFly_DIR', plugin_dir_path(__FILE__)); 40 44 define('SaFly_URL', plugin_dir_url(__FILE__)); … … 71 75 require_once(SaFly_DIR . 'options.php'); 72 76 77 /* SaFly Cloud Protection - Processing time */ 78 $safly_processing_t2 = microtime(TRUE); 79 $safly_processing_time = round($safly_processing_t2 - $safly_processing_t1, 3); 80 add_action('wp_footer', 'SaFly_add_Footer_Processing_Time'); 81 73 82 ?> -
safly-cloud-protection/trunk/wrapper.php
r1480772 r1484174 50 50 global $safly_ip, $saflysalt, $saflysign, $saflysign2, $safly_code, $safly_code_time; 51 51 global $safly_options, $safly_options_tmp, $safly_level, $safly_waf_server, $safly_current_url; 52 global $safly_processing_t1; 52 53 53 54 if ($safly_api_domain && $safly_api_key && $safly_options_tmp) { … … 66 67 } 67 68 } 69 68 70 } 69 71 … … 73 75 global $safly_ip, $saflysalt, $saflysign, $saflysign2, $safly_code, $safly_code_time; 74 76 global $safly_options, $safly_options_tmp, $safly_level, $safly_waf_server, $safly_current_url; 77 global $safly_processing_t1; 75 78 76 79 if (wp_cache_get($safly_ip, '')) { … … 233 236 } 234 237 238 function SaFly_add_Footer_Processing_Time() 239 { 240 global $safly_processing_time; 241 echo "<!-- SaFly Cloud Protection - Processing time: {$safly_processing_time} seconds. -->"; 242 } 243 235 244 function SaFly_If_Spiders($spiders_ua) 236 245 {
Note: See TracChangeset
for help on using the changeset viewer.