Changeset 2334769
- Timestamp:
- 07/03/2020 10:26:07 AM (6 years ago)
- Location:
- cystack-security
- Files:
-
- 3 edited
- 10 copied
-
tags/1.0.1 (copied) (copied from cystack-security/trunk)
-
tags/1.0.1/assets (copied) (copied from cystack-security/trunk/assets)
-
tags/1.0.1/composer.json (copied) (copied from cystack-security/trunk/composer.json)
-
tags/1.0.1/cystack-security.php (copied) (copied from cystack-security/trunk/cystack-security.php) (2 diffs)
-
tags/1.0.1/index.php (copied) (copied from cystack-security/trunk/index.php)
-
tags/1.0.1/js (copied) (copied from cystack-security/trunk/js)
-
tags/1.0.1/languages (copied) (copied from cystack-security/trunk/languages)
-
tags/1.0.1/readme.txt (copied) (copied from cystack-security/trunk/readme.txt)
-
tags/1.0.1/src (copied) (copied from cystack-security/trunk/src)
-
tags/1.0.1/src/Api/Connection.php (modified) (3 diffs)
-
tags/1.0.1/vendor (copied) (copied from cystack-security/trunk/vendor)
-
trunk/cystack-security.php (modified) (2 diffs)
-
trunk/src/Api/Connection.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cystack-security/tags/1.0.1/cystack-security.php
r2333929 r2334769 5 5 * Plugin URI: https://cloud.cystack.net 6 6 * Description: CyStack Security constantly monitors your websites and servers to detect security issues and vulnerabilities. 7 * Version: 1.0. 07 * Version: 1.0.1 8 8 * Author: CyStack 9 9 * Author URI: https://cystack.net … … 54 54 } 55 55 56 if ( ! defined( 'CYSTACK_PLUGIN_HOME' ) ) { 57 include_once( ABSPATH . 'wp-admin/includes/file.php' ); // get_home_path() 58 define( 'CYSTACK_PLUGIN_HOME', get_home_path() ); 59 } 60 56 61 /** 57 62 * The code that runs during plugins activation -
cystack-security/tags/1.0.1/src/Api/Connection.php
r2333929 r2334769 25 25 $wp_user_id = $wp_user->ID; 26 26 add_user_meta( $wp_user_id, 'cystack_email', $cs_user_email ); 27 28 // add verification file 29 $filepath = CYSTACK_PLUGIN_HOME . $meta_key . '.txt'; 30 file_put_contents( $filepath , $meta_value ); 27 31 } 28 32 … … 31 35 */ 32 36 public static function disconnect() { 37 $filename = get_option('cystack_meta_key'); 38 $filepath = CYSTACK_PLUGIN_HOME . $filename . '.txt'; 39 if ( file_exists( $filepath ) ) { 40 unlink($filepath); 41 } 42 33 43 delete_option( 'cystack_targetId' ); 34 44 delete_option( 'cystack_targetName' ); … … 46 56 */ 47 57 public static function clear_meta() { 58 $filename = get_option('cystack_meta_key'); 59 $filepath = CYSTACK_PLUGIN_HOME . $filename . '.txt'; 60 if ( file_exists( $filepath ) ) { 61 unlink($filepath); 62 } 63 48 64 delete_option( 'cystack_meta_key' ); 49 65 delete_option( 'cystack_meta_value' ); -
cystack-security/trunk/cystack-security.php
r2333929 r2334769 5 5 * Plugin URI: https://cloud.cystack.net 6 6 * Description: CyStack Security constantly monitors your websites and servers to detect security issues and vulnerabilities. 7 * Version: 1.0. 07 * Version: 1.0.1 8 8 * Author: CyStack 9 9 * Author URI: https://cystack.net … … 54 54 } 55 55 56 if ( ! defined( 'CYSTACK_PLUGIN_HOME' ) ) { 57 include_once( ABSPATH . 'wp-admin/includes/file.php' ); // get_home_path() 58 define( 'CYSTACK_PLUGIN_HOME', get_home_path() ); 59 } 60 56 61 /** 57 62 * The code that runs during plugins activation -
cystack-security/trunk/src/Api/Connection.php
r2333929 r2334769 25 25 $wp_user_id = $wp_user->ID; 26 26 add_user_meta( $wp_user_id, 'cystack_email', $cs_user_email ); 27 28 // add verification file 29 $filepath = CYSTACK_PLUGIN_HOME . $meta_key . '.txt'; 30 file_put_contents( $filepath , $meta_value ); 27 31 } 28 32 … … 31 35 */ 32 36 public static function disconnect() { 37 $filename = get_option('cystack_meta_key'); 38 $filepath = CYSTACK_PLUGIN_HOME . $filename . '.txt'; 39 if ( file_exists( $filepath ) ) { 40 unlink($filepath); 41 } 42 33 43 delete_option( 'cystack_targetId' ); 34 44 delete_option( 'cystack_targetName' ); … … 46 56 */ 47 57 public static function clear_meta() { 58 $filename = get_option('cystack_meta_key'); 59 $filepath = CYSTACK_PLUGIN_HOME . $filename . '.txt'; 60 if ( file_exists( $filepath ) ) { 61 unlink($filepath); 62 } 63 48 64 delete_option( 'cystack_meta_key' ); 49 65 delete_option( 'cystack_meta_value' );
Note: See TracChangeset
for help on using the changeset viewer.