7310e480 by Jeff Balicki

Better Search Replace

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 36217e75
Showing 55 changed files with 4836 additions and 0 deletions
1 GNU GENERAL PUBLIC LICENSE
2 Version 3, 29 June 2007
3
4 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5 Everyone is permitted to copy and distribute verbatim copies
6 of this license document, but changing it is not allowed.
7
8 Preamble
9
10 The GNU General Public License is a free, copyleft license for
11 software and other kinds of works.
12
13 The licenses for most software and other practical works are designed
14 to take away your freedom to share and change the works. By contrast,
15 the GNU General Public License is intended to guarantee your freedom to
16 share and change all versions of a program--to make sure it remains free
17 software for all its users. We, the Free Software Foundation, use the
18 GNU General Public License for most of our software; it applies also to
19 any other work released this way by its authors. You can apply it to
20 your programs, too.
21
22 When we speak of free software, we are referring to freedom, not
23 price. Our General Public Licenses are designed to make sure that you
24 have the freedom to distribute copies of free software (and charge for
25 them if you wish), that you receive source code or can get it if you
26 want it, that you can change the software or use pieces of it in new
27 free programs, and that you know you can do these things.
28
29 To protect your rights, we need to prevent others from denying you
30 these rights or asking you to surrender the rights. Therefore, you have
31 certain responsibilities if you distribute copies of the software, or if
32 you modify it: responsibilities to respect the freedom of others.
33
34 For example, if you distribute copies of such a program, whether
35 gratis or for a fee, you must pass on to the recipients the same
36 freedoms that you received. You must make sure that they, too, receive
37 or can get the source code. And you must show them these terms so they
38 know their rights.
39
40 Developers that use the GNU GPL protect your rights with two steps:
41 (1) assert copyright on the software, and (2) offer you this License
42 giving you legal permission to copy, distribute and/or modify it.
43
44 For the developers' and authors' protection, the GPL clearly explains
45 that there is no warranty for this free software. For both users' and
46 authors' sake, the GPL requires that modified versions be marked as
47 changed, so that their problems will not be attributed erroneously to
48 authors of previous versions.
49
50 Some devices are designed to deny users access to install or run
51 modified versions of the software inside them, although the manufacturer
52 can do so. This is fundamentally incompatible with the aim of
53 protecting users' freedom to change the software. The systematic
54 pattern of such abuse occurs in the area of products for individuals to
55 use, which is precisely where it is most unacceptable. Therefore, we
56 have designed this version of the GPL to prohibit the practice for those
57 products. If such problems arise substantially in other domains, we
58 stand ready to extend this provision to those domains in future versions
59 of the GPL, as needed to protect the freedom of users.
60
61 Finally, every program is threatened constantly by software patents.
62 States should not allow patents to restrict development and use of
63 software on general-purpose computers, but in those that do, we wish to
64 avoid the special danger that patents applied to a free program could
65 make it effectively proprietary. To prevent this, the GPL assures that
66 patents cannot be used to render the program non-free.
67
68 The precise terms and conditions for copying, distribution and
69 modification follow.
70
71 TERMS AND CONDITIONS
72
73 0. Definitions.
74
75 "This License" refers to version 3 of the GNU General Public License.
76
77 "Copyright" also means copyright-like laws that apply to other kinds of
78 works, such as semiconductor masks.
79
80 "The Program" refers to any copyrightable work licensed under this
81 License. Each licensee is addressed as "you". "Licensees" and
82 "recipients" may be individuals or organizations.
83
84 To "modify" a work means to copy from or adapt all or part of the work
85 in a fashion requiring copyright permission, other than the making of an
86 exact copy. The resulting work is called a "modified version" of the
87 earlier work or a work "based on" the earlier work.
88
89 A "covered work" means either the unmodified Program or a work based
90 on the Program.
91
92 To "propagate" a work means to do anything with it that, without
93 permission, would make you directly or secondarily liable for
94 infringement under applicable copyright law, except executing it on a
95 computer or modifying a private copy. Propagation includes copying,
96 distribution (with or without modification), making available to the
97 public, and in some countries other activities as well.
98
99 To "convey" a work means any kind of propagation that enables other
100 parties to make or receive copies. Mere interaction with a user through
101 a computer network, with no transfer of a copy, is not conveying.
102
103 An interactive user interface displays "Appropriate Legal Notices"
104 to the extent that it includes a convenient and prominently visible
105 feature that (1) displays an appropriate copyright notice, and (2)
106 tells the user that there is no warranty for the work (except to the
107 extent that warranties are provided), that licensees may convey the
108 work under this License, and how to view a copy of this License. If
109 the interface presents a list of user commands or options, such as a
110 menu, a prominent item in the list meets this criterion.
111
112 1. Source Code.
113
114 The "source code" for a work means the preferred form of the work
115 for making modifications to it. "Object code" means any non-source
116 form of a work.
117
118 A "Standard Interface" means an interface that either is an official
119 standard defined by a recognized standards body, or, in the case of
120 interfaces specified for a particular programming language, one that
121 is widely used among developers working in that language.
122
123 The "System Libraries" of an executable work include anything, other
124 than the work as a whole, that (a) is included in the normal form of
125 packaging a Major Component, but which is not part of that Major
126 Component, and (b) serves only to enable use of the work with that
127 Major Component, or to implement a Standard Interface for which an
128 implementation is available to the public in source code form. A
129 "Major Component", in this context, means a major essential component
130 (kernel, window system, and so on) of the specific operating system
131 (if any) on which the executable work runs, or a compiler used to
132 produce the work, or an object code interpreter used to run it.
133
134 The "Corresponding Source" for a work in object code form means all
135 the source code needed to generate, install, and (for an executable
136 work) run the object code and to modify the work, including scripts to
137 control those activities. However, it does not include the work's
138 System Libraries, or general-purpose tools or generally available free
139 programs which are used unmodified in performing those activities but
140 which are not part of the work. For example, Corresponding Source
141 includes interface definition files associated with source files for
142 the work, and the source code for shared libraries and dynamically
143 linked subprograms that the work is specifically designed to require,
144 such as by intimate data communication or control flow between those
145 subprograms and other parts of the work.
146
147 The Corresponding Source need not include anything that users
148 can regenerate automatically from other parts of the Corresponding
149 Source.
150
151 The Corresponding Source for a work in source code form is that
152 same work.
153
154 2. Basic Permissions.
155
156 All rights granted under this License are granted for the term of
157 copyright on the Program, and are irrevocable provided the stated
158 conditions are met. This License explicitly affirms your unlimited
159 permission to run the unmodified Program. The output from running a
160 covered work is covered by this License only if the output, given its
161 content, constitutes a covered work. This License acknowledges your
162 rights of fair use or other equivalent, as provided by copyright law.
163
164 You may make, run and propagate covered works that you do not
165 convey, without conditions so long as your license otherwise remains
166 in force. You may convey covered works to others for the sole purpose
167 of having them make modifications exclusively for you, or provide you
168 with facilities for running those works, provided that you comply with
169 the terms of this License in conveying all material for which you do
170 not control copyright. Those thus making or running the covered works
171 for you must do so exclusively on your behalf, under your direction
172 and control, on terms that prohibit them from making any copies of
173 your copyrighted material outside their relationship with you.
174
175 Conveying under any other circumstances is permitted solely under
176 the conditions stated below. Sublicensing is not allowed; section 10
177 makes it unnecessary.
178
179 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
181 No covered work shall be deemed part of an effective technological
182 measure under any applicable law fulfilling obligations under article
183 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 similar laws prohibiting or restricting circumvention of such
185 measures.
186
187 When you convey a covered work, you waive any legal power to forbid
188 circumvention of technological measures to the extent such circumvention
189 is effected by exercising rights under this License with respect to
190 the covered work, and you disclaim any intention to limit operation or
191 modification of the work as a means of enforcing, against the work's
192 users, your or third parties' legal rights to forbid circumvention of
193 technological measures.
194
195 4. Conveying Verbatim Copies.
196
197 You may convey verbatim copies of the Program's source code as you
198 receive it, in any medium, provided that you conspicuously and
199 appropriately publish on each copy an appropriate copyright notice;
200 keep intact all notices stating that this License and any
201 non-permissive terms added in accord with section 7 apply to the code;
202 keep intact all notices of the absence of any warranty; and give all
203 recipients a copy of this License along with the Program.
204
205 You may charge any price or no price for each copy that you convey,
206 and you may offer support or warranty protection for a fee.
207
208 5. Conveying Modified Source Versions.
209
210 You may convey a work based on the Program, or the modifications to
211 produce it from the Program, in the form of source code under the
212 terms of section 4, provided that you also meet all of these conditions:
213
214 a) The work must carry prominent notices stating that you modified
215 it, and giving a relevant date.
216
217 b) The work must carry prominent notices stating that it is
218 released under this License and any conditions added under section
219 7. This requirement modifies the requirement in section 4 to
220 "keep intact all notices".
221
222 c) You must license the entire work, as a whole, under this
223 License to anyone who comes into possession of a copy. This
224 License will therefore apply, along with any applicable section 7
225 additional terms, to the whole of the work, and all its parts,
226 regardless of how they are packaged. This License gives no
227 permission to license the work in any other way, but it does not
228 invalidate such permission if you have separately received it.
229
230 d) If the work has interactive user interfaces, each must display
231 Appropriate Legal Notices; however, if the Program has interactive
232 interfaces that do not display Appropriate Legal Notices, your
233 work need not make them do so.
234
235 A compilation of a covered work with other separate and independent
236 works, which are not by their nature extensions of the covered work,
237 and which are not combined with it such as to form a larger program,
238 in or on a volume of a storage or distribution medium, is called an
239 "aggregate" if the compilation and its resulting copyright are not
240 used to limit the access or legal rights of the compilation's users
241 beyond what the individual works permit. Inclusion of a covered work
242 in an aggregate does not cause this License to apply to the other
243 parts of the aggregate.
244
245 6. Conveying Non-Source Forms.
246
247 You may convey a covered work in object code form under the terms
248 of sections 4 and 5, provided that you also convey the
249 machine-readable Corresponding Source under the terms of this License,
250 in one of these ways:
251
252 a) Convey the object code in, or embodied in, a physical product
253 (including a physical distribution medium), accompanied by the
254 Corresponding Source fixed on a durable physical medium
255 customarily used for software interchange.
256
257 b) Convey the object code in, or embodied in, a physical product
258 (including a physical distribution medium), accompanied by a
259 written offer, valid for at least three years and valid for as
260 long as you offer spare parts or customer support for that product
261 model, to give anyone who possesses the object code either (1) a
262 copy of the Corresponding Source for all the software in the
263 product that is covered by this License, on a durable physical
264 medium customarily used for software interchange, for a price no
265 more than your reasonable cost of physically performing this
266 conveying of source, or (2) access to copy the
267 Corresponding Source from a network server at no charge.
268
269 c) Convey individual copies of the object code with a copy of the
270 written offer to provide the Corresponding Source. This
271 alternative is allowed only occasionally and noncommercially, and
272 only if you received the object code with such an offer, in accord
273 with subsection 6b.
274
275 d) Convey the object code by offering access from a designated
276 place (gratis or for a charge), and offer equivalent access to the
277 Corresponding Source in the same way through the same place at no
278 further charge. You need not require recipients to copy the
279 Corresponding Source along with the object code. If the place to
280 copy the object code is a network server, the Corresponding Source
281 may be on a different server (operated by you or a third party)
282 that supports equivalent copying facilities, provided you maintain
283 clear directions next to the object code saying where to find the
284 Corresponding Source. Regardless of what server hosts the
285 Corresponding Source, you remain obligated to ensure that it is
286 available for as long as needed to satisfy these requirements.
287
288 e) Convey the object code using peer-to-peer transmission, provided
289 you inform other peers where the object code and Corresponding
290 Source of the work are being offered to the general public at no
291 charge under subsection 6d.
292
293 A separable portion of the object code, whose source code is excluded
294 from the Corresponding Source as a System Library, need not be
295 included in conveying the object code work.
296
297 A "User Product" is either (1) a "consumer product", which means any
298 tangible personal property which is normally used for personal, family,
299 or household purposes, or (2) anything designed or sold for incorporation
300 into a dwelling. In determining whether a product is a consumer product,
301 doubtful cases shall be resolved in favor of coverage. For a particular
302 product received by a particular user, "normally used" refers to a
303 typical or common use of that class of product, regardless of the status
304 of the particular user or of the way in which the particular user
305 actually uses, or expects or is expected to use, the product. A product
306 is a consumer product regardless of whether the product has substantial
307 commercial, industrial or non-consumer uses, unless such uses represent
308 the only significant mode of use of the product.
309
310 "Installation Information" for a User Product means any methods,
311 procedures, authorization keys, or other information required to install
312 and execute modified versions of a covered work in that User Product from
313 a modified version of its Corresponding Source. The information must
314 suffice to ensure that the continued functioning of the modified object
315 code is in no case prevented or interfered with solely because
316 modification has been made.
317
318 If you convey an object code work under this section in, or with, or
319 specifically for use in, a User Product, and the conveying occurs as
320 part of a transaction in which the right of possession and use of the
321 User Product is transferred to the recipient in perpetuity or for a
322 fixed term (regardless of how the transaction is characterized), the
323 Corresponding Source conveyed under this section must be accompanied
324 by the Installation Information. But this requirement does not apply
325 if neither you nor any third party retains the ability to install
326 modified object code on the User Product (for example, the work has
327 been installed in ROM).
328
329 The requirement to provide Installation Information does not include a
330 requirement to continue to provide support service, warranty, or updates
331 for a work that has been modified or installed by the recipient, or for
332 the User Product in which it has been modified or installed. Access to a
333 network may be denied when the modification itself materially and
334 adversely affects the operation of the network or violates the rules and
335 protocols for communication across the network.
336
337 Corresponding Source conveyed, and Installation Information provided,
338 in accord with this section must be in a format that is publicly
339 documented (and with an implementation available to the public in
340 source code form), and must require no special password or key for
341 unpacking, reading or copying.
342
343 7. Additional Terms.
344
345 "Additional permissions" are terms that supplement the terms of this
346 License by making exceptions from one or more of its conditions.
347 Additional permissions that are applicable to the entire Program shall
348 be treated as though they were included in this License, to the extent
349 that they are valid under applicable law. If additional permissions
350 apply only to part of the Program, that part may be used separately
351 under those permissions, but the entire Program remains governed by
352 this License without regard to the additional permissions.
353
354 When you convey a copy of a covered work, you may at your option
355 remove any additional permissions from that copy, or from any part of
356 it. (Additional permissions may be written to require their own
357 removal in certain cases when you modify the work.) You may place
358 additional permissions on material, added by you to a covered work,
359 for which you have or can give appropriate copyright permission.
360
361 Notwithstanding any other provision of this License, for material you
362 add to a covered work, you may (if authorized by the copyright holders of
363 that material) supplement the terms of this License with terms:
364
365 a) Disclaiming warranty or limiting liability differently from the
366 terms of sections 15 and 16 of this License; or
367
368 b) Requiring preservation of specified reasonable legal notices or
369 author attributions in that material or in the Appropriate Legal
370 Notices displayed by works containing it; or
371
372 c) Prohibiting misrepresentation of the origin of that material, or
373 requiring that modified versions of such material be marked in
374 reasonable ways as different from the original version; or
375
376 d) Limiting the use for publicity purposes of names of licensors or
377 authors of the material; or
378
379 e) Declining to grant rights under trademark law for use of some
380 trade names, trademarks, or service marks; or
381
382 f) Requiring indemnification of licensors and authors of that
383 material by anyone who conveys the material (or modified versions of
384 it) with contractual assumptions of liability to the recipient, for
385 any liability that these contractual assumptions directly impose on
386 those licensors and authors.
387
388 All other non-permissive additional terms are considered "further
389 restrictions" within the meaning of section 10. If the Program as you
390 received it, or any part of it, contains a notice stating that it is
391 governed by this License along with a term that is a further
392 restriction, you may remove that term. If a license document contains
393 a further restriction but permits relicensing or conveying under this
394 License, you may add to a covered work material governed by the terms
395 of that license document, provided that the further restriction does
396 not survive such relicensing or conveying.
397
398 If you add terms to a covered work in accord with this section, you
399 must place, in the relevant source files, a statement of the
400 additional terms that apply to those files, or a notice indicating
401 where to find the applicable terms.
402
403 Additional terms, permissive or non-permissive, may be stated in the
404 form of a separately written license, or stated as exceptions;
405 the above requirements apply either way.
406
407 8. Termination.
408
409 You may not propagate or modify a covered work except as expressly
410 provided under this License. Any attempt otherwise to propagate or
411 modify it is void, and will automatically terminate your rights under
412 this License (including any patent licenses granted under the third
413 paragraph of section 11).
414
415 However, if you cease all violation of this License, then your
416 license from a particular copyright holder is reinstated (a)
417 provisionally, unless and until the copyright holder explicitly and
418 finally terminates your license, and (b) permanently, if the copyright
419 holder fails to notify you of the violation by some reasonable means
420 prior to 60 days after the cessation.
421
422 Moreover, your license from a particular copyright holder is
423 reinstated permanently if the copyright holder notifies you of the
424 violation by some reasonable means, this is the first time you have
425 received notice of violation of this License (for any work) from that
426 copyright holder, and you cure the violation prior to 30 days after
427 your receipt of the notice.
428
429 Termination of your rights under this section does not terminate the
430 licenses of parties who have received copies or rights from you under
431 this License. If your rights have been terminated and not permanently
432 reinstated, you do not qualify to receive new licenses for the same
433 material under section 10.
434
435 9. Acceptance Not Required for Having Copies.
436
437 You are not required to accept this License in order to receive or
438 run a copy of the Program. Ancillary propagation of a covered work
439 occurring solely as a consequence of using peer-to-peer transmission
440 to receive a copy likewise does not require acceptance. However,
441 nothing other than this License grants you permission to propagate or
442 modify any covered work. These actions infringe copyright if you do
443 not accept this License. Therefore, by modifying or propagating a
444 covered work, you indicate your acceptance of this License to do so.
445
446 10. Automatic Licensing of Downstream Recipients.
447
448 Each time you convey a covered work, the recipient automatically
449 receives a license from the original licensors, to run, modify and
450 propagate that work, subject to this License. You are not responsible
451 for enforcing compliance by third parties with this License.
452
453 An "entity transaction" is a transaction transferring control of an
454 organization, or substantially all assets of one, or subdividing an
455 organization, or merging organizations. If propagation of a covered
456 work results from an entity transaction, each party to that
457 transaction who receives a copy of the work also receives whatever
458 licenses to the work the party's predecessor in interest had or could
459 give under the previous paragraph, plus a right to possession of the
460 Corresponding Source of the work from the predecessor in interest, if
461 the predecessor has it or can get it with reasonable efforts.
462
463 You may not impose any further restrictions on the exercise of the
464 rights granted or affirmed under this License. For example, you may
465 not impose a license fee, royalty, or other charge for exercise of
466 rights granted under this License, and you may not initiate litigation
467 (including a cross-claim or counterclaim in a lawsuit) alleging that
468 any patent claim is infringed by making, using, selling, offering for
469 sale, or importing the Program or any portion of it.
470
471 11. Patents.
472
473 A "contributor" is a copyright holder who authorizes use under this
474 License of the Program or a work on which the Program is based. The
475 work thus licensed is called the contributor's "contributor version".
476
477 A contributor's "essential patent claims" are all patent claims
478 owned or controlled by the contributor, whether already acquired or
479 hereafter acquired, that would be infringed by some manner, permitted
480 by this License, of making, using, or selling its contributor version,
481 but do not include claims that would be infringed only as a
482 consequence of further modification of the contributor version. For
483 purposes of this definition, "control" includes the right to grant
484 patent sublicenses in a manner consistent with the requirements of
485 this License.
486
487 Each contributor grants you a non-exclusive, worldwide, royalty-free
488 patent license under the contributor's essential patent claims, to
489 make, use, sell, offer for sale, import and otherwise run, modify and
490 propagate the contents of its contributor version.
491
492 In the following three paragraphs, a "patent license" is any express
493 agreement or commitment, however denominated, not to enforce a patent
494 (such as an express permission to practice a patent or covenant not to
495 sue for patent infringement). To "grant" such a patent license to a
496 party means to make such an agreement or commitment not to enforce a
497 patent against the party.
498
499 If you convey a covered work, knowingly relying on a patent license,
500 and the Corresponding Source of the work is not available for anyone
501 to copy, free of charge and under the terms of this License, through a
502 publicly available network server or other readily accessible means,
503 then you must either (1) cause the Corresponding Source to be so
504 available, or (2) arrange to deprive yourself of the benefit of the
505 patent license for this particular work, or (3) arrange, in a manner
506 consistent with the requirements of this License, to extend the patent
507 license to downstream recipients. "Knowingly relying" means you have
508 actual knowledge that, but for the patent license, your conveying the
509 covered work in a country, or your recipient's use of the covered work
510 in a country, would infringe one or more identifiable patents in that
511 country that you have reason to believe are valid.
512
513 If, pursuant to or in connection with a single transaction or
514 arrangement, you convey, or propagate by procuring conveyance of, a
515 covered work, and grant a patent license to some of the parties
516 receiving the covered work authorizing them to use, propagate, modify
517 or convey a specific copy of the covered work, then the patent license
518 you grant is automatically extended to all recipients of the covered
519 work and works based on it.
520
521 A patent license is "discriminatory" if it does not include within
522 the scope of its coverage, prohibits the exercise of, or is
523 conditioned on the non-exercise of one or more of the rights that are
524 specifically granted under this License. You may not convey a covered
525 work if you are a party to an arrangement with a third party that is
526 in the business of distributing software, under which you make payment
527 to the third party based on the extent of your activity of conveying
528 the work, and under which the third party grants, to any of the
529 parties who would receive the covered work from you, a discriminatory
530 patent license (a) in connection with copies of the covered work
531 conveyed by you (or copies made from those copies), or (b) primarily
532 for and in connection with specific products or compilations that
533 contain the covered work, unless you entered into that arrangement,
534 or that patent license was granted, prior to 28 March 2007.
535
536 Nothing in this License shall be construed as excluding or limiting
537 any implied license or other defenses to infringement that may
538 otherwise be available to you under applicable patent law.
539
540 12. No Surrender of Others' Freedom.
541
542 If conditions are imposed on you (whether by court order, agreement or
543 otherwise) that contradict the conditions of this License, they do not
544 excuse you from the conditions of this License. If you cannot convey a
545 covered work so as to satisfy simultaneously your obligations under this
546 License and any other pertinent obligations, then as a consequence you may
547 not convey it at all. For example, if you agree to terms that obligate you
548 to collect a royalty for further conveying from those to whom you convey
549 the Program, the only way you could satisfy both those terms and this
550 License would be to refrain entirely from conveying the Program.
551
552 13. Use with the GNU Affero General Public License.
553
554 Notwithstanding any other provision of this License, you have
555 permission to link or combine any covered work with a work licensed
556 under version 3 of the GNU Affero General Public License into a single
557 combined work, and to convey the resulting work. The terms of this
558 License will continue to apply to the part which is the covered work,
559 but the special requirements of the GNU Affero General Public License,
560 section 13, concerning interaction through a network will apply to the
561 combination as such.
562
563 14. Revised Versions of this License.
564
565 The Free Software Foundation may publish revised and/or new versions of
566 the GNU General Public License from time to time. Such new versions will
567 be similar in spirit to the present version, but may differ in detail to
568 address new problems or concerns.
569
570 Each version is given a distinguishing version number. If the
571 Program specifies that a certain numbered version of the GNU General
572 Public License "or any later version" applies to it, you have the
573 option of following the terms and conditions either of that numbered
574 version or of any later version published by the Free Software
575 Foundation. If the Program does not specify a version number of the
576 GNU General Public License, you may choose any version ever published
577 by the Free Software Foundation.
578
579 If the Program specifies that a proxy can decide which future
580 versions of the GNU General Public License can be used, that proxy's
581 public statement of acceptance of a version permanently authorizes you
582 to choose that version for the Program.
583
584 Later license versions may give you additional or different
585 permissions. However, no additional obligations are imposed on any
586 author or copyright holder as a result of your choosing to follow a
587 later version.
588
589 15. Disclaimer of Warranty.
590
591 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
600 16. Limitation of Liability.
601
602 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 SUCH DAMAGES.
611
612 17. Interpretation of Sections 15 and 16.
613
614 If the disclaimer of warranty and limitation of liability provided
615 above cannot be given local legal effect according to their terms,
616 reviewing courts shall apply local law that most closely approximates
617 an absolute waiver of all civil liability in connection with the
618 Program, unless a warranty or assumption of liability accompanies a
619 copy of the Program in return for a fee.
620
621 END OF TERMS AND CONDITIONS
622
623 How to Apply These Terms to Your New Programs
624
625 If you develop a new program, and you want it to be of the greatest
626 possible use to the public, the best way to achieve this is to make it
627 free software which everyone can redistribute and change under these terms.
628
629 To do so, attach the following notices to the program. It is safest
630 to attach them to the start of each source file to most effectively
631 state the exclusion of warranty; and each file should have at least
632 the "copyright" line and a pointer to where the full notice is found.
633
634 <one line to give the program's name and a brief idea of what it does.>
635 Copyright (C) <year> <name of author>
636
637 This program is free software: you can redistribute it and/or modify
638 it under the terms of the GNU General Public License as published by
639 the Free Software Foundation, either version 3 of the License, or
640 (at your option) any later version.
641
642 This program is distributed in the hope that it will be useful,
643 but WITHOUT ANY WARRANTY; without even the implied warranty of
644 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 GNU General Public License for more details.
646
647 You should have received a copy of the GNU General Public License
648 along with this program. If not, see <http://www.gnu.org/licenses/>.
649
650 Also add information on how to contact you by electronic and paper mail.
651
652 If the program does terminal interaction, make it output a short
653 notice like this when it starts in an interactive mode:
654
655 <program> Copyright (C) <year> <name of author>
656 This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 This is free software, and you are welcome to redistribute it
658 under certain conditions; type `show c' for details.
659
660 The hypothetical commands `show w' and `show c' should show the appropriate
661 parts of the General Public License. Of course, your program's commands
662 might be different; for a GUI interface, you would use an "about box".
663
664 You should also get your employer (if you work as a programmer) or school,
665 if any, to sign a "copyright disclaimer" for the program, if necessary.
666 For more information on this, and how to apply and follow the GNU GPL, see
667 <http://www.gnu.org/licenses/>.
668
669 The GNU General Public License does not permit incorporating your program
670 into proprietary programs. If your program is a subroutine library, you
671 may consider it more useful to permit linking proprietary applications with
672 the library. If this is what you want to do, use the GNU Lesser General
673 Public License instead of this License. But first, please read
674 <http://www.gnu.org/philosophy/why-not-lgpl.html>.
...\ No newline at end of file ...\ No newline at end of file
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 /*OLD STYLING----------------------------*/
2
3 #bsr-results-table th { font-weight: bold; }
4 #bsr-results-table tbody tr:nth-child(odd) { background-color: #F9F9F9; }
5 .bsr-second, .bsr-third, .bsr-fourth { text-align: center !important; }
6 #bsr-details-view-wrap { margin: 0 10px; }
7 #bsr-details-view { table-layout: fixed; padding-top: 40px; }
8 .bsr-old-val { background-color: #fdd; }
9 .bsr-new-val { background-color: #cfc; }
10 .bsr-change { width: 400px !important; }
11 .bsr-slider { width: 23em; }
12 .bsr-progress-wrap { width: 95%; height: 12px; background-color: #ddd; }
13 .bsr-progress { width: 0%; height: 100%; background-color: #0073aa; }
14 #bsr-search-replace-wrap {/* margin-top: 10px; */}
15 .bsr-description { display: block; margin-top: 6px !important; color: #444 !important; }
16 #bsr-help-heading { font-size: 1.3em !important; padding: 0 !important; }
17 .bsr-processing-wrap { background: #f4f4f4; padding: 16px 16px 32px; overflow: auto; border-top: 1px solid #eae9e9; margin: 20px -12px -23px -12px; }
18 .bsr-spinner { margin: -3px 0 0 0; }
19 .bsr-license-status { float: left; margin-right: 15px; height: 28px; font-size: 13px; line-height: 26px; color: var(--color-white); text-align: center; padding: 0 10px; border-radius: 4px; }
20 #bsr-license-active { background: green; }
21 #bsr-license-inactive { background: gray; }
22 .bsr-no-profiles { vertical-align: middle; }
23 #bsr-back-to-overview { width: 100%; position: fixed; margin-top: 0; background: #f8f8f8; border-bottom: 1px solid #ddd; padding: 8px 10px; }
24 #bsr-table-select { width:25em; height: 180px; }
25
26
27 /*CSS VARIABLES----------------------------*/
28 :root {
29 /*colors*/
30 --color-primary: #0073AA;
31 --color-accent: #27CC87;
32 --color-white: #fff;
33 --color-black: 000;
34 --color-header: #383A46;
35 --color-nav: #262932;
36 --color-body-text: #3C3B59;
37 --color-desc-text: #6E6D99;
38 --color-panel-heading: #708AA4;
39 --color-secondary-hover: rgba(0, 115, 170, .15);
40 --color-secondary-focus: rgba(0, 115, 170, .4);
41 --color-divider: #CAD8EC;
42 --color-divider-light: rgba(202, 216, 236, .5);
43 --color-progress-bg: #57645E;
44 --color-modal-background: rgba(47, 58, 74, .8);
45
46 /*spacers*/
47 --spacer-xs: 8px;
48 --spacer-sm: 16px;
49 --spacer-md: 24px;
50 --spacer-lg: 32px;
51 --spacer-xl: 40px;
52 --spacer-2xl: 48px;
53 --spacer-3xl: 56px;
54 --spacer-4xl: 64px;
55 --spacer-5xl: 72px;
56 --spacer-6xl: 80px;
57
58 /*layout*/
59 --panel-border-radius: 6px;
60
61 /*shadows*/
62 --panel-shadow: 0px 2px 1px rgba(39, 45, 77, 0.05), 0px 2px 8px rgba(187, 187, 187, 0.20);
63 --input-shadow: 0px 2px 2px rgba(182, 181, 204, 0.25);
64 }
65
66
67 /*WP OVERRIDES & WRAPPER STYLING----------------------------*/
68
69 .wrap {
70 margin: 0;
71 padding: 0;
72 overflow-x: auto!important;
73 }
74
75 #wpcontent {
76 padding: 0!important;
77 }
78
79 #wpbody-content {
80 background: var(--color-header);
81 padding-bottom: 0!important;
82 margin: 0 !important;
83 float: none;
84 }
85
86 .form-table {
87 margin-top: 0;
88 }
89
90 .wp-core-ui select {
91 background: #fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 12px top 55%;
92 background-size: 18px 18px;
93 }
94
95 .metabox-holder {
96 padding: 0!important;
97 }
98
99
100 /*MODAL OVERRIDES----------------------------*/
101
102 #TB_overlay {
103 background: var(--color-modal-background)!important;
104 }
105
106 #TB_window {
107 background: var(--color-white);
108 box-shadow: var(--panel-shadow);
109 border-radius: var(--panel-border-radius);
110 overflow: hidden;
111 }
112
113 #TB_title {
114 display: flex;
115 align-items: center;
116 padding: 0 var(--spacer-lg);
117 height: var(--spacer-3xl)!important;
118 font-weight: 500!important;
119 }
120
121 #TB_ajaxWindowTitle {
122 font-weight: 500;
123 font-size: 14px;
124 letter-spacing: 0.6px;
125 text-transform: uppercase;
126 color: var(--color-panel-heading);
127 line-height: 1;
128 padding:0!important;
129 }
130
131 .tb-close-icon {
132 color: var(--color-panel-heading)!important;
133 top: -14px!important;
134 right: 12px!important;
135 }
136
137 #bsr-results-table {
138 border-radius: var(--panel-border-radius)!important;
139 }
140
141 #bsr-results-table th {
142 line-height: 2rem!important;
143 }
144
145 #bsr-results-table tbody tr:last-child td:first-of-type {
146 border-bottom-left-radius: var(--panel-border-radius);
147 }
148
149 #bsr-results-table tbody tr:last-child td:last-of-type {
150 border-bottom-right-radius: var(--panel-border-radius);
151 }
152
153 #bsr-results-table th {
154 color: var(--color-header)!important;
155 }
156
157 #bsr-results-table td .tooltip {
158 font-weight: bold;
159 cursor: pointer;
160 text-decoration: underline;
161 }
162
163 #bsr-results-table td .helper-message {
164 max-width: 220px;
165 }
166
167 #bsr-results-table td .helper-message a {
168 font-weight: bold;
169 }
170
171 #bsr-back-to-overview {
172 padding: 16px!important;
173 }
174
175 #bsr-details-view {
176 padding-top:48px;
177 }
178
179 .bsr-change {
180 border-bottom: 1px solid var(--color-divider);
181 padding-bottom: 16px!important;
182 }
183
184 .widefat td {
185 padding: var(--spacer-sm);
186 }
187
188 .bsr-row-desc td {
189 line-height: 2rem!important;
190 padding-bottom: 0;
191 font-size: 14px;
192 }
193
194
195 /*LAYOUT STYLING----------------------------*/
196
197 .row {
198 display: flex;
199 column-gap: var(--spacer-lg);
200 }
201
202 .col {
203 display: flex;
204 flex-direction: column;
205 justify-content: center;
206 }
207
208 .hidden {
209 display: none;
210 }
211
212 .full-width {
213 width: 100%;
214 }
215
216 .row p {
217 margin: 0;
218 }
219
220
221 /*HEADER STYLING----------------------------*/
222
223
224 .header {
225 background: var(--color-header);
226 display:flex;
227 height: 96px;
228 padding: 0 var(--spacer-lg);
229 }
230
231 .header a {
232 display: flex;
233 }
234
235 .logo {
236 width: 72px;
237 }
238
239 .header .content {
240 display: flex;
241 justify-content: space-between;
242 align-items: center;
243 max-width: 1280px;
244 width: 100%;
245 }
246
247 .upgrade-notice {
248 color: var(--color-accent);
249 cursor: pointer;
250 line-height: 1.3;
251 font-size: 13.5px;
252 font-weight: 500;
253 }
254
255 .upgrade-notice:hover {
256 text-decoration: underline;
257 color: var(--color-accent);
258 }
259
260 .upgrade-notice img {
261 width: 16px;
262 height: 16px;
263 margin-right: var(--spacer-xs);
264 }
265
266 .update-nag, notice-warning-inline {
267 margin: var(--spacer-md) var(--spacer-lg) 0 var(--spacer-lg);
268 }
269
270 .bsr-notice-container {
271 padding: var(--spacer-sm) var(--spacer-lg) 0 var(--spacer-lg);
272 max-width: 900px;
273 }
274
275 #setting-error-settings_updated,
276 .bsr-updated {
277 display: none;
278 }
279
280 /*NAV STYLING----------------------------*/
281
282 .nav-tab-wrapper {
283 font-size: 23px;
284 height: var(--spacer-3xl);
285 background: var(--color-nav);
286 display: flex;
287 padding: 0;
288 align-items: center;
289 margin: 0;
290 }
291
292 .nav-tab {
293 color: var(--color-white);
294 opacity: .5;
295 border-top: 4px solid transparent !important;
296 border-bottom: 4px solid transparent !important;
297 }
298
299 .nav-tab:hover {
300 opacity: 1;
301 background: none;
302 color: var(--color-white);
303 }
304
305 .nav-tab:focus {
306 background: none;
307 color: var(--color-white);
308 opacity: inherit;
309 }
310
311 .nav-tab-active {
312 color: var(--color-white)! important;
313 opacity: 1!important;
314 border-bottom: 4px solid var(--color-accent) !important;
315 }
316
317 .nav-tab-wrapper ul {
318 padding: 0 var(--spacer-lg);
319 display: flex;
320 column-gap: var(--spacer-lg);
321 height: 100%;
322 margin: 0;
323 }
324
325 .nav-tab-wrapper li {
326 margin: 0;
327 padding: 0;
328 }
329
330 .nav-tab-wrapper a {
331 margin: 0;
332 background: none;
333 border: none;
334 padding: 0;
335 font-weight: 500 !important;
336 align-items: center;
337 display: inline-flex;
338 height: 100%;
339 box-sizing: border-box;
340 }
341
342
343 /*BUTTON STYLING----------------------------*/
344
345 .button {
346 font-size: 15px !important;
347 letter-spacing: 0.4px !important;
348 border-radius: var(--panel-border-radius) !important;
349 font-weight: 500 !important;
350 display: inline-flex !important;
351 align-items: center !important;
352 padding: 0 var(--spacer-md) !important;
353 column-gap: 8px;
354 margin: 0!important;
355 }
356
357 .button-lg {
358 height: var(--spacer-3xl) !important;
359 }
360
361 .button-md {
362 height: var(--spacer-2xl) !important;
363 }
364
365 .button-sm {
366 height: var(--spacer-xl) !important;
367 padding: 0 var(--spacer-sm) !important;
368 font-size: 14px !important;
369 border-radius: 4px!important;
370 }
371
372 .button-primary {
373 color: var(--color-white) !important;
374 background: var(--color-primary) !important;
375 border: 1px solid !important;
376 }
377
378 .button-secondary {
379 color: var(--color-primary) !important;
380 background: transparent !important;
381 border: 1px solid var(--color-primary) !important;
382 }
383
384 .button-primary:hover {
385 filter: brightness(0.95) !important;
386 }
387
388 .button-primary:active {
389 filter: brightness(0.92) !important;
390 }
391
392 .button-primary:focus {
393 outline: none !important;
394 box-shadow: 0 0 0 4px var(--color-secondary-focus) !important;
395 }
396
397 .button-secondary:hover {
398 background: var(--color-secondary-hover) !important;
399 }
400
401 .button-active:active {
402 outline: none !important;
403 box-shadow: 0 0 0 4px var(--color-secondary-focus) !important;
404 }
405
406 .button-secondary:focus {
407 outline: none !important;
408 box-shadow: 0 0 0 4px var(--color-secondary-focus) !important;
409 }
410
411 .button-link {
412 color: #2271b1;
413 }
414
415 .button svg {
416 width: 16px;
417 }
418
419 #bsr-submit.bsr-disabled, #bsr-submit.button-disabled, #bsr-backup-submit.bsr-disabled, #bsr-backup-submit.button-disabled, #bsr-import-submit.bsr-disabled, #bsr-import-submit.button-disabled {
420 background: var(--color-primary)!important;
421 color: var(--color-white) !important;
422 opacity: .4;
423 }
424
425
426 /*PLUGIN UI----------------------------*/
427
428 .bsr-action-form {
429 margin: 0!important;
430 border: 0!important;
431 background-color: rgb(240, 240, 241);
432 box-shadow: none;
433 padding: var(--spacer-2xl) var(--spacer-lg);
434 padding-bottom: 120px;
435 }
436
437 .ui-sidebar-wrapper {
438 max-width: 1280px;
439 display: flex;
440 flex-direction: row;
441 column-gap: 48px;
442 }
443
444 #bsr-search-replace-wrap {
445 background: transparent;
446 border: 0;
447 padding: 0;
448 box-shadow: none;
449 }
450
451 #bsr-search-replace-form {
452 display: flex;
453 flex-direction: column;
454 row-gap: var(--spacer-lg);
455 }
456
457 #bsr-search-replace-form .updated {
458 margin-top: 0;
459 margin-bottom: 0;
460 display: block !important;
461 }
462
463 .inside {
464 margin: 0!important;
465 padding: 0!important;
466 width: 100%;
467 min-width: 640px;
468 display: flex;
469 flex-direction: column;
470 row-gap: var(--spacer-lg);
471 }
472
473 .panel {
474 background: var(--color-white);
475 box-shadow: var(--panel-shadow);
476 border-radius: var(--panel-border-radius);
477 }
478
479 .panel-header {
480 height: 56px;
481 padding: 0 var(--spacer-lg) !important;
482 border-bottom: 1px solid var( --color-divider);
483 display: flex;
484 align-items: center;
485 justify-content: space-between;
486 }
487
488 .panel-header a {
489 display: inline-flex;
490 }
491
492 .panel-header h3 {
493 font-weight: 500;
494 font-size: 14px;
495 letter-spacing: 0.6px;
496 text-transform: uppercase;
497 color: var(--color-panel-heading);
498 line-height: 1;
499 padding: 0!important;
500 }
501
502 .panel-footer {
503 padding: var(--spacer-md) var(--spacer-lg);
504 border-top: 1px solid var( --color-divider);
505 }
506
507 #bsr-error-wrap {
508 display: none;
509 }
510
511 #bsr-error-wrap .error {
512 margin: 0;
513 }
514
515 .bsr-processing-wrap {
516 background: var(--color-white);
517 box-shadow: var(--panel-shadow);
518 border-radius: var(--panel-border-radius);
519 margin: 0;
520 padding: var(--spacer-lg);
521 }
522
523 .bsr-progress {
524 height: var(--spacer-xs);
525 border-radius: 20px;
526 background: var(--color-accent);
527 }
528
529 .bsr-progress-wrap {
530 height: var(--spacer-xs);
531 }
532
533 .panel-content {
534 padding: var(--spacer-lg);
535 display: flex;
536 flex-direction: column;
537 row-gap: var(--spacer-lg);
538 }
539
540 .settings {
541 padding: 0!important;
542 row-gap: 0;
543 }
544
545 .settings .row {
546 padding: var(--spacer-lg) !important;
547 border-bottom: 1px solid var(--color-divider-light);
548 }
549
550 .last-row {
551 border: none!important;
552 }
553
554 .additional-settings .row {
555 padding: var(--spacer-sm) var(--spacer-lg) !important;
556 }
557
558 .settings .row .col {
559 row-gap: 4px;
560 }
561
562 .settings-header {
563 display: inline-flex;
564 column-gap: var(--spacer-xs);
565 }
566
567 .settings-header span {
568 font-size: 14px;
569 font-weight: 600;
570 color: var(--color-panel-heading);
571 }
572
573 .slider-wrapper {
574 padding: var(--spacer-xs) 0 0 0;
575 }
576
577 .bsr-slider {
578 border: none!important;
579 background: var(--color-divider)!important;
580 }
581
582 .ui-widget-header {
583 background: var(--color-accent)!important;
584 }
585
586 .ui-slider-handle {
587 top: -6px!important;
588 cursor: pointer!important;
589 box-shadow: var(--input-shadow);
590 }
591
592 .ui-state-hover, .ui-state-focus {
593 border-color: var(--color-panel-heading)!important;
594 background: var(--color-white)!important;
595 }
596
597 .tables {
598 row-gap: var(--spacer-xs);
599 }
600
601 .import-file {
602 border-radius: var(--panel-border-radius);
603 padding: var(--spacer-sm);
604 border: 1px solid var( --color-divider);
605 }
606
607 .checkbox {
608 justify-content: center;
609 }
610
611 label.replace_guids {
612 column-gap: var(--spacer-xs);
613 align-items: center;
614 display: flex;
615 }
616
617 label.replace_guids a {
618 display: inline-flex;
619 }
620
621 label.replace_guids img {
622 width: 16px;
623 margin-top: -2px;
624 }
625
626 #search_for, #replace_with {
627 width: 100%;
628 display: inline-flex;
629 align-content: center;
630 line-height: 1;
631 }
632
633 #profile-name {
634 padding-left: 80px!important;
635 }
636
637 .regular-text {
638 background: var(--color-white)!important;
639 border: 1px solid var(--color-divider)!important;
640 box-shadow: var(--input-shadow)!important;
641 border-radius: var(--panel-border-radius);
642 height: var(--spacer-xl);
643 }
644
645 #bsr-table-select {
646 width: 100% !important;
647 max-width: 100%;
648 height: 200px;
649 max-height: 200px;
650 padding: var(--spacer-xs)!important;
651 }
652
653 .description {
654 color: var(--color-desc-text)!important;
655 }
656
657 p.submit {
658 margin: 0;
659 padding: 0;
660 }
661
662 .helper-message {
663 font-size: 14px;
664 color: var(--color-body-text);
665 line-height: 1.4em;
666 padding: 10px 16px;
667 border-radius: var(--panel-border-radius);
668 background-color: #fff;
669 position: absolute;
670 max-width: 500px;
671 z-index: 9999;
672 display: none;
673 box-shadow: 4px 0px 20px rgba(0,0,0,0.20);
674 text-align: left;
675 }
676
677 .helper-message.right:after {
678 content: '';
679 border-bottom: 8px solid transparent;
680 border-right: 8px solid #fff;
681 border-top: 8px solid transparent;
682 display: block;
683 height: 0;
684 left: -7px;
685 position: absolute;
686 top: 11px;
687 width: 0;
688 }
689
690 .helper-message.left:before {
691 content: '';
692 border-bottom: 8px solid transparent;
693 border-left: 8px solid #fff;
694 border-top: 8px solid transparent;
695 display: block;
696 height: 0;
697 right: -7px;
698 position: absolute;
699 top: 11px;
700 width: 0;
701 }
702
703 .helper-message.bottom:before {
704 content: '';
705 border-left: 8px solid transparent;
706 border-right: 8px solid transparent;
707 border-bottom: 8px solid #aaa;
708 border-top: 0;
709 display: block;
710 height: 0;
711 left: 50%;
712 margin-left: -8px;
713 position: absolute;
714 top: -9px;
715 width: 0;
716 }
717
718 .helper-message.bottom:after {
719 content: '';
720 border-left: 8px solid transparent;
721 border-right: 8px solid transparent;
722 border-bottom: 8px solid #fff;
723 border-top: 0;
724 display: block;
725 height: 0;
726 left: 50%;
727 margin-left: -8px;
728 position: absolute;
729 top: -8px;
730 width: 0;
731 }
732
733 /*INPUT STYLING----------------------------*/
734
735 input#submit {
736 min-height: 40px!important;
737 }
738
739 label {
740 font-size: 14px;
741 }
742 .input-text {
743 display: flex;
744 flex-direction: column;
745 row-gap: var(--spacer-xs);
746 }
747
748 input[type="text"] {
749 padding: 0 var(--spacer-sm)!important;
750 }
751
752 input[type="text"]:focus, select:focus {
753 border-color: var(--color-primary) !important;
754 outline: 0;
755 box-shadow: 0 0 0 1px var(--color-primary) !important;
756 }
757
758 input[type="checkbox"] {
759 margin: 0;
760 }
761
762 /*checkbox input*/
763 input[type="checkbox"] {
764 /* margin: 0 0.5rem; */
765 width: 18px !important;
766 height: 18px !important;
767 box-shadow: none !important;
768 }
769
770 input[type=checkbox]:checked {
771 border: none;
772 background: var(--color-primary);
773 content: url("data:image/svg+xml,%3Csvg width='6' height='4' viewBox='3 -4 3 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.95048 6.24692C3.55481 6.64497 2.91278 6.64497 2.5173 6.24692L0.296759 4.01311C-0.0989197 3.61525 -0.0989197 2.96939 0.296759 2.57154C0.692247 2.17349 1.33427 2.17349 1.72995 2.57154L3.05295 3.90226C3.15283 4.00254 3.31495 4.00254 3.41502 3.90226L6.99732 0.298534C7.39281 -0.0995112 8.03483 -0.0995112 8.43051 0.298534C8.62052 0.48968 8.72727 0.749023 8.72727 1.01932C8.72727 1.28961 8.62052 1.54896 8.43051 1.7401L3.95048 6.24692Z' fill='white'/%3E%3C/svg%3E%0A");
774 border-color: var(--color-primary);
775 }
776
777 input[type=checkbox]:checked::before {
778 border: none;
779 color: #fff;
780 background-image: url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.95048 6.24692C3.55481 6.64497 2.91278 6.64497 2.5173 6.24692L0.296759 4.01311C-0.0989197 3.61525 -0.0989197 2.96939 0.296759 2.57154C0.692247 2.17349 1.33427 2.17349 1.72995 2.57154L3.05295 3.90226C3.15283 4.00254 3.31495 4.00254 3.41502 3.90226L6.99732 0.298534C7.39281 -0.0995112 8.03483 -0.0995112 8.43051 0.298534C8.62052 0.48968 8.72727 0.749023 8.72727 1.01932C8.72727 1.28961 8.62052 1.54896 8.43051 1.7401L3.95048 6.24692Z' fill='white'/%3E%3C/svg%3E%0A");
781 }
782
783 input[type="checkbox"]:focus {
784 outline: 0.15rem solid rgba(35, 109, 231, .4);
785 outline-offset: 1px;
786 box-shadow: none;
787 }
788
789 input[type="file" i] {
790 margin-inline-end: 16px!important;
791 }
792
793 input[type="file" i]::-webkit-file-upload-button {
794 margin-inline-end: 16px!important;
795 }
796
797 textarea[readonly] {
798 width: 100%;
799 height: 480px;
800 font-family: Menlo,Monaco,monospace;
801 font-size: 12px;
802 margin: 0;
803 background: var(--color-header);
804 color: var(--color-white);
805 padding: var(--spacer-sm);
806 border-radius: var(--panel-border-radius);
807 border: none;
808 box-shadow: var(--input-shadow)
809 }
810
811 select {
812 border-radius: var(--panel-border-radius)!important;
813 border: 1px solid var(--color-divider)!important;
814 box-shadow: var(--input-shadow)!important;
815 height: var(--spacer-xl);
816 }
817
818 .select {
819 width: 320px;
820 max-width: 320px;
821 line-height: 1;
822 padding: 0 var(--spacer-sm)!important;
823 }
824
825 select option {
826 font-size: 13px!important;
827 }
828
829 .saved-profiles .panel-content {
830 row-gap: var(--spacer-md)!important;
831 }
832
833 .profile-select {
834 align-items: flex-end;
835 column-gap: var(--spacer-xs);
836 }
837
838 .license-field {
839 display: flex;
840 column-gap: var(--spacer-xs);
841 }
842
843 #bsr-license-active, #bsr-license-inactive {
844 display:none;
845 }
846
847
848 /*BREAKPOINT STYLING----------------------------*/
849
850 @media only screen and (max-width: 800px) {
851 #bsr_license_key {
852 width: 100%;
853 }
854 .license-field {
855 width: 100%;
856 }
857 }
858
859 @media only screen and (max-width: 640px) {
860 .search-replace {
861 flex-direction: column;
862 row-gap: var(--spacer-md);
863 }
864 .profile-select {
865 flex-direction: column;
866 row-gap: var(--spacer-sm);
867 }
868 .profile-select .input-text, #bsr-profile {
869 width: 100%!important;
870 max-width: 100%!important;
871 }
872 .license-field {
873 flex-direction: column;
874 row-gap: var(--spacer-sm);
875 }
876 .license-field input[type="submit"] {
877 width: max-content;
878 }
879 }
880
881 @media only screen and (max-width: 480px) {
882 .select {
883 width: 100%!important;
884 }
885 }
886
887
888 /*SIDEBAR STYLING----------------------------*/
889
890 .upgrade-sidebar {
891 max-width: 290px;
892 height: fit-content;
893 background: linear-gradient(176.44deg, #0F5858 2.92%, #10585C 23.02%, #145469 42.98%, #0D3458 71.92%, #062645 99.66%);
894 border-radius: var(--panel-border-radius);
895 }
896
897 .upgrade-sidebar .content {
898 padding: 0 var(--spacer-md);
899 }
900
901 .upgrade-sidebar .content h3 {
902 color: var(--color-white);
903 font-size: 24px;
904 margin-top: 16px;
905 }
906
907 .upgrade-sidebar .content p {
908 line-height: 1.6;
909 color: var(--color-white);
910 font-size: 16px;
911 }
912
913 .upgrade-sidebar ul {
914 padding: var(--spacer-md) 0;
915 display: flex;
916 flex-direction: column;
917 row-gap: 16px;
918 }
919
920 .upgrade-sidebar ul li {
921 display: flex;
922 column-gap: var(--spacer-sm);
923 align-items: flex-start;
924 list-style: none;
925 padding-left: 28px;
926 background: url("data:image/svg+xml,%3Csvg width='19' height='19' viewBox='0 0 19 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath 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='%2324CE87'/%3E%3C/svg%3E%0A") 0 2px no-repeat;
927 }
928
929 .upgrade-sidebar ul li p {
930 font-size: 13.5px!important;
931 opacity: .8;
932 margin: 0;
933 }
934
935 .upgrade-offer-text {
936 text-align: center;
937 font-weight: bold;
938 font-style: italic;
939 font-size: 14.5px!important;
940 }
941
942 .upgrade-offer-text span {
943 color: var(--color-accent);
944 }
945
946 .button-row {
947 width: 100%;
948 margin: 0 auto;
949 padding: var(--spacer-sm) 0 var(--spacer-lg) 0;
950 text-align: center;
951 }
952
953 .button-row a {
954 font-size: 13.5px!important;
955 font-weight: 600!important;
956 text-transform: uppercase;
957 letter-spacing: 2px!important;
958 border: 0!important;
959 padding: 0 var(--spacer-lg)!important;
960 box-shadow: 0 4px 4px 0 rgba(0,0,0,.25);
961 }
1 #bsr-results-table th{font-weight:700}#bsr-results-table tbody tr:nth-child(odd){background-color:#f9f9f9}.bsr-fourth,.bsr-second,.bsr-third{text-align:center!important}#bsr-details-view-wrap{margin:0 10px}#bsr-details-view{table-layout:fixed;padding-top:40px}.bsr-old-val{background-color:#fdd}.bsr-new-val{background-color:#cfc}.bsr-change{width:400px!important}.bsr-slider{width:23em}.bsr-progress-wrap{width:95%;height:12px;background-color:#ddd}.bsr-progress{width:0%;height:100%;background-color:#0073aa}.bsr-description{display:block;margin-top:6px!important;color:#444!important}#bsr-help-heading{font-size:1.3em!important;padding:0!important}.bsr-processing-wrap{background:#f4f4f4;padding:16px 16px 32px;overflow:auto;border-top:1px solid #eae9e9;margin:20px -12px -23px -12px}.bsr-spinner{margin:-3px 0 0 0}.bsr-license-status{float:left;margin-right:15px;height:28px;font-size:13px;line-height:26px;color:var(--color-white);text-align:center;padding:0 10px;border-radius:4px}#bsr-license-active{background:green}#bsr-license-inactive{background:gray}.bsr-no-profiles{vertical-align:middle}#bsr-back-to-overview{width:100%;position:fixed;margin-top:0;background:#f8f8f8;border-bottom:1px solid #ddd;padding:8px 10px}#bsr-table-select{width:25em;height:180px}:root{--color-primary:#0073AA;--color-accent:#27CC87;--color-white:#fff;--color-black:000;--color-header:#383A46;--color-nav:#262932;--color-body-text:#3C3B59;--color-desc-text:#6E6D99;--color-panel-heading:#708AA4;--color-secondary-hover:rgba(0, 115, 170, .15);--color-secondary-focus:rgba(0, 115, 170, .4);--color-divider:#CAD8EC;--color-divider-light:rgba(202, 216, 236, .5);--color-progress-bg:#57645E;--color-modal-background:rgba(47, 58, 74, .8);--spacer-xs:8px;--spacer-sm:16px;--spacer-md:24px;--spacer-lg:32px;--spacer-xl:40px;--spacer-2xl:48px;--spacer-3xl:56px;--spacer-4xl:64px;--spacer-5xl:72px;--spacer-6xl:80px;--panel-border-radius:6px;--panel-shadow:0px 2px 1px rgba(39, 45, 77, 0.05),0px 2px 8px rgba(187, 187, 187, 0.20);--input-shadow:0px 2px 2px rgba(182, 181, 204, 0.25)}.wrap{margin:0;padding:0;overflow-x:auto!important}#wpcontent{padding:0!important}#wpbody-content{background:var(--color-header);padding-bottom:0!important;margin:0!important;float:none}.form-table{margin-top:0}.wp-core-ui select{background:#fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 12px top 55%;background-size:18px 18px}.metabox-holder{padding:0!important}#TB_overlay{background:var(--color-modal-background)!important}#TB_window{background:var(--color-white);box-shadow:var(--panel-shadow);border-radius:var(--panel-border-radius);overflow:hidden}#TB_title{display:flex;align-items:center;padding:0 var(--spacer-lg);height:var(--spacer-3xl)!important;font-weight:500!important}#TB_ajaxWindowTitle{font-weight:500;font-size:14px;letter-spacing:.6px;text-transform:uppercase;color:var(--color-panel-heading);line-height:1;padding:0!important}.tb-close-icon{color:var(--color-panel-heading)!important;top:-14px!important;right:12px!important}#bsr-results-table{border-radius:var(--panel-border-radius)!important}#bsr-results-table th{line-height:2rem!important}#bsr-results-table tbody tr:last-child td:first-of-type{border-bottom-left-radius:var(--panel-border-radius)}#bsr-results-table tbody tr:last-child td:last-of-type{border-bottom-right-radius:var(--panel-border-radius)}#bsr-results-table th{color:var(--color-header)!important}#bsr-results-table td .tooltip{font-weight:700;cursor:pointer;text-decoration:underline}#bsr-results-table td .helper-message{max-width:220px}#bsr-results-table td .helper-message a{font-weight:700}#bsr-back-to-overview{padding:16px!important}#bsr-details-view{padding-top:48px}.bsr-change{border-bottom:1px solid var(--color-divider);padding-bottom:16px!important}.widefat td{padding:var(--spacer-sm)}.bsr-row-desc td{line-height:2rem!important;padding-bottom:0;font-size:14px}.row{display:flex;column-gap:var(--spacer-lg)}.col{display:flex;flex-direction:column;justify-content:center}.hidden{display:none}.full-width{width:100%}.row p{margin:0}.header{background:var(--color-header);display:flex;height:96px;padding:0 var(--spacer-lg)}.header a{display:flex}.logo{width:72px}.header .content{display:flex;justify-content:space-between;align-items:center;max-width:1280px;width:100%}.upgrade-notice{color:var(--color-accent);cursor:pointer;line-height:1.3;font-size:13.5px;font-weight:500}.upgrade-notice:hover{text-decoration:underline;color:var(--color-accent)}.upgrade-notice img{width:16px;height:16px;margin-right:var(--spacer-xs)}.update-nag,notice-warning-inline{margin:var(--spacer-md) var(--spacer-lg) 0 var(--spacer-lg)}.bsr-notice-container{padding:var(--spacer-sm) var(--spacer-lg) 0 var(--spacer-lg);max-width:900px}#setting-error-settings_updated,.bsr-updated{display:none}.nav-tab-wrapper{font-size:23px;height:var(--spacer-3xl);background:var(--color-nav);display:flex;padding:0;align-items:center;margin:0}.nav-tab{color:var(--color-white);opacity:.5;border-top:4px solid transparent!important;border-bottom:4px solid transparent!important}.nav-tab:hover{opacity:1;background:0 0;color:var(--color-white)}.nav-tab:focus{background:0 0;color:var(--color-white);opacity:inherit}.nav-tab-active{color:var(--color-white)!important;opacity:1!important;border-bottom:4px solid var(--color-accent)!important}.nav-tab-wrapper ul{padding:0 var(--spacer-lg);display:flex;column-gap:var(--spacer-lg);height:100%;margin:0}.nav-tab-wrapper li{margin:0;padding:0}.nav-tab-wrapper a{margin:0;background:0 0;border:none;padding:0;font-weight:500!important;align-items:center;display:inline-flex;height:100%;box-sizing:border-box}.button{font-size:15px!important;letter-spacing:.4px!important;border-radius:var(--panel-border-radius)!important;font-weight:500!important;display:inline-flex!important;align-items:center!important;padding:0 var(--spacer-md)!important;column-gap:8px;margin:0!important}.button-lg{height:var(--spacer-3xl)!important}.button-md{height:var(--spacer-2xl)!important}.button-sm{height:var(--spacer-xl)!important;padding:0 var(--spacer-sm)!important;font-size:14px!important;border-radius:4px!important}.button-primary{color:var(--color-white)!important;background:var(--color-primary)!important;border:1px solid!important}.button-secondary{color:var(--color-primary)!important;background:0 0!important;border:1px solid var(--color-primary)!important}.button-primary:hover{filter:brightness(.95)!important}.button-primary:active{filter:brightness(.92)!important}.button-primary:focus{outline:0!important;box-shadow:0 0 0 4px var(--color-secondary-focus)!important}.button-secondary:hover{background:var(--color-secondary-hover)!important}.button-active:active{outline:0!important;box-shadow:0 0 0 4px var(--color-secondary-focus)!important}.button-secondary:focus{outline:0!important;box-shadow:0 0 0 4px var(--color-secondary-focus)!important}.button-link{color:#2271b1}.button svg{width:16px}#bsr-backup-submit.bsr-disabled,#bsr-backup-submit.button-disabled,#bsr-import-submit.bsr-disabled,#bsr-import-submit.button-disabled,#bsr-submit.bsr-disabled,#bsr-submit.button-disabled{background:var(--color-primary)!important;color:var(--color-white)!important;opacity:.4}.bsr-action-form{margin:0!important;border:0!important;background-color:#f0f0f1;box-shadow:none;padding:var(--spacer-2xl) var(--spacer-lg);padding-bottom:120px}.ui-sidebar-wrapper{max-width:1280px;display:flex;flex-direction:row;column-gap:48px}#bsr-search-replace-wrap{background:0 0;border:0;padding:0;box-shadow:none}#bsr-search-replace-form{display:flex;flex-direction:column;row-gap:var(--spacer-lg)}#bsr-search-replace-form .updated{margin-top:0;margin-bottom:0;display:block!important}.inside{margin:0!important;padding:0!important;width:100%;min-width:640px;display:flex;flex-direction:column;row-gap:var(--spacer-lg)}.panel{background:var(--color-white);box-shadow:var(--panel-shadow);border-radius:var(--panel-border-radius)}.panel-header{height:56px;padding:0 var(--spacer-lg)!important;border-bottom:1px solid var(--color-divider);display:flex;align-items:center;justify-content:space-between}.panel-header a{display:inline-flex}.panel-header h3{font-weight:500;font-size:14px;letter-spacing:.6px;text-transform:uppercase;color:var(--color-panel-heading);line-height:1;padding:0!important}.panel-footer{padding:var(--spacer-md) var(--spacer-lg);border-top:1px solid var(--color-divider)}#bsr-error-wrap{display:none}#bsr-error-wrap .error{margin:0}.bsr-processing-wrap{background:var(--color-white);box-shadow:var(--panel-shadow);border-radius:var(--panel-border-radius);margin:0;padding:var(--spacer-lg)}.bsr-progress{height:var(--spacer-xs);border-radius:20px;background:var(--color-accent)}.bsr-progress-wrap{height:var(--spacer-xs)}.panel-content{padding:var(--spacer-lg);display:flex;flex-direction:column;row-gap:var(--spacer-lg)}.settings{padding:0!important;row-gap:0}.settings .row{padding:var(--spacer-lg)!important;border-bottom:1px solid var(--color-divider-light)}.last-row{border:none!important}.additional-settings .row{padding:var(--spacer-sm) var(--spacer-lg)!important}.settings .row .col{row-gap:4px}.settings-header{display:inline-flex;column-gap:var(--spacer-xs)}.settings-header span{font-size:14px;font-weight:600;color:var(--color-panel-heading)}.slider-wrapper{padding:var(--spacer-xs) 0 0 0}.bsr-slider{border:none!important;background:var(--color-divider)!important}.ui-widget-header{background:var(--color-accent)!important}.ui-slider-handle{top:-6px!important;cursor:pointer!important;box-shadow:var(--input-shadow)}.ui-state-focus,.ui-state-hover{border-color:var(--color-panel-heading)!important;background:var(--color-white)!important}.tables{row-gap:var(--spacer-xs)}.import-file{border-radius:var(--panel-border-radius);padding:var(--spacer-sm);border:1px solid var(--color-divider)}.checkbox{justify-content:center}label.replace_guids{column-gap:var(--spacer-xs);align-items:center;display:flex}label.replace_guids a{display:inline-flex}label.replace_guids img{width:16px;margin-top:-2px}#replace_with,#search_for{width:100%;display:inline-flex;align-content:center;line-height:1}#profile-name{padding-left:80px!important}.regular-text{background:var(--color-white)!important;border:1px solid var(--color-divider)!important;box-shadow:var(--input-shadow)!important;border-radius:var(--panel-border-radius);height:var(--spacer-xl)}#bsr-table-select{width:100%!important;max-width:100%;height:200px;max-height:200px;padding:var(--spacer-xs)!important}.description{color:var(--color-desc-text)!important}p.submit{margin:0;padding:0}.helper-message{font-size:14px;color:var(--color-body-text);line-height:1.4em;padding:10px 16px;border-radius:var(--panel-border-radius);background-color:#fff;position:absolute;max-width:500px;z-index:9999;display:none;box-shadow:4px 0 20px rgba(0,0,0,.2);text-align:left}.helper-message.right:after{content:'';border-bottom:8px solid transparent;border-right:8px solid #fff;border-top:8px solid transparent;display:block;height:0;left:-7px;position:absolute;top:11px;width:0}.helper-message.left:before{content:'';border-bottom:8px solid transparent;border-left:8px solid #fff;border-top:8px solid transparent;display:block;height:0;right:-7px;position:absolute;top:11px;width:0}.helper-message.bottom:before{content:'';border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid #aaa;border-top:0;display:block;height:0;left:50%;margin-left:-8px;position:absolute;top:-9px;width:0}.helper-message.bottom:after{content:'';border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid #fff;border-top:0;display:block;height:0;left:50%;margin-left:-8px;position:absolute;top:-8px;width:0}input#submit{min-height:40px!important}label{font-size:14px}.input-text{display:flex;flex-direction:column;row-gap:var(--spacer-xs)}input[type=text]{padding:0 var(--spacer-sm)!important}input[type=text]:focus,select:focus{border-color:var(--color-primary)!important;outline:0;box-shadow:0 0 0 1px var(--color-primary)!important}input[type=checkbox]{margin:0}input[type=checkbox]{width:18px!important;height:18px!important;box-shadow:none!important}input[type=checkbox]:checked{border:none;background:var(--color-primary);content:url("data:image/svg+xml,%3Csvg width='6' height='4' viewBox='3 -4 3 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.95048 6.24692C3.55481 6.64497 2.91278 6.64497 2.5173 6.24692L0.296759 4.01311C-0.0989197 3.61525 -0.0989197 2.96939 0.296759 2.57154C0.692247 2.17349 1.33427 2.17349 1.72995 2.57154L3.05295 3.90226C3.15283 4.00254 3.31495 4.00254 3.41502 3.90226L6.99732 0.298534C7.39281 -0.0995112 8.03483 -0.0995112 8.43051 0.298534C8.62052 0.48968 8.72727 0.749023 8.72727 1.01932C8.72727 1.28961 8.62052 1.54896 8.43051 1.7401L3.95048 6.24692Z' fill='white'/%3E%3C/svg%3E%0A");border-color:var(--color-primary)}input[type=checkbox]:checked::before{border:none;color:#fff;background-image:url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.95048 6.24692C3.55481 6.64497 2.91278 6.64497 2.5173 6.24692L0.296759 4.01311C-0.0989197 3.61525 -0.0989197 2.96939 0.296759 2.57154C0.692247 2.17349 1.33427 2.17349 1.72995 2.57154L3.05295 3.90226C3.15283 4.00254 3.31495 4.00254 3.41502 3.90226L6.99732 0.298534C7.39281 -0.0995112 8.03483 -0.0995112 8.43051 0.298534C8.62052 0.48968 8.72727 0.749023 8.72727 1.01932C8.72727 1.28961 8.62052 1.54896 8.43051 1.7401L3.95048 6.24692Z' fill='white'/%3E%3C/svg%3E%0A")}input[type=checkbox]:focus{outline:.15rem solid rgba(35,109,231,.4);outline-offset:1px;box-shadow:none}input[type=file i]{margin-inline-end:16px!important}input[type=file i]::-webkit-file-upload-button{margin-inline-end:16px!important}textarea[readonly]{width:100%;height:480px;font-family:Menlo,Monaco,monospace;font-size:12px;margin:0;background:var(--color-header);color:var(--color-white);padding:var(--spacer-sm);border-radius:var(--panel-border-radius);border:none;box-shadow:var(--input-shadow)}select{border-radius:var(--panel-border-radius)!important;border:1px solid var(--color-divider)!important;box-shadow:var(--input-shadow)!important;height:var(--spacer-xl)}.select{width:320px;max-width:320px;line-height:1;padding:0 var(--spacer-sm)!important}select option{font-size:13px!important}.saved-profiles .panel-content{row-gap:var(--spacer-md)!important}.profile-select{align-items:flex-end;column-gap:var(--spacer-xs)}.license-field{display:flex;column-gap:var(--spacer-xs)}#bsr-license-active,#bsr-license-inactive{display:none}@media only screen and (max-width:800px){#bsr_license_key{width:100%}.license-field{width:100%}}@media only screen and (max-width:640px){.search-replace{flex-direction:column;row-gap:var(--spacer-md)}.profile-select{flex-direction:column;row-gap:var(--spacer-sm)}#bsr-profile,.profile-select .input-text{width:100%!important;max-width:100%!important}.license-field{flex-direction:column;row-gap:var(--spacer-sm)}.license-field input[type=submit]{width:max-content}}@media only screen and (max-width:480px){.select{width:100%!important}}.upgrade-sidebar{max-width:290px;height:fit-content;background:linear-gradient(176.44deg,#0f5858 2.92%,#10585c 23.02%,#145469 42.98%,#0d3458 71.92%,#062645 99.66%);border-radius:var(--panel-border-radius)}.upgrade-sidebar .content{padding:0 var(--spacer-md)}.upgrade-sidebar .content h3{color:var(--color-white);font-size:24px;margin-top:16px}.upgrade-sidebar .content p{line-height:1.6;color:var(--color-white);font-size:16px}.upgrade-sidebar ul{padding:var(--spacer-md) 0;display:flex;flex-direction:column;row-gap:16px}.upgrade-sidebar ul li{display:flex;column-gap:var(--spacer-sm);align-items:flex-start;list-style:none;padding-left:28px;background:url("data:image/svg+xml,%3Csvg width='19' height='19' viewBox='0 0 19 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath 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='%2324CE87'/%3E%3C/svg%3E%0A") 0 2px no-repeat}.upgrade-sidebar ul li p{font-size:13.5px!important;opacity:.8;margin:0}.upgrade-offer-text{text-align:center;font-weight:700;font-style:italic;font-size:14.5px!important}.upgrade-offer-text span{color:var(--color-accent)}.button-row{width:100%;margin:0 auto;padding:var(--spacer-sm) 0 var(--spacer-lg) 0;text-align:center}.button-row a{font-size:13.5px!important;font-weight:600!important;text-transform:uppercase;letter-spacing:2px!important;border:0!important;padding:0 var(--spacer-lg)!important;box-shadow:0 4px 4px 0 rgba(0,0,0,.25)}
...\ No newline at end of file ...\ No newline at end of file
1 /*! jQuery UI - v1.11.4 - 2015-03-11
2 * http://jqueryui.com
3 * Includes: core.css, accordion.css, autocomplete.css, button.css, datepicker.css, dialog.css, draggable.css, menu.css, progressbar.css, resizable.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css
4 * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS%2CTahoma%2CVerdana%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=gloss_wave&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=highlight_soft&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=glass&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=glass&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=highlight_soft&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=diagonals_thick&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=diagonals_thick&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=flat&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
5 * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
6
7 .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;min-height:0;font-size:100%}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:45%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{overflow:hidden;position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-draggable-handle{-ms-touch-action:none;touch-action:none}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:none}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{position:relative;margin:0;padding:3px 1em 3px .4em;cursor:pointer;min-height:0;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==");height:100%;filter:alpha(opacity=25);opacity:0.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable{-ms-touch-action:none;touch-action:none}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.ui-selectmenu-menu .ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup{font-size:1em;font-weight:bold;line-height:1.5;padding:2px 0.4em;margin:0.5em 0 0 0;height:auto;border:0}.ui-selectmenu-open{display:block}.ui-selectmenu-button{display:inline-block;overflow:hidden;position:relative;text-decoration:none;cursor:pointer}.ui-selectmenu-button span.ui-icon{right:0.5em;left:auto;margin-top:-8px;position:absolute;top:50%}.ui-selectmenu-button span.ui-selectmenu-text{text-align:left;padding:0.4em 2.1em 0.4em 1em;display:block;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height: 1.2em;cursor:default;-ms-touch-action:none;touch-action:none;}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height: .5em;}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:none;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:none;border-bottom:none;border-right:none}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #ddd;background:#eee url("images/ui-bg_highlight-soft_100_eeeeee_1x100.png") 50% top repeat-x;color:#333}.ui-widget-content a{color:#333}.ui-widget-header{border:1px solid #e78f08;background:#f6a828 url("images/ui-bg_gloss-wave_35_f6a828_500x100.png") 50% 50% repeat-x;color:#fff;font-weight:bold}.ui-widget-header a{color:#fff}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #ccc;background:#f6f6f6 url("images/ui-bg_glass_100_f6f6f6_1x400.png") 50% 50% repeat-x;font-weight:bold;color:#1c94c4;border-radius: 100%;}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#1c94c4;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #fbcb09;background:#fdf5ce url("images/ui-bg_glass_100_fdf5ce_1x400.png") 50% 50% repeat-x;font-weight:bold;color:#c77405}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#c77405;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #fbd850;background:#fff url("images/ui-bg_glass_65_ffffff_1x400.png") 50% 50% repeat-x;font-weight:bold;color:#eb8f00}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#eb8f00;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fed22f;background:#ffe45c url("images/ui-bg_highlight-soft_75_ffe45c_1x100.png") 50% top repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#b81900 url("images/ui-bg_diagonals-thick_18_b81900_40x40.png") 50% 50% repeat;color:#fff}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#fff}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#fff}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url("images/ui-icons_222222_256x240.png")}.ui-widget-header .ui-icon{background-image:url("images/ui-icons_ffffff_256x240.png")}.ui-state-default .ui-icon{background-image:url("images/ui-icons_ef8c08_256x240.png")}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url("images/ui-icons_ef8c08_256x240.png")}.ui-state-active .ui-icon{background-image:url("images/ui-icons_ef8c08_256x240.png")}.ui-state-highlight .ui-icon{background-image:url("images/ui-icons_228ef1_256x240.png")}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url("images/ui-icons_ffd27a_256x240.png")}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:4px}.ui-widget-overlay{background:#666 url("images/ui-bg_diagonals-thick_20_666666_40x40.png") 50% 50% repeat;opacity:.5;filter:Alpha(Opacity=50)}.ui-widget-shadow{margin:-5px 0 0 -5px;padding:5px;background:#000 url("images/ui-bg_flat_10_000000_40x100.png") 50% 50% repeat-x;opacity:.2;filter:Alpha(Opacity=20);border-radius:5px}
...\ No newline at end of file ...\ No newline at end of file
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 * Processes database-related 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_DB {
15
16 /**
17 * The page size used throughout the plugin.
18 * @var int
19 */
20 public $page_size;
21
22 /**
23 * The name of the backup file.
24 * @var string
25 */
26 public $file;
27
28 /**
29 * The WordPress database class.
30 * @var WPDB
31 */
32 private $wpdb;
33
34 /**
35 * Initializes the class and its properties.
36 * @access public
37 */
38 public function __construct() {
39
40 global $wpdb;
41 $this->wpdb = $wpdb;
42
43 $this->page_size = $this->get_page_size();
44 }
45
46 /**
47 * Returns an array of tables in the database.
48 * @access public
49 * @return array
50 */
51 public static function get_tables() {
52 global $wpdb;
53
54 if ( function_exists( 'is_multisite' ) && is_multisite() ) {
55
56 if ( is_main_site() ) {
57 $tables = $wpdb->get_col( 'SHOW TABLES' );
58 } else {
59 $blog_id = get_current_blog_id();
60 $tables = $wpdb->get_col( "SHOW TABLES LIKE '" . $wpdb->base_prefix . absint( $blog_id ) . "\_%'" );
61 }
62
63 } else {
64 $tables = $wpdb->get_col( 'SHOW TABLES' );
65 }
66
67 return $tables;
68 }
69
70 /**
71 * Returns an array containing the size of each database table.
72 * @access public
73 * @return array
74 */
75 public static function get_sizes() {
76 global $wpdb;
77
78 $sizes = array();
79 $tables = $wpdb->get_results( 'SHOW TABLE STATUS', ARRAY_A );
80
81 if ( is_array( $tables ) && ! empty( $tables ) ) {
82
83 foreach ( $tables as $table ) {
84 $size = round( $table['Data_length'] / 1024 / 1024, 2 );
85 $sizes[$table['Name']] = sprintf( __( '(%s MB)', 'better-search-replace' ), $size );
86 }
87
88 }
89
90 return $sizes;
91 }
92
93 /**
94 * Returns the current page size.
95 * @access public
96 * @return int
97 */
98 public function get_page_size() {
99 $page_size = get_option( 'bsr_page_size' ) ? get_option( 'bsr_page_size' ) : 20000;
100 return absint( $page_size );
101 }
102
103 /**
104 * Returns the number of pages in a table.
105 * @access public
106 * @return int
107 */
108 public function get_pages_in_table( $table ) {
109 if ( false === $this->table_exists( $table ) ) {
110 return 0;
111 }
112
113 $table = esc_sql( $table );
114 $rows = $this->wpdb->get_var( "SELECT COUNT(*) FROM `$table`" );
115 $pages = ceil( $rows / $this->page_size );
116
117 return absint( $pages );
118 }
119
120 /**
121 * Gets the total number of pages in the DB.
122 * @access public
123 * @return int
124 */
125 public function get_total_pages( $tables ) {
126 $total_pages = 0;
127
128 foreach ( $tables as $table ) {
129
130 // Get the number of rows & pages in the table.
131 $pages = $this->get_pages_in_table( $table );
132
133 // Always include 1 page in case we have to create schemas, etc.
134 if ( $pages == 0 ) {
135 $pages = 1;
136 }
137
138 $total_pages += $pages;
139 }
140
141 return absint( $total_pages );
142 }
143
144 /**
145 * Gets the columns in a table.
146 * @access public
147 * @param string $table The table to check.
148 * @return array
149 */
150 public function get_columns( $table ) {
151 $primary_key = null;
152 $columns = array();
153
154 if ( false === $this->table_exists( $table ) ) {
155 return array( $primary_key, $columns );
156 }
157
158 $fields = $this->wpdb->get_results( 'DESCRIBE ' . $table );
159
160 if ( is_array( $fields ) ) {
161 foreach ( $fields as $column ) {
162 $columns[] = $column->Field;
163 if ( $column->Key == 'PRI' ) {
164 $primary_key = $column->Field;
165 }
166 }
167 }
168
169 return array( $primary_key, $columns );
170 }
171
172 /**
173 * Adapated from interconnect/it's search/replace script.
174 *
175 * Modified to use WordPress wpdb functions instead of PHP's native mysql/pdo functions,
176 * and to be compatible with batch processing via AJAX.
177 *
178 * @link https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
179 *
180 * @access public
181 * @param string $table The table to run the replacement on.
182 * @param int $page The page/block to begin the query on.
183 * @param array $args An associative array containing arguements for this run.
184 * @return array
185 */
186 public function srdb( $table, $page, $args ) {
187
188 // Load up the default settings for this chunk.
189 $table = esc_sql( $table );
190 $current_page = absint( $page );
191 $pages = $this->get_pages_in_table( $table );
192 $done = false;
193
194 $args['search_for'] = str_replace( '#BSR_BACKSLASH#', '\\', $args['search_for'] );
195 $args['replace_with'] = str_replace( '#BSR_BACKSLASH#', '\\', $args['replace_with'] );
196
197 $table_report = array(
198 'change' => 0,
199 'updates' => 0,
200 'start' => microtime( true ),
201 'end' => microtime( true ),
202 'errors' => array(),
203 'skipped' => false
204 );
205
206 // Get a list of columns in this table.
207 list( $primary_key, $columns ) = $this->get_columns( $table );
208
209 // Bail out early if there isn't a primary key.
210 if ( null === $primary_key ) {
211 $table_report['skipped'] = true;
212 return array( 'table_complete' => true, 'table_report' => $table_report );
213 }
214
215 $current_row = 0;
216 $start = $page * $this->page_size;
217 $end = $this->page_size;
218
219 // Grab the content of the table.
220 $data = $this->wpdb->get_results( "SELECT * FROM `$table` LIMIT $start, $end", ARRAY_A );
221
222 // Loop through the data.
223 foreach ( $data as $row ) {
224 $current_row++;
225 $update_sql = array();
226 $where_sql = array();
227 $upd = false;
228
229 foreach( $columns as $column ) {
230
231 $data_to_fix = $row[ $column ];
232
233 if ( $column == $primary_key ) {
234 $where_sql[] = $column . ' = "' . $this->mysql_escape_mimic( $data_to_fix ) . '"';
235 continue;
236 }
237
238 // Skip GUIDs by default.
239 if ( 'on' !== $args['replace_guids'] && 'guid' == $column ) {
240 continue;
241 }
242
243 if ( $this->wpdb->options === $table ) {
244
245 // Skip any BSR options as they may contain the search field.
246 if ( isset( $should_skip ) && true === $should_skip ) {
247 $should_skip = false;
248 continue;
249 }
250
251 // If the Site URL needs to be updated, let's do that last.
252 if ( isset( $update_later ) && true === $update_later ) {
253 $update_later = false;
254 $edited_data = $this->recursive_unserialize_replace( $args['search_for'], $args['replace_with'], $data_to_fix, false, $args['case_insensitive'] );
255
256 if ( $edited_data != $data_to_fix ) {
257 $table_report['change']++;
258 $table_report['updates']++;
259 update_option( 'bsr_update_site_url', $edited_data );
260 continue;
261 }
262 }
263
264 if ( '_transient_bsr_results' === $data_to_fix || 'bsr_profiles' === $data_to_fix || 'bsr_update_site_url' === $data_to_fix || 'bsr_data' === $data_to_fix ) {
265 $should_skip = true;
266 }
267
268 if ( 'siteurl' === $data_to_fix && $args['dry_run'] !== 'on' ) {
269 $update_later = true;
270 }
271
272 }
273
274 // Run a search replace on the data that'll respect the serialisation.
275 $edited_data = $this->recursive_unserialize_replace( $args['search_for'], $args['replace_with'], $data_to_fix, false, $args['case_insensitive'] );
276
277 // Something was changed
278 if ( $edited_data != $data_to_fix ) {
279 $update_sql[] = $column . ' = "' . $this->mysql_escape_mimic( $edited_data ) . '"';
280 $upd = true;
281 $table_report['change']++;
282 }
283
284 }
285
286 // Determine what to do with updates.
287 if ( $args['dry_run'] === 'on' ) {
288 // Don't do anything if a dry run
289 } elseif ( $upd && ! empty( $where_sql ) ) {
290 // If there are changes to make, run the query.
291 $sql = 'UPDATE ' . $table . ' SET ' . implode( ', ', $update_sql ) . ' WHERE ' . implode( ' AND ', array_filter( $where_sql ) );
292 $result = $this->wpdb->query( $sql );
293
294 if ( ! $result ) {
295 $table_report['errors'][] = sprintf( __( 'Error updating row: %d.', 'better-search-replace' ), $current_row );
296 } else {
297 $table_report['updates']++;
298 }
299
300 }
301
302 } // end row loop
303
304 if ( $current_page >= $pages - 1 ) {
305 $done = true;
306 }
307
308 // Flush the results and return the report.
309 $table_report['end'] = microtime( true );
310 $this->wpdb->flush();
311 return array( 'table_complete' => $done, 'table_report' => $table_report );
312 }
313
314 /**
315 * Adapated from interconnect/it's search/replace script.
316 *
317 * @link https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
318 *
319 * Take a serialised array and unserialise it replacing elements as needed and
320 * unserialising any subordinate arrays and performing the replace on those too.
321 *
322 * @access private
323 * @param string $from String we're looking to replace.
324 * @param string $to What we want it to be replaced with
325 * @param array $data Used to pass any subordinate arrays back to in.
326 * @param boolean $serialised Does the array passed via $data need serialising.
327 * @param sting|boolean $case_insensitive Set to 'on' if we should ignore case, false otherwise.
328 *
329 * @return string|array The original array with all elements replaced as needed.
330 */
331 public function recursive_unserialize_replace( $from = '', $to = '', $data = '', $serialised = false, $case_insensitive = false ) {
332 try {
333
334 if ( is_string( $data ) && ! is_serialized_string( $data ) && ( $unserialized = $this->unserialize( $data ) ) !== false ) {
335 $data = $this->recursive_unserialize_replace( $from, $to, $unserialized, true, $case_insensitive );
336 }
337
338 elseif ( is_array( $data ) ) {
339 $_tmp = array( );
340 foreach ( $data as $key => $value ) {
341 $_tmp[ $key ] = $this->recursive_unserialize_replace( $from, $to, $value, false, $case_insensitive );
342 }
343
344 $data = $_tmp;
345 unset( $_tmp );
346 }
347
348 // Submitted by Tina Matter
349 elseif ( is_object( $data ) ) {
350 if ('__PHP_Incomplete_Class' !== get_class($data)) {
351 $_tmp = $data;
352 $props = get_object_vars( $data );
353 foreach ( $props as $key => $value ) {
354 $_tmp->$key = $this->recursive_unserialize_replace( $from, $to, $value, false, $case_insensitive );
355 }
356
357 $data = $_tmp;
358 unset( $_tmp );
359 }
360 }
361
362 elseif ( is_serialized_string( $data ) ) {
363 $unserialized = $this->unserialize( $data );
364
365 if ( $unserialized !== false ) {
366 $data = $this->recursive_unserialize_replace( $from, $to, $unserialized, true, $case_insensitive );
367 }
368 }
369
370 else {
371 if ( is_string( $data ) ) {
372 $data = $this->str_replace( $from, $to, $data, $case_insensitive );
373 }
374 }
375
376 if ( $serialised ) {
377 return serialize( $data );
378 }
379
380 } catch( Exception $error ) {
381
382 }
383
384 return $data;
385 }
386
387 /**
388 * Updates the Site URL if necessary.
389 * @access public
390 * @return boolean
391 */
392 public function maybe_update_site_url() {
393 $option = get_option( 'bsr_update_site_url' );
394
395 if ( $option ) {
396 update_option( 'siteurl', $option );
397 delete_option( 'bsr_update_site_url' );
398 return true;
399 }
400
401 return false;
402 }
403
404 /**
405 * Mimics the mysql_real_escape_string function. Adapted from a post by 'feedr' on php.net.
406 * @link http://php.net/manual/en/function.mysql-real-escape-string.php#101248
407 * @access public
408 * @param string $input The string to escape.
409 * @return string
410 */
411 public function mysql_escape_mimic( $input ) {
412 if ( is_array( $input ) ) {
413 return array_map( __METHOD__, $input );
414 }
415 if ( ! empty( $input ) && is_string( $input ) ) {
416 return str_replace( array( '\\', "\0", "\n", "\r", "'", '"', "\x1a" ), array( '\\\\', '\\0', '\\n', '\\r', "\\'", '\\"', '\\Z' ), $input );
417 }
418
419 return $input;
420 }
421
422 /**
423 * Return unserialized object or array
424 *
425 * @param string $serialized_string Serialized string.
426 * @param string $method The name of the caller method.
427 *
428 * @return mixed, false on failure
429 */
430 public static function unserialize( $serialized_string ) {
431 if ( ! is_serialized( $serialized_string ) ) {
432 return false;
433 }
434
435 $serialized_string = trim( $serialized_string );
436 $unserialized_string = @unserialize( $serialized_string );
437
438 return $unserialized_string;
439 }
440
441 /**
442 * Wrapper for str_replace
443 *
444 * @param string $from
445 * @param string $to
446 * @param string $data
447 * @param string|bool $case_insensitive
448 *
449 * @return string
450 */
451 public function str_replace( $from, $to, $data, $case_insensitive = false ) {
452 if ( 'on' === $case_insensitive ) {
453 $data = str_ireplace( $from, $to, $data );
454 } else {
455 $data = str_replace( $from, $to, $data );
456 }
457
458 return $data;
459 }
460
461 /**
462 * Checks whether a table exists in DB.
463 *
464 * @param $table
465 *
466 * @return bool
467 */
468 private function table_exists( $table ) {
469 return in_array( $table, $this->get_tables() );
470 }
471 }
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