Plugin Directory

Changeset 2392200


Ignore:
Timestamp:
10/02/2020 08:12:56 AM (6 years ago)
Author:
chatra
Message:

small fixes

Location:
uptime-seo-and-security-monitors-uptimezone/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uptime-seo-and-security-monitors-uptimezone/trunk/readme.txt

    r2388312 r2392200  
    44Tags: uptime monitor, security, vulnerability, server uptime, blog uptime
    55Requires at least: 3.0.1
    6 Tested up to: 5.5
     6Tested up to: 5.5.1
    77Stable tag: trunk
    88License: GPLv2 or later
     
    6363= 1.0 =
    6464* Welcome our very first version of the plugin!
     65= 1.1 =
     66* Small fixes & improvements
    6567
    6668
  • uptime-seo-and-security-monitors-uptimezone/trunk/uptime-seo-and-security-monitors-uptimezone.php

    r2388312 r2392200  
    55 * Author: Chatra
    66 * Text Domain: uptime-seo-and-security-monitors-uptimezone
    7  * Version: 1.0.0
     7 * Version: 1.0.1
    88 */
    99
    1010// Add multilingual support
    1111//load_plugin_textdomain('uptimezone', false, basename( dirname( __FILE__ ) ) . '/languages' );
     12
     13//register_activation_hook( __FILE__, 'my_plugin_activate' );
     14//add_action('plugins_loaded', 'plugin_activate');
     15register_activation_hook( __FILE__,'plugin_activate' );
     16function plugin_activate() {
     17    $var = get_option('uptimezone_is_installation_completed');
     18    if ($var == false) {
     19        update_option('uptimezone_is_installation_completed', true);
     20        if (function_exists('curl_version')) {
     21            $ch = curl_init();
     22            curl_setopt($ch, CURLOPT_URL, "https://api.uptimezone.com/wp_install");
     23            curl_setopt($ch, CURLOPT_USERAGENT, empty($_SERVER['HTTP_USER_AGENT']) ? '' : $_SERVER['HTTP_USER_AGENT']);
     24            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
     25            @curl_exec($ch);
     26            @curl_close($ch);     
     27        }
     28    }
     29}
    1230
    1331// Add settings page and register settings with WordPress
Note: See TracChangeset for help on using the changeset viewer.