73b5b0ee by Jeff Balicki

search

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 205fdf40
Showing 58 changed files with 2744 additions and 21 deletions
......@@ -70,6 +70,9 @@
"portable",
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
......@@ -152,6 +155,9 @@
"debug",
"dump"
],
"support": {
"source": "https://github.com/symfony/var-dumper/tree/v2.8.50"
},
"time": "2018-11-11T11:18:13+00:00"
},
{
......@@ -198,6 +204,10 @@
"env",
"environment"
],
"support": {
"issues": "https://github.com/vlucas/phpdotenv/issues",
"source": "https://github.com/vlucas/phpdotenv/tree/1.1"
},
"time": "2015-05-30T15:59:26+00:00"
}
],
......@@ -211,5 +221,5 @@
"php": ">=5.4"
},
"platform-dev": [],
"plugin-api-version": "1.1.0"
"plugin-api-version": "2.3.0"
}
......
......@@ -40,14 +40,6 @@ namespace :deploy do
end
end
namespace :deploy do
desc 'Install composer packages'
task :install_theme_packages do
on roles(:web), in: :sequence, wait: 5 do
execute "cd '#{release_path}'; /usr/bin/php74 /home/tenzing_www/bin/composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader"
end
end
end
namespace :deploy do
desc 'Install composer packages'
......@@ -87,14 +79,14 @@ namespace :deploy do
end
end
namespace :deploy do
desc 'set file permissions'
task :set_permissions do
on roles(:web), in: :sequence, wait: 5 do
execute "cd '#{release_path}/'; chmod -Rf 777 .htaccess wordfence-waf.php wp-content/advanced-cache.php "
end
end
end
#namespace :deploy do
# desc 'set file permissions'
# task :set_permissions do
# on roles(:web), in: :sequence, wait: 5 do
# execute "cd '#{release_path}/'; chmod -Rf 777 .htaccess wordfence-waf.php wp-content/advanced-cache.php "
# end
# end
# end
......@@ -126,7 +118,6 @@ end
# Uncomment the following line to run it on deploys if needed
# after 'deploy:publishing', 'deploy:update_option_paths'
after 'deploy:updated', 'deploy:install_theme_packages'
after 'deploy:updated', 'deploy:sync'
after 'deploy:updated', 'deploy:set_permissions'
#after 'deploy:updated', 'deploy:set_permissions'
after 'deploy:finished', 'deploy:sync_again'
......
set :application, 'commonwell-corp'
set :application, 'crlg-staging'
set :stage, :staging
set :branch, "staging"
set :branch, "master"
# Simple Role Syntax
# ==================
......
=== Better Search Replace ===
Contributors: wpengine, deliciousbrains, mattshaw
Tags: search replace, search and replace, update urls, database, search replace database, update database urls, update live url, better search replace, search&replace
Requires at least: 3.0.1
Tested up to: 6.1.1
Stable tag: 1.4.2
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
A simple plugin to update URLs or other text in a database.
== Description ==
When moving your WordPress site to a new domain or server, you will likely run into a need to run a search/replace on the database for everything to work correctly. Fortunately, there are several plugins available for this task, however, all have a different approach to a few key features. This plugin consolidates the best features from these plugins, incorporating the following features in one simple plugin:
* Serialization support for all tables
* The ability to select specific tables
* The ability to run a "dry run" to see how many fields will be updated
* No server requirements aside from a running installation of WordPress
* WordPress Multisite support
> **Time-saving features available in the Pro version:**
>
> * View exactly what changed during a search/replace
> * Backup and import the database while running a search/replace
> * Priority email support from the developer of the plugin
> * Save or load custom profiles for quickly repeating a search/replace in the future
> * Support and updates for 1 year
>
> **[Learn more about Better Search Replace Pro](https://bettersearchreplace.com/)**
The search and replace functionality is heavily based on interconnect/it's great and open-source Search Replace DB script, modified to use WordPress native database functions to ensure compatibility.
**Supported Languages**
* English
* French
* German
* Spanish
**Want to contribute?**
Feel free to open an issue or submit a pull request on [GitHub](https://github.com/deliciousbrains/better-search-replace/).
== Installation ==
Install Better Search Replace like you would install any other WordPress plugin.
Dashboard Method:
1. Login to your WordPress admin and go to Plugins -> Add New
2. Type "Better Search Replace" in the search bar and select this plugin
3. Click "Install", and then "Activate Plugin"
Upload Method:
1. Unzip the plugin and upload the "better-search-replace" folder to your 'wp-content/plugins' directory
2. Activate the plugin through the Plugins menu in WordPress
== Frequently Asked Questions ==
= Using Better Search Replace =
Once activated, Better Search Replace will add a page under the "Tools" menu page in your WordPress admin.
= Is my host supported? =
Yes! This plugin should be compatible with any host.
= Can I damage my site with this plugin? =
Yes! Entering a wrong search or replace string could damage your database. Because of this, it is always adviseable to have a backup of your database before using this plugin.
= How does this work on WordPress Multisite? =
When running this plugin on a WordPress Multisite installation, it will only be loaded and visible for Network admins. Network admins can go to the dashboard of any subsite to run a search/replace on just the tables for that subsite, or go to the dashboard of the main/base site to run a search/replace on all tables.
= How can I use this plugin when changing URLs? =
If you're moving your site from one server to another and changing the URL of your WordPress installation, the approach below allows you to do so easily without affecting the old site:
1. Backup the database on your current site
2. Install the database on your new host
3. On the new host, define the new site URL in the `wp-config.php` file, as shown [here](http://codex.wordpress.org/Changing_The_Site_URL#Edit_wp-config.php)
4. Log in at your new admin URL and run Better Search Replace on the old site URL for the new site URL
5. Delete the site_url constant you added to `wp-config.php`. You may also need to regenerate your .htaccess by going to Settings -> Permalinks and saving the settings.
More information on moving WordPress can be found [here](http://codex.wordpress.org/Moving_WordPress).
== Screenshots ==
1. The Better Search Replace page added to the "Tools" menu
2. After running a search/replace dry-run.
== Changelog ==
= 1.4.2 - January 10, 2023 =
* Security: Arbitrary tab templates in the `templates` directory can no longer be loaded using a query parameter.
= 1.4.1 - July 25, 2022 =
* Security: Selected tables are now confirmed to exist before processing the request
= 1.4 - April 7, 2022 =
* New: Better Search Replace has a brand new user interface
* Improvement: Default capability required to use the plugin has changed from "install_plugins" to "manage_options" for compatibility with DISALLOW_FILE_MODS
= 1.3.4 - December 7, 2020 =
* Improvement: WordPress 5.6 and PHP 8 compatible
* Fix: Strings that have been serialized twice showing up as false-positives
= 1.3.3 - February 26, 2019 =
* Fix: Some special characters interfering with search/replace
* Security: Pass template filenames through `sanitize_file_name()`
* Security: Verify nonce when downloading diagnostic info
= 1.3.2 - January 3, 2018 =
* Fix: Only one table searched on some environments (props @Ov3rfly)
* Tweak: Update text in sidebar
= 1.3.1 - September 14, 2017 =
* Security: Check if data is serialized before unserializing it
* Improvement: Increased size of table select
= 1.3 - November 10, 2016 =
* Improvement: Updated sidebar and added pro version discount
* Fix: Outdated links to old website
* Fix: Prevent requests to invalid tabs
= 1.2.10 - June 2, 2016 =
* Fix: CSS not loaded on details page
= 1.2.9 - December 8, 2015 =
* Fix: Bug with case-insensitive searches in serialized objects
* Fix: Bug with early skip due to lack of primary key
= 1.2.8 - November 25, 2015 =
* Fix: Bug with report details
= 1.2.7 - November 24, 2015 =
* Fix: Untranslateable string
* Tweak: Check BSR_PATH instead of ABSPATH to be consistent
* Tested with 4.4
= 1.2.6 =
* Removed unused code/small cleanup
= 1.2.5 =
* Improved progress bar info and styles
* Small cleanup
= 1.2.4 =
* Added "Settings saved" notice when saving settings
* Fixed bug with wp_magic_quotes interfering with some search strings
= 1.2.3 =
* Fixed bug with searching for backslashes
* Fixed potential bug with getting tables in large multisites
* Fixed potential notice in append_report
* Improved handling of missing primary keys
= 1.2.2 =
* Fixed AJAX conflict with WooCommerce
* Fixed a few issues with translations
* Tweaked "System Info" to use get_locale() instead of WP_LANG constant
* Updated German translation (props @Linus Ziegenhagen)
= 1.2.1 =
* Fixed minor issue with display of progress bar
* Updated translation file
= 1.2 =
* Switched to AJAX bulk processing for search/replaces
* Decreased minimum "Max Page Size" to 1000
* Added "Help" tab with system info for easier troubleshooting
= 1.1.1 =
* Added ability to change max page size
* Decreased default page size to prevent white screen issue on some environments
= 1.1 =
* Added ability to change capability required to use plugin
* Small bugfixes and translation fixes
= 1.0.6 =
* Added table sizes to the database table listing
* Added French translation (props @Jean Philippe)
= 1.0.5 =
* Added support for case-insensitive searches
* Added German translation (props @Linus Ziegenhagen)
= 1.0.4 =
* Potential security fixes
= 1.0.3 =
* Fixed issue with searching for special characters like '\'
* Fixed bug with replacing some objects
= 1.0.2 =
* Fixed untranslateable strings on submit button and submenu page.
= 1.0.1 =
* Fixed issue with loading translations and added Spanish translation (props Eduardo Larequi)
* Fixed bug with reporting timing
* Updated to use "Dry Run" as default
* Added support for WordPress Multisite (see FAQs for more info)
= 1.0 =
* Initial release
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 543.9 465.7" style="enable-background:new 0 0 543.9 465.7;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
</style>
<g>
<polygon class="st0" points="264.2,331.3 301.8,192 278.4,192 240.9,331.3 "/>
<polygon class="st0" points="317,324.3 414.9,275.9 414.9,249.4 317,201.4 317,232.5 385.4,262.5 317,293.1 "/>
<polygon class="st0" points="227,201.4 129.1,249.8 129.1,276.3 227,324.3 227,293.3 158.6,263.2 227,232.7 "/>
<path class="st0" d="M154.5,412c-1.1,7-2.9,13.7-5.5,20h329.7c17.8,0,32.5-14.6,32.5-32.5V52.8c0-11.5-9.4-21-21-21H53.7
c-11.5,0-21,9.4-21,21v267.9c6.7-3.1,13.9-5.4,21.4-6.8V100.8h435.7v289c0,12.2-10,22.1-22.1,22.1H154.5z M101,67.9
c0,10.1-8.2,18.4-18.4,18.4c-10.1,0-18.4-8.2-18.4-18.4c0-10.1,8.2-18.4,18.4-18.4C92.8,49.6,101,57.8,101,67.9z"/>
<path class="st0" d="M0,401.3c0,35.6,28.8,64.4,64.4,64.4c35.6,0,64.4-28.8,64.4-64.4s-28.8-64.4-64.4-64.4
C28.8,336.9,0,365.7,0,401.3z"/>
</g>
<path d="M68.3,366.6c-16.5,0-30.9,14.3-30.9,30.9c0,5.5,1.5,10.6,4.1,15.1l-11.9,12.8c-1.8,1.8-1.8,4.7,0,6.5l4.6,4.6
c1.8,1.8,4.1,1.1,5.9-0.7l11.8-12.7c4.5,2.8,9.9,4.3,15.5,4.3c16.5,0,30.9-14.3,30.9-30.9C98.2,380,84.8,366.6,68.3,366.6z
M68.3,375.8c11.5,0,20.7,9.3,20.7,20.7c0,11.5-10.2,21.7-21.7,21.7c-11.5,0-20.7-9.3-20.7-20.7C46.6,386,56.8,375.8,68.3,375.8z"/>
</svg>
<?php // Silence is golden
\ No newline at end of file
(function( $ ) {
'use strict';
/**
* Initializes our event handlers.
*/
function bsr_init() {
bsr_search_replace();
bsr_update_sliders();
}
/**
* Recursive function for performing batch operations.
*/
function bsr_process_step( action, step, page, data ) {
$.ajax({
type: 'POST',
url: bsr_object_vars.endpoint + action,
data: {
bsr_ajax_nonce : bsr_object_vars.ajax_nonce,
action: action,
bsr_step: step,
bsr_page: page,
bsr_data: data
},
dataType: 'json',
success: function( response ) {
// Maybe display more details.
if ( typeof response.message != 'undefined' ) {
$('.bsr-description').remove();
$('.bsr-progress-wrap').append( '<p class="description bsr-description">' + response.message + '</p>' );
}
if ( 'done' == response.step ) {
bsr_update_progress_bar( '100%' );
// Maybe run another action.
if ( typeof response.next_action != 'undefined' ) {
bsr_update_progress_bar( '0%', 0 );
bsr_process_step( response.next_action, 0, 0, response.bsr_data );
} else {
$('.bsr-processing-wrap').remove();
$('.bsr-disabled').removeClass('bsr-disabled button-disabled' );
window.location = response.url;
}
} else {
bsr_update_progress_bar( response.percentage );
bsr_process_step( action, response.step, response.page, response.bsr_data );
}
}
}).fail(function (response) {
$('.bsr-processing-wrap').remove();
$('.bsr-disabled').removeClass('bsr-disabled button-disabled' );
$('#bsr-error-wrap').html( '<div class="error"><p>' + bsr_object_vars.unknown + '</p></div>' ).show();
if ( window.console && window.console.log ) {
console.log(response);
}
});
}
/**
* Initializes a search/replace.
*/
function bsr_search_replace() {
var search_replace_submit = $( '#bsr-submit' );
var bsr_error_wrap = $( '#bsr-error-wrap' );
search_replace_submit.on( 'click', function( e ) {
e.preventDefault();
if ( ! search_replace_submit.hasClass( 'button-disabled' ) ) {
if ( ! $( '#search_for' ).val() ) {
bsr_error_wrap.html( '<div class="error"><p>' + bsr_object_vars.no_search + '</p></div>' ).show();
} else if ( ! $( '#bsr-table-select' ).val() ) {
bsr_error_wrap.html( '<div class="error"><p>' + bsr_object_vars.no_tables + '</p></div>' ).show();
} else {
var str = $( '.bsr-action-form' ).serialize();
var data = str.replace(/%5C/g, "#BSR_BACKSLASH#" );
bsr_error_wrap.html('').hide();
search_replace_submit.addClass( 'bsr-disabled button-disabled' );
$( '#bsr-submit-wrap' ).before('<div class="bsr-processing-wrap"><div class="spinner is-active bsr-spinner"></div><div class="bsr-progress-wrap"><div class="bsr-progress"></div></div></div>');
$('.bsr-progress-wrap').append( '<p class="description bsr-description">' + bsr_object_vars.processing + '</p>' );
bsr_process_step( 'process_search_replace', 0, 0, data );
}
}
});
}
/**
* Updates the progress bar for AJAX bulk actions.
*/
function bsr_update_progress_bar( percentage, speed ) {
if ( typeof speed == 'undefined' ) {
speed = 150;
}
$( '.bsr-progress' ).animate({
width: percentage
}, speed );
}
/**
* Updates the "Max Page Size" slider.
*/
function bsr_update_sliders( percentage ) {
$('#bsr-page-size-slider').slider({
value: bsr_object_vars.page_size,
range: "min",
min: 1000,
max: 50000,
step: 1000,
slide: function( event, ui ) {
$('#bsr-page-size-value').text( ui.value );
$('#bsr_page_size').val( ui.value );
}
});
}
bsr_init();
function toggle_tooltip( icon ) {
var icon = $( icon );
var bubble = icon.next();
// Close any that are already open
$( '.helper-message' ).not( bubble ).hide();
var position = icon.position();
if ( icon.parent()[0].nodeName === 'TD' ) {
position = icon.offset();
}
if ( bubble.hasClass( 'left' ) ) {
bubble.css({
'left': ( position.left - bubble.width() - icon.width() - 29 ) + 'px',
'top': ( position.top + icon.height() / 2 - 18 ) + 'px'
})
} else if ( bubble.hasClass( 'bottom' ) ) {
bubble.css( {
'left': ( ( position.left - bubble.width() / 2 ) - 5 ) + 'px',
'top': ( position.top + icon.height() + 19 ) + 'px'
} );
} else {
bubble.css( {
'left': ( position.left + icon.width() + 19 ) + 'px',
'top': ( position.top + icon.height() / 2 - 18 ) + 'px'
} );
}
bubble.toggle();
}
$('body').on('thickbox:iframe:loaded', function(){
var $iframeBody = $( '#TB_window iframe' ).contents().find( 'body' );
$iframeBody.on( 'mouseover', '.tooltip', function( e ) {
e.preventDefault();
$iframeBody.find( '.helper-message' ).hide();
toggle_tooltip( this );
e.stopPropagation();
});
$iframeBody.on( 'mouseleave', 'td', function( e ) {
$iframeBody.find( '.helper-message' ).hide();
});
});
$( 'body' ).on( 'mouseover', '.tooltip', function( e ) {
toggle_tooltip( this );
} );
$( 'body' ).on( 'mouseleave', '.tooltip', function( e ) {
$( '.helper-message' ).hide();
} );
$( '.notice.inline' )
.appendTo('.bsr-notice-container' )
.css( 'display', 'block' );
setTimeout(function() {
const $settings_saved_notice = $( '#setting-error-settings_updated' );
const $bsr_notices = $( '.bsr-updated' );
if ( $settings_saved_notice.length || $bsr_notices.length ) {
$( '<div class="bsr-inner-notice-container"></div>' ).prependTo( '.inside' );
$settings_saved_notice.prependTo( '.bsr-inner-notice-container' ).css( 'display', 'block' );
$bsr_notices.prependTo( '.bsr-inner-notice-container' ).css( 'display', 'block' );
}
$( '.bsr-inner-notice-container .notice-dismiss' ).on( 'click', function ( e ) {
if ( ! $bsr_notices.length ) {
$( '.bsr-inner-notice-container' ).remove();
}
});
}, 75);
})( jQuery );
!function(n){"use strict";function t(e,s){void 0===s&&(s=150),n(".bsr-progress").animate({width:e},s)}var s,o;function r(e){var s=(e=n(e)).next(),o=(n(".helper-message").not(s).hide(),e.position());"TD"===e.parent()[0].nodeName&&(o=e.offset()),s.hasClass("left")?s.css({left:o.left-s.width()-e.width()-29+"px",top:o.top+e.height()/2-18+"px"}):s.hasClass("bottom")?s.css({left:o.left-s.width()/2-5+"px",top:o.top+e.height()+19+"px"}):s.css({left:o.left+e.width()+19+"px",top:o.top+e.height()/2-18+"px"}),s.toggle()}s=n("#bsr-submit"),o=n("#bsr-error-wrap"),s.on("click",function(e){e.preventDefault(),s.hasClass("button-disabled")||(n("#search_for").val()?n("#bsr-table-select").val()?(e=n(".bsr-action-form").serialize().replace(/%5C/g,"#BSR_BACKSLASH#"),o.html("").hide(),s.addClass("bsr-disabled button-disabled"),n("#bsr-submit-wrap").before('<div class="bsr-processing-wrap"><div class="spinner is-active bsr-spinner"></div><div class="bsr-progress-wrap"><div class="bsr-progress"></div></div></div>'),n(".bsr-progress-wrap").append('<p class="description bsr-description">'+bsr_object_vars.processing+"</p>"),function s(o,e,r,i){n.ajax({type:"POST",url:bsr_object_vars.endpoint+o,data:{bsr_ajax_nonce:bsr_object_vars.ajax_nonce,action:o,bsr_step:e,bsr_page:r,bsr_data:i},dataType:"json",success:function(e){void 0!==e.message&&(n(".bsr-description").remove(),n(".bsr-progress-wrap").append('<p class="description bsr-description">'+e.message+"</p>")),"done"==e.step?(t("100%"),void 0!==e.next_action?(t("0%",0),s(e.next_action,0,0,e.bsr_data)):(n(".bsr-processing-wrap").remove(),n(".bsr-disabled").removeClass("bsr-disabled button-disabled"),window.location=e.url)):(t(e.percentage),s(o,e.step,e.page,e.bsr_data))}}).fail(function(e){n(".bsr-processing-wrap").remove(),n(".bsr-disabled").removeClass("bsr-disabled button-disabled"),n("#bsr-error-wrap").html('<div class="error"><p>'+bsr_object_vars.unknown+"</p></div>").show(),window.console&&window.console.log&&console.log(e)})}("process_search_replace",0,0,e)):o.html('<div class="error"><p>'+bsr_object_vars.no_tables+"</p></div>").show():o.html('<div class="error"><p>'+bsr_object_vars.no_search+"</p></div>").show())}),n("#bsr-page-size-slider").slider({value:bsr_object_vars.page_size,range:"min",min:1e3,max:5e4,step:1e3,slide:function(e,s){n("#bsr-page-size-value").text(s.value),n("#bsr_page_size").val(s.value)}}),n("body").on("thickbox:iframe:loaded",function(){var s=n("#TB_window iframe").contents().find("body");s.on("mouseover",".tooltip",function(e){e.preventDefault(),s.find(".helper-message").hide(),r(this),e.stopPropagation()}),s.on("mouseleave","td",function(e){s.find(".helper-message").hide()})}),n("body").on("mouseover",".tooltip",function(e){r(this)}),n("body").on("mouseleave",".tooltip",function(e){n(".helper-message").hide()}),n(".notice.inline").appendTo(".bsr-notice-container").css("display","block"),setTimeout(function(){const e=n("#setting-error-settings_updated"),s=n(".bsr-updated");(e.length||s.length)&&(n('<div class="bsr-inner-notice-container"></div>').prependTo(".inside"),e.prependTo(".bsr-inner-notice-container").css("display","block"),s.prependTo(".bsr-inner-notice-container").css("display","block")),n(".bsr-inner-notice-container .notice-dismiss").on("click",function(e){s.length||n(".bsr-inner-notice-container").remove()})},75)}(jQuery);
//# sourceMappingURL=better-search-replace.min.js.map
\ No newline at end of file
{"version":3,"file":"better-search-replace.min.js","sources":["better-search-replace.js"],"names":["$","bsr_update_progress_bar","percentage","speed","animate","width","search_replace_submit","bsr_error_wrap","toggle_tooltip","icon","bubble","next","position","not","hide","parent","nodeName","offset","hasClass","css","left","top","height","toggle","on","e","preventDefault","val","data","serialize","replace","html","addClass","before","append","bsr_object_vars","processing","bsr_process_step","action","step","page","ajax","type","url","endpoint","bsr_ajax_nonce","ajax_nonce","bsr_step","bsr_page","bsr_data","dataType","success","response","message","remove","next_action","removeClass","window","location","fail","unknown","show","console","log","no_tables","no_search","slider","value","page_size","range","min","max","slide","event","ui","text","$iframeBody","contents","find","this","stopPropagation","appendTo","setTimeout","$settings_saved_notice","$bsr_notices","length","prependTo","jQuery"],"mappings":"CAAA,SAAWA,gBAuGV,SAASC,EAAyBC,EAAYC,QACxB,IAATA,IACXA,EAAQ,KAETH,EAAG,iBAAkBI,QAAQ,CAC5BC,MAAOH,GACLC,GAvGJ,IAiEKG,EACAC,EA2DL,SAASC,EAAgBC,GACxB,IACIC,GAASD,EADFT,EAAGS,IACIE,OAKdC,GAFJZ,EAAG,mBAAoBa,IAAKH,GAASI,OAEtBL,EAAKG,YAEe,OAA9BH,EAAKM,SAAS,GAAGC,WACrBJ,EAAWH,EAAKQ,UAGZP,EAAOQ,SAAU,QACrBR,EAAOS,IAAI,CACVC,KAAUR,EAASQ,KAAOV,EAAOL,QAAUI,EAAKJ,QAAU,GAAO,KACjEgB,IAAST,EAASS,IAAMZ,EAAKa,SAAW,EAAI,GAAO,OAEzCZ,EAAOQ,SAAU,UAC5BR,EAAOS,IAAK,CACXC,KAAYR,EAASQ,KAAOV,EAAOL,QAAU,EAAM,EAAM,KACzDgB,IAAST,EAASS,IAAMZ,EAAKa,SAAW,GAAO,OAGhDZ,EAAOS,IAAK,CACXC,KAAUR,EAASQ,KAAOX,EAAKJ,QAAU,GAAO,KAChDgB,IAAST,EAASS,IAAMZ,EAAKa,SAAW,EAAI,GAAO,OAIrDZ,EAAOa,SA1FHjB,EAAwBN,EAAG,eAC3BO,EAAiBP,EAAG,mBACxBM,EAAsBkB,GAAI,QAAS,SAAUC,GAE5CA,EAAEC,iBAEKpB,EAAsBY,SAAU,qBAE/BlB,EAAG,eAAgB2B,MAEZ3B,EAAG,qBAAsB2B,OAIlCC,EADO5B,EAAG,oBAAqB6B,YACnBC,QAAQ,OAAQ,mBAEhCvB,EAAewB,KAAK,IAAIjB,OACxBR,EAAsB0B,SAAU,gCAChChC,EAAG,oBAAqBiC,OAAO,iKAC/BjC,EAAE,sBAAsBkC,OAAQ,0CAA4CC,gBAAgBC,WAAa,QA5E7G,SAASC,EAAkBC,EAAQC,EAAMC,EAAMZ,GAE9C5B,EAAEyC,KAAK,CACNC,KAAM,OACNC,IAAKR,gBAAgBS,SAAWN,EAChCV,KAAM,CACLiB,eAAiBV,gBAAgBW,WACjCR,OAAQA,EACRS,SAAUR,EACVS,SAAUR,EACVS,SAAUrB,GAEXsB,SAAU,OACVC,QAAS,SAAUC,QAGc,IAApBA,EAASC,UACpBrD,EAAE,oBAAoBsD,SACtBtD,EAAE,sBAAsBkC,OAAQ,0CAA4CkB,EAASC,QAAU,SAG3F,QAAUD,EAASb,MAEvBtC,EAAyB,aAGW,IAAxBmD,EAASG,aACpBtD,EAAyB,KAAM,GAC/BoC,EAAkBe,EAASG,YAAa,EAAG,EAAGH,EAASH,YAEvDjD,EAAE,wBAAwBsD,SAC1BtD,EAAE,iBAAiBwD,YAAY,gCAC/BC,OAAOC,SAAWN,EAAST,OAI5B1C,EAAyBmD,EAASlD,YAClCmC,EAAkBC,EAAQc,EAASb,KAAMa,EAASZ,KAAMY,EAASH,cAIjEU,KAAK,SAAUP,GACjBpD,EAAE,wBAAwBsD,SAC1BtD,EAAE,iBAAiBwD,YAAY,gCAC/BxD,EAAE,mBAAmB+B,KAAM,yBAA2BI,gBAAgByB,QAAU,cAAeC,OAC1FJ,OAAOK,SAAWL,OAAOK,QAAQC,KACrCD,QAAQC,IAAIX,KA+BXf,CAAkB,yBAA0B,EAAG,EAAGT,IATlDrB,EAAewB,KAAM,yBAA2BI,gBAAgB6B,UAAY,cAAeH,OAF3FtD,EAAewB,KAAM,yBAA2BI,gBAAgB8B,UAAY,cAAeJ,UAoC9F7D,EAAE,yBAAyBkE,OAAO,CACjCC,MAAOhC,gBAAgBiC,UACvBC,MAAO,MACPC,IAAK,IACLC,IAAK,IACLhC,KAAM,IACNiC,MAAO,SAAUC,EAAOC,GACvB1E,EAAE,wBAAwB2E,KAAMD,EAAGP,OACnCnE,EAAE,kBAAkB2B,IAAK+C,EAAGP,UAwC/BnE,EAAE,QAAQwB,GAAG,yBAA0B,WACtC,IAAIoD,EAAc5E,EAAG,qBAAsB6E,WAAWC,KAAM,QAE5DF,EAAYpD,GAAI,YAAa,WAAY,SAAUC,GAClDA,EAAEC,iBACFkD,EAAYE,KAAM,mBAAoBhE,OACtCN,EAAgBuE,MAChBtD,EAAEuD,oBAGHJ,EAAYpD,GAAI,aAAc,KAAM,SAAUC,GAC7CmD,EAAYE,KAAM,mBAAoBhE,WAIxCd,EAAG,QAASwB,GAAI,YAAa,WAAY,SAAUC,GAClDjB,EAAgBuE,QAGjB/E,EAAG,QAASwB,GAAI,aAAc,WAAY,SAAUC,GACnDzB,EAAG,mBAAoBc,SAGxBd,EAAG,kBACDiF,SAAS,yBACT9D,IAAK,UAAW,SAElB+D,WAAW,WACV,MAAMC,EAAyBnF,EAAG,mCAC5BoF,EAAepF,EAAG,iBAEnBmF,EAAuBE,QAAUD,EAAaC,UAClDrF,EAAG,kDAAmDsF,UAAW,WACjEH,EAAuBG,UAAW,+BAAgCnE,IAAK,UAAW,SAClFiE,EAAaE,UAAW,+BAAgCnE,IAAK,UAAW,UAGzEnB,EAAG,+CAAgDwB,GAAI,QAAS,SAAWC,GACnE2D,EAAaC,QACnBrF,EAAG,+BAAgCsD,YAGnC,IA9MJ,CAkNIiC"}
\ No newline at end of file
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.75 9H14.25" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M9 3.75L14.25 9L9 14.25" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.6568 17.1461C15.008 16.3789 17.9133 12.2296 17.1461 7.87846C16.3789 3.5273 12.2296 0.621957 7.87846 1.38919C3.5273 2.15641 0.621957 6.30567 1.38919 10.6568C2.15641 15.008 6.30567 17.9133 10.6568 17.1461ZM14.3711 7.55993L8.43564 13.4954C8.23406 13.697 7.90729 13.697 7.70571 13.4954L4.35087 10.1405C4.14932 9.93899 4.14932 9.61218 4.35087 9.41064L5.08077 8.68073C5.28235 8.47918 5.60916 8.47918 5.81071 8.68073L8.07067 10.9407L12.9113 6.10012C13.1129 5.89854 13.4397 5.89854 13.6412 6.10012L14.3711 6.83002C14.5727 7.03157 14.5727 7.35838 14.3711 7.55993Z" fill="#24CE87"/>
</svg>
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10.0135 16C9.29074 16 8.70729 15.4078 8.70729 14.6938C8.70729 13.971 9.29074 13.3875 10.0135 13.3875C10.7276 13.3875 11.3198 13.971 11.3198 14.6938C11.3198 15.4078 10.7276 16 10.0135 16ZM11.4068 10.7054C11.0846 10.836 10.8756 11.1495 10.8844 11.4978C10.8844 11.9768 10.4925 12.3687 10.0135 12.3687C9.52587 12.3687 9.1427 11.9768 9.1427 11.4978C9.13399 10.4528 9.75228 9.51236 10.7102 9.10307C11.5897 8.7112 11.9903 7.68362 11.6071 6.80409C11.2153 5.91585 10.1877 5.51527 9.30816 5.89843C8.67246 6.16839 8.25446 6.79538 8.26317 7.49204C8.26317 7.971 7.8713 8.36287 7.39235 8.36287C6.90468 8.36287 6.52152 7.971 6.52152 7.49204C6.51281 5.56752 8.07943 4.00004 9.99524 4.00004C11.9111 3.99133 13.4785 5.55881 13.4785 7.47463C13.4785 8.85924 12.6513 10.1045 11.3886 10.6618L11.4068 10.7054Z" fill="#708AA4"/>
<rect x="1" y="1" width="18" height="18" rx="9" stroke="#708AA4" stroke-width="2"/>
</svg>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.4937 11.9367L2.78019 6.75083C2.57008 6.50354 2.54208 6.1364 2.71017 5.85913L4.279 3.83608C4.40507 3.61877 4.62918 3.52141 4.86731 3.52141H11.1917C11.4228 3.52141 11.6469 3.61126 11.773 3.82108L13.3208 5.7318C13.4889 6.00907 13.4679 6.3614 13.2578 6.61618L8.52325 11.914C8.2431 12.2437 7.75284 12.2437 7.47269 11.914L7.4937 11.9367ZM11.5839 2.03H4.4611C3.97785 2.03 3.5296 2.25472 3.27046 2.68935L1.21838 5.53714C0.882199 6.09167 0.938216 6.80364 1.35844 7.29821L6.95442 13.5101C7.51472 14.1695 8.49524 14.162 9.04853 13.4951L14.6585 7.13319C15.0647 6.63112 15.1137 5.90433 14.7776 5.3498L12.7465 2.64435C12.4874 2.22471 12.0461 2 11.5699 2" fill="#27CC87"/>
</svg>
<svg width="144" height="65" viewBox="0 0 144 65" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M100.909 18.8864H84.75C84.3424 14.3085 81.2528 11.4322 75.6403 11H72.5418C67.044 11.4119 64.2926 14.0235 64.2614 17.5227C64.125 21.6818 68.1477 23.7955 74.4886 25.1591L80.4886 26.5227C94.2614 29.5568 101.795 36.375 101.864 47.5227C101.824 55.3264 98.2419 61.2649 91.758 64.8312H106.67V42.6404H114.71L126.55 64.8312H143.644L130.19 40.1396C137.312 36.9107 141.428 30.5479 141.428 21.5893C141.428 8.26218 132.343 0 117.781 0H104H91H88.7553C96.3578 3.64018 100.82 10.3625 100.909 18.8864ZM48.254 11H48.2525C45.8804 4.26117 38.7204 0 27.0341 0H0V64.8312H29.0917C37.9694 64.8312 44.5055 61.8951 48.1968 57.1722C46.176 53.745 45.0628 49.5354 45 44.5227H61.1591C61.5341 51.2386 66.4432 54.7159 73.9091 54.7159C80.6932 54.7159 84.6818 51.75 84.75 47.4886C84.6818 43.5682 81.2386 41.4886 73.5682 39.7159L66.2727 38.0114C54.2045 35.25 46.7727 29.2841 46.8068 18.6818C46.785 15.9116 47.2904 13.3368 48.254 11ZM15.6696 52.2005V36.7524H25.6412C31.6242 36.7524 35.2963 39.918 35.2963 44.888C35.2963 49.4781 32.1307 52.2005 25.3563 52.2005H15.6696ZM15.6696 26.6542V12.4407H24.5966C29.8198 12.4407 33.1437 15.1315 33.1437 19.4367C33.1437 23.9951 29.4716 26.6542 24.3433 26.6542H15.6696ZM106.67 12.6307V30.2946H114.394C121.421 30.2946 125.188 27.6039 125.188 21.5893C125.188 15.5747 121.421 12.6307 114.394 12.6307H106.67Z" fill="white"/>
</svg>
<svg width="290" height="166" viewBox="0 0 290 166" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M68.6623 131.574C68.5704 131.507 68.481 131.441 68.3868 131.357C67.9034 131.025 67.5409 130.693 67.0576 130.472C66.6951 130.361 66.4534 130.14 66.2118 130.029C64.0368 124.717 60.1701 120.29 55.2159 117.302C50.3826 114.314 44.4618 112.654 38.2993 112.876C36.4868 112.986 34.7951 113.208 32.9826 113.54C30.6868 113.982 28.391 114.757 26.3368 115.753C25.7326 116.085 25.1285 116.417 24.5243 116.749C24.2826 115.974 23.9201 115.2 23.5576 114.536C21.6243 110.662 18.6035 107.453 14.8576 105.129C23.1951 101.366 29.5993 94.9476 32.8618 87.3116C32.8618 87.2009 32.9826 86.9796 32.9826 86.8689C32.9826 86.7582 33.1035 86.6476 33.1035 86.5369C33.7076 85.0982 34.191 83.6596 34.5535 82.1102C34.7951 81.0036 35.0368 79.8969 35.1576 78.6796C35.5201 75.2489 35.3993 71.5969 34.4326 67.9449C33.9493 66.0636 33.2243 64.2929 32.4993 62.5222C30.6868 58.5382 28.0285 55.1076 24.8868 52.1196C24.041 51.2342 23.0743 50.4596 22.1076 49.6849C20.6576 48.5782 19.0868 47.5822 17.3951 46.6969C13.7701 44.8156 9.6618 43.3769 5.43264 42.7129C3.8618 42.4916 2.17014 42.3809 0.599304 42.2702C1.92847 41.8276 3.25764 41.4956 4.5868 41.1636C13.891 39.2822 23.0743 41.4956 29.9618 46.4756C31.291 47.1396 32.3785 48.1356 33.3451 49.3529C34.0701 50.1276 34.7951 50.9022 35.3993 51.6769C44.9451 52.1196 53.4034 58.2062 55.6993 67.1702C57.7534 75.1382 54.2493 82.8849 47.7243 87.5329C51.8326 88.4182 55.6993 90.0782 59.2034 92.2916C63.9159 88.3076 69.8368 85.4302 76.4826 83.8809C84.6993 82.1102 92.7951 82.9956 99.9243 85.7622C103.066 83.9916 106.933 82.8849 110.92 82.8849C122.037 82.9956 131.099 91.2956 130.978 101.477C130.978 101.809 130.978 102.141 130.978 102.473C137.02 102.916 141.733 107.564 141.733 113.208C141.733 114.093 141.612 114.868 141.37 115.642C159.495 113.65 176.653 124.496 180.883 141.206C181.003 142.092 181.245 142.977 181.366 143.862C190.428 147.625 197.437 155.15 199.853 164.668C199.96 165.11 200.056 165.553 200.143 165.996H197.161C196.557 164.778 195.847 163.636 195.01 162.565C190.177 156.146 181.96 152.384 173.26 152.716C172.415 152.716 171.69 152.826 170.844 152.937C168.91 150.17 165.406 148.51 161.66 148.621C160.935 148.621 160.331 148.732 159.606 148.842C159.514 148.882 159.408 148.909 159.292 148.931L159.065 148.971C158.949 148.993 158.843 149.015 158.751 149.059C158.267 149.17 157.784 149.281 157.422 149.502C157.18 148.838 156.938 148.285 156.697 147.731C156.213 146.846 155.73 145.961 155.247 145.186C154.884 144.633 154.522 144.079 154.159 143.526C150.776 139.099 145.459 135.558 139.176 133.234C134.463 131.574 129.147 130.578 123.467 130.578C122.742 130.578 122.138 130.578 121.413 130.578C118.876 130.689 116.58 130.91 114.284 131.353C110.417 132.127 106.913 133.345 103.651 134.894C101.234 136.001 99.1799 137.329 97.2466 138.878C95.5549 138.657 93.8633 138.435 92.0508 138.325C91.4466 138.325 90.8424 138.325 90.2383 138.325C88.5466 138.325 86.8549 138.435 85.1633 138.657C83.9549 138.878 82.7466 139.099 81.5383 139.321C80.9341 139.431 80.3299 139.542 79.7258 139.763C77.7924 140.317 75.8591 140.981 74.1674 141.866C74.1674 141.645 74.0466 141.313 74.0466 141.091C74.0466 140.538 73.9258 140.095 73.8049 139.542C73.6841 138.878 73.4424 138.214 73.2008 137.55C72.9591 136.886 72.7174 136.333 72.3549 135.779C71.5091 134.341 70.4216 133.013 69.0924 131.906C69.0006 131.822 68.9112 131.755 68.8169 131.689L68.6357 131.561L68.6623 131.574ZM97.6284 120.622C97.6236 119.4 96.2993 118.298 94.6076 118.409C93.0368 118.409 91.7076 119.516 91.7076 120.733H89.4118V116.528C85.3034 116.528 82.0409 118.188 82.0409 120.29C82.0409 120.401 82.0409 120.512 82.0409 120.622H78.0534C78.0534 121.618 80.1076 122.393 82.8868 122.725C82.2826 123.278 82.0409 124.053 82.0409 124.717C82.0409 127.041 85.3034 129.033 89.4118 129.033V122.725C92.4278 122.393 94.6028 121.618 94.6076 120.622H97.6284ZM111.283 106.789L118.412 94.2836C113.941 92.1809 108.503 93.6196 106.328 97.6036C105.724 98.5996 105.483 99.5956 105.362 100.702L100.649 96.6076C97.5076 99.4849 97.5076 104.022 100.528 106.678C100.528 106.789 100.649 106.789 100.649 106.789H95.9368C95.9368 108.449 100.649 109.777 106.57 109.777C112.356 109.777 116.991 108.506 117.194 106.9H121.065C121.06 105.24 119.374 103.912 117.199 104.022C115.188 104.022 113.525 105.182 113.453 106.789H117.194L117.189 106.864L117.184 106.895H113.443C113.443 106.855 113.443 106.82 113.443 106.784H111.263L111.283 106.789Z" fill="white" fill-opacity="0.1"/>
<path d="M200.583 97.276C198.529 97.276 196.717 98.0507 195.146 99.268C192.85 95.3947 188.742 92.8493 184.15 92.8493C179.437 92.8493 175.45 95.5053 173.033 99.4893C172.912 99.4893 172.912 99.4893 172.792 99.4893C168.925 99.4893 165.783 102.92 165.783 107.236H209.404C209.646 101.703 205.658 97.276 200.583 97.276Z" fill="white" fill-opacity="0.1"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.00966667 42.0089H0.613833C2.3055 42.0089 3.87633 42.2307 5.44717 42.4525C9.67633 43.118 13.7847 44.4489 17.4097 46.4454C19.1013 47.3327 20.6722 48.3309 22.1222 49.44C23.0888 50.2164 24.0555 50.9928 24.9013 51.8801C28.1638 54.8747 30.7013 58.313 32.5138 62.3058C33.3597 64.0804 33.9638 65.855 34.4472 67.7405C35.4138 71.2897 35.5347 74.9498 35.1722 78.499C35.0513 79.6082 34.8097 80.8282 34.568 81.9373C34.2055 83.3792 33.7222 84.9319 33.118 86.3738C33.118 86.4847 32.9972 86.5956 32.9972 86.7065C32.9972 86.8175 32.8763 87.0393 32.8763 87.1502C29.493 94.8031 23.2097 101.347 14.8722 105.007C18.618 107.336 21.6388 110.553 23.5722 114.435C23.9347 115.1 24.2972 115.876 24.5388 116.653C25.143 116.32 25.7472 115.987 26.3513 115.655C28.4055 114.656 30.5805 113.991 32.9972 113.436C34.8097 112.993 36.5013 112.882 38.3138 112.771C44.4763 112.549 50.2763 114.213 55.2305 117.207C60.1847 120.202 64.0513 124.639 66.2263 129.962C66.5888 130.073 66.8305 130.295 67.0722 130.406C67.5555 130.628 68.0388 130.961 68.4013 131.293C68.643 131.404 68.8847 131.626 69.1263 131.848C70.4555 132.957 71.543 134.288 72.3888 135.73C72.7513 136.284 72.993 136.95 73.2347 137.504C73.4763 138.17 73.718 138.835 73.8388 139.501C73.9597 140.055 73.9597 140.499 74.0805 141.054C74.2013 141.275 74.2013 141.608 74.2013 141.83C75.893 140.943 77.8263 140.277 79.7597 139.723C80.3638 139.612 80.968 139.39 81.5722 139.279C82.7805 138.946 83.9888 138.724 85.1972 138.614C86.768 138.392 88.4548 138.281 90.2722 138.281H92.0847C93.8972 138.281 95.5888 138.503 97.2805 138.835C99.2138 137.393 101.389 135.952 103.685 134.843C106.826 133.29 110.451 132.07 114.318 131.293C116.614 130.85 119.026 130.628 121.447 130.517H123.501C129.18 130.517 134.497 131.515 139.21 133.179C145.614 135.508 150.81 139.057 154.193 143.494C154.555 144.048 154.918 144.603 155.28 145.157C155.885 146.045 156.368 146.821 156.73 147.708C156.972 148.263 157.214 148.928 157.455 149.483C157.939 149.261 158.301 149.15 158.785 149.039C158.872 148.995 158.983 148.968 159.094 148.946L159.316 148.902C159.427 148.88 159.534 148.853 159.626 148.809C160.351 148.698 161.076 148.587 161.68 148.587C165.305 148.476 168.809 150.14 170.863 152.912C171.709 152.801 172.434 152.691 173.28 152.691C181.98 152.247 190.196 156.129 195.03 162.562C195.866 163.635 196.601 164.78 197.214 166H0V42L0.00966667 42.0089Z" fill="#10585C"/>
<path d="M92.075 72.1547H106.092C106.092 67.2853 100.533 63.3013 93.7666 63.3013C90.1416 63.3013 87 64.408 84.7041 66.1787C84.3416 66.1787 83.9791 66.068 83.4958 66.068C78.7833 66.068 75.0375 68.8347 75.0375 72.1547H92.075Z" fill="white" fill-opacity="0.1"/>
<path d="M94.7333 118.413C93.1624 118.413 91.8333 119.409 91.8333 120.627H89.5374V116.421C85.4291 116.421 82.1666 118.081 82.1666 120.184C82.1666 120.295 82.1666 120.405 82.1666 120.516H78.1791C78.1791 121.401 80.1124 122.176 83.0124 122.619C82.5291 123.172 82.1666 123.836 82.1666 124.611C82.1666 127.045 85.4291 128.927 89.5374 128.927V123.947V122.619C92.5583 122.287 94.7333 121.512 94.7333 120.516H97.7541C97.6333 119.409 96.3041 118.413 94.7333 118.413ZM47.4875 42.0533C45.9166 44.5987 46.7625 47.9187 49.5416 49.6893L50.025 49.0253C51.1125 51.2387 53.4083 52.788 56.3083 52.788V42.164C58.3624 41.832 59.8124 41.168 59.8124 40.3933H62.5916C62.5916 39.176 61.3833 38.2907 59.8124 38.2907C58.2416 38.2907 57.0333 39.2867 57.0333 40.3933H55.9458C53.7708 39.0653 51.2333 39.176 49.3 40.3933H44.225C44.1041 41.0573 45.4333 41.7213 47.4875 42.0533ZM93.0416 52.124C100.775 52.124 106.937 50.3533 106.937 48.2507H111.892C111.892 46.148 109.717 44.3773 106.937 44.3773C104.158 44.3773 101.983 46.0373 101.983 48.14H98.5999L107.179 32.868C101.5 30.212 94.7333 32.0933 91.9541 36.9627C91.2291 38.18 90.8666 39.508 90.7458 40.836L85.4291 35.7453C81.5624 39.0653 81.0791 44.488 84.2208 48.0293H78.9041C79.0249 50.3533 85.3083 52.124 93.0416 52.124ZM117.208 103.916C115.154 103.916 113.462 105.244 113.462 106.793H121.075C121.075 105.244 119.383 103.916 117.208 103.916ZM134.85 69.6093C134.125 70.1627 133.4 70.9373 132.917 71.712C129.896 76.1387 131.346 82.2253 136.3 85.2133L137.146 83.996C138.958 87.8693 143.067 90.5253 147.9 90.5253V69.9413C152.492 69.388 155.633 68.06 155.633 66.6213H160.346C160.346 64.6293 158.292 63.08 155.633 63.08C153.096 63.08 151.042 64.6293 150.921 66.6213H129.292V66.732C129.292 67.8387 131.467 68.9453 134.85 69.6093Z" fill="#1A1D28"/>
<path d="M118.417 94.288C113.946 92.1854 108.508 93.624 106.333 97.608C105.729 98.604 105.487 99.7107 105.367 100.707L100.654 96.612C97.6333 99.6 97.5125 104.137 100.533 106.683L100.654 106.793H95.9417C95.9417 108.453 100.654 109.781 106.575 109.781C112.496 109.781 117.208 108.453 117.208 106.793H111.287L118.417 94.288ZM162.279 51.6813C175.933 51.6813 186.929 48.5827 187.05 44.82H195.871C195.871 41.0573 191.883 38.0693 187.05 38.0693C182.217 38.0693 178.229 41.0573 178.229 44.82H171.221V12.616C163.367 12.616 156.721 16.8213 153.821 22.7973L152.492 20.916C144.637 25.564 142.221 34.86 147.054 41.832C147.9 43.0493 148.867 44.0453 149.954 44.9307H137.508C137.508 48.5827 148.625 51.6813 162.279 51.6813Z" fill="#1A1D28"/>
</svg>
<?php
/**
* Better Search Replace
*
* This plugin improves upon the database search/replace functionality offered
* by some other plugins- offering serialization support, the ability to
* select specific tables, and the ability to run a dry run.
*
* @since 1.0.0
* @package Better_Search_Replace
*
* @wordpress-plugin
* Plugin Name: Better Search Replace
* Plugin URI: https://bettersearchreplace.com
* Description: A small plugin for running a search/replace on your WordPress database.
* Version: 1.4.2
* Author: WP Engine
* Author URI: https://bettersearchreplace.com
* License: GPL-3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: better-search-replace
* Domain Path: /languages
* Network: true
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// If this file was called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*
* @since 1.0.0
*/
function run_better_search_replace() {
// Allows for overriding the capability required to run the plugin.
$cap = apply_filters( 'bsr_capability', 'manage_options' );
// Only load for admins.
if ( current_user_can( $cap ) ) {
// Defines the path to the main plugin file.
define( 'BSR_FILE', __FILE__ );
// Defines the path to be used for includes.
define( 'BSR_PATH', plugin_dir_path( BSR_FILE ) );
// Defines the URL to the plugin.
define( 'BSR_URL', plugin_dir_url( BSR_FILE ) );
// Defines the current version of the plugin.
define( 'BSR_VERSION', '1.4.2' );
/**
* The core plugin class that is used to define internationalization,
* dashboard-specific hooks, and public-facing site hooks.
*/
require BSR_PATH . 'includes/class-bsr-main.php';
$plugin = new Better_Search_Replace();
$plugin->run();
}
}
add_action( 'after_setup_theme', 'run_better_search_replace' );
<?php
/**
* The dashboard-specific functionality of the plugin.
*
* Registers styles and scripts, adds the custom administration page,
* and processes user input on the "search/replace" form.
*
* @link https://bettersearchreplace.com
* @since 1.0.0
*
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/includes
*/
// Prevent direct access.
if ( ! defined( 'BSR_PATH' ) ) exit;
class BSR_Admin {
/**
* The ID of this plugin.
*
* @since 1.0.0
* @access private
* @var string $better_search_replace The ID of this plugin.
*/
private $better_search_replace;
/**
* The version of this plugin.
*
* @since 1.0.0
* @access private
* @var string $version The current version of this plugin.
*/
private $version;
/**
* Initialize the class and set its properties.
*
* @since 1.0.0
* @var string $better_search_replace The name of this plugin.
* @var string $version The version of this plugin.
*/
public function __construct( $better_search_replace, $version ) {
$this->better_search_replace = $better_search_replace;
$this->version = $version;
}
/**
* Register any CSS and JS used by the plugin.
* @since 1.0.0
* @access public
* @param string $hook Used for determining which page(s) to load our scripts.
*/
public function enqueue_scripts( $hook ) {
if ( 'tools_page_better-search-replace' === $hook ) {
$min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
wp_enqueue_style( 'better-search-replace', BSR_URL . "assets/css/better-search-replace$min.css", array(), $this->version, 'all' );
wp_enqueue_style( 'jquery-style', BSR_URL . 'assets/css/jquery-ui.min.css', array(), $this->version, 'all' );
wp_enqueue_script( 'jquery-ui-slider' );
wp_enqueue_script( 'better-search-replace', BSR_URL . "assets/js/better-search-replace$min.js", array( 'jquery' ), $this->version, true );
wp_enqueue_style( 'thickbox' );
wp_enqueue_script( 'thickbox' );
wp_localize_script( 'better-search-replace', 'bsr_object_vars', array(
'page_size' => get_option( 'bsr_page_size' ) ? absint( get_option( 'bsr_page_size' ) ) : 20000,
'endpoint' => BSR_AJAX::get_endpoint(),
'ajax_nonce' => wp_create_nonce( 'bsr_ajax_nonce' ),
'no_search' => __( 'No search string was defined, please enter a URL or string to search for.', 'better-search-replace' ),
'no_tables' => __( 'Please select the tables that you want to update.', 'better-search-replace' ),
'unknown' => __( 'An error occurred processing your request. Try decreasing the "Max Page Size", or contact support.', 'better-search-replace' ),
'processing' => __( 'Processing...', 'better-search-replace' )
) );
}
}
/**
* Register any menu pages used by the plugin.
* @since 1.0.0
* @access public
*/
public function bsr_menu_pages() {
$cap = apply_filters( 'bsr_capability', 'manage_options' );
add_submenu_page( 'tools.php', __( 'Better Search Replace', 'better-search-replace' ), __( 'Better Search Replace', 'better-search-replace' ), $cap, 'better-search-replace', array( $this, 'bsr_menu_pages_callback' ) );
}
/**
* The callback for creating a new submenu page under the "Tools" menu.
* @access public
*/
public function bsr_menu_pages_callback() {
require_once BSR_PATH . 'includes/class-bsr-templates-helper.php';
require_once BSR_PATH . 'templates/bsr-dashboard.php';
}
/**
* Renders the result or error onto the better-search-replace admin page.
* @access public
*/
public static function render_result() {
if ( isset( $_GET['result'] ) && $result = get_transient( 'bsr_results' ) ) {
if ( isset( $result['dry_run'] ) && $result['dry_run'] === 'on' ) {
$msg = sprintf( __( '<p><strong>DRY RUN:</strong> <strong>%d</strong> tables were searched, <strong>%d</strong> cells were found that need to be updated, and <strong>%d</strong> changes were made.</p><p><a href="%s" class="thickbox" title="Dry Run Details">Click here</a> for more details, or use the form below to run the search/replace.</p>', 'better-search-replace' ),
$result['tables'],
$result['change'],
$result['updates'],
get_admin_url() . 'admin-post.php?action=bsr_view_details&TB_iframe=true&width=800&height=500'
);
} else {
$msg = sprintf( __( '<p>During the search/replace, <strong>%d</strong> tables were searched, with <strong>%d</strong> cells changed in <strong>%d</strong> updates.</p><p><a href="%s" class="thickbox" title="Search/Replace Details">Click here</a> for more details.</p>', 'better-search-replace' ),
$result['tables'],
$result['change'],
$result['updates'],
get_admin_url() . 'admin-post.php?action=bsr_view_details&TB_iframe=true&width=800&height=500'
);
}
echo '<div class="updated bsr-updated" style="display: none;">' . $msg . '</div>';
}
}
/**
* Prefills the given value on the search/replace page (dry run, live run, from profile).
* @access public
* @param string $value The value to check for.
* @param string $type The type of the value we're filling.
*/
public static function prefill_value( $value, $type = 'text' ) {
// Grab the correct data to prefill.
if ( isset( $_GET['result'] ) && get_transient( 'bsr_results' ) ) {
$values = get_transient( 'bsr_results' );
} else {
$values = array();
}
// Prefill the value.
if ( isset( $values[$value] ) ) {
if ( 'checkbox' === $type && 'on' === $values[$value] ) {
echo 'checked';
} else {
echo str_replace( '#BSR_BACKSLASH#', '\\', esc_attr( htmlentities( $values[$value] ) ) );
}
}
}
/**
* Loads the tables available to run a search replace, prefilling if already
* selected the tables.
* @access public
*/
public static function load_tables() {
// Get the tables and their sizes.
$tables = BSR_DB::get_tables();
$sizes = BSR_DB::get_sizes();
echo '<select id="bsr-table-select" name="select_tables[]" multiple="multiple" style="">';
foreach ( $tables as $table ) {
// Try to get the size for this specific table.
$table_size = isset( $sizes[$table] ) ? $sizes[$table] : '';
if ( isset( $_GET['result'] ) && get_transient( 'bsr_results' ) ) {
$result = get_transient( 'bsr_results' );
if ( isset( $result['table_reports'][$table] ) ) {
echo "<option value='$table' selected>$table $table_size</option>";
} else {
echo "<option value='$table'>$table $table_size</option>";
}
} else {
echo "<option value='$table'>$table $table_size</option>";
}
}
echo '</select>';
}
/**
* Loads the result details (via Thickbox).
* @access public
*/
public function load_details() {
if ( get_transient( 'bsr_results' ) ) {
$results = get_transient( 'bsr_results' );
$min = ( defined( 'SCRIPT_DEBUG' ) && true === SCRIPT_DEBUG ) ? '' : '.min';
$bsr_styles = BSR_URL . 'assets/css/better-search-replace.css?v=' . BSR_VERSION;
?>
<link href="<?php echo esc_url( get_admin_url( null, '/css/common' . $min . '.css' ) ); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo esc_url( $bsr_styles ); ?>" rel="stylesheet" type="text/css">
<div style="padding: 32px; background-color: var(--color-white); min-height: 100%;">
<table id="bsr-results-table" class="widefat">
<thead>
<tr><th class="bsr-first"><?php _e( 'Table', 'better-search-replace' ); ?></th><th class="bsr-second"><?php _e( 'Changes Found', 'better-search-replace' ); ?></th><th class="bsr-third"><?php _e( 'Rows Updated', 'better-search-replace' ); ?></th><th class="bsr-fourth"><?php _e( 'Time', 'better-search-replace' ); ?></th></tr>
</thead>
<tbody>
<?php
foreach ( $results['table_reports'] as $table_name => $report ) {
$time = $report['end'] - $report['start'];
if ( $report['change'] != 0 ) {
$report['change'] = '<a class="tooltip">' . $report['change'] . '</a>';
$upgrade_link = sprintf(
__( '<a href="%s" target="_blank">UPGRADE</a> to view details on the exact changes that will be made.', 'better-search-replace'),
'https://deliciousbrains.com/better-search-replace/upgrade/?utm_source=insideplugin&utm_medium=web&utm_content=tooltip&utm_campaign=bsr-to-migrate'
);
$report['change'] .= '<span class="helper-message right">' . $upgrade_link . '</span>';
}
if ( $report['updates'] != 0 ) {
$report['updates'] = '<strong>' . $report['updates'] . '</strong>';
}
echo '<tr><td class="bsr-first">' . $table_name . '</td><td class="bsr-second">' . $report['change'] . '</td><td class="bsr-third">' . $report['updates'] . '</td><td class="bsr-fourth">' . round( $time, 3 ) . __( ' seconds', 'better-search-replace' ) . '</td></tr>';
}
?>
</tbody>
</table>
</div>
<?php
}
}
/**
* Registers our settings in the options table.
* @access public
*/
public function register_option() {
register_setting( 'bsr_settings_fields', 'bsr_page_size', 'absint' );
}
/**
* Downloads the system info file for support.
* @access public
*/
public function download_sysinfo() {
check_admin_referer( 'bsr_download_sysinfo', 'bsr_sysinfo_nonce' );
$cap = apply_filters( 'bsr_capability', 'manage_options' );
if ( ! current_user_can( $cap ) ) {
return;
}
nocache_headers();
header( 'Content-Type: text/plain' );
header( 'Content-Disposition: attachment; filename="bsr-system-info.txt"' );
echo wp_strip_all_tags( $_POST['bsr-sysinfo'] );
die();
}
/**
* Displays the link to upgrade to BSR Pro
* @access public
* @param array $links The links assigned to the plugin.
*/
public function meta_upgrade_link( $links, $file ) {
$plugin = plugin_basename( BSR_FILE );
if ( $file == $plugin ) {
return array_merge(
$links,
array( '<a href="https://bettersearchreplace.com/?utm_source=insideplugin&utm_medium=web&utm_content=plugins-page&utm_campaign=pro-upsell">' . __( 'Upgrade to Pro', 'better-search-replace' ) . '</a>' )
);
}
return $links;
}
}
<?php
/**
* AJAX-specific functionality for the plugin.
*
* @link https://bettersearchreplace.com
* @since 1.2
*
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/includes
*/
// Prevent direct access.
if ( ! defined( 'BSR_PATH' ) ) exit;
class BSR_AJAX {
/**
* Initiate our custom ajax handlers.
* @access public
*/
public function init() {
add_action( 'init', array( $this, 'define_ajax' ), 1 );
add_action( 'init', array( $this, 'do_bsr_ajax' ), 2 );
$this->add_ajax_actions();
}
/**
* Gets our custom endpoint.
* @access public
* @return string
*/
public static function get_endpoint() {
return esc_url_raw( get_admin_url() . 'tools.php?page=better-search-replace&bsr-ajax=' );
}
/**
* Set BSR AJAX constant and headers.
* @access public
*/
public function define_ajax() {
if ( isset( $_GET['bsr-ajax'] ) && ! empty( $_GET['bsr-ajax'] ) ) {
// Define the WordPress "DOING_AJAX" constant.
if ( ! defined( 'DOING_AJAX' ) ) {
define( 'DOING_AJAX', true );
}
// Prevent notices from breaking AJAX functionality.
if ( ! WP_DEBUG || ( WP_DEBUG && ! WP_DEBUG_DISPLAY ) ) {
@ini_set( 'display_errors', 0 );
}
// Send the headers.
send_origin_headers();
@header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
@header( 'X-Robots-Tag: noindex' );
send_nosniff_header();
nocache_headers();
}
}
/**
* Check if we're doing AJAX and fire the related action.
* @access public
*/
public function do_bsr_ajax() {
global $wp_query;
if ( isset( $_GET['bsr-ajax'] ) && ! empty( $_GET['bsr-ajax'] ) ) {
$wp_query->set( 'bsr-ajax', sanitize_text_field( $_GET['bsr-ajax'] ) );
}
if ( $action = $wp_query->get( 'bsr-ajax' ) ) {
do_action( 'bsr_ajax_' . sanitize_text_field( $action ) );
die();
}
}
/**
* Adds any AJAX-related actions.
* @access public
*/
public function add_ajax_actions() {
$actions = array(
'process_search_replace',
);
foreach ( $actions as $action ) {
add_action( 'bsr_ajax_' . $action, array( $this, $action ) );
}
}
/**
* Processes the search/replace form submitted by the user.
* @access public
*/
public function process_search_replace() {
// Bail if not authorized.
if ( ! check_admin_referer( 'bsr_ajax_nonce', 'bsr_ajax_nonce' ) ) {
return;
}
// Initialize the DB class.
$db = new BSR_DB();
$step = isset( $_POST['bsr_step' ] ) ? absint( $_POST['bsr_step'] ) : 0;
$page = isset( $_POST['bsr_page'] ) ? absint( $_POST['bsr_page'] ) : 0;
// Any operations that should only be performed at the beginning.
if ( $step === 0 && $page === 0 ) {
$args = array();
parse_str( $_POST['bsr_data'], $args );
// Build the arguments for this run.
if ( ! isset( $args['select_tables'] ) || ! is_array( $args['select_tables'] ) ) {
$args['select_tables'] = array();
}
$args = array(
'select_tables' => array_map( 'trim', $args['select_tables'] ),
'case_insensitive' => isset( $args['case_insensitive'] ) ? $args['case_insensitive'] : 'off',
'replace_guids' => isset( $args['replace_guids'] ) ? $args['replace_guids'] : 'off',
'dry_run' => isset( $args['dry_run'] ) ? $args['dry_run'] : 'off',
'search_for' => isset( $args['search_for'] ) ? stripslashes( $args['search_for'] ) : '',
'replace_with' => isset( $args['replace_with'] ) ? stripslashes( $args['replace_with'] ) : '',
'completed_pages' => isset( $args['completed_pages'] ) ? absint( $args['completed_pages'] ) : 0,
);
$args['total_pages'] = isset( $args['total_pages'] ) ? absint( $args['total_pages'] ) : $db->get_total_pages( $args['select_tables'] );
// Clear the results of the last run.
delete_transient( 'bsr_results' );
delete_option( 'bsr_data' );
} else {
$args = get_option( 'bsr_data' );
}
// Start processing data.
if ( isset( $args['select_tables'][$step] ) ) {
$result = $db->srdb( $args['select_tables'][$step], $page, $args );
$this->append_report( $args['select_tables'][$step], $result['table_report'], $args );
if ( false === $result['table_complete'] ) {
$page++;
} else {
$step++;
$page = 0;
}
// Check if isset() again as the step may have changed since last check.
if ( isset( $args['select_tables'][$step] ) ) {
$message = sprintf(
__( 'Processing table %d of %d: %s', 'better-search-replace' ),
$step + 1,
count( $args['select_tables'] ),
esc_html( $args['select_tables'][$step] )
);
}
$args['completed_pages']++;
$percentage = $args['completed_pages'] / $args['total_pages'] * 100 . '%';
} else {
$db->maybe_update_site_url();
$step = 'done';
$percentage = '100%';
}
update_option( 'bsr_data', $args );
// Store results in an array.
$result = array(
'step' => $step,
'page' => $page,
'percentage' => $percentage,
'url' => get_admin_url() . 'tools.php?page=better-search-replace&tab=bsr_search_replace&result=true',
'bsr_data' => build_query( $args )
);
if ( isset( $message ) ) {
$result['message'] = $message;
}
// Send output as JSON for processing via AJAX.
echo json_encode( $result );
exit;
}
/**
* Helper function for assembling the BSR Results.
* @access public
* @param string $table The name of the table to append to.
* @param array $report The report for that table.
* @param array $args An array of arguements used for this run.
* @return boolean
*/
public function append_report( $table, $report, $args ) {
// Bail if not authorized.
if ( ! check_admin_referer( 'bsr_ajax_nonce', 'bsr_ajax_nonce' ) ) {
return;
}
// Retrieve the existing transient.
$results = get_transient( 'bsr_results' ) ? get_transient( 'bsr_results') : array();
// Grab any values from the run args.
$results['search_for'] = isset( $args['search_for'] ) ? $args['search_for'] : '';
$results['replace_with'] = isset( $args['replace_with'] ) ? $args['replace_with'] : '';
$results['dry_run'] = isset( $args['dry_run'] ) ? $args['dry_run'] : 'off';
$results['case_insensitive'] = isset( $args['case_insensitive'] ) ? $args['case_insensitive'] : 'off';
$results['replace_guids'] = isset( $args['replace_guids'] ) ? $args['replace_guids'] : 'off';
// Sum the values of the new and existing reports.
$results['change'] = isset( $results['change'] ) ? $results['change'] + $report['change'] : $report['change'];
$results['updates'] = isset( $results['updates'] ) ? $results['updates'] + $report['updates'] : $report['updates'];
// Append the table report, or create a new one if necessary.
if ( isset( $results['table_reports'] ) && isset( $results['table_reports'][$table] ) ) {
$results['table_reports'][$table]['change'] = $results['table_reports'][$table]['change'] + $report['change'];
$results['table_reports'][$table]['updates'] = $results['table_reports'][$table]['updates'] + $report['updates'];
$results['table_reports'][$table]['end'] = $report['end'];
} else {
$results['table_reports'][$table] = $report;
}
// Count the number of tables.
$results['tables'] = count( $results['table_reports'] );
// Update the transient.
if ( ! set_transient( 'bsr_results', $results, DAY_IN_SECONDS ) ) {
return false;
}
return true;
}
}
$bsr_ajax = new BSR_AJAX;
$bsr_ajax->init();
<?php
/**
* Processes compatibility functionality.
* @since 1.0
*
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/includes
*/
// Prevent direct access.
if ( ! defined( 'BSR_PATH' ) ) exit;
class BSR_Compatibility {
/**
* Returns the system info.
* @access public
* @return string
*/
public static function get_sysinfo() {
global $wpdb;
$return = '### Begin System Info ###' . "\n\n";
// Basic site info
$return .= '-- WordPress Configuration' . "\n\n";
$return .= 'Site URL: ' . site_url() . "\n";
$return .= 'Home URL: ' . home_url() . "\n";
$return .= 'Multisite: ' . ( is_multisite() ? 'Yes' : 'No' ) . "\n";
$return .= 'Version: ' . get_bloginfo( 'version' ) . "\n";
$return .= 'Language: ' . get_locale() . "\n";
$return .= 'Table Prefix: ' . 'Length: ' . strlen( $wpdb->prefix ) . "\n";
$return .= 'WP_DEBUG: ' . ( defined( 'WP_DEBUG' ) ? WP_DEBUG ? 'Enabled' : 'Disabled' : 'Not set' ) . "\n";
$return .= 'Memory Limit: ' . WP_MEMORY_LIMIT . "\n";
// Plugin Configuration
$return .= "\n" . '-- Better Search Replace Configuration' . "\n\n";
$return .= 'Plugin Version: ' . BSR_VERSION . "\n";
$db = new BSR_DB();
$return .= 'Max Page Size: ' . $db->get_page_size() . "\n";
// Server Configuration
$return .= "\n" . '-- Server Configuration' . "\n\n";
$os = self::get_os();
$return .= 'Operating System: ' . $os['name'] . "\n";
$return .= 'PHP Version: ' . PHP_VERSION . "\n";
$return .= 'MySQL Version: ' . $wpdb->db_version() . "\n";
$return .= 'Server Software: ' . $_SERVER['SERVER_SOFTWARE'] . "\n";
// PHP configs... now we're getting to the important stuff
$return .= "\n" . '-- PHP Configuration' . "\n\n";
$return .= 'Memory Limit: ' . ini_get( 'memory_limit' ) . "\n";
$return .= 'Post Max Size: ' . ini_get( 'post_max_size' ) . "\n";
$return .= 'Upload Max Filesize: ' . ini_get( 'upload_max_filesize' ) . "\n";
$return .= 'Time Limit: ' . ini_get( 'max_execution_time' ) . "\n";
$return .= 'Max Input Vars: ' . ini_get( 'max_input_vars' ) . "\n";
$return .= 'Display Errors: ' . ( ini_get( 'display_errors' ) ? 'On (' . ini_get( 'display_errors' ) . ')' : 'N/A' ) . "\n";
// WordPress active plugins
$return .= "\n" . '-- WordPress Active Plugins' . "\n\n";
$plugins = get_plugins();
$active_plugins = get_option( 'active_plugins', array() );
foreach( $plugins as $plugin_path => $plugin ) {
if( !in_array( $plugin_path, $active_plugins ) )
continue;
$return .= $plugin['Name'] . ': ' . $plugin['Version'] . "\n";
}
// WordPress inactive plugins
$return .= "\n" . '-- WordPress Inactive Plugins' . "\n\n";
foreach( $plugins as $plugin_path => $plugin ) {
if( in_array( $plugin_path, $active_plugins ) )
continue;
$return .= $plugin['Name'] . ': ' . $plugin['Version'] . "\n";
}
if( is_multisite() ) {
// WordPress Multisite active plugins
$return .= "\n" . '-- Network Active Plugins' . "\n\n";
$plugins = wp_get_active_network_plugins();
$active_plugins = get_site_option( 'active_sitewide_plugins', array() );
foreach( $plugins as $plugin_path ) {
$plugin_base = plugin_basename( $plugin_path );
if( !array_key_exists( $plugin_base, $active_plugins ) )
continue;
$plugin = get_plugin_data( $plugin_path );
$return .= $plugin['Name'] . ': ' . $plugin['Version'] . "\n";
}
}
$return .= "\n" . '### End System Info ###';
return $return;
}
/**
* Determines the current operating system.
* @access public
* @return array
*/
public static function get_os() {
$os = array();
$uname = php_uname( 's' );
$os['code'] = strtoupper( substr( $uname, 0, 3 ) );
$os['name'] = $uname;
return $os;
}
}
<?php
/**
* Define the internationalization functionality.
*
* Loads and defines the internationalization files for this plugin
* so that it is ready for translation.
*
* @since 1.0.0
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/includes
*/
// Prevent direct access.
if ( ! defined( 'BSR_PATH' ) ) exit;
class BSR_i18n {
/**
* The domain specified for this plugin.
*
* @since 1.0.0
* @access private
* @var string $domain The domain identifier for this plugin.
*/
private $domain;
/**
* Load the plugin text domain for translation.
*
* @since 1.0.0
*/
public function load_plugin_textdomain() {
load_plugin_textdomain(
$this->domain,
false,
dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
);
}
/**
* Set the domain equal to that of the specified domain.
*
* @since 1.0.0
* @param string $domain The domain that represents the locale of this plugin.
*/
public function set_domain( $domain ) {
$this->domain = $domain;
$this->load_plugin_textdomain();
}
}
<?php
/**
* Register all actions and filters for the plugin
*
* @link https://bettersearchreplace.com
* @since 1.0.0
*
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/includes
*/
// Prevent direct access.
if ( ! defined( 'BSR_PATH' ) ) exit;
/**
* Register all actions and filters for the plugin.
*
* Maintain a list of all hooks that are registered throughout
* the plugin, and register them with the WordPress API. Call the
* run function to execute the list of actions and filters.
*
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/includes
*/
class BSR_Loader {
/**
* The array of actions registered with WordPress.
*
* @since 1.0.0
* @access protected
* @var array $actions The actions registered with WordPress to fire when the plugin loads.
*/
protected $actions;
/**
* The array of filters registered with WordPress.
*
* @since 1.0.0
* @access protected
* @var array $filters The filters registered with WordPress to fire when the plugin loads.
*/
protected $filters;
/**
* Initialize the collections used to maintain the actions and filters.
*
* @since 1.0.0
*/
public function __construct() {
$this->actions = array();
$this->filters = array();
}
/**
* Add a new action to the collection to be registered with WordPress.
*
* @since 1.0.0
* @var string $hook The name of the WordPress action that is being registered.
* @var object $component A reference to the instance of the object on which the action is defined.
* @var string $callback The name of the function definition on the $component.
* @var int Optional $priority The priority at which the function should be fired.
* @var int Optional $accepted_args The number of arguments that should be passed to the $callback.
*/
public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
$this->actions = $this->add( $this->actions, $hook, $component, $callback, $priority, $accepted_args );
}
/**
* Add a new filter to the collection to be registered with WordPress.
*
* @since 1.0.0
* @var string $hook The name of the WordPress filter that is being registered.
* @var object $component A reference to the instance of the object on which the filter is defined.
* @var string $callback The name of the function definition on the $component.
* @var int Optional $priority The priority at which the function should be fired.
* @var int Optional $accepted_args The number of arguments that should be passed to the $callback.
*/
public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
$this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args );
}
/**
* A utility function that is used to register the actions and hooks into a single
* collection.
*
* @since 1.0.0
* @access private
* @var array $hooks The collection of hooks that is being registered (that is, actions or filters).
* @var string $hook The name of the WordPress filter that is being registered.
* @var object $component A reference to the instance of the object on which the filter is defined.
* @var string $callback The name of the function definition on the $component.
* @var int Optional $priority The priority at which the function should be fired.
* @var int Optional $accepted_args The number of arguments that should be passed to the $callback.
* @return type The collection of actions and filters registered with WordPress.
*/
private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) {
$hooks[] = array(
'hook' => $hook,
'component' => $component,
'callback' => $callback,
'priority' => $priority,
'accepted_args' => $accepted_args
);
return $hooks;
}
/**
* Register the filters and actions with WordPress.
*
* @since 1.0.0
*/
public function run() {
foreach ( $this->filters as $hook ) {
add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
}
foreach ( $this->actions as $hook ) {
add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
}
}
}
<?php
/**
* The core plugin class.
*
* This is used to define internationalization, dashboard-specific hooks, and
* public-facing site hooks.
*
* Also maintains the unique identifier of this plugin as well as the current
* version of the plugin.
*
* @since 1.0
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/includes
*/
// Prevent direct access.
if ( ! defined( 'BSR_PATH' ) ) exit;
class Better_Search_Replace {
/**
* The loader that's responsible for maintaining and registering all hooks that power
* the plugin.
*
* @since 1.0
* @access protected
* @var BSR_Loader $loader Maintains and registers all hooks for the plugin.
*/
protected $loader;
/**
* The unique identifier of this plugin.
*
* @since 1.0
* @access protected
* @var string $plugin_name The string used to uniquely identify this plugin.
*/
protected $plugin_name;
/**
* The current version of the plugin.
*
* @since 1.0
* @access protected
* @var string $version The current version of the plugin.
*/
protected $version;
/**
* Define the core functionality of the plugin.
*
* Set the plugin name and the plugin version that can be used throughout the plugin.
* Load the dependencies, define the locale, and set the hooks for the Dashboard and
* the public-facing side of the site.
*
* @since 1.0
*/
public function __construct() {
$this->plugin_name = 'better-search-replace';
$this->version = BSR_VERSION;
$this->load_dependencies();
$this->set_locale();
$this->define_admin_hooks();
}
/**
* Load the required dependencies for this plugin.
*
* Create an instance of the loader which will be used to register the hooks
* with WordPress.
*
* @since 1.0
* @access private
*/
private function load_dependencies() {
require_once BSR_PATH . 'includes/class-bsr-loader.php';
require_once BSR_PATH . 'includes/class-bsr-i18n.php';
require_once BSR_PATH . 'includes/class-bsr-admin.php';
require_once BSR_PATH . 'includes/class-bsr-ajax.php';
require_once BSR_PATH . 'includes/class-bsr-db.php';
require_once BSR_PATH . 'includes/class-bsr-compatibility.php';
$this->loader = new BSR_Loader();
}
/**
* Define the locale for this plugin for internationalization.
*
* Uses the BSR_i18n class in order to set the domain and to register the hook
* with WordPress.
*
* @since 1.0
* @access private
*/
private function set_locale() {
$plugin_i18n = new BSR_i18n();
$plugin_i18n->set_domain( $this->get_plugin_name() );
}
/**
* Register all of the hooks related to the dashboard functionality
* of the plugin.
*
* @since 1.0
* @access private
*/
private function define_admin_hooks() {
// Initialize the admin class.
$plugin_admin = new BSR_Admin( $this->get_plugin_name(), $this->get_version() );
/// Register the admin pages and scripts.
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
$this->loader->add_action( 'admin_menu', $plugin_admin, 'bsr_menu_pages' );
// Other admin actions.
$this->loader->add_action( 'admin_init', $plugin_admin, 'register_option' );
$this->loader->add_action( 'admin_post_bsr_view_details', $plugin_admin, 'load_details' );
$this->loader->add_action( 'admin_post_bsr_download_sysinfo', $plugin_admin, 'download_sysinfo' );
$this->loader->add_action( 'plugin_row_meta', $plugin_admin, 'meta_upgrade_link', 10, 2 );
}
/**
* Run the loader to execute all of the hooks with WordPress.
*
* @since 1.0
*/
public function run() {
$this->loader->run();
}
/**
* The name of the plugin used to uniquely identify it within the context of
* WordPress and to define internationalization functionality.
*
* @since 1.0
* @return string The name of the plugin.
*/
public function get_plugin_name() {
return $this->plugin_name;
}
/**
* The reference to the class that orchestrates the hooks with the plugin.
*
* @since 1.0
* @return Better_Search_Replace_Loader Orchestrates the hooks of the plugin.
*/
public function get_loader() {
return $this->loader;
}
/**
* Retrieve the version number of the plugin.
*
* @since 1.0
* @return string The version number of the plugin.
*/
public function get_version() {
return $this->version;
}
}
<?php
// Prevent direct access.
if ( ! defined( 'BSR_PATH' ) ) exit;
class BSR_Templates_Helper {
/**
* Returns a fully qualified path for the given active tab name
* if the file name is not supported, the default template path is returned.
*
* @param string $active_tab
* @return string
*/
public static function get_tab_template($active_tab) {
switch($active_tab) {
case 'bsr_settings':
return BSR_PATH . 'templates/bsr-settings.php';
case 'bsr_help':
return BSR_PATH . 'templates/bsr-help.php';
default:
return BSR_PATH . 'templates/bsr-search-replace.php';
}
}
}
\ No newline at end of file
<?php // Silence is golden
\ No newline at end of file
<?php // Silence is golden
\ No newline at end of file
# Copyright (C) 2014
# This file is distributed under the same license as the plugin package.
msgid ""
msgstr ""
"Project-Id-Version: Better Search Replace en español\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/better-search-replace\n"
"POT-Creation-Date: 2015-09-09 01:51:36+00:00\n"
"PO-Revision-Date: 2015-09-10 01:27+0100\n"
"Last-Translator: zork media <info@zork-media.de>\n"
"Language-Team: PNTE <blogs@educacion.navarra.es>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 1.6.3\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-SearchPath-0: .\n"
#: includes/class-bsr-admin.php:71
msgid "No search string was defined, please enter a URL or string to search for."
msgstr "Bitte gib ein, wonach die Datenbank durchsucht werden soll (z. B. eine URL)."
#: includes/class-bsr-admin.php:72
msgid "Please select the tables that you want to update."
msgstr "Bitte wähle die Tabellen aus, die durchsucht werden sollen."
#: includes/class-bsr-admin.php:73
msgid "An error occurred processing your request. Try decreasing the \"Max Page Size\", or contact support."
msgstr "Ein Fehler ist aufgetreten. Versuche entweder die \"Max. Seiten-Anzahl\" zu verringern, oder wende dich an unseren Support."
#. #-#-#-#-# plugin.pot (Better Search Replace 1.2.2) #-#-#-#-#
#. Plugin Name of the plugin/theme
#: includes/class-bsr-admin.php:85
#: templates/bsr-dashboard.php:29
msgid "Better Search Replace"
msgstr "Better Search Replace "
#: includes/class-bsr-admin.php:105
msgid "<p><strong>DRY RUN:</strong> <strong>%d</strong> tables were searched, <strong>%d</strong> cells were found that need to be updated, and <strong>%d</strong> changes were made.</p><p><a href=\"%s\" class=\"thickbox\" title=\"Dry Run Details\">Click here</a> for more details, or use the form below to run the search/replace.</p>"
msgstr "<p><strong>TESTLAUF:</strong> <strong>%d</strong> Tabellen wurden durchsucht, <strong>%d</strong> Tabellenzellen wurden gefunden, die aktualisiert werden sollen. <strong>%d</strong> Änderungen wurden vorgenommen.</p><p>Für mehr Details zum Testlauf <a href=\"%s\" class=\"thickbox\" title=\"Details des Testlaufes\">hier klicken</a>.</p>"
#: includes/class-bsr-admin.php:112
msgid "<p>During the search/replace, <strong>%d</strong> tables were searched, with <strong>%d</strong> cells changed in <strong>%d</strong> updates.</p><p><a href=\"%s\" class=\"thickbox\" title=\"Search/Replace Details\">Click here</a> for more details.</p>"
msgstr "<p>Beim Suchen/Ersetzen wurden <strong>%d</strong> Tabellen mit insgesamt <strong>%d</strong> Zellen durchsucht. <strong>%d</strong> Aktualisierungen wurden vorgenommen.</p><p>Für mehr Details zur Aktualisierung <a href=\"%s\" class=\"thickbox\" title=\"Details zur Aktualisierung\">hier klicken</a>.</p>"
#: includes/class-bsr-admin.php:212
msgid "Table"
msgstr "Tabelle"
#: includes/class-bsr-admin.php:212
msgid "Changes Found"
msgstr "Änderungen gefunden"
#: includes/class-bsr-admin.php:212
msgid "Rows Updated"
msgstr "Zeilen aktualisiert"
#: includes/class-bsr-admin.php:212
msgid "Time"
msgstr "Zeit"
#: includes/class-bsr-admin.php:233
msgid "Want even more details, easy database migrations, and saved search/replace profiles?"
msgstr "Du möchtest noch mehr Einstellungsmöglichkeiten, eine einfache Datenbank-Migration und die Möglichkeit Suchen/Ersetzen-Profile anzulegen?"
#: includes/class-bsr-admin.php:234
msgid "Learn more about the pro version"
msgstr "Lerne die Pro-Version kennen"
#: includes/class-bsr-admin.php:279
msgid "Upgrade to Pro"
msgstr "Upgrade auf die Pro-Version"
#: includes/class-bsr-db.php:81
msgid "(%s MB)"
msgstr "(%s MB)"
#: includes/class-bsr-db.php:251
msgid "Error updating row: %d."
msgstr "Fehler beim Aktualisieren in Zeile: %d."
#: includes/class-bsr-db.php:257
msgid "Row %d has no primary key, manual change needed."
msgstr "Zeile %d hat keinen Primärschlüssel. Du musst sie manuell ändern."
#: templates/bsr-dashboard.php:36
msgid "Search/Replace"
msgstr "Suchen/Ersetzen"
#: templates/bsr-dashboard.php:37
msgid "Settings"
msgstr "Einstellungen"
#: templates/bsr-dashboard.php:38
msgid "Help"
msgstr "Hilfe"
#: templates/bsr-help.php:17
msgid "Help & Troubleshooting"
msgstr "Hilfe & Fehlerbehebung"
#: templates/bsr-help.php:19
msgid "Free support is available on the <a href=\"%s\">plugin support forums</a>."
msgstr "Kostenlosen Support gibt es im <a href=\"%s\">Plugin Support-Forum</a>."
#: templates/bsr-help.php:21
msgid "For premium features and priority email support, <a href=\"%s\" style=\"font-weight:bold;\">upgrade to pro</a>."
msgstr "Weitere Premium-Features und schneller Support per E-Mail: <a href=\"%s\" style=\"font-weight:bold;\">Upgrade auf die Pro-Version</a>."
#: templates/bsr-help.php:23
msgid "Found a bug or have a feature request? Please submit an issue on <a href=\"%s\">GitHub</a>!"
msgstr "Du hast einen Fehler gefunden? Du wünschst dir eine neue Funktion? Schreib uns auf <a href=\"%s\">GitHub</a>!"
#: templates/bsr-help.php:29
msgid "Download System Info"
msgstr "System-Info herunterladen"
#: templates/bsr-search-replace.php:21
msgid "This tool allows you to search and replace text in your database (supports serialized arrays and objects)."
msgstr "Mit diesem Tool kannst du Zeichenketten in der Datenbank suchen und durch andere ersetzen (serialisierte Arrays und Objekte werden unterstützt)."
#: templates/bsr-search-replace.php:22
msgid "To get started, use the form below to enter the text to be replaced and select the tables to update."
msgstr "Gib im Formular an, welche Zeichenkette gesucht und ersetzt werden soll. Wähle aus, welche Tabellen der Datenbank durchsucht werden sollen."
#: templates/bsr-search-replace.php:23
msgid "<strong>WARNING:</strong> Make sure you backup your database before using this plugin!"
msgstr "<strong>Achtung:</strong> Mach' bitte ein Backup von deiner Datenbank bevor du dieses Plugin benutzt!"
#: templates/bsr-search-replace.php:28
msgid "Search for"
msgstr "Suchen nach:"
#: templates/bsr-search-replace.php:33
msgid "Replace with"
msgstr "Ersetzen durch:"
#: templates/bsr-search-replace.php:38
msgid "Select tables"
msgstr "Tabellen auswählen:"
#: templates/bsr-search-replace.php:41
msgid "Select multiple tables with Ctrl-Click for Windows or Cmd-Click for Mac."
msgstr "Steurungs-/Befehlstaste (Win/Mac) oder SHIFT gedrückt halten, um mehrere Tabellen auszuwählen."
#: templates/bsr-search-replace.php:46
msgid "Case-Insensitive?"
msgstr "Groß -und Kleinschreibung ignorieren?"
#: templates/bsr-search-replace.php:49
msgid "Searches are case-sensitive by default."
msgstr "Groß- und Kleinschreibung wird bei der Suche standardmäßig beachtet"
#: templates/bsr-search-replace.php:54
msgid "Replace GUIDs<a href=\"http://codex.wordpress.org/Changing_The_Site_URL#Important_GUID_Note\" target=\"_blank\">?</a>"
msgstr "Auch <a href=\"http://codex.wordpress.org/Changing_The_Site_URL#Important_GUID_Note\" target=\"_blank\">GUIDs ersetzen?</a>"
#: templates/bsr-search-replace.php:57
msgid "If left unchecked, all database columns titled 'guid' will be skipped."
msgstr "Lasse das Feld frei, um alle Datenbank-Spalten mit dem Titel 'guid' beim Suchen/Ersetzen zu überspringen (empfohlen)."
#: templates/bsr-search-replace.php:62
msgid "Run as dry run?"
msgstr "Testlauf?"
#: templates/bsr-search-replace.php:65
msgid "If checked, no changes will be made to the database, allowing you to check the results beforehand."
msgstr "Beim Testlauf wird die Datenbank nicht verändert. So kannst du vorher prüfen, welche Ersetzungen vorgenommen werden."
#: templates/bsr-search-replace.php:76
msgid "Run Search/Replace"
msgstr "Suchen/Ersetzen starten"
#: templates/bsr-settings.php:27
msgid "Max Page Size"
msgstr "Max. Seiten-Anzahl"
#: templates/bsr-settings.php:31
msgid "Current Setting: "
msgstr "Aktuelle Einstellung: "
#: templates/bsr-settings.php:33
msgid "If you're noticing timeouts or getting a white screen while running a search replace, try decreasing this value."
msgstr "Verringere diesen Wert, wenn dein Datenbank-Server ein Timeout zurückmeldet oder du nur einen weißen Screen siehst, während das Suchen/Ersetzen läuft. "
#. Plugin URI of the plugin/theme
msgid "http://expandedfronts.com/better-search-replace"
msgstr "http://expandedfronts.com/better-search-replace"
#. Description of the plugin/theme
msgid "A small plugin for running a search/replace on your WordPress database."
msgstr "Ein Plugin mit dem Zeichenketten in deiner WordPress-Datenbank gesucht und ersetzt werden können."
#. Author of the plugin/theme
msgid "Expanded Fronts"
msgstr "Expanded Fronts"
#. Author URI of the plugin/theme
msgid "http://expandedfronts.com"
msgstr "http://expandedfronts.com"
# Copyright (C) 2014
# This file is distributed under the same license as the plugin package.
msgid ""
msgstr ""
"Project-Id-Version: Better Search Replace en español\n"
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/better-search-replace\n"
"POT-Creation-Date: 2015-01-09 12:49+0100\n"
"PO-Revision-Date: 2015-01-09 12:59+0100\n"
"Last-Translator: Eduardo Larequi <elarequi@gmail.com>\n"
"Language-Team: PNTE <blogs@educacion.navarra.es>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 1.6.3\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-SearchPath-0: .\n"
#: includes/class-better-search-replace-admin.php:141
msgid ""
"No search string was defined, please enter a URL or string to search for."
msgstr ""
"No se ha definido ninguna cadena de búsqueda; por favor, escribe una URL o "
"cadena que buscar."
#: includes/class-better-search-replace-admin.php:144
msgid "Please select the tables that you want to update."
msgstr "Por favor, selecciona las tablas que quieres actualizar."
#: includes/class-better-search-replace-admin.php:153
#, php-format
msgid ""
"<p><strong>DRY RUN:</strong> <strong>%d</strong> tables were searched, "
"<strong>%d</strong> cells were found that need to be updated, and <strong>"
"%d</strong> changes were made.</p><p><a href=\"%s\" class=\"thickbox\" title="
"\"Dry Run Details\">Click here</a> for more details, or click the submit "
"button below to run the search/replace.</p>"
msgstr ""
"<p><strong>EJECUCIÓN EN SECO:</strong> se hn realizado búsquedas en <strong>"
"%d</strong> tablas, se han encontrado <strong>%d</strong> celdas que deben "
"ser actualizadas, y se han realizado <strong>%d</strong> cambios.</p><p><a "
"href=\"%s\" class=\"thickbox\" title=\"Detalles de la ejecución en seco"
"\">Haz clic aquí</a> para ver más detalles, o haz clic en el botón \"Enviar"
"\" que tienes a continuación para ejecutar la búsqueda y sustitución.</p>"
#: includes/class-better-search-replace-admin.php:160
#, php-format
msgid ""
"<p>During the search/replace, <strong>%d</strong> tables were searched, with "
"<strong>%d</strong> cells changed in <strong>%d</strong> updates.</p><p><a "
"href=\"%s\" class=\"thickbox\" title=\"Search/Replace Details\">Click here</"
"a> for more details.</p>"
msgstr ""
"<p>Durante la búsqueda y sustitución, se han realizado búsquedas en <strong>"
"%d</strong> tablas, y se han modificado <strong>%d</strong> celdas en "
"<strong>%d</strong> actualizaciones.</p><p><a href=\"%s\" class=\"thickbox\" "
"title=\"Detalles sobre la búsqueda y sustitución\">Haz clic aquí</a> para "
"ver más detalles.</p>"
#: templates/bsr-dashboard.php:17
msgid "Better Search Replace"
msgstr "Better Search Replace"
#: templates/bsr-dashboard.php:19
msgid ""
"This tool allows you to search and replace text in your database (supports "
"serialized arrays and objects)."
msgstr ""
"Esta herramienta permite buscar y sustituir texto en la base de datos; "
"soporta matrices y objetos serializados."
#: templates/bsr-dashboard.php:20
msgid ""
"To get started, use the form below to enter the text to be replaced and "
"select the tables to update."
msgstr ""
"Para comenzar, utiliza el formulario que tienes a continuación para escribir "
"el texto que será sustituido y selecciona las tablas que se actualizarán."
#: templates/bsr-dashboard.php:21
msgid ""
"<strong>WARNING:</strong> Make sure you backup your database before using "
"this plugin!"
msgstr ""
"<strong>ATENCIÓN:</strong> asegúrate de hacer una copia de seguridad de tu "
"base de datos antes de utilizar este plugin."
#: templates/bsr-dashboard.php:28
msgid "Search for"
msgstr "Buscar"
#: templates/bsr-dashboard.php:33
msgid "Replace with"
msgstr "Sustituir con"
#: templates/bsr-dashboard.php:38
msgid "Select tables"
msgstr "Seleccionar tablas"
#: templates/bsr-dashboard.php:41
msgid ""
"Select multiple tables with Ctrl-Click for Windows or Cmd-Click for Mac."
msgstr ""
"Selecciona múltiples tablas con Ctrl+Clic (en Windows) o Cmd+Clic (en Mac)."
#: templates/bsr-dashboard.php:46
msgid ""
"Replace GUIDs<a href=\"http://codex.wordpress.org/"
"Changing_The_Site_URL#Important_GUID_Note\" target=\"_blank\">?</a>"
msgstr ""
"¿<a href=\"http://codex.wordpress.org/"
"Changing_The_Site_URL#Important_GUID_Note\" target=\"_blank\">Quieres "
"sustituir los GUIDs ?</a>"
#: templates/bsr-dashboard.php:49
msgid "If left unchecked, all database columns titled 'guid' will be skipped."
msgstr ""
"Si no activas esta opción, se omitirán todas las columnas de las bases de "
"datos tituladas 'guid'."
#: templates/bsr-dashboard.php:54
msgid "Run as dry run?"
msgstr "¿Quieres ejecutar \"en seco\"?"
#: templates/bsr-dashboard.php:57
msgid ""
"If checked, no changes will be made to the database, allowing you to check "
"the results beforehand."
msgstr ""
"Si activas esta opción, no se realizará ningún cambio en la base de datos, "
"lo cual te permite verificar los resultados de antemano."
# Copyright (C) 2015 Better Search Replace
# This file is distributed under the same license as the Better Search Replace package.
msgid ""
msgstr ""
"Project-Id-Version: Better Search Replace 1.0.2\n"
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/better-search-replace\n"
"POT-Creation-Date: 2015-02-05 04:52:47+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2015-05-12 10:08-0500\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Last-Translator: TWF <info@themes-wordpress-francais.com>\n"
"Language-Team: TWF <info@themes-wordpress-francais.com>\n"
"Language: fr\n"
"X-Generator: Poedit 1.7.6\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e\n"
"X-Poedit-Basepath: .\n"
"X-Poedit-SearchPath-0: ..\n"
#. Plugin Name of the plugin/theme
#: includes/class-better-search-replace-admin.php:69 templates/bsr-dashboard.php:17
msgid "Better Search Replace"
msgstr "Better Search Replace"
#: includes/class-better-search-replace-admin.php:138
msgid "No search string was defined, please enter a URL or string to search for."
msgstr ""
"Aucune chaîne de recherche a été définie, entrez une URL ou une chaîne à rechercher."
#: includes/class-better-search-replace-admin.php:141
msgid "Please select the tables that you want to update."
msgstr "Sélectionnez les tables que vous souhaitez mettre à jour."
#: includes/class-better-search-replace-admin.php:150
msgid ""
"<p><strong>DRY RUN:</strong> <strong>%d</strong> tables were searched, <strong>%d</"
"strong> cells were found that need to be updated, and <strong>%d</strong> changes "
"were made.</p><p><a href=\"%s\" class=\"thickbox\" title=\"Dry Run Details\">Click "
"here</a> for more details, or use the form below to run the search/replace.</p>"
msgstr ""
"<p><strong>Résultat de l'essai :</strong> <strong>%d</strong> tables ont été "
"parcourues, <strong>%d</strong> chaînes trouvées qui peuvent être mises à jour et "
"<strong>%d</strong> modifications auraient pu être apportées.</p><p><a href=\"%s\" "
"class=\"thickbox\" title=\"Plus de détails\">Cliquez ici</a> pour plus de détails, "
"ou utilisez le formulaire ci-dessous pour exécuter la recherche/remplace.</p>"
#: includes/class-better-search-replace-admin.php:157
msgid ""
"<p>During the search/replace, <strong>%d</strong> tables were searched, with <strong>"
"%d</strong> cells changed in <strong>%d</strong> updates.</p><p><a href=\"%s\" class="
"\"thickbox\" title=\"Search/Replace Details\">Click here</a> for more details.</p>"
msgstr ""
"<p>Pendant la recherche/remplace, <strong>%d</strong> tables ont été fouillés, avec "
"<strong>%d</strong> cellules changées dans <strong>%d</strong> mises à jour.</"
"p><p><a href=\"%s\" class=\"thickbox\" title=\"Plus de Details\">Cliquez ici</a> "
"pour plus de détails.</p>"
#: templates/bsr-dashboard.php:19
msgid ""
"This tool allows you to search and replace text in your database (supports "
"serialized arrays and objects)."
msgstr ""
"Cet outil vous permet de rechercher et remplacer du texte dans votre base de données "
"(prend en charge la sérialisation des tables et objets)."
#: templates/bsr-dashboard.php:20
msgid ""
"To get started, use the form below to enter the text to be replaced and select the "
"tables to update."
msgstr ""
"Pour commencer, utiliser le formulaire ci-dessous pour entrer dans le texte pour le "
"remplacement et sélectionnez les tables à mettre à jour."
#: templates/bsr-dashboard.php:21
msgid ""
"<strong>WARNING:</strong> Make sure you backup your database before using this "
"plugin!"
msgstr ""
"<strong>Avertissement :</strong> Assurez-vous que vous avez sauvegardé votre base de "
"données avant d'utiliser ce plugin !"
#: templates/bsr-dashboard.php:28
msgid "Search for"
msgstr "Rechercher"
#: templates/bsr-dashboard.php:33
msgid "Replace with"
msgstr "Remplacer avec"
#: templates/bsr-dashboard.php:38
msgid "Select tables"
msgstr "Dans les tables"
#: templates/bsr-dashboard.php:41
msgid "Select multiple tables with Ctrl-Click for Windows or Cmd-Click for Mac."
msgstr "Sélectionnez plusieurs tables avec la touche CTRL+clic ou CMD+clic pour Mac"
#: templates/bsr-dashboard.php:46
msgid ""
"Replace GUIDs<a href=\"http://codex.wordpress.org/"
"Changing_The_Site_URL#Important_GUID_Note\" target=\"_blank\">?</a>"
msgstr ""
"Remplacez les GUID ?<a href=\"http://codex.wordpress.org/"
"Changing_The_Site_URL#Important_GUID_Note\" target=\"_blank\"> En savoir plus sur "
"les GUID</a>"
#: templates/bsr-dashboard.php:49
msgid "If left unchecked, all database columns titled 'guid' will be skipped."
msgstr "Si décoché, toutes les colonnes 'guid' de la base de données seront igniorés."
#: templates/bsr-dashboard.php:54
msgid "Run as dry run?"
msgstr "Juste faire un test ?"
#: templates/bsr-dashboard.php:57
msgid ""
"If checked, no changes will be made to the database, allowing you to check the "
"results beforehand."
msgstr ""
"Si coché, aucun changement ne sera apporté à la base de données, vous aurez un bilan "
"des résultats possibles"
#: templates/bsr-dashboard.php:66
msgid "Run Search/Replace"
msgstr "Rechercher/Remplacer"
#. Plugin URI of the plugin/theme
msgid "http://expandedfronts.com/better-search-replace"
msgstr "http://expandedfronts.com/better-search-replace"
#. Description of the plugin/theme
msgid "A small plugin for running a search/replace on your WordPress database."
msgstr ""
"Un petit plugin pour rechercher et remplacer des cabine dans votre base de données "
"WordPress."
#. Author of the plugin/theme
msgid "Expanded Fronts"
msgstr "Expanded Fronts"
#. Author URI of the plugin/theme
msgid "http://expandedfronts.com"
msgstr "http://expandedfronts.com"
# Copyright (C) 2023 Delicious Brains
# This file is distributed under the GPL-3.0.
msgid ""
msgstr ""
"Project-Id-Version: Better Search Replace 1.4.2\n"
"Report-Msgid-Bugs-To: "
"http://wordpress.org/support/plugin/better-search-replace\n"
"POT-Creation-Date: 2023-01-11 16:40:34+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2023-MO-DA HO:MI+ZONE\n"
"Last-Translator: Delicious Brains <mayday@bettersearchreplace.com>\n"
"Language-Team: Delicious Brains <mayday@bettersearchreplace.com>\n"
"Language: en\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Country: United States\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: "
"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-Bookmarks: \n"
"X-Textdomain-Support: yes\n"
"X-Generator: grunt-wp-i18n 1.0.3\n"
#: includes/class-bsr-admin.php:72
msgid "No search string was defined, please enter a URL or string to search for."
msgstr ""
#: includes/class-bsr-admin.php:73
msgid "Please select the tables that you want to update."
msgstr ""
#: includes/class-bsr-admin.php:74
msgid ""
"An error occurred processing your request. Try decreasing the \"Max Page "
"Size\", or contact support."
msgstr ""
#: includes/class-bsr-admin.php:75
msgid "Processing..."
msgstr ""
#. Plugin Name of the plugin/theme
msgid "Better Search Replace"
msgstr ""
#: includes/class-bsr-admin.php:108
msgid ""
"<p><strong>DRY RUN:</strong> <strong>%d</strong> tables were searched, "
"<strong>%d</strong> cells were found that need to be updated, and "
"<strong>%d</strong> changes were made.</p><p><a href=\"%s\" "
"class=\"thickbox\" title=\"Dry Run Details\">Click here</a> for more "
"details, or use the form below to run the search/replace.</p>"
msgstr ""
#: includes/class-bsr-admin.php:115
msgid ""
"<p>During the search/replace, <strong>%d</strong> tables were searched, "
"with <strong>%d</strong> cells changed in <strong>%d</strong> "
"updates.</p><p><a href=\"%s\" class=\"thickbox\" title=\"Search/Replace "
"Details\">Click here</a> for more details.</p>"
msgstr ""
#: includes/class-bsr-admin.php:213
msgid "Table"
msgstr ""
#: includes/class-bsr-admin.php:213
msgid "Changes Found"
msgstr ""
#: includes/class-bsr-admin.php:213
msgid "Rows Updated"
msgstr ""
#: includes/class-bsr-admin.php:213
msgid "Time"
msgstr ""
#: includes/class-bsr-admin.php:224
msgid ""
"<a href=\"%s\" target=\"_blank\">UPGRADE</a> to view details on the exact "
"changes that will be made."
msgstr ""
#: includes/class-bsr-admin.php:235
msgid " seconds"
msgstr ""
#: includes/class-bsr-admin.php:285
msgid "Upgrade to Pro"
msgstr ""
#: includes/class-bsr-ajax.php:157
msgid "Processing table %d of %d: %s"
msgstr ""
#: includes/class-bsr-db.php:85
msgid "(%s MB)"
msgstr ""
#: includes/class-bsr-db.php:295
msgid "Error updating row: %d."
msgstr ""
#: templates/bsr-dashboard.php:53
msgid "Upgrade now and get 50% off"
msgstr ""
#: templates/bsr-dashboard.php:65 templates/bsr-search-replace.php:32
msgid "Search/Replace"
msgstr ""
#: templates/bsr-dashboard.php:66 templates/bsr-settings.php:30
msgid "Settings"
msgstr ""
#: templates/bsr-dashboard.php:67
msgid "Help"
msgstr ""
#: templates/bsr-help.php:26
msgid "Help & Troubleshooting"
msgstr ""
#: templates/bsr-help.php:35
msgid "Free support is available on the <a href=\"%s\">plugin support forums</a>."
msgstr ""
#: templates/bsr-help.php:43
msgid ""
"<a href=\"%s\" style=\"font-weight:bold;\" target=\"_blank\">Upgrade</a> to "
"gain access to premium features and priority email support."
msgstr ""
#: templates/bsr-help.php:51
msgid ""
"Found a bug or have a feature request? Please submit an issue on <a "
"href=\"%s\">GitHub</a>!"
msgstr ""
#: templates/bsr-help.php:61
msgid "System Info"
msgstr ""
#: templates/bsr-search-replace.php:37
msgid ""
"Search and replace text in the database, including serialized arrays and "
"objects. Be sure to back up your database before running this process."
msgstr ""
#: templates/bsr-search-replace.php:46
msgid "Search for"
msgstr ""
#: templates/bsr-search-replace.php:51
msgid "Replace with"
msgstr ""
#: templates/bsr-search-replace.php:59
msgid "Select tables"
msgstr ""
#: templates/bsr-search-replace.php:61
msgid "Select multiple tables with Ctrl-Click for Windows or Cmd-Click for Mac."
msgstr ""
#: templates/bsr-search-replace.php:73
msgid "Additional Settings"
msgstr ""
#: templates/bsr-search-replace.php:84
msgid "Case-Insensitive"
msgstr ""
#: templates/bsr-search-replace.php:85
msgid "Searches are case-sensitive by default."
msgstr ""
#: templates/bsr-search-replace.php:95
msgid "Replace GUIDs"
msgstr ""
#: templates/bsr-search-replace.php:96
msgid "If left unchecked, all database columns titled 'guid' will be skipped."
msgstr ""
#: templates/bsr-search-replace.php:106
msgid "Run as dry run"
msgstr ""
#: templates/bsr-search-replace.php:107
msgid ""
"If checked, no changes will be made to the database, allowing you to check "
"the results beforehand."
msgstr ""
#: templates/bsr-search-replace.php:118
msgid "Run Search/Replace"
msgstr ""
#: templates/bsr-settings.php:39
msgid "Max Page Size"
msgstr ""
#: templates/bsr-settings.php:43
msgid ""
"If you notice timeouts or are unable to backup/import the database, try "
"decreasing this value."
msgstr ""
#: templates/sidebar.php:4
msgid "Upgrade"
msgstr ""
#: templates/sidebar.php:5
msgid "Gain access to more database and migration features"
msgstr ""
#: templates/sidebar.php:9
msgid "Preview database changes before they are saved"
msgstr ""
#: templates/sidebar.php:12
msgid "Use regular expressions for complex string replacements"
msgstr ""
#: templates/sidebar.php:15
msgid "Migrate full sites including themes, plugins, media, and database"
msgstr ""
#: templates/sidebar.php:18
msgid "Export and import WordPress databases"
msgstr ""
#: templates/sidebar.php:21
msgid "Email support"
msgstr ""
#: templates/sidebar.php:25
msgid "Get up to <span>50% off</span> your first year!"
msgstr ""
#: templates/sidebar.php:29
msgid "Upgrade Now"
msgstr ""
#. Author URI of the plugin/theme
msgid "https://bettersearchreplace.com"
msgstr ""
#. Description of the plugin/theme
msgid "A small plugin for running a search/replace on your WordPress database."
msgstr ""
#. Author of the plugin/theme
msgid "Delicious Brains"
msgstr ""
\ No newline at end of file
<?php
/**
* Displays the main Better Search Replace page under Tools -> Better Search Replace.
*
* @link https://bettersearchreplace.com
* @since 1.0.0
*
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/templates
*/
// Prevent direct access.
if ( ! defined( 'BSR_PATH' ) ) exit;
// Determines which tab to display.
$active_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'bsr_search_replace';
switch( $active_tab ) {
case 'bsr_settings':
$action = 'action="' . get_admin_url() . 'options.php' . '"';
break;
case 'bsr_help':
$action = 'action="' . get_admin_url() . 'admin-post.php' . '"';
break;
default:
$action = '';
}
if ( 'bsr_settings' === $active_tab ) {
$action = get_admin_url() . 'options.php';
} else {
$action = get_admin_url() . 'admin-post.php';
}
?>
<div class="wrap" style="display: grid;">
<div class="bsr-notice-container">
<h2 class="hidden"></h2>
</div>
<div class="header">
<div class="content">
<a href="?page=better-search-replace&tab=bsr_search_replace">
<img href="?page=better-search-replace&tab=bsr_search_replace" src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/logo-bsr.svg'; ?>" class="logo">
</a>
<a href="https://deliciousbrains.com/better-search-replace/upgrade/?utm_source=insideplugin&utm_medium=web&utm_content=header&utm_campaign=bsr-to-migrate
" target="_blank" class="upgrade-notice">
<img src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/icon-upgrade.svg'; ?>">
<?php _e( 'Upgrade now and get 50% off', 'better-search-replace' ); ?>
</a>
</div>
<?php settings_errors(); ?>
<?php BSR_Admin::render_result(); ?>
</div>
<div class="nav-tab-wrapper">
<ul>
<li><a href="?page=better-search-replace&tab=bsr_search_replace" class="nav-tab <?php echo $active_tab == 'bsr_search_replace' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Search/Replace', 'better-search-replace' ); ?></a></li>
<li><a href="?page=better-search-replace&tab=bsr_settings" class="nav-tab <?php echo $active_tab == 'bsr_settings' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Settings', 'better-search-replace' ); ?></a></li>
<li><a href="?page=better-search-replace&tab=bsr_help" class="nav-tab <?php echo $active_tab == 'bsr_help' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Help', 'better-search-replace' ); ?></a></li>
</ul>
</div>
<form class="bsr-action-form" action="<?php echo $action; ?>" method="POST">
<?php
// Include the correct tab template.
$bsr_template = BSR_Templates_Helper::get_tab_template($active_tab);
include $bsr_template;
?>
</form>
</div><!-- /.wrap -->
<?php
/**
* Displays the "System Info" tab.
*
* @link https://bettersearchreplace.com
* @since 1.1
*
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/templates
*/
// Prevent direct access.
if ( ! defined( 'BSR_PATH' ) ) exit;
$bsr_docs_url = 'https://bettersearchreplace.com/docs/';
$bsr_support_url = 'https://wordpress.org/support/plugin/better-search-replace';
?>
<div class="ui-sidebar-wrapper">
<div class="inside">
<div class="panel">
<div class="panel-header">
<h3><?php _e( 'Help & Troubleshooting', 'better-search-replace' ); ?></h3>
</div>
<div class="panel-content">
<div>
<p>
<?php
printf(
__( 'Free support is available on the <a href="%s">plugin support forums</a>.', 'better-search-replace' ),
$bsr_support_url
)
?>
</p>
<p>
<?php
printf(
__( '<a href="%s" style="font-weight:bold;" target="_blank">Upgrade</a> to gain access to premium features and priority email support.', 'better-search-replace' ),
'https://deliciousbrains.com/better-search-replace/upgrade/?utm_source=insideplugin&utm_medium=web&utm_content=help-tab&utm_campaign=bsr-to-migrate'
);
?>
</p>
<p>
<?php
printf(
__( 'Found a bug or have a feature request? Please submit an issue on <a href="%s">GitHub</a>!', 'better-search-replace' ),
'https://github.com/deliciousbrains/better-search-replace'
);
?>
</p>
</div>
<!--System Info-->
<div class="row">
<div class="input-text full-width">
<label><strong><?php _e( 'System Info', 'better-search-replace' ); ?></strong></label>
<textarea readonly="readonly" onclick="this.focus(); this.select()" name='bsr-sysinfo'><?php echo BSR_Compatibility::get_sysinfo(); ?></textarea>
</div>
</div>
<!--Submit Button-->
<div class="row">
<p class="submit">
<input type="hidden" name="action" value="bsr_download_sysinfo" />
<?php wp_nonce_field( 'bsr_download_sysinfo', 'bsr_sysinfo_nonce' ); ?>
<input type="submit" name="bsr-download-sysinfo" id="bsr-download-sysinfo" class="button button-secondary button-sm" value="Download System Info">
</p>
</div>
</div>
</div>
</div>
<?php
if ( file_exists( BSR_PATH . 'templates/sidebar.php' ) ) {
include_once BSR_PATH . 'templates/sidebar.php';
}
?>
</div>
<?php
/**
* Displays the main "Search/Replace" tab.
*
* @link https://bettersearchreplace.com
* @since 1.1
*
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/templates
*/
// Prevent direct/unauthorized access.
if ( ! defined( 'BSR_PATH' ) ) exit;
?>
<div id="bsr-search-replace-wrap" class="postbox">
<div class="ui-sidebar-wrapper">
<div class="inside">
<div id="bsr-search-replace-form" class="form-table">
<!--Hidden and to trigger the dry run notice placement-->
<h2 class="hidden">Dry Run Notice</h2>
<!--Search/Replace Panel-->
<div class="panel">
<div class="panel-header">
<h3><?php _e( 'Search/Replace', 'better-search-replace' ); ?></h3>
<a href="#" class="tooltip">
<img src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/icon-help.svg'; ?>">
</a>
<span class="helper-message left">
<?php _e( 'Search and replace text in the database, including serialized arrays and objects. Be sure to back up your database before running this process.', 'better-search-replace' ); ?>
</span>
</div>
<div class="panel-content">
<!--Search/Replace Fields-->
<div class="row search-replace">
<div class="input-text full-width">
<label for="search_for"><strong><?php _e( 'Search for', 'better-search-replace' ); ?></strong></label>
<input id="search_for" class="regular-text" type="text" name="search_for" value="<?php BSR_Admin::prefill_value( 'search_for' ); ?>" />
</div>
<div class="input-text full-width">
<label for="replace_with"><strong><?php _e( 'Replace with', 'better-search-replace' ); ?></strong></label>
<input id="replace_with" class="regular-text" type="text" name="replace_with" value="<?php BSR_Admin::prefill_value( 'replace_with' ); ?>" />
</div>
</div>
<!--Tables-->
<div class="row">
<div class="col full-width tables">
<label for="select_tables"><strong><?php _e( 'Select tables', 'better-search-replace' ); ?></strong></label>
<?php BSR_Admin::load_tables(); ?>
<p class="description"><?php _e( 'Select multiple tables with Ctrl-Click for Windows or Cmd-Click for Mac.', 'better-search-replace' ); ?></p>
</div>
</div>
</div>
</div>
<!--Additional Settings Panel-->
<div class="panel">
<div class="panel-header">
<h3><?php _e( 'Additional Settings', 'better-search-replace' ); ?></h3>
</div>
<div class="panel-content settings additional-settings">
<!--Case Sensitive-->
<label for="case_insensitive" class="row">
<div class="col">
<input id="case_insensitive" type="checkbox" name="case_insensitive" <?php BSR_Admin::prefill_value( 'case_insensitive', 'checkbox' ); ?> />
</div>
<div class="col">
<label for="case_insensitive"><strong><?php _e( 'Case-Insensitive', 'better-search-replace' ); ?></strong></label>
<label for="case_insensitive"><span class="description"><?php _e( 'Searches are case-sensitive by default.', 'better-search-replace' ); ?></span></label>
</div>
</label>
<!--Replace GUIDs-->
<label for="replace_guids" class="row">
<div class="col">
<input id="replace_guids" type="checkbox" name="replace_guids" <?php BSR_Admin::prefill_value( 'replace_guids', 'checkbox' ); ?> />
</div>
<div class="col">
<label for="replace_guids" class="replace_guids"><strong><?php _e( 'Replace GUIDs', 'better-search-replace' ); ?></strong><a href="https://wordpress.org/support/article/changing-the-site-url/#important-guid-note" target="_blank"><img src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/icon-help.svg'; ?>"></a></label>
<label for="replace_guids"><span class="description"><?php _e( 'If left unchecked, all database columns titled \'guid\' will be skipped.', 'better-search-replace' ); ?></span></label>
</div>
</label>
<!--Dry Run-->
<label for="dry_run" class="row">
<div class="col">
<input id="dry_run" type="checkbox" name="dry_run" checked />
</div>
<div class="col">
<label for="dry_run"><strong><?php _e( 'Run as dry run', 'better-search-replace' ); ?></strong></label></td>
<label for="dry_run"><span class="description"><?php _e( 'If checked, no changes will be made to the database, allowing you to check the results beforehand.', 'better-search-replace' ); ?></span></label>
</div>
</label>
</div>
</div>
<div id="bsr-error-wrap"></div>
<!--Submit Button-->
<div id="bsr-submit-wrap">
<?php wp_nonce_field( 'process_search_replace', 'bsr_nonce' ); ?>
<input type="hidden" name="action" value="bsr_process_search_replace" />
<button id="bsr-submit" type="submit" class="button button-primary button-lg"><?php _e( 'Run Search/Replace', 'better-search-replace' ); ?>
<img src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/icon-arrow.svg'; ?>">
</button>
</div>
</div>
</div><!-- /.inside -->
<?php
if ( file_exists( BSR_PATH . 'templates/sidebar.php' ) ) {
include_once BSR_PATH . 'templates/sidebar.php';
}
?>
<!-- /.ui-sidebar-wrapper -->
</div>
</div><!-- /#bsr-search-replace-wrap -->
<?php
/**
* Displays the main "Settings" tab.
*
* @link https://bettersearchreplace.com
* @since 1.1
*
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/templates
*/
// Prevent direct/unauthorized access.
if ( ! defined( 'BSR_PATH' ) ) exit;
// Other settings.
$page_size = get_option( 'bsr_page_size' ) ? absint( get_option( 'bsr_page_size' ) ) : 20000;
?>
<?php settings_fields( 'bsr_settings_fields' ); ?>
<div class="ui-sidebar-wrapper">
<div class="inside">
<!--Settings Panel-->
<div class="panel">
<div class="panel-header">
<h3><?php _e( 'Settings', 'better-search-replace' ); ?></h3>
</div>
<div class="panel-content settings">
<!--Max Page Size-->
<div class="row last-row">
<div class="input-text">
<div class="settings-header">
<label><strong><?php _e( 'Max Page Size', 'better-search-replace' ); ?></strong></label>
<span id="bsr-page-size-value"><?php echo absint( $page_size ); ?></span>
</div>
<input id="bsr_page_size" type="hidden" name="bsr_page_size" value="<?php echo $page_size; ?>" />
<p class="description"><?php _e( 'If you notice timeouts or are unable to backup/import the database, try decreasing this value.', 'better-search-replace' ); ?></p>
<div class="slider-wrapper">
<div id="bsr-page-size-slider" class="bsr-slider"></div>
</div>
</div>
</div>
<!--Submit Button-->
<div class="row panel-footer">
<?php submit_button(); ?>
</div>
</div>
</div>
</div>
<?php
if ( file_exists( BSR_PATH . 'templates/sidebar.php' ) ) {
include_once BSR_PATH . 'templates/sidebar.php';
}
?>
</div>
<div class="upgrade-sidebar">
<img src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/mdb-birds.svg'; ?>">
<div class="content">
<h3><?php _e( 'Upgrade', 'better-search-replace' ); ?></h3>
<p><?php _e( 'Gain access to more database and migration features', 'better-search-replace' ); ?></p>
<ul>
<li>
<p><?php _e( 'Preview database changes before they are saved', 'better-search-replace' ); ?></p>
</li>
<li>
<p><?php _e( 'Use regular expressions for complex string replacements', 'better-search-replace' ); ?></p>
</li>
<li>
<p><?php _e( 'Migrate full sites including themes, plugins, media, and database', 'better-search-replace' ); ?></p>
</li>
<li>
<p><?php _e( 'Export and import WordPress databases', 'better-search-replace' ); ?></p>
</li>
<li>
<p><?php _e( 'Email support', 'better-search-replace' ); ?></p>
</li>
</ul>
<p class="upgrade-offer-text"><?php _e( 'Get up to <span>50% off</span> your first year!', 'better-search-replace' ); ?></p>
<div class="button-row">
<a href="https://deliciousbrains.com/better-search-replace/upgrade/?utm_source=insideplugin&utm_medium=web&utm_content=sidebar&utm_campaign=bsr-to-migrate
" class="button button-primary button-sm" target="_blank"><?php _e( 'Upgrade Now', 'better-search-replace' ); ?></a>
</div>
</div>
</div>
\ No newline at end of file