Version Description
- Compatibility file with Oxygen editor
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.6.2.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.6.2.0.2 to 1.6.2.0.3
- compatibility/oxygen-class.php +78 -0
- compatibility/oxygen.php +59 -0
- include/class.compatibility.php +2 -0
- include/wph.class.php +1 -1
- readme.txt +5 -2
- wp-hide.php +1 -1
compatibility/oxygen-class.php
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
Class WPH_OXYGEN_VSB_Signature extends OXYGEN_VSB_Signature
|
5 |
+
{
|
6 |
+
|
7 |
+
private $option_name = 'oxygen_private_key';
|
8 |
+
|
9 |
+
private $shortcode_arg_prefix = 'ct_sign_';
|
10 |
+
|
11 |
+
private $private_key = null;
|
12 |
+
|
13 |
+
private $key_length = 32;
|
14 |
+
|
15 |
+
private $algo = 'sha256';
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Load the Oxygen private key
|
22 |
+
* If it does not exist it will be generated
|
23 |
+
*
|
24 |
+
* @return string Oxygen private key
|
25 |
+
*/
|
26 |
+
function get_key() {
|
27 |
+
if ( $this->private_key !== null ) {
|
28 |
+
// Only query for key once per request
|
29 |
+
return $this->private_key;
|
30 |
+
} else {
|
31 |
+
$key = get_option( $this->option_name, false );
|
32 |
+
if ( false === $key ) {
|
33 |
+
// If we don't have an existing key, create one
|
34 |
+
$key = $this->generate_key();
|
35 |
+
}
|
36 |
+
$this->private_key = $key;
|
37 |
+
}
|
38 |
+
return $key;
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Generate a hash/signature of the name, args, and content
|
43 |
+
*
|
44 |
+
* @param null $name
|
45 |
+
* @param array $args
|
46 |
+
* @param null $content
|
47 |
+
*
|
48 |
+
* @return false|string
|
49 |
+
*/
|
50 |
+
function generate_signature( $name = null, $args = array(), $content = null )
|
51 |
+
{
|
52 |
+
$key = $this->get_key();
|
53 |
+
// Extract signature from args
|
54 |
+
$signature_arg = $this->get_shortcode_signature_arg();
|
55 |
+
if ( !empty( $args[ $signature_arg ] ) ) {
|
56 |
+
unset( $args[ $signature_arg ] );
|
57 |
+
}
|
58 |
+
|
59 |
+
global $wph;
|
60 |
+
|
61 |
+
if ( isset( $args['ct_options'] ) && ! empty ( $args['ct_options'] ) )
|
62 |
+
{
|
63 |
+
$replacement_list = $wph->functions->get_replacement_list();
|
64 |
+
$replacement_list = array_flip($replacement_list);
|
65 |
+
$args['ct_options'] = $wph->functions->content_urls_replacement( $args['ct_options'], $replacement_list );
|
66 |
+
}
|
67 |
+
|
68 |
+
// Generally the hash is checked against data from the DB which will be unslashed so we normalize here.
|
69 |
+
$hash = hash_hmac( $this->algo, serialize( array( $name, wp_unslash( $args ), wp_unslash( $content ) ) ), $key );
|
70 |
+
|
71 |
+
return $hash;
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
}
|
76 |
+
|
77 |
+
|
78 |
+
?>
|
compatibility/oxygen.php
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Compatibility for Plugin Name: Oxygen
|
5 |
+
* Compatibility checked on Version: 3.6
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
9 |
+
|
10 |
+
class WPH_conflict_handle_oxygen
|
11 |
+
{
|
12 |
+
var $wph;
|
13 |
+
|
14 |
+
function __construct()
|
15 |
+
{
|
16 |
+
if( ! $this->is_plugin_active() )
|
17 |
+
return FALSE;
|
18 |
+
|
19 |
+
global $wph;
|
20 |
+
|
21 |
+
$this->wph = $wph;
|
22 |
+
|
23 |
+
add_filter( 'plugins_loaded', array( $this, 'plugins_loaded'), 999 );
|
24 |
+
|
25 |
+
}
|
26 |
+
|
27 |
+
function is_plugin_active()
|
28 |
+
{
|
29 |
+
|
30 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
31 |
+
|
32 |
+
if(is_plugin_active( 'oxygen/functions.php' ))
|
33 |
+
return TRUE;
|
34 |
+
else
|
35 |
+
return FALSE;
|
36 |
+
}
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
+
function plugins_loaded()
|
41 |
+
{
|
42 |
+
|
43 |
+
include ('oxygen-class.php');
|
44 |
+
|
45 |
+
global $oxygen_signature;
|
46 |
+
|
47 |
+
$oxygen_signature = new WPH_OXYGEN_VSB_Signature();
|
48 |
+
}
|
49 |
+
|
50 |
+
|
51 |
+
}
|
52 |
+
|
53 |
+
|
54 |
+
new WPH_conflict_handle_oxygen();
|
55 |
+
|
56 |
+
|
57 |
+
|
58 |
+
|
59 |
+
?>
|
include/class.compatibility.php
CHANGED
@@ -134,6 +134,8 @@
|
|
134 |
|
135 |
include_once(WPH_PATH . 'compatibility/wepos.php');
|
136 |
|
|
|
|
|
137 |
/**
|
138 |
* Themes
|
139 |
*/
|
134 |
|
135 |
include_once(WPH_PATH . 'compatibility/wepos.php');
|
136 |
|
137 |
+
include_once(WPH_PATH . 'compatibility/oxygen.php');
|
138 |
+
|
139 |
/**
|
140 |
* Themes
|
141 |
*/
|
include/wph.class.php
CHANGED
@@ -1488,7 +1488,7 @@
|
|
1488 |
function update_post_metadata ( $check, $object_id, $meta_key, $meta_value, $prev_value)
|
1489 |
{
|
1490 |
global $wpdb;
|
1491 |
-
|
1492 |
$meta_type = 'post';
|
1493 |
|
1494 |
$table = _get_meta_table( $meta_type );
|
1488 |
function update_post_metadata ( $check, $object_id, $meta_key, $meta_value, $prev_value)
|
1489 |
{
|
1490 |
global $wpdb;
|
1491 |
+
|
1492 |
$meta_type = 'post';
|
1493 |
|
1494 |
$table = _get_meta_table( $meta_type );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.nsp-code.com/
|
|
4 |
Tags: wordpress hide, hide, security, improve security, hacking, wp hide, custom login, wp-loging.php, wp-admin, admin hide, login change,
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.5.3
|
7 |
-
Stable tag: 1.6.2.0.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide and increase Security for your WordPress site using smart techniques. No files are changed on your server. Change default admin and wp-login urls
|
@@ -269,7 +269,7 @@ A demo instance can be found at <a target="_blank" href="https://demo.wp-hide.co
|
|
269 |
|
270 |
= Can I use the plugin on my Nginx server ? =
|
271 |
|
272 |
-
|
273 |
|
274 |
= Can I still update WordPress, my plugins and themes? =
|
275 |
|
@@ -349,6 +349,9 @@ Please get in touch with us and we'll do our best to include it for a next versi
|
|
349 |
|
350 |
== Changelog ==
|
351 |
|
|
|
|
|
|
|
352 |
= 1.6.2.0.2 =
|
353 |
* Fix: Check the replacements for update_post_metadata method on text and array types.
|
354 |
|
4 |
Tags: wordpress hide, hide, security, improve security, hacking, wp hide, custom login, wp-loging.php, wp-admin, admin hide, login change,
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.5.3
|
7 |
+
Stable tag: 1.6.2.0.3
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide and increase Security for your WordPress site using smart techniques. No files are changed on your server. Change default admin and wp-login urls
|
269 |
|
270 |
= Can I use the plugin on my Nginx server ? =
|
271 |
|
272 |
+
If the server runs full-stack Nginx, the free plugin can't generate the required format Nginx rewrite rules. It works with Apache, LiteSpeed, IIS, Nginx as a reverse proxy and compatible.
|
273 |
|
274 |
= Can I still update WordPress, my plugins and themes? =
|
275 |
|
349 |
|
350 |
== Changelog ==
|
351 |
|
352 |
+
= 1.6.2.0.3 =
|
353 |
+
* Compatibility file with Oxygen editor
|
354 |
+
|
355 |
= 1.6.2.0.2 =
|
356 |
* Fix: Check the replacements for update_post_metadata method on text and array types.
|
357 |
|
wp-hide.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.wp-hide.com/
|
|
5 |
Description: Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
6 |
Author: Nsp Code
|
7 |
Author URI: http://www.nsp-code.com
|
8 |
-
Version: 1.6.2.0.
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|
5 |
Description: Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
6 |
Author: Nsp Code
|
7 |
Author URI: http://www.nsp-code.com
|
8 |
+
Version: 1.6.2.0.3
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|