7310e480 by Jeff Balicki

Better Search Replace

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 36217e75
Showing 55 changed files with 2722 additions and 0 deletions
1 === Better Search Replace ===
2 Contributors: wpengine, deliciousbrains, mattshaw
3 Tags: search replace, search and replace, update urls, database, search replace database, update database urls, update live url, better search replace, search&replace
4 Requires at least: 3.0.1
5 Tested up to: 6.1.1
6 Stable tag: 1.4.2
7 License: GPLv3 or later
8 License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
10 A simple plugin to update URLs or other text in a database.
11
12 == Description ==
13
14 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:
15
16 * Serialization support for all tables
17 * The ability to select specific tables
18 * The ability to run a "dry run" to see how many fields will be updated
19 * No server requirements aside from a running installation of WordPress
20 * WordPress Multisite support
21
22 > **Time-saving features available in the Pro version:**
23 >
24 > * View exactly what changed during a search/replace
25 > * Backup and import the database while running a search/replace
26 > * Priority email support from the developer of the plugin
27 > * Save or load custom profiles for quickly repeating a search/replace in the future
28 > * Support and updates for 1 year
29 >
30 > **[Learn more about Better Search Replace Pro](https://bettersearchreplace.com/)**
31
32 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.
33
34 **Supported Languages**
35
36 * English
37 * French
38 * German
39 * Spanish
40
41 **Want to contribute?**
42
43 Feel free to open an issue or submit a pull request on [GitHub](https://github.com/deliciousbrains/better-search-replace/).
44
45 == Installation ==
46
47 Install Better Search Replace like you would install any other WordPress plugin.
48
49 Dashboard Method:
50
51 1. Login to your WordPress admin and go to Plugins -> Add New
52 2. Type "Better Search Replace" in the search bar and select this plugin
53 3. Click "Install", and then "Activate Plugin"
54
55
56 Upload Method:
57
58 1. Unzip the plugin and upload the "better-search-replace" folder to your 'wp-content/plugins' directory
59 2. Activate the plugin through the Plugins menu in WordPress
60
61 == Frequently Asked Questions ==
62
63 = Using Better Search Replace =
64
65 Once activated, Better Search Replace will add a page under the "Tools" menu page in your WordPress admin.
66
67 = Is my host supported? =
68
69 Yes! This plugin should be compatible with any host.
70
71 = Can I damage my site with this plugin? =
72
73 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.
74
75 = How does this work on WordPress Multisite? =
76
77 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.
78
79 = How can I use this plugin when changing URLs? =
80
81 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:
82
83 1. Backup the database on your current site
84 2. Install the database on your new host
85 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)
86 4. Log in at your new admin URL and run Better Search Replace on the old site URL for the new site URL
87 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.
88
89 More information on moving WordPress can be found [here](http://codex.wordpress.org/Moving_WordPress).
90
91 == Screenshots ==
92
93 1. The Better Search Replace page added to the "Tools" menu
94 2. After running a search/replace dry-run.
95
96 == Changelog ==
97
98 = 1.4.2 - January 10, 2023 =
99 * Security: Arbitrary tab templates in the `templates` directory can no longer be loaded using a query parameter.
100
101 = 1.4.1 - July 25, 2022 =
102 * Security: Selected tables are now confirmed to exist before processing the request
103
104 = 1.4 - April 7, 2022 =
105 * New: Better Search Replace has a brand new user interface
106 * Improvement: Default capability required to use the plugin has changed from "install_plugins" to "manage_options" for compatibility with DISALLOW_FILE_MODS
107
108 = 1.3.4 - December 7, 2020 =
109 * Improvement: WordPress 5.6 and PHP 8 compatible
110 * Fix: Strings that have been serialized twice showing up as false-positives
111
112 = 1.3.3 - February 26, 2019 =
113 * Fix: Some special characters interfering with search/replace
114 * Security: Pass template filenames through `sanitize_file_name()`
115 * Security: Verify nonce when downloading diagnostic info
116
117 = 1.3.2 - January 3, 2018 =
118 * Fix: Only one table searched on some environments (props @Ov3rfly)
119 * Tweak: Update text in sidebar
120
121 = 1.3.1 - September 14, 2017 =
122 * Security: Check if data is serialized before unserializing it
123 * Improvement: Increased size of table select
124
125 = 1.3 - November 10, 2016 =
126 * Improvement: Updated sidebar and added pro version discount
127 * Fix: Outdated links to old website
128 * Fix: Prevent requests to invalid tabs
129
130 = 1.2.10 - June 2, 2016 =
131 * Fix: CSS not loaded on details page
132
133 = 1.2.9 - December 8, 2015 =
134 * Fix: Bug with case-insensitive searches in serialized objects
135 * Fix: Bug with early skip due to lack of primary key
136
137 = 1.2.8 - November 25, 2015 =
138 * Fix: Bug with report details
139
140 = 1.2.7 - November 24, 2015 =
141 * Fix: Untranslateable string
142 * Tweak: Check BSR_PATH instead of ABSPATH to be consistent
143 * Tested with 4.4
144
145 = 1.2.6 =
146 * Removed unused code/small cleanup
147
148 = 1.2.5 =
149 * Improved progress bar info and styles
150 * Small cleanup
151
152 = 1.2.4 =
153 * Added "Settings saved" notice when saving settings
154 * Fixed bug with wp_magic_quotes interfering with some search strings
155
156 = 1.2.3 =
157 * Fixed bug with searching for backslashes
158 * Fixed potential bug with getting tables in large multisites
159 * Fixed potential notice in append_report
160 * Improved handling of missing primary keys
161
162 = 1.2.2 =
163 * Fixed AJAX conflict with WooCommerce
164 * Fixed a few issues with translations
165 * Tweaked "System Info" to use get_locale() instead of WP_LANG constant
166 * Updated German translation (props @Linus Ziegenhagen)
167
168 = 1.2.1 =
169 * Fixed minor issue with display of progress bar
170 * Updated translation file
171
172 = 1.2 =
173 * Switched to AJAX bulk processing for search/replaces
174 * Decreased minimum "Max Page Size" to 1000
175 * Added "Help" tab with system info for easier troubleshooting
176
177 = 1.1.1 =
178 * Added ability to change max page size
179 * Decreased default page size to prevent white screen issue on some environments
180
181 = 1.1 =
182 * Added ability to change capability required to use plugin
183 * Small bugfixes and translation fixes
184
185 = 1.0.6 =
186 * Added table sizes to the database table listing
187 * Added French translation (props @Jean Philippe)
188
189 = 1.0.5 =
190 * Added support for case-insensitive searches
191 * Added German translation (props @Linus Ziegenhagen)
192
193 = 1.0.4 =
194 * Potential security fixes
195
196 = 1.0.3 =
197 * Fixed issue with searching for special characters like '\'
198 * Fixed bug with replacing some objects
199
200 = 1.0.2 =
201 * Fixed untranslateable strings on submit button and submenu page.
202
203 = 1.0.1 =
204 * Fixed issue with loading translations and added Spanish translation (props Eduardo Larequi)
205 * Fixed bug with reporting timing
206 * Updated to use "Dry Run" as default
207 * Added support for WordPress Multisite (see FAQs for more info)
208
209 = 1.0 =
210 * Initial release
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3 <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"
4 viewBox="0 0 543.9 465.7" style="enable-background:new 0 0 543.9 465.7;" xml:space="preserve">
5 <style type="text/css">
6 .st0{fill:#FFFFFF;}
7 </style>
8 <g>
9 <polygon class="st0" points="264.2,331.3 301.8,192 278.4,192 240.9,331.3 "/>
10 <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 "/>
11 <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 "/>
12 <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
13 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
14 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"/>
15 <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
16 C28.8,336.9,0,365.7,0,401.3z"/>
17 </g>
18 <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
19 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
20 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"/>
21 </svg>
1 <?php // Silence is golden
...\ No newline at end of file ...\ No newline at end of file
1 (function( $ ) {
2 'use strict';
3
4 /**
5 * Initializes our event handlers.
6 */
7 function bsr_init() {
8 bsr_search_replace();
9 bsr_update_sliders();
10 }
11
12 /**
13 * Recursive function for performing batch operations.
14 */
15 function bsr_process_step( action, step, page, data ) {
16
17 $.ajax({
18 type: 'POST',
19 url: bsr_object_vars.endpoint + action,
20 data: {
21 bsr_ajax_nonce : bsr_object_vars.ajax_nonce,
22 action: action,
23 bsr_step: step,
24 bsr_page: page,
25 bsr_data: data
26 },
27 dataType: 'json',
28 success: function( response ) {
29
30 // Maybe display more details.
31 if ( typeof response.message != 'undefined' ) {
32 $('.bsr-description').remove();
33 $('.bsr-progress-wrap').append( '<p class="description bsr-description">' + response.message + '</p>' );
34 }
35
36 if ( 'done' == response.step ) {
37
38 bsr_update_progress_bar( '100%' );
39
40 // Maybe run another action.
41 if ( typeof response.next_action != 'undefined' ) {
42 bsr_update_progress_bar( '0%', 0 );
43 bsr_process_step( response.next_action, 0, 0, response.bsr_data );
44 } else {
45 $('.bsr-processing-wrap').remove();
46 $('.bsr-disabled').removeClass('bsr-disabled button-disabled' );
47 window.location = response.url;
48 }
49
50 } else {
51 bsr_update_progress_bar( response.percentage );
52 bsr_process_step( action, response.step, response.page, response.bsr_data );
53 }
54
55 }
56 }).fail(function (response) {
57 $('.bsr-processing-wrap').remove();
58 $('.bsr-disabled').removeClass('bsr-disabled button-disabled' );
59 $('#bsr-error-wrap').html( '<div class="error"><p>' + bsr_object_vars.unknown + '</p></div>' ).show();
60 if ( window.console && window.console.log ) {
61 console.log(response);
62 }
63 });
64
65 }
66
67 /**
68 * Initializes a search/replace.
69 */
70 function bsr_search_replace() {
71
72 var search_replace_submit = $( '#bsr-submit' );
73 var bsr_error_wrap = $( '#bsr-error-wrap' );
74 search_replace_submit.on( 'click', function( e ) {
75
76 e.preventDefault();
77
78 if ( ! search_replace_submit.hasClass( 'button-disabled' ) ) {
79
80 if ( ! $( '#search_for' ).val() ) {
81 bsr_error_wrap.html( '<div class="error"><p>' + bsr_object_vars.no_search + '</p></div>' ).show();
82 } else if ( ! $( '#bsr-table-select' ).val() ) {
83 bsr_error_wrap.html( '<div class="error"><p>' + bsr_object_vars.no_tables + '</p></div>' ).show();
84 } else {
85 var str = $( '.bsr-action-form' ).serialize();
86 var data = str.replace(/%5C/g, "#BSR_BACKSLASH#" );
87
88 bsr_error_wrap.html('').hide();
89 search_replace_submit.addClass( 'bsr-disabled button-disabled' );
90 $( '#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>');
91 $('.bsr-progress-wrap').append( '<p class="description bsr-description">' + bsr_object_vars.processing + '</p>' );
92 bsr_process_step( 'process_search_replace', 0, 0, data );
93 }
94
95 }
96
97 });
98
99 }
100
101 /**
102 * Updates the progress bar for AJAX bulk actions.
103 */
104 function bsr_update_progress_bar( percentage, speed ) {
105 if ( typeof speed == 'undefined' ) {
106 speed = 150;
107 }
108 $( '.bsr-progress' ).animate({
109 width: percentage
110 }, speed );
111 }
112
113 /**
114 * Updates the "Max Page Size" slider.
115 */
116 function bsr_update_sliders( percentage ) {
117 $('#bsr-page-size-slider').slider({
118 value: bsr_object_vars.page_size,
119 range: "min",
120 min: 1000,
121 max: 50000,
122 step: 1000,
123 slide: function( event, ui ) {
124 $('#bsr-page-size-value').text( ui.value );
125 $('#bsr_page_size').val( ui.value );
126 }
127 });
128 }
129
130 bsr_init();
131
132 function toggle_tooltip( icon ) {
133 var icon = $( icon );
134 var bubble = icon.next();
135
136 // Close any that are already open
137 $( '.helper-message' ).not( bubble ).hide();
138
139 var position = icon.position();
140
141 if ( icon.parent()[0].nodeName === 'TD' ) {
142 position = icon.offset();
143 }
144
145 if ( bubble.hasClass( 'left' ) ) {
146 bubble.css({
147 'left': ( position.left - bubble.width() - icon.width() - 29 ) + 'px',
148 'top': ( position.top + icon.height() / 2 - 18 ) + 'px'
149 })
150 } else if ( bubble.hasClass( 'bottom' ) ) {
151 bubble.css( {
152 'left': ( ( position.left - bubble.width() / 2 ) - 5 ) + 'px',
153 'top': ( position.top + icon.height() + 19 ) + 'px'
154 } );
155 } else {
156 bubble.css( {
157 'left': ( position.left + icon.width() + 19 ) + 'px',
158 'top': ( position.top + icon.height() / 2 - 18 ) + 'px'
159 } );
160 }
161
162 bubble.toggle();
163 }
164
165 $('body').on('thickbox:iframe:loaded', function(){
166 var $iframeBody = $( '#TB_window iframe' ).contents().find( 'body' );
167
168 $iframeBody.on( 'mouseover', '.tooltip', function( e ) {
169 e.preventDefault();
170 $iframeBody.find( '.helper-message' ).hide();
171 toggle_tooltip( this );
172 e.stopPropagation();
173 });
174
175 $iframeBody.on( 'mouseleave', 'td', function( e ) {
176 $iframeBody.find( '.helper-message' ).hide();
177 });
178 });
179
180 $( 'body' ).on( 'mouseover', '.tooltip', function( e ) {
181 toggle_tooltip( this );
182 } );
183
184 $( 'body' ).on( 'mouseleave', '.tooltip', function( e ) {
185 $( '.helper-message' ).hide();
186 } );
187
188 $( '.notice.inline' )
189 .appendTo('.bsr-notice-container' )
190 .css( 'display', 'block' );
191
192 setTimeout(function() {
193 const $settings_saved_notice = $( '#setting-error-settings_updated' );
194 const $bsr_notices = $( '.bsr-updated' );
195
196 if ( $settings_saved_notice.length || $bsr_notices.length ) {
197 $( '<div class="bsr-inner-notice-container"></div>' ).prependTo( '.inside' );
198 $settings_saved_notice.prependTo( '.bsr-inner-notice-container' ).css( 'display', 'block' );
199 $bsr_notices.prependTo( '.bsr-inner-notice-container' ).css( 'display', 'block' );
200 }
201
202 $( '.bsr-inner-notice-container .notice-dismiss' ).on( 'click', function ( e ) {
203 if ( ! $bsr_notices.length ) {
204 $( '.bsr-inner-notice-container' ).remove();
205 }
206 });
207 }, 75);
208
209
210
211 })( jQuery );
1 !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);
2 //# sourceMappingURL=better-search-replace.min.js.map
...\ No newline at end of file ...\ No newline at end of file
1 {"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 ...\ No newline at end of file
1 <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2 <path d="M3.75 9H14.25" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3 <path d="M9 3.75L14.25 9L9 14.25" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4 </svg>
1 <svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
2 <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"/>
3 </svg>
1 <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2 <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"/>
3 <rect x="1" y="1" width="18" height="18" rx="9" stroke="#708AA4" stroke-width="2"/>
4 </svg>
1 <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2 <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"/>
3 </svg>
1 <svg width="144" height="65" viewBox="0 0 144 65" fill="none" xmlns="http://www.w3.org/2000/svg">
2 <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"/>
3 </svg>
1 <svg width="290" height="166" viewBox="0 0 290 166" fill="none" xmlns="http://www.w3.org/2000/svg">
2 <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"/>
3 <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"/>
4 <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"/>
5 <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"/>
6 <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"/>
7 <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"/>
8 </svg>
1 <?php
2 /**
3 * Better Search Replace
4 *
5 * This plugin improves upon the database search/replace functionality offered
6 * by some other plugins- offering serialization support, the ability to
7 * select specific tables, and the ability to run a dry run.
8 *
9 * @since 1.0.0
10 * @package Better_Search_Replace
11 *
12 * @wordpress-plugin
13 * Plugin Name: Better Search Replace
14 * Plugin URI: https://bettersearchreplace.com
15 * Description: A small plugin for running a search/replace on your WordPress database.
16 * Version: 1.4.2
17 * Author: WP Engine
18 * Author URI: https://bettersearchreplace.com
19 * License: GPL-3.0
20 * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
21 * Text Domain: better-search-replace
22 * Domain Path: /languages
23 * Network: true
24 *
25 * This program is free software: you can redistribute it and/or modify
26 * it under the terms of the GNU General Public License as published by
27 * the Free Software Foundation, either version 3 of the License, or
28 * (at your option) any later version.
29 *
30 * This program is distributed in the hope that it will be useful,
31 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 * GNU General Public License for more details.
34 *
35 * You should have received a copy of the GNU General Public License
36 * along with this program. If not, see <http://www.gnu.org/licenses/>.
37 */
38
39 // If this file was called directly, abort.
40 if ( ! defined( 'WPINC' ) ) {
41 die;
42 }
43
44 /**
45 * Begins execution of the plugin.
46 *
47 * Since everything within the plugin is registered via hooks,
48 * then kicking off the plugin from this point in the file does
49 * not affect the page life cycle.
50 *
51 * @since 1.0.0
52 */
53 function run_better_search_replace() {
54
55 // Allows for overriding the capability required to run the plugin.
56 $cap = apply_filters( 'bsr_capability', 'manage_options' );
57
58 // Only load for admins.
59 if ( current_user_can( $cap ) ) {
60
61 // Defines the path to the main plugin file.
62 define( 'BSR_FILE', __FILE__ );
63
64 // Defines the path to be used for includes.
65 define( 'BSR_PATH', plugin_dir_path( BSR_FILE ) );
66
67 // Defines the URL to the plugin.
68 define( 'BSR_URL', plugin_dir_url( BSR_FILE ) );
69
70 // Defines the current version of the plugin.
71 define( 'BSR_VERSION', '1.4.2' );
72
73 /**
74 * The core plugin class that is used to define internationalization,
75 * dashboard-specific hooks, and public-facing site hooks.
76 */
77 require BSR_PATH . 'includes/class-bsr-main.php';
78 $plugin = new Better_Search_Replace();
79 $plugin->run();
80
81 }
82
83 }
84 add_action( 'after_setup_theme', 'run_better_search_replace' );
1 <?php
2
3 /**
4 * The dashboard-specific functionality of the plugin.
5 *
6 * Registers styles and scripts, adds the custom administration page,
7 * and processes user input on the "search/replace" form.
8 *
9 * @link https://bettersearchreplace.com
10 * @since 1.0.0
11 *
12 * @package Better_Search_Replace
13 * @subpackage Better_Search_Replace/includes
14 */
15
16 // Prevent direct access.
17 if ( ! defined( 'BSR_PATH' ) ) exit;
18
19 class BSR_Admin {
20
21 /**
22 * The ID of this plugin.
23 *
24 * @since 1.0.0
25 * @access private
26 * @var string $better_search_replace The ID of this plugin.
27 */
28 private $better_search_replace;
29
30 /**
31 * The version of this plugin.
32 *
33 * @since 1.0.0
34 * @access private
35 * @var string $version The current version of this plugin.
36 */
37 private $version;
38
39 /**
40 * Initialize the class and set its properties.
41 *
42 * @since 1.0.0
43 * @var string $better_search_replace The name of this plugin.
44 * @var string $version The version of this plugin.
45 */
46 public function __construct( $better_search_replace, $version ) {
47 $this->better_search_replace = $better_search_replace;
48 $this->version = $version;
49 }
50
51 /**
52 * Register any CSS and JS used by the plugin.
53 * @since 1.0.0
54 * @access public
55 * @param string $hook Used for determining which page(s) to load our scripts.
56 */
57 public function enqueue_scripts( $hook ) {
58 if ( 'tools_page_better-search-replace' === $hook ) {
59 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
60
61 wp_enqueue_style( 'better-search-replace', BSR_URL . "assets/css/better-search-replace$min.css", array(), $this->version, 'all' );
62 wp_enqueue_style( 'jquery-style', BSR_URL . 'assets/css/jquery-ui.min.css', array(), $this->version, 'all' );
63 wp_enqueue_script( 'jquery-ui-slider' );
64 wp_enqueue_script( 'better-search-replace', BSR_URL . "assets/js/better-search-replace$min.js", array( 'jquery' ), $this->version, true );
65 wp_enqueue_style( 'thickbox' );
66 wp_enqueue_script( 'thickbox' );
67
68 wp_localize_script( 'better-search-replace', 'bsr_object_vars', array(
69 'page_size' => get_option( 'bsr_page_size' ) ? absint( get_option( 'bsr_page_size' ) ) : 20000,
70 'endpoint' => BSR_AJAX::get_endpoint(),
71 'ajax_nonce' => wp_create_nonce( 'bsr_ajax_nonce' ),
72 'no_search' => __( 'No search string was defined, please enter a URL or string to search for.', 'better-search-replace' ),
73 'no_tables' => __( 'Please select the tables that you want to update.', 'better-search-replace' ),
74 'unknown' => __( 'An error occurred processing your request. Try decreasing the "Max Page Size", or contact support.', 'better-search-replace' ),
75 'processing' => __( 'Processing...', 'better-search-replace' )
76 ) );
77 }
78 }
79
80 /**
81 * Register any menu pages used by the plugin.
82 * @since 1.0.0
83 * @access public
84 */
85 public function bsr_menu_pages() {
86 $cap = apply_filters( 'bsr_capability', 'manage_options' );
87 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' ) );
88 }
89
90 /**
91 * The callback for creating a new submenu page under the "Tools" menu.
92 * @access public
93 */
94 public function bsr_menu_pages_callback() {
95 require_once BSR_PATH . 'includes/class-bsr-templates-helper.php';
96 require_once BSR_PATH . 'templates/bsr-dashboard.php';
97 }
98
99 /**
100 * Renders the result or error onto the better-search-replace admin page.
101 * @access public
102 */
103 public static function render_result() {
104
105 if ( isset( $_GET['result'] ) && $result = get_transient( 'bsr_results' ) ) {
106
107 if ( isset( $result['dry_run'] ) && $result['dry_run'] === 'on' ) {
108 $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' ),
109 $result['tables'],
110 $result['change'],
111 $result['updates'],
112 get_admin_url() . 'admin-post.php?action=bsr_view_details&TB_iframe=true&width=800&height=500'
113 );
114 } else {
115 $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' ),
116 $result['tables'],
117 $result['change'],
118 $result['updates'],
119 get_admin_url() . 'admin-post.php?action=bsr_view_details&TB_iframe=true&width=800&height=500'
120 );
121 }
122
123 echo '<div class="updated bsr-updated" style="display: none;">' . $msg . '</div>';
124
125 }
126
127 }
128
129 /**
130 * Prefills the given value on the search/replace page (dry run, live run, from profile).
131 * @access public
132 * @param string $value The value to check for.
133 * @param string $type The type of the value we're filling.
134 */
135 public static function prefill_value( $value, $type = 'text' ) {
136
137 // Grab the correct data to prefill.
138 if ( isset( $_GET['result'] ) && get_transient( 'bsr_results' ) ) {
139 $values = get_transient( 'bsr_results' );
140 } else {
141 $values = array();
142 }
143
144 // Prefill the value.
145 if ( isset( $values[$value] ) ) {
146
147 if ( 'checkbox' === $type && 'on' === $values[$value] ) {
148 echo 'checked';
149 } else {
150 echo str_replace( '#BSR_BACKSLASH#', '\\', esc_attr( htmlentities( $values[$value] ) ) );
151 }
152
153 }
154
155 }
156
157 /**
158 * Loads the tables available to run a search replace, prefilling if already
159 * selected the tables.
160 * @access public
161 */
162 public static function load_tables() {
163
164 // Get the tables and their sizes.
165 $tables = BSR_DB::get_tables();
166 $sizes = BSR_DB::get_sizes();
167
168 echo '<select id="bsr-table-select" name="select_tables[]" multiple="multiple" style="">';
169
170 foreach ( $tables as $table ) {
171
172 // Try to get the size for this specific table.
173 $table_size = isset( $sizes[$table] ) ? $sizes[$table] : '';
174
175 if ( isset( $_GET['result'] ) && get_transient( 'bsr_results' ) ) {
176
177 $result = get_transient( 'bsr_results' );
178
179 if ( isset( $result['table_reports'][$table] ) ) {
180 echo "<option value='$table' selected>$table $table_size</option>";
181 } else {
182 echo "<option value='$table'>$table $table_size</option>";
183 }
184
185 } else {
186 echo "<option value='$table'>$table $table_size</option>";
187 }
188
189 }
190
191 echo '</select>';
192
193 }
194
195 /**
196 * Loads the result details (via Thickbox).
197 * @access public
198 */
199 public function load_details() {
200
201 if ( get_transient( 'bsr_results' ) ) {
202 $results = get_transient( 'bsr_results' );
203 $min = ( defined( 'SCRIPT_DEBUG' ) && true === SCRIPT_DEBUG ) ? '' : '.min';
204 $bsr_styles = BSR_URL . 'assets/css/better-search-replace.css?v=' . BSR_VERSION;
205
206 ?>
207 <link href="<?php echo esc_url( get_admin_url( null, '/css/common' . $min . '.css' ) ); ?>" rel="stylesheet" type="text/css" />
208 <link href="<?php echo esc_url( $bsr_styles ); ?>" rel="stylesheet" type="text/css">
209
210 <div style="padding: 32px; background-color: var(--color-white); min-height: 100%;">
211 <table id="bsr-results-table" class="widefat">
212 <thead>
213 <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>
214 </thead>
215 <tbody>
216 <?php
217 foreach ( $results['table_reports'] as $table_name => $report ) {
218 $time = $report['end'] - $report['start'];
219
220 if ( $report['change'] != 0 ) {
221 $report['change'] = '<a class="tooltip">' . $report['change'] . '</a>';
222
223 $upgrade_link = sprintf(
224 __( '<a href="%s" target="_blank">UPGRADE</a> to view details on the exact changes that will be made.', 'better-search-replace'),
225 'https://deliciousbrains.com/better-search-replace/upgrade/?utm_source=insideplugin&utm_medium=web&utm_content=tooltip&utm_campaign=bsr-to-migrate'
226 );
227
228 $report['change'] .= '<span class="helper-message right">' . $upgrade_link . '</span>';
229 }
230
231 if ( $report['updates'] != 0 ) {
232 $report['updates'] = '<strong>' . $report['updates'] . '</strong>';
233 }
234
235 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>';
236 }
237 ?>
238 </tbody>
239 </table>
240 </div>
241 <?php
242 }
243 }
244
245 /**
246 * Registers our settings in the options table.
247 * @access public
248 */
249 public function register_option() {
250 register_setting( 'bsr_settings_fields', 'bsr_page_size', 'absint' );
251 }
252
253 /**
254 * Downloads the system info file for support.
255 * @access public
256 */
257 public function download_sysinfo() {
258 check_admin_referer( 'bsr_download_sysinfo', 'bsr_sysinfo_nonce' );
259
260 $cap = apply_filters( 'bsr_capability', 'manage_options' );
261 if ( ! current_user_can( $cap ) ) {
262 return;
263 }
264
265 nocache_headers();
266
267 header( 'Content-Type: text/plain' );
268 header( 'Content-Disposition: attachment; filename="bsr-system-info.txt"' );
269
270 echo wp_strip_all_tags( $_POST['bsr-sysinfo'] );
271 die();
272 }
273
274 /**
275 * Displays the link to upgrade to BSR Pro
276 * @access public
277 * @param array $links The links assigned to the plugin.
278 */
279 public function meta_upgrade_link( $links, $file ) {
280 $plugin = plugin_basename( BSR_FILE );
281
282 if ( $file == $plugin ) {
283 return array_merge(
284 $links,
285 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>' )
286 );
287 }
288
289 return $links;
290 }
291
292 }
1 <?php
2
3 /**
4 * AJAX-specific functionality for the plugin.
5 *
6 * @link https://bettersearchreplace.com
7 * @since 1.2
8 *
9 * @package Better_Search_Replace
10 * @subpackage Better_Search_Replace/includes
11 */
12
13 // Prevent direct access.
14 if ( ! defined( 'BSR_PATH' ) ) exit;
15
16 class BSR_AJAX {
17
18 /**
19 * Initiate our custom ajax handlers.
20 * @access public
21 */
22 public function init() {
23 add_action( 'init', array( $this, 'define_ajax' ), 1 );
24 add_action( 'init', array( $this, 'do_bsr_ajax' ), 2 );
25 $this->add_ajax_actions();
26 }
27
28 /**
29 * Gets our custom endpoint.
30 * @access public
31 * @return string
32 */
33 public static function get_endpoint() {
34 return esc_url_raw( get_admin_url() . 'tools.php?page=better-search-replace&bsr-ajax=' );
35 }
36
37 /**
38 * Set BSR AJAX constant and headers.
39 * @access public
40 */
41 public function define_ajax() {
42
43 if ( isset( $_GET['bsr-ajax'] ) && ! empty( $_GET['bsr-ajax'] ) ) {
44
45 // Define the WordPress "DOING_AJAX" constant.
46 if ( ! defined( 'DOING_AJAX' ) ) {
47 define( 'DOING_AJAX', true );
48 }
49
50 // Prevent notices from breaking AJAX functionality.
51 if ( ! WP_DEBUG || ( WP_DEBUG && ! WP_DEBUG_DISPLAY ) ) {
52 @ini_set( 'display_errors', 0 );
53 }
54
55 // Send the headers.
56 send_origin_headers();
57 @header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
58 @header( 'X-Robots-Tag: noindex' );
59 send_nosniff_header();
60 nocache_headers();
61
62 }
63
64 }
65
66 /**
67 * Check if we're doing AJAX and fire the related action.
68 * @access public
69 */
70 public function do_bsr_ajax() {
71 global $wp_query;
72
73 if ( isset( $_GET['bsr-ajax'] ) && ! empty( $_GET['bsr-ajax'] ) ) {
74 $wp_query->set( 'bsr-ajax', sanitize_text_field( $_GET['bsr-ajax'] ) );
75 }
76
77 if ( $action = $wp_query->get( 'bsr-ajax' ) ) {
78 do_action( 'bsr_ajax_' . sanitize_text_field( $action ) );
79 die();
80 }
81 }
82
83 /**
84 * Adds any AJAX-related actions.
85 * @access public
86 */
87 public function add_ajax_actions() {
88 $actions = array(
89 'process_search_replace',
90 );
91
92 foreach ( $actions as $action ) {
93 add_action( 'bsr_ajax_' . $action, array( $this, $action ) );
94 }
95 }
96
97 /**
98 * Processes the search/replace form submitted by the user.
99 * @access public
100 */
101 public function process_search_replace() {
102 // Bail if not authorized.
103 if ( ! check_admin_referer( 'bsr_ajax_nonce', 'bsr_ajax_nonce' ) ) {
104 return;
105 }
106
107 // Initialize the DB class.
108 $db = new BSR_DB();
109 $step = isset( $_POST['bsr_step' ] ) ? absint( $_POST['bsr_step'] ) : 0;
110 $page = isset( $_POST['bsr_page'] ) ? absint( $_POST['bsr_page'] ) : 0;
111
112 // Any operations that should only be performed at the beginning.
113 if ( $step === 0 && $page === 0 ) {
114 $args = array();
115 parse_str( $_POST['bsr_data'], $args );
116
117 // Build the arguments for this run.
118 if ( ! isset( $args['select_tables'] ) || ! is_array( $args['select_tables'] ) ) {
119 $args['select_tables'] = array();
120 }
121
122 $args = array(
123 'select_tables' => array_map( 'trim', $args['select_tables'] ),
124 'case_insensitive' => isset( $args['case_insensitive'] ) ? $args['case_insensitive'] : 'off',
125 'replace_guids' => isset( $args['replace_guids'] ) ? $args['replace_guids'] : 'off',
126 'dry_run' => isset( $args['dry_run'] ) ? $args['dry_run'] : 'off',
127 'search_for' => isset( $args['search_for'] ) ? stripslashes( $args['search_for'] ) : '',
128 'replace_with' => isset( $args['replace_with'] ) ? stripslashes( $args['replace_with'] ) : '',
129 'completed_pages' => isset( $args['completed_pages'] ) ? absint( $args['completed_pages'] ) : 0,
130 );
131
132 $args['total_pages'] = isset( $args['total_pages'] ) ? absint( $args['total_pages'] ) : $db->get_total_pages( $args['select_tables'] );
133
134 // Clear the results of the last run.
135 delete_transient( 'bsr_results' );
136 delete_option( 'bsr_data' );
137 } else {
138 $args = get_option( 'bsr_data' );
139 }
140
141 // Start processing data.
142 if ( isset( $args['select_tables'][$step] ) ) {
143
144 $result = $db->srdb( $args['select_tables'][$step], $page, $args );
145 $this->append_report( $args['select_tables'][$step], $result['table_report'], $args );
146
147 if ( false === $result['table_complete'] ) {
148 $page++;
149 } else {
150 $step++;
151 $page = 0;
152 }
153
154 // Check if isset() again as the step may have changed since last check.
155 if ( isset( $args['select_tables'][$step] ) ) {
156 $message = sprintf(
157 __( 'Processing table %d of %d: %s', 'better-search-replace' ),
158 $step + 1,
159 count( $args['select_tables'] ),
160 esc_html( $args['select_tables'][$step] )
161 );
162 }
163
164 $args['completed_pages']++;
165 $percentage = $args['completed_pages'] / $args['total_pages'] * 100 . '%';
166
167 } else {
168 $db->maybe_update_site_url();
169 $step = 'done';
170 $percentage = '100%';
171 }
172
173 update_option( 'bsr_data', $args );
174
175 // Store results in an array.
176 $result = array(
177 'step' => $step,
178 'page' => $page,
179 'percentage' => $percentage,
180 'url' => get_admin_url() . 'tools.php?page=better-search-replace&tab=bsr_search_replace&result=true',
181 'bsr_data' => build_query( $args )
182 );
183
184 if ( isset( $message ) ) {
185 $result['message'] = $message;
186 }
187
188 // Send output as JSON for processing via AJAX.
189 echo json_encode( $result );
190 exit;
191
192 }
193
194 /**
195 * Helper function for assembling the BSR Results.
196 * @access public
197 * @param string $table The name of the table to append to.
198 * @param array $report The report for that table.
199 * @param array $args An array of arguements used for this run.
200 * @return boolean
201 */
202 public function append_report( $table, $report, $args ) {
203
204 // Bail if not authorized.
205 if ( ! check_admin_referer( 'bsr_ajax_nonce', 'bsr_ajax_nonce' ) ) {
206 return;
207 }
208
209 // Retrieve the existing transient.
210 $results = get_transient( 'bsr_results' ) ? get_transient( 'bsr_results') : array();
211
212 // Grab any values from the run args.
213 $results['search_for'] = isset( $args['search_for'] ) ? $args['search_for'] : '';
214 $results['replace_with'] = isset( $args['replace_with'] ) ? $args['replace_with'] : '';
215 $results['dry_run'] = isset( $args['dry_run'] ) ? $args['dry_run'] : 'off';
216 $results['case_insensitive'] = isset( $args['case_insensitive'] ) ? $args['case_insensitive'] : 'off';
217 $results['replace_guids'] = isset( $args['replace_guids'] ) ? $args['replace_guids'] : 'off';
218
219 // Sum the values of the new and existing reports.
220 $results['change'] = isset( $results['change'] ) ? $results['change'] + $report['change'] : $report['change'];
221 $results['updates'] = isset( $results['updates'] ) ? $results['updates'] + $report['updates'] : $report['updates'];
222
223 // Append the table report, or create a new one if necessary.
224 if ( isset( $results['table_reports'] ) && isset( $results['table_reports'][$table] ) ) {
225 $results['table_reports'][$table]['change'] = $results['table_reports'][$table]['change'] + $report['change'];
226 $results['table_reports'][$table]['updates'] = $results['table_reports'][$table]['updates'] + $report['updates'];
227 $results['table_reports'][$table]['end'] = $report['end'];
228 } else {
229 $results['table_reports'][$table] = $report;
230 }
231
232 // Count the number of tables.
233 $results['tables'] = count( $results['table_reports'] );
234
235 // Update the transient.
236 if ( ! set_transient( 'bsr_results', $results, DAY_IN_SECONDS ) ) {
237 return false;
238 }
239
240 return true;
241
242 }
243
244 }
245
246 $bsr_ajax = new BSR_AJAX;
247 $bsr_ajax->init();
1 <?php
2
3 /**
4 * Processes compatibility functionality.
5 * @since 1.0
6 *
7 * @package Better_Search_Replace
8 * @subpackage Better_Search_Replace/includes
9 */
10
11 // Prevent direct access.
12 if ( ! defined( 'BSR_PATH' ) ) exit;
13
14 class BSR_Compatibility {
15
16 /**
17 * Returns the system info.
18 * @access public
19 * @return string
20 */
21 public static function get_sysinfo() {
22
23 global $wpdb;
24
25 $return = '### Begin System Info ###' . "\n\n";
26
27 // Basic site info
28 $return .= '-- WordPress Configuration' . "\n\n";
29 $return .= 'Site URL: ' . site_url() . "\n";
30 $return .= 'Home URL: ' . home_url() . "\n";
31 $return .= 'Multisite: ' . ( is_multisite() ? 'Yes' : 'No' ) . "\n";
32 $return .= 'Version: ' . get_bloginfo( 'version' ) . "\n";
33 $return .= 'Language: ' . get_locale() . "\n";
34 $return .= 'Table Prefix: ' . 'Length: ' . strlen( $wpdb->prefix ) . "\n";
35 $return .= 'WP_DEBUG: ' . ( defined( 'WP_DEBUG' ) ? WP_DEBUG ? 'Enabled' : 'Disabled' : 'Not set' ) . "\n";
36 $return .= 'Memory Limit: ' . WP_MEMORY_LIMIT . "\n";
37
38 // Plugin Configuration
39 $return .= "\n" . '-- Better Search Replace Configuration' . "\n\n";
40 $return .= 'Plugin Version: ' . BSR_VERSION . "\n";
41 $db = new BSR_DB();
42 $return .= 'Max Page Size: ' . $db->get_page_size() . "\n";
43
44 // Server Configuration
45 $return .= "\n" . '-- Server Configuration' . "\n\n";
46 $os = self::get_os();
47 $return .= 'Operating System: ' . $os['name'] . "\n";
48 $return .= 'PHP Version: ' . PHP_VERSION . "\n";
49 $return .= 'MySQL Version: ' . $wpdb->db_version() . "\n";
50
51 $return .= 'Server Software: ' . $_SERVER['SERVER_SOFTWARE'] . "\n";
52
53 // PHP configs... now we're getting to the important stuff
54 $return .= "\n" . '-- PHP Configuration' . "\n\n";
55 $return .= 'Memory Limit: ' . ini_get( 'memory_limit' ) . "\n";
56 $return .= 'Post Max Size: ' . ini_get( 'post_max_size' ) . "\n";
57 $return .= 'Upload Max Filesize: ' . ini_get( 'upload_max_filesize' ) . "\n";
58 $return .= 'Time Limit: ' . ini_get( 'max_execution_time' ) . "\n";
59 $return .= 'Max Input Vars: ' . ini_get( 'max_input_vars' ) . "\n";
60 $return .= 'Display Errors: ' . ( ini_get( 'display_errors' ) ? 'On (' . ini_get( 'display_errors' ) . ')' : 'N/A' ) . "\n";
61
62 // WordPress active plugins
63 $return .= "\n" . '-- WordPress Active Plugins' . "\n\n";
64 $plugins = get_plugins();
65 $active_plugins = get_option( 'active_plugins', array() );
66 foreach( $plugins as $plugin_path => $plugin ) {
67 if( !in_array( $plugin_path, $active_plugins ) )
68 continue;
69 $return .= $plugin['Name'] . ': ' . $plugin['Version'] . "\n";
70 }
71
72 // WordPress inactive plugins
73 $return .= "\n" . '-- WordPress Inactive Plugins' . "\n\n";
74 foreach( $plugins as $plugin_path => $plugin ) {
75 if( in_array( $plugin_path, $active_plugins ) )
76 continue;
77 $return .= $plugin['Name'] . ': ' . $plugin['Version'] . "\n";
78 }
79
80 if( is_multisite() ) {
81 // WordPress Multisite active plugins
82 $return .= "\n" . '-- Network Active Plugins' . "\n\n";
83 $plugins = wp_get_active_network_plugins();
84 $active_plugins = get_site_option( 'active_sitewide_plugins', array() );
85 foreach( $plugins as $plugin_path ) {
86 $plugin_base = plugin_basename( $plugin_path );
87 if( !array_key_exists( $plugin_base, $active_plugins ) )
88 continue;
89 $plugin = get_plugin_data( $plugin_path );
90 $return .= $plugin['Name'] . ': ' . $plugin['Version'] . "\n";
91 }
92 }
93
94 $return .= "\n" . '### End System Info ###';
95 return $return;
96 }
97
98 /**
99 * Determines the current operating system.
100 * @access public
101 * @return array
102 */
103 public static function get_os() {
104 $os = array();
105 $uname = php_uname( 's' );
106 $os['code'] = strtoupper( substr( $uname, 0, 3 ) );
107 $os['name'] = $uname;
108 return $os;
109 }
110
111 }
1 <?php
2
3 /**
4 * Define the internationalization functionality.
5 *
6 * Loads and defines the internationalization files for this plugin
7 * so that it is ready for translation.
8 *
9 * @since 1.0.0
10 * @package Better_Search_Replace
11 * @subpackage Better_Search_Replace/includes
12 */
13
14 // Prevent direct access.
15 if ( ! defined( 'BSR_PATH' ) ) exit;
16
17 class BSR_i18n {
18
19 /**
20 * The domain specified for this plugin.
21 *
22 * @since 1.0.0
23 * @access private
24 * @var string $domain The domain identifier for this plugin.
25 */
26 private $domain;
27
28 /**
29 * Load the plugin text domain for translation.
30 *
31 * @since 1.0.0
32 */
33 public function load_plugin_textdomain() {
34
35 load_plugin_textdomain(
36 $this->domain,
37 false,
38 dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
39 );
40
41 }
42
43 /**
44 * Set the domain equal to that of the specified domain.
45 *
46 * @since 1.0.0
47 * @param string $domain The domain that represents the locale of this plugin.
48 */
49 public function set_domain( $domain ) {
50 $this->domain = $domain;
51 $this->load_plugin_textdomain();
52 }
53
54 }
1 <?php
2
3 /**
4 * Register all actions and filters for the plugin
5 *
6 * @link https://bettersearchreplace.com
7 * @since 1.0.0
8 *
9 * @package Better_Search_Replace
10 * @subpackage Better_Search_Replace/includes
11 */
12
13 // Prevent direct access.
14 if ( ! defined( 'BSR_PATH' ) ) exit;
15
16 /**
17 * Register all actions and filters for the plugin.
18 *
19 * Maintain a list of all hooks that are registered throughout
20 * the plugin, and register them with the WordPress API. Call the
21 * run function to execute the list of actions and filters.
22 *
23 * @package Better_Search_Replace
24 * @subpackage Better_Search_Replace/includes
25 */
26 class BSR_Loader {
27
28 /**
29 * The array of actions registered with WordPress.
30 *
31 * @since 1.0.0
32 * @access protected
33 * @var array $actions The actions registered with WordPress to fire when the plugin loads.
34 */
35 protected $actions;
36
37 /**
38 * The array of filters registered with WordPress.
39 *
40 * @since 1.0.0
41 * @access protected
42 * @var array $filters The filters registered with WordPress to fire when the plugin loads.
43 */
44 protected $filters;
45
46 /**
47 * Initialize the collections used to maintain the actions and filters.
48 *
49 * @since 1.0.0
50 */
51 public function __construct() {
52
53 $this->actions = array();
54 $this->filters = array();
55
56 }
57
58 /**
59 * Add a new action to the collection to be registered with WordPress.
60 *
61 * @since 1.0.0
62 * @var string $hook The name of the WordPress action that is being registered.
63 * @var object $component A reference to the instance of the object on which the action is defined.
64 * @var string $callback The name of the function definition on the $component.
65 * @var int Optional $priority The priority at which the function should be fired.
66 * @var int Optional $accepted_args The number of arguments that should be passed to the $callback.
67 */
68 public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
69 $this->actions = $this->add( $this->actions, $hook, $component, $callback, $priority, $accepted_args );
70 }
71
72 /**
73 * Add a new filter to the collection to be registered with WordPress.
74 *
75 * @since 1.0.0
76 * @var string $hook The name of the WordPress filter that is being registered.
77 * @var object $component A reference to the instance of the object on which the filter is defined.
78 * @var string $callback The name of the function definition on the $component.
79 * @var int Optional $priority The priority at which the function should be fired.
80 * @var int Optional $accepted_args The number of arguments that should be passed to the $callback.
81 */
82 public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
83 $this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args );
84 }
85
86 /**
87 * A utility function that is used to register the actions and hooks into a single
88 * collection.
89 *
90 * @since 1.0.0
91 * @access private
92 * @var array $hooks The collection of hooks that is being registered (that is, actions or filters).
93 * @var string $hook The name of the WordPress filter that is being registered.
94 * @var object $component A reference to the instance of the object on which the filter is defined.
95 * @var string $callback The name of the function definition on the $component.
96 * @var int Optional $priority The priority at which the function should be fired.
97 * @var int Optional $accepted_args The number of arguments that should be passed to the $callback.
98 * @return type The collection of actions and filters registered with WordPress.
99 */
100 private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) {
101
102 $hooks[] = array(
103 'hook' => $hook,
104 'component' => $component,
105 'callback' => $callback,
106 'priority' => $priority,
107 'accepted_args' => $accepted_args
108 );
109
110 return $hooks;
111
112 }
113
114 /**
115 * Register the filters and actions with WordPress.
116 *
117 * @since 1.0.0
118 */
119 public function run() {
120
121 foreach ( $this->filters as $hook ) {
122 add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
123 }
124
125 foreach ( $this->actions as $hook ) {
126 add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
127 }
128
129 }
130
131 }
1 <?php
2
3 /**
4 * The core plugin class.
5 *
6 * This is used to define internationalization, dashboard-specific hooks, and
7 * public-facing site hooks.
8 *
9 * Also maintains the unique identifier of this plugin as well as the current
10 * version of the plugin.
11 *
12 * @since 1.0
13 * @package Better_Search_Replace
14 * @subpackage Better_Search_Replace/includes
15 */
16
17 // Prevent direct access.
18 if ( ! defined( 'BSR_PATH' ) ) exit;
19
20 class Better_Search_Replace {
21
22 /**
23 * The loader that's responsible for maintaining and registering all hooks that power
24 * the plugin.
25 *
26 * @since 1.0
27 * @access protected
28 * @var BSR_Loader $loader Maintains and registers all hooks for the plugin.
29 */
30 protected $loader;
31
32 /**
33 * The unique identifier of this plugin.
34 *
35 * @since 1.0
36 * @access protected
37 * @var string $plugin_name The string used to uniquely identify this plugin.
38 */
39 protected $plugin_name;
40
41 /**
42 * The current version of the plugin.
43 *
44 * @since 1.0
45 * @access protected
46 * @var string $version The current version of the plugin.
47 */
48 protected $version;
49
50 /**
51 * Define the core functionality of the plugin.
52 *
53 * Set the plugin name and the plugin version that can be used throughout the plugin.
54 * Load the dependencies, define the locale, and set the hooks for the Dashboard and
55 * the public-facing side of the site.
56 *
57 * @since 1.0
58 */
59 public function __construct() {
60 $this->plugin_name = 'better-search-replace';
61 $this->version = BSR_VERSION;
62 $this->load_dependencies();
63 $this->set_locale();
64 $this->define_admin_hooks();
65 }
66
67 /**
68 * Load the required dependencies for this plugin.
69 *
70 * Create an instance of the loader which will be used to register the hooks
71 * with WordPress.
72 *
73 * @since 1.0
74 * @access private
75 */
76 private function load_dependencies() {
77 require_once BSR_PATH . 'includes/class-bsr-loader.php';
78 require_once BSR_PATH . 'includes/class-bsr-i18n.php';
79 require_once BSR_PATH . 'includes/class-bsr-admin.php';
80 require_once BSR_PATH . 'includes/class-bsr-ajax.php';
81 require_once BSR_PATH . 'includes/class-bsr-db.php';
82 require_once BSR_PATH . 'includes/class-bsr-compatibility.php';
83 $this->loader = new BSR_Loader();
84 }
85
86 /**
87 * Define the locale for this plugin for internationalization.
88 *
89 * Uses the BSR_i18n class in order to set the domain and to register the hook
90 * with WordPress.
91 *
92 * @since 1.0
93 * @access private
94 */
95 private function set_locale() {
96 $plugin_i18n = new BSR_i18n();
97 $plugin_i18n->set_domain( $this->get_plugin_name() );
98 }
99
100 /**
101 * Register all of the hooks related to the dashboard functionality
102 * of the plugin.
103 *
104 * @since 1.0
105 * @access private
106 */
107 private function define_admin_hooks() {
108
109 // Initialize the admin class.
110 $plugin_admin = new BSR_Admin( $this->get_plugin_name(), $this->get_version() );
111
112 /// Register the admin pages and scripts.
113 $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
114 $this->loader->add_action( 'admin_menu', $plugin_admin, 'bsr_menu_pages' );
115
116 // Other admin actions.
117 $this->loader->add_action( 'admin_init', $plugin_admin, 'register_option' );
118 $this->loader->add_action( 'admin_post_bsr_view_details', $plugin_admin, 'load_details' );
119 $this->loader->add_action( 'admin_post_bsr_download_sysinfo', $plugin_admin, 'download_sysinfo' );
120 $this->loader->add_action( 'plugin_row_meta', $plugin_admin, 'meta_upgrade_link', 10, 2 );
121 }
122
123 /**
124 * Run the loader to execute all of the hooks with WordPress.
125 *
126 * @since 1.0
127 */
128 public function run() {
129 $this->loader->run();
130 }
131
132 /**
133 * The name of the plugin used to uniquely identify it within the context of
134 * WordPress and to define internationalization functionality.
135 *
136 * @since 1.0
137 * @return string The name of the plugin.
138 */
139 public function get_plugin_name() {
140 return $this->plugin_name;
141 }
142
143 /**
144 * The reference to the class that orchestrates the hooks with the plugin.
145 *
146 * @since 1.0
147 * @return Better_Search_Replace_Loader Orchestrates the hooks of the plugin.
148 */
149 public function get_loader() {
150 return $this->loader;
151 }
152
153 /**
154 * Retrieve the version number of the plugin.
155 *
156 * @since 1.0
157 * @return string The version number of the plugin.
158 */
159 public function get_version() {
160 return $this->version;
161 }
162
163 }
1 <?php
2 // Prevent direct access.
3 if ( ! defined( 'BSR_PATH' ) ) exit;
4
5 class BSR_Templates_Helper {
6 /**
7 * Returns a fully qualified path for the given active tab name
8 * if the file name is not supported, the default template path is returned.
9 *
10 * @param string $active_tab
11 * @return string
12 */
13 public static function get_tab_template($active_tab) {
14 switch($active_tab) {
15 case 'bsr_settings':
16 return BSR_PATH . 'templates/bsr-settings.php';
17 case 'bsr_help':
18 return BSR_PATH . 'templates/bsr-help.php';
19 default:
20 return BSR_PATH . 'templates/bsr-search-replace.php';
21 }
22 }
23 }
...\ No newline at end of file ...\ No newline at end of file
1 <?php // Silence is golden
...\ No newline at end of file ...\ No newline at end of file
1 <?php // Silence is golden
...\ No newline at end of file ...\ No newline at end of file
1 # Copyright (C) 2014
2 # This file is distributed under the same license as the plugin package.
3 msgid ""
4 msgstr ""
5 "Project-Id-Version: Better Search Replace en español\n"
6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/better-search-replace\n"
7 "POT-Creation-Date: 2015-09-09 01:51:36+00:00\n"
8 "PO-Revision-Date: 2015-09-10 01:27+0100\n"
9 "Last-Translator: zork media <info@zork-media.de>\n"
10 "Language-Team: PNTE <blogs@educacion.navarra.es>\n"
11 "MIME-Version: 1.0\n"
12 "Content-Type: text/plain; charset=UTF-8\n"
13 "Content-Transfer-Encoding: 8bit\n"
14 "Language: es\n"
15 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16 "X-Generator: Poedit 1.6.3\n"
17 "X-Poedit-Basepath: ..\n"
18 "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"
19 "X-Poedit-SourceCharset: UTF-8\n"
20 "X-Poedit-SearchPath-0: .\n"
21
22 #: includes/class-bsr-admin.php:71
23 msgid "No search string was defined, please enter a URL or string to search for."
24 msgstr "Bitte gib ein, wonach die Datenbank durchsucht werden soll (z. B. eine URL)."
25
26 #: includes/class-bsr-admin.php:72
27 msgid "Please select the tables that you want to update."
28 msgstr "Bitte wähle die Tabellen aus, die durchsucht werden sollen."
29
30 #: includes/class-bsr-admin.php:73
31 msgid "An error occurred processing your request. Try decreasing the \"Max Page Size\", or contact support."
32 msgstr "Ein Fehler ist aufgetreten. Versuche entweder die \"Max. Seiten-Anzahl\" zu verringern, oder wende dich an unseren Support."
33
34 #. #-#-#-#-# plugin.pot (Better Search Replace 1.2.2) #-#-#-#-#
35 #. Plugin Name of the plugin/theme
36 #: includes/class-bsr-admin.php:85
37 #: templates/bsr-dashboard.php:29
38 msgid "Better Search Replace"
39 msgstr "Better Search Replace "
40
41 #: includes/class-bsr-admin.php:105
42 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>"
43 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>"
44
45 #: includes/class-bsr-admin.php:112
46 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>"
47 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>"
48
49 #: includes/class-bsr-admin.php:212
50 msgid "Table"
51 msgstr "Tabelle"
52
53 #: includes/class-bsr-admin.php:212
54 msgid "Changes Found"
55 msgstr "Änderungen gefunden"
56
57 #: includes/class-bsr-admin.php:212
58 msgid "Rows Updated"
59 msgstr "Zeilen aktualisiert"
60
61 #: includes/class-bsr-admin.php:212
62 msgid "Time"
63 msgstr "Zeit"
64
65 #: includes/class-bsr-admin.php:233
66 msgid "Want even more details, easy database migrations, and saved search/replace profiles?"
67 msgstr "Du möchtest noch mehr Einstellungsmöglichkeiten, eine einfache Datenbank-Migration und die Möglichkeit Suchen/Ersetzen-Profile anzulegen?"
68
69 #: includes/class-bsr-admin.php:234
70 msgid "Learn more about the pro version"
71 msgstr "Lerne die Pro-Version kennen"
72
73 #: includes/class-bsr-admin.php:279
74 msgid "Upgrade to Pro"
75 msgstr "Upgrade auf die Pro-Version"
76
77 #: includes/class-bsr-db.php:81
78 msgid "(%s MB)"
79 msgstr "(%s MB)"
80
81 #: includes/class-bsr-db.php:251
82 msgid "Error updating row: %d."
83 msgstr "Fehler beim Aktualisieren in Zeile: %d."
84
85 #: includes/class-bsr-db.php:257
86 msgid "Row %d has no primary key, manual change needed."
87 msgstr "Zeile %d hat keinen Primärschlüssel. Du musst sie manuell ändern."
88
89 #: templates/bsr-dashboard.php:36
90 msgid "Search/Replace"
91 msgstr "Suchen/Ersetzen"
92
93 #: templates/bsr-dashboard.php:37
94 msgid "Settings"
95 msgstr "Einstellungen"
96
97 #: templates/bsr-dashboard.php:38
98 msgid "Help"
99 msgstr "Hilfe"
100
101 #: templates/bsr-help.php:17
102 msgid "Help & Troubleshooting"
103 msgstr "Hilfe & Fehlerbehebung"
104
105 #: templates/bsr-help.php:19
106 msgid "Free support is available on the <a href=\"%s\">plugin support forums</a>."
107 msgstr "Kostenlosen Support gibt es im <a href=\"%s\">Plugin Support-Forum</a>."
108
109 #: templates/bsr-help.php:21
110 msgid "For premium features and priority email support, <a href=\"%s\" style=\"font-weight:bold;\">upgrade to pro</a>."
111 msgstr "Weitere Premium-Features und schneller Support per E-Mail: <a href=\"%s\" style=\"font-weight:bold;\">Upgrade auf die Pro-Version</a>."
112
113 #: templates/bsr-help.php:23
114 msgid "Found a bug or have a feature request? Please submit an issue on <a href=\"%s\">GitHub</a>!"
115 msgstr "Du hast einen Fehler gefunden? Du wünschst dir eine neue Funktion? Schreib uns auf <a href=\"%s\">GitHub</a>!"
116
117 #: templates/bsr-help.php:29
118 msgid "Download System Info"
119 msgstr "System-Info herunterladen"
120
121 #: templates/bsr-search-replace.php:21
122 msgid "This tool allows you to search and replace text in your database (supports serialized arrays and objects)."
123 msgstr "Mit diesem Tool kannst du Zeichenketten in der Datenbank suchen und durch andere ersetzen (serialisierte Arrays und Objekte werden unterstützt)."
124
125 #: templates/bsr-search-replace.php:22
126 msgid "To get started, use the form below to enter the text to be replaced and select the tables to update."
127 msgstr "Gib im Formular an, welche Zeichenkette gesucht und ersetzt werden soll. Wähle aus, welche Tabellen der Datenbank durchsucht werden sollen."
128
129 #: templates/bsr-search-replace.php:23
130 msgid "<strong>WARNING:</strong> Make sure you backup your database before using this plugin!"
131 msgstr "<strong>Achtung:</strong> Mach' bitte ein Backup von deiner Datenbank bevor du dieses Plugin benutzt!"
132
133 #: templates/bsr-search-replace.php:28
134 msgid "Search for"
135 msgstr "Suchen nach:"
136
137 #: templates/bsr-search-replace.php:33
138 msgid "Replace with"
139 msgstr "Ersetzen durch:"
140
141 #: templates/bsr-search-replace.php:38
142 msgid "Select tables"
143 msgstr "Tabellen auswählen:"
144
145 #: templates/bsr-search-replace.php:41
146 msgid "Select multiple tables with Ctrl-Click for Windows or Cmd-Click for Mac."
147 msgstr "Steurungs-/Befehlstaste (Win/Mac) oder SHIFT gedrückt halten, um mehrere Tabellen auszuwählen."
148
149 #: templates/bsr-search-replace.php:46
150 msgid "Case-Insensitive?"
151 msgstr "Groß -und Kleinschreibung ignorieren?"
152
153 #: templates/bsr-search-replace.php:49
154 msgid "Searches are case-sensitive by default."
155 msgstr "Groß- und Kleinschreibung wird bei der Suche standardmäßig beachtet"
156
157 #: templates/bsr-search-replace.php:54
158 msgid "Replace GUIDs<a href=\"http://codex.wordpress.org/Changing_The_Site_URL#Important_GUID_Note\" target=\"_blank\">?</a>"
159 msgstr "Auch <a href=\"http://codex.wordpress.org/Changing_The_Site_URL#Important_GUID_Note\" target=\"_blank\">GUIDs ersetzen?</a>"
160
161 #: templates/bsr-search-replace.php:57
162 msgid "If left unchecked, all database columns titled 'guid' will be skipped."
163 msgstr "Lasse das Feld frei, um alle Datenbank-Spalten mit dem Titel 'guid' beim Suchen/Ersetzen zu überspringen (empfohlen)."
164
165 #: templates/bsr-search-replace.php:62
166 msgid "Run as dry run?"
167 msgstr "Testlauf?"
168
169 #: templates/bsr-search-replace.php:65
170 msgid "If checked, no changes will be made to the database, allowing you to check the results beforehand."
171 msgstr "Beim Testlauf wird die Datenbank nicht verändert. So kannst du vorher prüfen, welche Ersetzungen vorgenommen werden."
172
173 #: templates/bsr-search-replace.php:76
174 msgid "Run Search/Replace"
175 msgstr "Suchen/Ersetzen starten"
176
177 #: templates/bsr-settings.php:27
178 msgid "Max Page Size"
179 msgstr "Max. Seiten-Anzahl"
180
181 #: templates/bsr-settings.php:31
182 msgid "Current Setting: "
183 msgstr "Aktuelle Einstellung: "
184
185 #: templates/bsr-settings.php:33
186 msgid "If you're noticing timeouts or getting a white screen while running a search replace, try decreasing this value."
187 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. "
188
189 #. Plugin URI of the plugin/theme
190 msgid "http://expandedfronts.com/better-search-replace"
191 msgstr "http://expandedfronts.com/better-search-replace"
192
193 #. Description of the plugin/theme
194 msgid "A small plugin for running a search/replace on your WordPress database."
195 msgstr "Ein Plugin mit dem Zeichenketten in deiner WordPress-Datenbank gesucht und ersetzt werden können."
196
197 #. Author of the plugin/theme
198 msgid "Expanded Fronts"
199 msgstr "Expanded Fronts"
200
201 #. Author URI of the plugin/theme
202 msgid "http://expandedfronts.com"
203 msgstr "http://expandedfronts.com"
204
1 # Copyright (C) 2014
2 # This file is distributed under the same license as the plugin package.
3 msgid ""
4 msgstr ""
5 "Project-Id-Version: Better Search Replace en español\n"
6 "Report-Msgid-Bugs-To: http://wordpress.org/plugins/better-search-replace\n"
7 "POT-Creation-Date: 2015-01-09 12:49+0100\n"
8 "PO-Revision-Date: 2015-01-09 12:59+0100\n"
9 "Last-Translator: Eduardo Larequi <elarequi@gmail.com>\n"
10 "Language-Team: PNTE <blogs@educacion.navarra.es>\n"
11 "Language: es\n"
12 "MIME-Version: 1.0\n"
13 "Content-Type: text/plain; charset=UTF-8\n"
14 "Content-Transfer-Encoding: 8bit\n"
15 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16 "X-Generator: Poedit 1.6.3\n"
17 "X-Poedit-Basepath: ..\n"
18 "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
19 "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
20 "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
21 "X-Poedit-SourceCharset: UTF-8\n"
22 "X-Poedit-SearchPath-0: .\n"
23
24 #: includes/class-better-search-replace-admin.php:141
25 msgid ""
26 "No search string was defined, please enter a URL or string to search for."
27 msgstr ""
28 "No se ha definido ninguna cadena de búsqueda; por favor, escribe una URL o "
29 "cadena que buscar."
30
31 #: includes/class-better-search-replace-admin.php:144
32 msgid "Please select the tables that you want to update."
33 msgstr "Por favor, selecciona las tablas que quieres actualizar."
34
35 #: includes/class-better-search-replace-admin.php:153
36 #, php-format
37 msgid ""
38 "<p><strong>DRY RUN:</strong> <strong>%d</strong> tables were searched, "
39 "<strong>%d</strong> cells were found that need to be updated, and <strong>"
40 "%d</strong> changes were made.</p><p><a href=\"%s\" class=\"thickbox\" title="
41 "\"Dry Run Details\">Click here</a> for more details, or click the submit "
42 "button below to run the search/replace.</p>"
43 msgstr ""
44 "<p><strong>EJECUCIÓN EN SECO:</strong> se hn realizado búsquedas en <strong>"
45 "%d</strong> tablas, se han encontrado <strong>%d</strong> celdas que deben "
46 "ser actualizadas, y se han realizado <strong>%d</strong> cambios.</p><p><a "
47 "href=\"%s\" class=\"thickbox\" title=\"Detalles de la ejecución en seco"
48 "\">Haz clic aquí</a> para ver más detalles, o haz clic en el botón \"Enviar"
49 "\" que tienes a continuación para ejecutar la búsqueda y sustitución.</p>"
50
51 #: includes/class-better-search-replace-admin.php:160
52 #, php-format
53 msgid ""
54 "<p>During the search/replace, <strong>%d</strong> tables were searched, with "
55 "<strong>%d</strong> cells changed in <strong>%d</strong> updates.</p><p><a "
56 "href=\"%s\" class=\"thickbox\" title=\"Search/Replace Details\">Click here</"
57 "a> for more details.</p>"
58 msgstr ""
59 "<p>Durante la búsqueda y sustitución, se han realizado búsquedas en <strong>"
60 "%d</strong> tablas, y se han modificado <strong>%d</strong> celdas en "
61 "<strong>%d</strong> actualizaciones.</p><p><a href=\"%s\" class=\"thickbox\" "
62 "title=\"Detalles sobre la búsqueda y sustitución\">Haz clic aquí</a> para "
63 "ver más detalles.</p>"
64
65 #: templates/bsr-dashboard.php:17
66 msgid "Better Search Replace"
67 msgstr "Better Search Replace"
68
69 #: templates/bsr-dashboard.php:19
70 msgid ""
71 "This tool allows you to search and replace text in your database (supports "
72 "serialized arrays and objects)."
73 msgstr ""
74 "Esta herramienta permite buscar y sustituir texto en la base de datos; "
75 "soporta matrices y objetos serializados."
76
77 #: templates/bsr-dashboard.php:20
78 msgid ""
79 "To get started, use the form below to enter the text to be replaced and "
80 "select the tables to update."
81 msgstr ""
82 "Para comenzar, utiliza el formulario que tienes a continuación para escribir "
83 "el texto que será sustituido y selecciona las tablas que se actualizarán."
84
85 #: templates/bsr-dashboard.php:21
86 msgid ""
87 "<strong>WARNING:</strong> Make sure you backup your database before using "
88 "this plugin!"
89 msgstr ""
90 "<strong>ATENCIÓN:</strong> asegúrate de hacer una copia de seguridad de tu "
91 "base de datos antes de utilizar este plugin."
92
93 #: templates/bsr-dashboard.php:28
94 msgid "Search for"
95 msgstr "Buscar"
96
97 #: templates/bsr-dashboard.php:33
98 msgid "Replace with"
99 msgstr "Sustituir con"
100
101 #: templates/bsr-dashboard.php:38
102 msgid "Select tables"
103 msgstr "Seleccionar tablas"
104
105 #: templates/bsr-dashboard.php:41
106 msgid ""
107 "Select multiple tables with Ctrl-Click for Windows or Cmd-Click for Mac."
108 msgstr ""
109 "Selecciona múltiples tablas con Ctrl+Clic (en Windows) o Cmd+Clic (en Mac)."
110
111 #: templates/bsr-dashboard.php:46
112 msgid ""
113 "Replace GUIDs<a href=\"http://codex.wordpress.org/"
114 "Changing_The_Site_URL#Important_GUID_Note\" target=\"_blank\">?</a>"
115 msgstr ""
116 "¿<a href=\"http://codex.wordpress.org/"
117 "Changing_The_Site_URL#Important_GUID_Note\" target=\"_blank\">Quieres "
118 "sustituir los GUIDs ?</a>"
119
120 #: templates/bsr-dashboard.php:49
121 msgid "If left unchecked, all database columns titled 'guid' will be skipped."
122 msgstr ""
123 "Si no activas esta opción, se omitirán todas las columnas de las bases de "
124 "datos tituladas 'guid'."
125
126 #: templates/bsr-dashboard.php:54
127 msgid "Run as dry run?"
128 msgstr "¿Quieres ejecutar \"en seco\"?"
129
130 #: templates/bsr-dashboard.php:57
131 msgid ""
132 "If checked, no changes will be made to the database, allowing you to check "
133 "the results beforehand."
134 msgstr ""
135 "Si activas esta opción, no se realizará ningún cambio en la base de datos, "
136 "lo cual te permite verificar los resultados de antemano."
1 # Copyright (C) 2015 Better Search Replace
2 # This file is distributed under the same license as the Better Search Replace package.
3 msgid ""
4 msgstr ""
5 "Project-Id-Version: Better Search Replace 1.0.2\n"
6 "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/better-search-replace\n"
7 "POT-Creation-Date: 2015-02-05 04:52:47+00:00\n"
8 "MIME-Version: 1.0\n"
9 "Content-Type: text/plain; charset=UTF-8\n"
10 "Content-Transfer-Encoding: 8bit\n"
11 "PO-Revision-Date: 2015-05-12 10:08-0500\n"
12 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
13 "Last-Translator: TWF <info@themes-wordpress-francais.com>\n"
14 "Language-Team: TWF <info@themes-wordpress-francais.com>\n"
15 "Language: fr\n"
16 "X-Generator: Poedit 1.7.6\n"
17 "X-Poedit-SourceCharset: UTF-8\n"
18 "X-Poedit-KeywordsList: __;_e\n"
19 "X-Poedit-Basepath: .\n"
20 "X-Poedit-SearchPath-0: ..\n"
21
22 #. Plugin Name of the plugin/theme
23 #: includes/class-better-search-replace-admin.php:69 templates/bsr-dashboard.php:17
24 msgid "Better Search Replace"
25 msgstr "Better Search Replace"
26
27 #: includes/class-better-search-replace-admin.php:138
28 msgid "No search string was defined, please enter a URL or string to search for."
29 msgstr ""
30 "Aucune chaîne de recherche a été définie, entrez une URL ou une chaîne à rechercher."
31
32 #: includes/class-better-search-replace-admin.php:141
33 msgid "Please select the tables that you want to update."
34 msgstr "Sélectionnez les tables que vous souhaitez mettre à jour."
35
36 #: includes/class-better-search-replace-admin.php:150
37 msgid ""
38 "<p><strong>DRY RUN:</strong> <strong>%d</strong> tables were searched, <strong>%d</"
39 "strong> cells were found that need to be updated, and <strong>%d</strong> changes "
40 "were made.</p><p><a href=\"%s\" class=\"thickbox\" title=\"Dry Run Details\">Click "
41 "here</a> for more details, or use the form below to run the search/replace.</p>"
42 msgstr ""
43 "<p><strong>Résultat de l'essai :</strong> <strong>%d</strong> tables ont été "
44 "parcourues, <strong>%d</strong> chaînes trouvées qui peuvent être mises à jour et "
45 "<strong>%d</strong> modifications auraient pu être apportées.</p><p><a href=\"%s\" "
46 "class=\"thickbox\" title=\"Plus de détails\">Cliquez ici</a> pour plus de détails, "
47 "ou utilisez le formulaire ci-dessous pour exécuter la recherche/remplace.</p>"
48
49 #: includes/class-better-search-replace-admin.php:157
50 msgid ""
51 "<p>During the search/replace, <strong>%d</strong> tables were searched, with <strong>"
52 "%d</strong> cells changed in <strong>%d</strong> updates.</p><p><a href=\"%s\" class="
53 "\"thickbox\" title=\"Search/Replace Details\">Click here</a> for more details.</p>"
54 msgstr ""
55 "<p>Pendant la recherche/remplace, <strong>%d</strong> tables ont été fouillés, avec "
56 "<strong>%d</strong> cellules changées dans <strong>%d</strong> mises à jour.</"
57 "p><p><a href=\"%s\" class=\"thickbox\" title=\"Plus de Details\">Cliquez ici</a> "
58 "pour plus de détails.</p>"
59
60 #: templates/bsr-dashboard.php:19
61 msgid ""
62 "This tool allows you to search and replace text in your database (supports "
63 "serialized arrays and objects)."
64 msgstr ""
65 "Cet outil vous permet de rechercher et remplacer du texte dans votre base de données "
66 "(prend en charge la sérialisation des tables et objets)."
67
68 #: templates/bsr-dashboard.php:20
69 msgid ""
70 "To get started, use the form below to enter the text to be replaced and select the "
71 "tables to update."
72 msgstr ""
73 "Pour commencer, utiliser le formulaire ci-dessous pour entrer dans le texte pour le "
74 "remplacement et sélectionnez les tables à mettre à jour."
75
76 #: templates/bsr-dashboard.php:21
77 msgid ""
78 "<strong>WARNING:</strong> Make sure you backup your database before using this "
79 "plugin!"
80 msgstr ""
81 "<strong>Avertissement :</strong> Assurez-vous que vous avez sauvegardé votre base de "
82 "données avant d'utiliser ce plugin !"
83
84 #: templates/bsr-dashboard.php:28
85 msgid "Search for"
86 msgstr "Rechercher"
87
88 #: templates/bsr-dashboard.php:33
89 msgid "Replace with"
90 msgstr "Remplacer avec"
91
92 #: templates/bsr-dashboard.php:38
93 msgid "Select tables"
94 msgstr "Dans les tables"
95
96 #: templates/bsr-dashboard.php:41
97 msgid "Select multiple tables with Ctrl-Click for Windows or Cmd-Click for Mac."
98 msgstr "Sélectionnez plusieurs tables avec la touche CTRL+clic ou CMD+clic pour Mac"
99
100 #: templates/bsr-dashboard.php:46
101 msgid ""
102 "Replace GUIDs<a href=\"http://codex.wordpress.org/"
103 "Changing_The_Site_URL#Important_GUID_Note\" target=\"_blank\">?</a>"
104 msgstr ""
105 "Remplacez les GUID ?<a href=\"http://codex.wordpress.org/"
106 "Changing_The_Site_URL#Important_GUID_Note\" target=\"_blank\"> En savoir plus sur "
107 "les GUID</a>"
108
109 #: templates/bsr-dashboard.php:49
110 msgid "If left unchecked, all database columns titled 'guid' will be skipped."
111 msgstr "Si décoché, toutes les colonnes 'guid' de la base de données seront igniorés."
112
113 #: templates/bsr-dashboard.php:54
114 msgid "Run as dry run?"
115 msgstr "Juste faire un test ?"
116
117 #: templates/bsr-dashboard.php:57
118 msgid ""
119 "If checked, no changes will be made to the database, allowing you to check the "
120 "results beforehand."
121 msgstr ""
122 "Si coché, aucun changement ne sera apporté à la base de données, vous aurez un bilan "
123 "des résultats possibles"
124
125 #: templates/bsr-dashboard.php:66
126 msgid "Run Search/Replace"
127 msgstr "Rechercher/Remplacer"
128
129 #. Plugin URI of the plugin/theme
130 msgid "http://expandedfronts.com/better-search-replace"
131 msgstr "http://expandedfronts.com/better-search-replace"
132
133 #. Description of the plugin/theme
134 msgid "A small plugin for running a search/replace on your WordPress database."
135 msgstr ""
136 "Un petit plugin pour rechercher et remplacer des cabine dans votre base de données "
137 "WordPress."
138
139 #. Author of the plugin/theme
140 msgid "Expanded Fronts"
141 msgstr "Expanded Fronts"
142
143 #. Author URI of the plugin/theme
144 msgid "http://expandedfronts.com"
145 msgstr "http://expandedfronts.com"
1 # Copyright (C) 2023 Delicious Brains
2 # This file is distributed under the GPL-3.0.
3 msgid ""
4 msgstr ""
5 "Project-Id-Version: Better Search Replace 1.4.2\n"
6 "Report-Msgid-Bugs-To: "
7 "http://wordpress.org/support/plugin/better-search-replace\n"
8 "POT-Creation-Date: 2023-01-11 16:40:34+00:00\n"
9 "MIME-Version: 1.0\n"
10 "Content-Type: text/plain; charset=utf-8\n"
11 "Content-Transfer-Encoding: 8bit\n"
12 "PO-Revision-Date: 2023-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: Delicious Brains <mayday@bettersearchreplace.com>\n"
14 "Language-Team: Delicious Brains <mayday@bettersearchreplace.com>\n"
15 "Language: en\n"
16 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17 "X-Poedit-Country: United States\n"
18 "X-Poedit-SourceCharset: UTF-8\n"
19 "X-Poedit-KeywordsList: "
20 "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
21 "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
22 "X-Poedit-Basepath: ../\n"
23 "X-Poedit-SearchPath-0: .\n"
24 "X-Poedit-Bookmarks: \n"
25 "X-Textdomain-Support: yes\n"
26 "X-Generator: grunt-wp-i18n 1.0.3\n"
27
28 #: includes/class-bsr-admin.php:72
29 msgid "No search string was defined, please enter a URL or string to search for."
30 msgstr ""
31
32 #: includes/class-bsr-admin.php:73
33 msgid "Please select the tables that you want to update."
34 msgstr ""
35
36 #: includes/class-bsr-admin.php:74
37 msgid ""
38 "An error occurred processing your request. Try decreasing the \"Max Page "
39 "Size\", or contact support."
40 msgstr ""
41
42 #: includes/class-bsr-admin.php:75
43 msgid "Processing..."
44 msgstr ""
45
46 #. Plugin Name of the plugin/theme
47 msgid "Better Search Replace"
48 msgstr ""
49
50 #: includes/class-bsr-admin.php:108
51 msgid ""
52 "<p><strong>DRY RUN:</strong> <strong>%d</strong> tables were searched, "
53 "<strong>%d</strong> cells were found that need to be updated, and "
54 "<strong>%d</strong> changes were made.</p><p><a href=\"%s\" "
55 "class=\"thickbox\" title=\"Dry Run Details\">Click here</a> for more "
56 "details, or use the form below to run the search/replace.</p>"
57 msgstr ""
58
59 #: includes/class-bsr-admin.php:115
60 msgid ""
61 "<p>During the search/replace, <strong>%d</strong> tables were searched, "
62 "with <strong>%d</strong> cells changed in <strong>%d</strong> "
63 "updates.</p><p><a href=\"%s\" class=\"thickbox\" title=\"Search/Replace "
64 "Details\">Click here</a> for more details.</p>"
65 msgstr ""
66
67 #: includes/class-bsr-admin.php:213
68 msgid "Table"
69 msgstr ""
70
71 #: includes/class-bsr-admin.php:213
72 msgid "Changes Found"
73 msgstr ""
74
75 #: includes/class-bsr-admin.php:213
76 msgid "Rows Updated"
77 msgstr ""
78
79 #: includes/class-bsr-admin.php:213
80 msgid "Time"
81 msgstr ""
82
83 #: includes/class-bsr-admin.php:224
84 msgid ""
85 "<a href=\"%s\" target=\"_blank\">UPGRADE</a> to view details on the exact "
86 "changes that will be made."
87 msgstr ""
88
89 #: includes/class-bsr-admin.php:235
90 msgid " seconds"
91 msgstr ""
92
93 #: includes/class-bsr-admin.php:285
94 msgid "Upgrade to Pro"
95 msgstr ""
96
97 #: includes/class-bsr-ajax.php:157
98 msgid "Processing table %d of %d: %s"
99 msgstr ""
100
101 #: includes/class-bsr-db.php:85
102 msgid "(%s MB)"
103 msgstr ""
104
105 #: includes/class-bsr-db.php:295
106 msgid "Error updating row: %d."
107 msgstr ""
108
109 #: templates/bsr-dashboard.php:53
110 msgid "Upgrade now and get 50% off"
111 msgstr ""
112
113 #: templates/bsr-dashboard.php:65 templates/bsr-search-replace.php:32
114 msgid "Search/Replace"
115 msgstr ""
116
117 #: templates/bsr-dashboard.php:66 templates/bsr-settings.php:30
118 msgid "Settings"
119 msgstr ""
120
121 #: templates/bsr-dashboard.php:67
122 msgid "Help"
123 msgstr ""
124
125 #: templates/bsr-help.php:26
126 msgid "Help & Troubleshooting"
127 msgstr ""
128
129 #: templates/bsr-help.php:35
130 msgid "Free support is available on the <a href=\"%s\">plugin support forums</a>."
131 msgstr ""
132
133 #: templates/bsr-help.php:43
134 msgid ""
135 "<a href=\"%s\" style=\"font-weight:bold;\" target=\"_blank\">Upgrade</a> to "
136 "gain access to premium features and priority email support."
137 msgstr ""
138
139 #: templates/bsr-help.php:51
140 msgid ""
141 "Found a bug or have a feature request? Please submit an issue on <a "
142 "href=\"%s\">GitHub</a>!"
143 msgstr ""
144
145 #: templates/bsr-help.php:61
146 msgid "System Info"
147 msgstr ""
148
149 #: templates/bsr-search-replace.php:37
150 msgid ""
151 "Search and replace text in the database, including serialized arrays and "
152 "objects. Be sure to back up your database before running this process."
153 msgstr ""
154
155 #: templates/bsr-search-replace.php:46
156 msgid "Search for"
157 msgstr ""
158
159 #: templates/bsr-search-replace.php:51
160 msgid "Replace with"
161 msgstr ""
162
163 #: templates/bsr-search-replace.php:59
164 msgid "Select tables"
165 msgstr ""
166
167 #: templates/bsr-search-replace.php:61
168 msgid "Select multiple tables with Ctrl-Click for Windows or Cmd-Click for Mac."
169 msgstr ""
170
171 #: templates/bsr-search-replace.php:73
172 msgid "Additional Settings"
173 msgstr ""
174
175 #: templates/bsr-search-replace.php:84
176 msgid "Case-Insensitive"
177 msgstr ""
178
179 #: templates/bsr-search-replace.php:85
180 msgid "Searches are case-sensitive by default."
181 msgstr ""
182
183 #: templates/bsr-search-replace.php:95
184 msgid "Replace GUIDs"
185 msgstr ""
186
187 #: templates/bsr-search-replace.php:96
188 msgid "If left unchecked, all database columns titled 'guid' will be skipped."
189 msgstr ""
190
191 #: templates/bsr-search-replace.php:106
192 msgid "Run as dry run"
193 msgstr ""
194
195 #: templates/bsr-search-replace.php:107
196 msgid ""
197 "If checked, no changes will be made to the database, allowing you to check "
198 "the results beforehand."
199 msgstr ""
200
201 #: templates/bsr-search-replace.php:118
202 msgid "Run Search/Replace"
203 msgstr ""
204
205 #: templates/bsr-settings.php:39
206 msgid "Max Page Size"
207 msgstr ""
208
209 #: templates/bsr-settings.php:43
210 msgid ""
211 "If you notice timeouts or are unable to backup/import the database, try "
212 "decreasing this value."
213 msgstr ""
214
215 #: templates/sidebar.php:4
216 msgid "Upgrade"
217 msgstr ""
218
219 #: templates/sidebar.php:5
220 msgid "Gain access to more database and migration features"
221 msgstr ""
222
223 #: templates/sidebar.php:9
224 msgid "Preview database changes before they are saved"
225 msgstr ""
226
227 #: templates/sidebar.php:12
228 msgid "Use regular expressions for complex string replacements"
229 msgstr ""
230
231 #: templates/sidebar.php:15
232 msgid "Migrate full sites including themes, plugins, media, and database"
233 msgstr ""
234
235 #: templates/sidebar.php:18
236 msgid "Export and import WordPress databases"
237 msgstr ""
238
239 #: templates/sidebar.php:21
240 msgid "Email support"
241 msgstr ""
242
243 #: templates/sidebar.php:25
244 msgid "Get up to <span>50% off</span> your first year!"
245 msgstr ""
246
247 #: templates/sidebar.php:29
248 msgid "Upgrade Now"
249 msgstr ""
250
251 #. Author URI of the plugin/theme
252 msgid "https://bettersearchreplace.com"
253 msgstr ""
254
255 #. Description of the plugin/theme
256 msgid "A small plugin for running a search/replace on your WordPress database."
257 msgstr ""
258
259 #. Author of the plugin/theme
260 msgid "Delicious Brains"
261 msgstr ""
...\ No newline at end of file ...\ No newline at end of file
1 <?php
2
3 /**
4 * Displays the main Better Search Replace page under Tools -> Better Search Replace.
5 *
6 * @link https://bettersearchreplace.com
7 * @since 1.0.0
8 *
9 * @package Better_Search_Replace
10 * @subpackage Better_Search_Replace/templates
11 */
12
13 // Prevent direct access.
14 if ( ! defined( 'BSR_PATH' ) ) exit;
15
16 // Determines which tab to display.
17 $active_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'bsr_search_replace';
18
19 switch( $active_tab ) {
20 case 'bsr_settings':
21 $action = 'action="' . get_admin_url() . 'options.php' . '"';
22 break;
23 case 'bsr_help':
24 $action = 'action="' . get_admin_url() . 'admin-post.php' . '"';
25 break;
26 default:
27 $action = '';
28 }
29
30 if ( 'bsr_settings' === $active_tab ) {
31 $action = get_admin_url() . 'options.php';
32 } else {
33 $action = get_admin_url() . 'admin-post.php';
34 }
35
36 ?>
37
38 <div class="wrap" style="display: grid;">
39
40 <div class="bsr-notice-container">
41 <h2 class="hidden"></h2>
42 </div>
43
44 <div class="header">
45
46 <div class="content">
47 <a href="?page=better-search-replace&tab=bsr_search_replace">
48 <img href="?page=better-search-replace&tab=bsr_search_replace" src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/logo-bsr.svg'; ?>" class="logo">
49 </a>
50 <a href="https://deliciousbrains.com/better-search-replace/upgrade/?utm_source=insideplugin&utm_medium=web&utm_content=header&utm_campaign=bsr-to-migrate
51 " target="_blank" class="upgrade-notice">
52 <img src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/icon-upgrade.svg'; ?>">
53 <?php _e( 'Upgrade now and get 50% off', 'better-search-replace' ); ?>
54 </a>
55 </div>
56
57 <?php settings_errors(); ?>
58
59 <?php BSR_Admin::render_result(); ?>
60
61 </div>
62
63 <div class="nav-tab-wrapper">
64 <ul>
65 <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>
66 <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>
67 <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>
68 </ul>
69 </div>
70
71 <form class="bsr-action-form" action="<?php echo $action; ?>" method="POST">
72
73 <?php
74 // Include the correct tab template.
75 $bsr_template = BSR_Templates_Helper::get_tab_template($active_tab);
76 include $bsr_template;
77 ?>
78
79 </form>
80
81 </div><!-- /.wrap -->
1 <?php
2 /**
3 * Displays the "System Info" tab.
4 *
5 * @link https://bettersearchreplace.com
6 * @since 1.1
7 *
8 * @package Better_Search_Replace
9 * @subpackage Better_Search_Replace/templates
10 */
11
12 // Prevent direct access.
13 if ( ! defined( 'BSR_PATH' ) ) exit;
14
15 $bsr_docs_url = 'https://bettersearchreplace.com/docs/';
16 $bsr_support_url = 'https://wordpress.org/support/plugin/better-search-replace';
17 ?>
18
19 <div class="ui-sidebar-wrapper">
20
21 <div class="inside">
22
23 <div class="panel">
24
25 <div class="panel-header">
26 <h3><?php _e( 'Help & Troubleshooting', 'better-search-replace' ); ?></h3>
27 </div>
28
29 <div class="panel-content">
30
31 <div>
32 <p>
33 <?php
34 printf(
35 __( 'Free support is available on the <a href="%s">plugin support forums</a>.', 'better-search-replace' ),
36 $bsr_support_url
37 )
38 ?>
39 </p>
40 <p>
41 <?php
42 printf(
43 __( '<a href="%s" style="font-weight:bold;" target="_blank">Upgrade</a> to gain access to premium features and priority email support.', 'better-search-replace' ),
44 'https://deliciousbrains.com/better-search-replace/upgrade/?utm_source=insideplugin&utm_medium=web&utm_content=help-tab&utm_campaign=bsr-to-migrate'
45 );
46 ?>
47 </p>
48 <p>
49 <?php
50 printf(
51 __( 'Found a bug or have a feature request? Please submit an issue on <a href="%s">GitHub</a>!', 'better-search-replace' ),
52 'https://github.com/deliciousbrains/better-search-replace'
53 );
54 ?>
55 </p>
56 </div>
57
58 <!--System Info-->
59 <div class="row">
60 <div class="input-text full-width">
61 <label><strong><?php _e( 'System Info', 'better-search-replace' ); ?></strong></label>
62 <textarea readonly="readonly" onclick="this.focus(); this.select()" name='bsr-sysinfo'><?php echo BSR_Compatibility::get_sysinfo(); ?></textarea>
63 </div>
64 </div>
65
66 <!--Submit Button-->
67 <div class="row">
68 <p class="submit">
69 <input type="hidden" name="action" value="bsr_download_sysinfo" />
70 <?php wp_nonce_field( 'bsr_download_sysinfo', 'bsr_sysinfo_nonce' ); ?>
71 <input type="submit" name="bsr-download-sysinfo" id="bsr-download-sysinfo" class="button button-secondary button-sm" value="Download System Info">
72 </p>
73 </div>
74
75 </div>
76 </div>
77 </div>
78
79 <?php
80 if ( file_exists( BSR_PATH . 'templates/sidebar.php' ) ) {
81 include_once BSR_PATH . 'templates/sidebar.php';
82 }
83 ?>
84
85 </div>
1 <?php
2 /**
3 * Displays the main "Search/Replace" tab.
4 *
5 * @link https://bettersearchreplace.com
6 * @since 1.1
7 *
8 * @package Better_Search_Replace
9 * @subpackage Better_Search_Replace/templates
10 */
11
12 // Prevent direct/unauthorized access.
13 if ( ! defined( 'BSR_PATH' ) ) exit;
14
15 ?>
16
17 <div id="bsr-search-replace-wrap" class="postbox">
18
19 <div class="ui-sidebar-wrapper">
20
21 <div class="inside">
22
23 <div id="bsr-search-replace-form" class="form-table">
24
25 <!--Hidden and to trigger the dry run notice placement-->
26 <h2 class="hidden">Dry Run Notice</h2>
27
28 <!--Search/Replace Panel-->
29 <div class="panel">
30
31 <div class="panel-header">
32 <h3><?php _e( 'Search/Replace', 'better-search-replace' ); ?></h3>
33 <a href="#" class="tooltip">
34 <img src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/icon-help.svg'; ?>">
35 </a>
36 <span class="helper-message left">
37 <?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' ); ?>
38 </span>
39 </div>
40
41 <div class="panel-content">
42
43 <!--Search/Replace Fields-->
44 <div class="row search-replace">
45 <div class="input-text full-width">
46 <label for="search_for"><strong><?php _e( 'Search for', 'better-search-replace' ); ?></strong></label>
47 <input id="search_for" class="regular-text" type="text" name="search_for" value="<?php BSR_Admin::prefill_value( 'search_for' ); ?>" />
48 </div>
49
50 <div class="input-text full-width">
51 <label for="replace_with"><strong><?php _e( 'Replace with', 'better-search-replace' ); ?></strong></label>
52 <input id="replace_with" class="regular-text" type="text" name="replace_with" value="<?php BSR_Admin::prefill_value( 'replace_with' ); ?>" />
53 </div>
54 </div>
55
56 <!--Tables-->
57 <div class="row">
58 <div class="col full-width tables">
59 <label for="select_tables"><strong><?php _e( 'Select tables', 'better-search-replace' ); ?></strong></label>
60 <?php BSR_Admin::load_tables(); ?>
61 <p class="description"><?php _e( 'Select multiple tables with Ctrl-Click for Windows or Cmd-Click for Mac.', 'better-search-replace' ); ?></p>
62 </div>
63 </div>
64
65 </div>
66 </div>
67
68
69 <!--Additional Settings Panel-->
70 <div class="panel">
71
72 <div class="panel-header">
73 <h3><?php _e( 'Additional Settings', 'better-search-replace' ); ?></h3>
74 </div>
75
76 <div class="panel-content settings additional-settings">
77
78 <!--Case Sensitive-->
79 <label for="case_insensitive" class="row">
80 <div class="col">
81 <input id="case_insensitive" type="checkbox" name="case_insensitive" <?php BSR_Admin::prefill_value( 'case_insensitive', 'checkbox' ); ?> />
82 </div>
83 <div class="col">
84 <label for="case_insensitive"><strong><?php _e( 'Case-Insensitive', 'better-search-replace' ); ?></strong></label>
85 <label for="case_insensitive"><span class="description"><?php _e( 'Searches are case-sensitive by default.', 'better-search-replace' ); ?></span></label>
86 </div>
87 </label>
88
89 <!--Replace GUIDs-->
90 <label for="replace_guids" class="row">
91 <div class="col">
92 <input id="replace_guids" type="checkbox" name="replace_guids" <?php BSR_Admin::prefill_value( 'replace_guids', 'checkbox' ); ?> />
93 </div>
94 <div class="col">
95 <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>
96 <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>
97 </div>
98 </label>
99
100 <!--Dry Run-->
101 <label for="dry_run" class="row">
102 <div class="col">
103 <input id="dry_run" type="checkbox" name="dry_run" checked />
104 </div>
105 <div class="col">
106 <label for="dry_run"><strong><?php _e( 'Run as dry run', 'better-search-replace' ); ?></strong></label></td>
107 <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>
108 </div>
109 </label>
110
111 </div>
112 </div>
113 <div id="bsr-error-wrap"></div>
114 <!--Submit Button-->
115 <div id="bsr-submit-wrap">
116 <?php wp_nonce_field( 'process_search_replace', 'bsr_nonce' ); ?>
117 <input type="hidden" name="action" value="bsr_process_search_replace" />
118 <button id="bsr-submit" type="submit" class="button button-primary button-lg"><?php _e( 'Run Search/Replace', 'better-search-replace' ); ?>
119 <img src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/icon-arrow.svg'; ?>">
120 </button>
121 </div>
122 </div>
123
124 </div><!-- /.inside -->
125
126 <?php
127 if ( file_exists( BSR_PATH . 'templates/sidebar.php' ) ) {
128 include_once BSR_PATH . 'templates/sidebar.php';
129 }
130 ?>
131
132 <!-- /.ui-sidebar-wrapper -->
133 </div>
134
135 </div><!-- /#bsr-search-replace-wrap -->
1 <?php
2 /**
3 * Displays the main "Settings" tab.
4 *
5 * @link https://bettersearchreplace.com
6 * @since 1.1
7 *
8 * @package Better_Search_Replace
9 * @subpackage Better_Search_Replace/templates
10 */
11
12 // Prevent direct/unauthorized access.
13 if ( ! defined( 'BSR_PATH' ) ) exit;
14
15 // Other settings.
16 $page_size = get_option( 'bsr_page_size' ) ? absint( get_option( 'bsr_page_size' ) ) : 20000;
17
18 ?>
19
20 <?php settings_fields( 'bsr_settings_fields' ); ?>
21
22 <div class="ui-sidebar-wrapper">
23
24 <div class="inside">
25
26 <!--Settings Panel-->
27 <div class="panel">
28
29 <div class="panel-header">
30 <h3><?php _e( 'Settings', 'better-search-replace' ); ?></h3>
31 </div>
32
33 <div class="panel-content settings">
34
35 <!--Max Page Size-->
36 <div class="row last-row">
37 <div class="input-text">
38 <div class="settings-header">
39 <label><strong><?php _e( 'Max Page Size', 'better-search-replace' ); ?></strong></label>
40 <span id="bsr-page-size-value"><?php echo absint( $page_size ); ?></span>
41 </div>
42 <input id="bsr_page_size" type="hidden" name="bsr_page_size" value="<?php echo $page_size; ?>" />
43 <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>
44 <div class="slider-wrapper">
45 <div id="bsr-page-size-slider" class="bsr-slider"></div>
46 </div>
47 </div>
48 </div>
49
50 <!--Submit Button-->
51 <div class="row panel-footer">
52 <?php submit_button(); ?>
53 </div>
54
55 </div>
56 </div>
57 </div>
58
59 <?php
60 if ( file_exists( BSR_PATH . 'templates/sidebar.php' ) ) {
61 include_once BSR_PATH . 'templates/sidebar.php';
62 }
63 ?>
64
65 </div>
1 <div class="upgrade-sidebar">
2 <img src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/mdb-birds.svg'; ?>">
3 <div class="content">
4 <h3><?php _e( 'Upgrade', 'better-search-replace' ); ?></h3>
5 <p><?php _e( 'Gain access to more database and migration features', 'better-search-replace' ); ?></p>
6
7 <ul>
8 <li>
9 <p><?php _e( 'Preview database changes before they are saved', 'better-search-replace' ); ?></p>
10 </li>
11 <li>
12 <p><?php _e( 'Use regular expressions for complex string replacements', 'better-search-replace' ); ?></p>
13 </li>
14 <li>
15 <p><?php _e( 'Migrate full sites including themes, plugins, media, and database', 'better-search-replace' ); ?></p>
16 </li>
17 <li>
18 <p><?php _e( 'Export and import WordPress databases', 'better-search-replace' ); ?></p>
19 </li>
20 <li>
21 <p><?php _e( 'Email support', 'better-search-replace' ); ?></p>
22 </li>
23 </ul>
24
25 <p class="upgrade-offer-text"><?php _e( 'Get up to <span>50% off</span> your first year!', 'better-search-replace' ); ?></p>
26
27 <div class="button-row">
28 <a href="https://deliciousbrains.com/better-search-replace/upgrade/?utm_source=insideplugin&utm_medium=web&utm_content=sidebar&utm_campaign=bsr-to-migrate
29 " class="button button-primary button-sm" target="_blank"><?php _e( 'Upgrade Now', 'better-search-replace' ); ?></a>
30 </div>
31 </div>
32 </div>
...\ No newline at end of file ...\ No newline at end of file