Version Description
- Fix: Bug Fix - This version fixes an Open SSL bug that was introduced in v1.3.9. If you updated to v1.3.9 and are encountering connection errors, update the Client Plugin from your WP dashboards. You don't have to re-add the sites to InfiniteWP.
Download this release
Release Info
Developer | infinitewp |
Plugin | InfiniteWP Client |
Version | 1.3.10 |
Comparing to | |
See all releases |
Code changes from version 1.3.8 to 1.3.10
- backup.class.multicall.php +1 -0
- backup.class.singlecall.php +1 -0
- core.class.php +10 -11
- init.php +38 -2
- readme.txt +8 -0
backup.class.multicall.php
CHANGED
@@ -5374,6 +5374,7 @@ function ftp_backup($historyID,$args = '')
|
|
5374 |
|
5375 |
while (!$status && !feof($handle))
|
5376 |
{
|
|
|
5377 |
$chunk = fread($handle, $upload_file_block_size);
|
5378 |
$statusArray = $media->nextChunk($chunk, $resumeURI, $fileSizeUploaded);
|
5379 |
$status = $statusArray['status'];
|
5374 |
|
5375 |
while (!$status && !feof($handle))
|
5376 |
{
|
5377 |
+
iwp_mmb_auto_print('gdrive_chucked_upload');
|
5378 |
$chunk = fread($handle, $upload_file_block_size);
|
5379 |
$statusArray = $media->nextChunk($chunk, $resumeURI, $fileSizeUploaded);
|
5380 |
$status = $statusArray['status'];
|
backup.class.singlecall.php
CHANGED
@@ -2899,6 +2899,7 @@ function ftp_backup($args)
|
|
2899 |
|
2900 |
while (!$status && !feof($handle))
|
2901 |
{
|
|
|
2902 |
$chunk = fread($handle, $upload_file_block_size);
|
2903 |
$statusArray = $media->nextChunk($chunk, $resumeURI, $fileSizeUploaded);
|
2904 |
$status = $statusArray['status'];
|
2899 |
|
2900 |
while (!$status && !feof($handle))
|
2901 |
{
|
2902 |
+
iwp_mmb_auto_print('gdrive_chucked_upload');
|
2903 |
$chunk = fread($handle, $upload_file_block_size);
|
2904 |
$statusArray = $media->nextChunk($chunk, $resumeURI, $fileSizeUploaded);
|
2905 |
$status = $statusArray['status'];
|
core.class.php
CHANGED
@@ -288,39 +288,38 @@ class IWP_MMB_Core extends IWP_MMB_Helper
|
|
288 |
<tr><td align="right">ACTIVATION KEY:</td><td align="left"><strong>'.$iwp_client_activate_key.'</strong></td></tr>
|
289 |
<tr id="copy_at_once"><td align="right">To quick add, copy this</td><td align="left" style="position:relative;"><input type="text" style="width:295px;" class="read_creds" readonly value="'.$notice_display_URL.'|^|'.$username.'|^|'.$iwp_client_activate_key.'" /></td></tr>
|
290 |
<tr class="only_flash"><td></td><td align="left" style="position:relative;"><div id="copy_details" style="background:#008000;display: inline-block;padding: 4px 10px;border-radius: 5px;color:#fff;font-weight:600;cursor:pointer;">Copy details</div><span class="copy_message" style="display:none;margin-left:10px;color:#008000;">Copied :)</span></td></tr>
|
291 |
-
|
292 |
-
<script type="text/javascript" src="'.WP_PLUGIN_URL.'/iwp-client/ZeroClipboard.js"></script>
|
293 |
<script type="text/javascript">
|
294 |
var hasFlash = function() {
|
295 |
return (typeof navigator.plugins == "undefined" || navigator.plugins.length == 0) ? !!(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) : navigator.plugins["Shockwave Flash"];
|
296 |
};
|
297 |
var onhoverMsg = "<span class=\"aftercopy_instruction\" style=\"position: absolute;top: 32px;left:20px;background:#fff;border:1px solid #000;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;padding:2px;margin:2px;text-align:center;\">Paste this in any field in the Add Website dialogue in the InfiniteWP admin panel.</span>";
|
298 |
if(typeof hasFlash() != "undefined"){
|
299 |
-
var client = new ZeroClipboard(
|
300 |
client.on( "ready", function(event) {
|
301 |
// console.log( "movie is loaded" );
|
302 |
|
303 |
client.on( "copy", function(event) {
|
304 |
-
event.clipboardData.setData("text/plain",
|
305 |
} );
|
306 |
|
307 |
client.on( "aftercopy", function(event) {
|
308 |
// console.log("Copied text to clipboard: " + event.data["text/plain"]);
|
309 |
-
|
310 |
-
setTimeout(
|
311 |
} );
|
312 |
} );
|
313 |
|
314 |
client.on( "error", function(event) {
|
315 |
ZeroClipboard.destroy();
|
316 |
} );
|
317 |
-
|
318 |
-
|
319 |
|
320 |
}else{
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
}
|
325 |
</script>';
|
326 |
}
|
288 |
<tr><td align="right">ACTIVATION KEY:</td><td align="left"><strong>'.$iwp_client_activate_key.'</strong></td></tr>
|
289 |
<tr id="copy_at_once"><td align="right">To quick add, copy this</td><td align="left" style="position:relative;"><input type="text" style="width:295px;" class="read_creds" readonly value="'.$notice_display_URL.'|^|'.$username.'|^|'.$iwp_client_activate_key.'" /></td></tr>
|
290 |
<tr class="only_flash"><td></td><td align="left" style="position:relative;"><div id="copy_details" style="background:#008000;display: inline-block;padding: 4px 10px;border-radius: 5px;color:#fff;font-weight:600;cursor:pointer;">Copy details</div><span class="copy_message" style="display:none;margin-left:10px;color:#008000;">Copied :)</span></td></tr>
|
291 |
+
|
|
|
292 |
<script type="text/javascript">
|
293 |
var hasFlash = function() {
|
294 |
return (typeof navigator.plugins == "undefined" || navigator.plugins.length == 0) ? !!(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) : navigator.plugins["Shockwave Flash"];
|
295 |
};
|
296 |
var onhoverMsg = "<span class=\"aftercopy_instruction\" style=\"position: absolute;top: 32px;left:20px;background:#fff;border:1px solid #000;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;padding:2px;margin:2px;text-align:center;\">Paste this in any field in the Add Website dialogue in the InfiniteWP admin panel.</span>";
|
297 |
if(typeof hasFlash() != "undefined"){
|
298 |
+
var client = new ZeroClipboard( jQuery("#copy_details") );
|
299 |
client.on( "ready", function(event) {
|
300 |
// console.log( "movie is loaded" );
|
301 |
|
302 |
client.on( "copy", function(event) {
|
303 |
+
event.clipboardData.setData("text/plain", jQuery(".read_creds").val());
|
304 |
} );
|
305 |
|
306 |
client.on( "aftercopy", function(event) {
|
307 |
// console.log("Copied text to clipboard: " + event.data["text/plain"]);
|
308 |
+
jQuery(".copy_message").show();
|
309 |
+
setTimeout(\'jQuery(".copy_message").hide();\',1000);
|
310 |
} );
|
311 |
} );
|
312 |
|
313 |
client.on( "error", function(event) {
|
314 |
ZeroClipboard.destroy();
|
315 |
} );
|
316 |
+
jQuery("#copy_at_once").hide();
|
317 |
+
jQuery("#copy_details").mouseenter(function(){jQuery(onhoverMsg).appendTo(jQuery(this).parent());}).mouseleave(function(){jQuery(".aftercopy_instruction").remove();});
|
318 |
|
319 |
}else{
|
320 |
+
jQuery(".only_flash").remove();
|
321 |
+
jQuery(".read_creds").click(function(){jQuery(this).select();});
|
322 |
+
jQuery(".read_creds").mouseenter(function(e){jQuery(onhoverMsg).appendTo(jQuery(this).parent());}).mouseleave(function(){jQuery(".aftercopy_instruction").remove();});
|
323 |
}
|
324 |
</script>';
|
325 |
}
|
init.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: InfiniteWP - Client
|
|
4 |
Plugin URI: http://infinitewp.com/
|
5 |
Description: This is the client plugin of InfiniteWP that communicates with the InfiniteWP Admin panel.
|
6 |
Author: Revmakx
|
7 |
-
Version: 1.3.
|
8 |
Author URI: http://www.revmakx.com
|
9 |
*/
|
10 |
/************************************************************
|
@@ -26,7 +26,7 @@ Author URI: http://www.revmakx.com
|
|
26 |
**************************************************************/
|
27 |
|
28 |
if(!defined('IWP_MMB_CLIENT_VERSION'))
|
29 |
-
define('IWP_MMB_CLIENT_VERSION', '1.3.
|
30 |
|
31 |
|
32 |
|
@@ -1485,10 +1485,17 @@ if(!function_exists('checkOpenSSL')){
|
|
1485 |
return false;
|
1486 |
}
|
1487 |
else{
|
|
|
1488 |
$key = @openssl_pkey_new();
|
|
|
|
|
1489 |
@openssl_pkey_export($key, $privateKey);
|
1490 |
$privateKey = base64_encode($privateKey);
|
|
|
|
|
1491 |
$publicKey = @openssl_pkey_get_details($key);
|
|
|
|
|
1492 |
$publicKey = $publicKey["key"];
|
1493 |
|
1494 |
if(empty($publicKey) || empty($privateKey)){
|
@@ -1783,4 +1790,33 @@ if( isset($_COOKIE[IWP_MMB_XFRAME_COOKIE]) ){
|
|
1783 |
remove_action( 'login_init', 'send_frame_options_header');
|
1784 |
}
|
1785 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1786 |
?>
|
4 |
Plugin URI: http://infinitewp.com/
|
5 |
Description: This is the client plugin of InfiniteWP that communicates with the InfiniteWP Admin panel.
|
6 |
Author: Revmakx
|
7 |
+
Version: 1.3.10
|
8 |
Author URI: http://www.revmakx.com
|
9 |
*/
|
10 |
/************************************************************
|
26 |
**************************************************************/
|
27 |
|
28 |
if(!defined('IWP_MMB_CLIENT_VERSION'))
|
29 |
+
define('IWP_MMB_CLIENT_VERSION', '1.3.10');
|
30 |
|
31 |
|
32 |
|
1485 |
return false;
|
1486 |
}
|
1487 |
else{
|
1488 |
+
//$ossl_err = @openssl_error_string();if($ossl_err!=false) return false;
|
1489 |
$key = @openssl_pkey_new();
|
1490 |
+
|
1491 |
+
//$ossl_err = @openssl_error_string();if($ossl_err!=false) return false;
|
1492 |
@openssl_pkey_export($key, $privateKey);
|
1493 |
$privateKey = base64_encode($privateKey);
|
1494 |
+
|
1495 |
+
//$ossl_err = @openssl_error_string();if($ossl_err!=false) return false;
|
1496 |
$publicKey = @openssl_pkey_get_details($key);
|
1497 |
+
|
1498 |
+
//$ossl_err = @openssl_error_string();if($ossl_err!=false) return false;
|
1499 |
$publicKey = $publicKey["key"];
|
1500 |
|
1501 |
if(empty($publicKey) || empty($privateKey)){
|
1790 |
remove_action( 'login_init', 'send_frame_options_header');
|
1791 |
}
|
1792 |
|
1793 |
+
//added for jQuery compatibility
|
1794 |
+
if(!function_exists('iwp_mmb_register_ext_scripts')){
|
1795 |
+
function iwp_mmb_register_ext_scripts(){
|
1796 |
+
wp_register_script( 'iwp-zero-clipboard', plugins_url( '/ZeroClipboard.js', __FILE__ ) );
|
1797 |
+
}
|
1798 |
+
}
|
1799 |
+
|
1800 |
+
add_action( 'admin_init', 'iwp_mmb_register_ext_scripts' );
|
1801 |
+
|
1802 |
+
|
1803 |
+
if(!function_exists('iwp_mmb_add_zero_clipboard_scripts')){
|
1804 |
+
function iwp_mmb_add_zero_clipboard_scripts(){
|
1805 |
+
if (!wp_script_is( 'iwp-zero-clipboard', 'enqueued' )) {
|
1806 |
+
if(file_exists(WP_PLUGIN_DIR.'/iwp-client/ZeroClipboard.js') ){
|
1807 |
+
wp_enqueue_script(
|
1808 |
+
'iwp-zero-clipboard',
|
1809 |
+
plugins_url( '/ZeroClipboard.js', __FILE__ ),
|
1810 |
+
array( 'jquery' )
|
1811 |
+
);
|
1812 |
+
}
|
1813 |
+
}
|
1814 |
+
}
|
1815 |
+
}
|
1816 |
+
|
1817 |
+
if ( !get_option('iwp_client_public_key') && function_exists('add_action')){
|
1818 |
+
add_action('admin_enqueue_scripts', 'iwp_mmb_add_zero_clipboard_scripts');
|
1819 |
+
}
|
1820 |
+
|
1821 |
+
|
1822 |
?>
|
readme.txt
CHANGED
@@ -48,6 +48,14 @@ Credits: [Vladimir Prelovac](http://prelovac.com/vladimir) for his worker plugin
|
|
48 |
|
49 |
== Changelog ==
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
= 1.3.8 =
|
52 |
* Fix: Fixed a security bug that would allow someone to put WP site into maintenance mode if they know the admin username.
|
53 |
|
48 |
|
49 |
== Changelog ==
|
50 |
|
51 |
+
= 1.3.10 =
|
52 |
+
* Fix: Bug Fix - This version fixes an Open SSL bug that was introduced in v1.3.9. If you updated to v1.3.9 and are encountering connection errors, update the Client Plugin from your WP dashboards. You don't have to re-add the sites to InfiniteWP.
|
53 |
+
|
54 |
+
= 1.3.9 =
|
55 |
+
* Fix: WP Dashboard jQuery conflict issue.
|
56 |
+
* Fix: Empty reply from server created by not properly configured OpenSSL functions.
|
57 |
+
* Fix: Google Drive backup upload timeout issue.
|
58 |
+
|
59 |
= 1.3.8 =
|
60 |
* Fix: Fixed a security bug that would allow someone to put WP site into maintenance mode if they know the admin username.
|
61 |
|