Plugin Directory

Changeset 1484174


Ignore:
Timestamp:
08/26/2016 02:41:59 PM (10 years ago)
Author:
safly
Message:

1.7.3

Location:
safly-cloud-protection
Files:
12 added
3 edited

Legend:

Unmodified
Added
Removed
  • safly-cloud-protection/trunk/readme.txt

    r1479548 r1484174  
    44Requires at least: 3.0.1
    55Tested up to: 4.6.0
    6 Stable tag: 1.7.2
     6Stable tag: 1.7.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949== Changelog ==
    5050
     51= 1.7.3 =
     52* Improvement: SaFly Cloud Protection - Processing time
     53
    5154= 1.7.2 =
    5255* Improvement: Offer more options
     
    9093== Upgrade Notice ==
    9194
     95= 1.7.3 =
     96Improvement: SaFly Cloud Protection - Processing time
     97
    9298= 1.7.2 =
    9399Improvement: Offer more options
  • safly-cloud-protection/trunk/safly-protection.php

    r1479569 r1484174  
    11<?php
    2 //ini_set("display_errors", "On");
    32/*
    43Plugin Name: SaFly Cloud Protection
    54Plugin URI: https://www.safly.org
    65Description: 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.2
     6Version: 1.7.3
    87Author: SaFly.ORG™
    98Author URI: https://www.safly.org
     
    3029*/
    3130
     31//ini_set('display_errors', 'On');
     32
    3233// Make sure we don't expose any info if called directly
    3334if (!function_exists('add_action')) {
     
    3637}
    3738
    38 define('SaFly_VERSION', '1.7.2');
     39//SaFly Cloud Protection - Processing time
     40$safly_processing_t1 = microtime(TRUE);
     41
     42define('SaFly_VERSION', '1.7.3');
    3943define('SaFly_DIR', plugin_dir_path(__FILE__));
    4044define('SaFly_URL', plugin_dir_url(__FILE__));
     
    7175require_once(SaFly_DIR . 'options.php');
    7276
     77/* SaFly Cloud Protection - Processing time */
     78$safly_processing_t2   = microtime(TRUE);
     79$safly_processing_time = round($safly_processing_t2 - $safly_processing_t1, 3);
     80add_action('wp_footer', 'SaFly_add_Footer_Processing_Time');
     81
    7382?>
  • safly-cloud-protection/trunk/wrapper.php

    r1480772 r1484174  
    5050    global $safly_ip, $saflysalt, $saflysign, $saflysign2, $safly_code, $safly_code_time;
    5151    global $safly_options, $safly_options_tmp, $safly_level, $safly_waf_server, $safly_current_url;
     52    global $safly_processing_t1;
    5253
    5354    if ($safly_api_domain && $safly_api_key && $safly_options_tmp) {
     
    6667        }
    6768    }
     69
    6870}
    6971
     
    7375    global $safly_ip, $saflysalt, $saflysign, $saflysign2, $safly_code, $safly_code_time;
    7476    global $safly_options, $safly_options_tmp, $safly_level, $safly_waf_server, $safly_current_url;
     77    global $safly_processing_t1;
    7578
    7679    if (wp_cache_get($safly_ip, '')) {
     
    233236}
    234237
     238function SaFly_add_Footer_Processing_Time()
     239{
     240    global $safly_processing_time;
     241    echo "<!-- SaFly Cloud Protection - Processing time: {$safly_processing_time} seconds. -->";
     242}
     243
    235244function SaFly_If_Spiders($spiders_ua)
    236245{
Note: See TracChangeset for help on using the changeset viewer.