Changeset 2392200
- Timestamp:
- 10/02/2020 08:12:56 AM (6 years ago)
- Location:
- uptime-seo-and-security-monitors-uptimezone/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
uptime-seo-and-security-monitors-uptimezone.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uptime-seo-and-security-monitors-uptimezone/trunk/readme.txt
r2388312 r2392200 4 4 Tags: uptime monitor, security, vulnerability, server uptime, blog uptime 5 5 Requires at least: 3.0.1 6 Tested up to: 5.5 6 Tested up to: 5.5.1 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 63 63 = 1.0 = 64 64 * Welcome our very first version of the plugin! 65 = 1.1 = 66 * Small fixes & improvements 65 67 66 68 -
uptime-seo-and-security-monitors-uptimezone/trunk/uptime-seo-and-security-monitors-uptimezone.php
r2388312 r2392200 5 5 * Author: Chatra 6 6 * Text Domain: uptime-seo-and-security-monitors-uptimezone 7 * Version: 1.0. 07 * Version: 1.0.1 8 8 */ 9 9 10 10 // Add multilingual support 11 11 //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'); 15 register_activation_hook( __FILE__,'plugin_activate' ); 16 function 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 } 12 30 13 31 // Add settings page and register settings with WordPress
Note: See TracChangeset
for help on using the changeset viewer.