diff --git a/wp-content/ai1wm-backups/index.html b/wp-content/ai1wm-backups/index.html new file mode 100644 index 0000000..cce3445 --- /dev/null +++ b/wp-content/ai1wm-backups/index.html @@ -0,0 +1 @@ +Kangaroos cannot jump here \ No newline at end of file diff --git a/wp-content/ai1wm-backups/index.php b/wp-content/ai1wm-backups/index.php new file mode 100644 index 0000000..cce3445 --- /dev/null +++ b/wp-content/ai1wm-backups/index.php @@ -0,0 +1 @@ +Kangaroos cannot jump here \ No newline at end of file diff --git a/wp-content/ai1wm-backups/robots.txt b/wp-content/ai1wm-backups/robots.txt new file mode 100644 index 0000000..7c8ec89 --- /dev/null +++ b/wp-content/ai1wm-backups/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Disallow: /ai1wm-backups/ +Disallow: /wp-content/ai1wm-backups/ \ No newline at end of file diff --git a/wp-content/ai1wm-backups/web.config b/wp-content/ai1wm-backups/web.config new file mode 100644 index 0000000..ed78620 --- /dev/null +++ b/wp-content/ai1wm-backups/web.config @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wp-content/ai1wm-backups/yoapuesto-xyz-20260925-121625-ytdbyffnh0rk.wpress b/wp-content/ai1wm-backups/yoapuesto-xyz-20260925-121625-ytdbyffnh0rk.wpress new file mode 100644 index 0000000..fbf3e4d Binary files /dev/null and b/wp-content/ai1wm-backups/yoapuesto-xyz-20260925-121625-ytdbyffnh0rk.wpress differ diff --git a/wp-content/plugins/all-in-one-wp-migration/LICENSE b/wp-content/plugins/all-in-one-wp-migration/LICENSE new file mode 100644 index 0000000..dcbe5e6 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/LICENSE @@ -0,0 +1,675 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + + Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. \ No newline at end of file diff --git a/wp-content/plugins/all-in-one-wp-migration/all-in-one-wp-migration.php b/wp-content/plugins/all-in-one-wp-migration/all-in-one-wp-migration.php new file mode 100644 index 0000000..9921281 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/all-in-one-wp-migration.php @@ -0,0 +1,76 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +// Check SSL mode +if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && ( $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ) ) { + $_SERVER['HTTPS'] = 'on'; +} + +// Plugin basename +define( 'AI1WM_PLUGIN_BASENAME', basename( __DIR__ ) . '/' . basename( __FILE__ ) ); + +// Plugin path +define( 'AI1WM_PATH', __DIR__ ); + +// Plugin URL +define( 'AI1WM_URL', plugins_url( '', AI1WM_PLUGIN_BASENAME ) ); + +// Plugin storage URL +define( 'AI1WM_STORAGE_URL', plugins_url( 'storage', AI1WM_PLUGIN_BASENAME ) ); + +// Include functions +require_once __DIR__ . DIRECTORY_SEPARATOR . 'functions.php'; + +// Include constants +require_once __DIR__ . DIRECTORY_SEPARATOR . 'constants.php'; + +// Include deprecated +require_once __DIR__ . DIRECTORY_SEPARATOR . 'deprecated.php'; + +// Include exceptions +require_once __DIR__ . DIRECTORY_SEPARATOR . 'exceptions.php'; + +// Include loader +require_once __DIR__ . DIRECTORY_SEPARATOR . 'loader.php'; + +// Plugin initialization +$main_controller = new Ai1wm_Main_Controller(); diff --git a/wp-content/plugins/all-in-one-wp-migration/changelog.txt b/wp-content/plugins/all-in-one-wp-migration/changelog.txt new file mode 100644 index 0000000..aa1f95a --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/changelog.txt @@ -0,0 +1,442 @@ += 7.75 = +* Custom backups path on database import step + += 7.74 = +* Resolved an ongoing issue with the compatibility of the plugin with servers running Imunify360. The file "wp-content/plugins/all-in-one-wp-migration/functions.php" was being falsely flagged and deleted due to a detection error. This update includes small changes to the "functions.php" file to modify its checksum and prevent the false flag by Imunify360 +* Imunify360 has updated its signatures, which should prevent this issue from occurring on servers running the updated version. However, this plugin update serves as an additional measure to ensure that the issue is resolved for all users + += 7.73 = +* Better support for PHP 8.1 + += 7.72 = +* Backups time based on selected WordPress time zone + += 7.71 = +* Removed the AI1WM_MAX_FILE_SIZE constant. This constant is no longer necessary + += 7.70 = +* Hooks that allow excluding specific database tables on export + += 7.69 = +* Improved support for custom backups location + += 7.68 = +* Better support for PHP 8.1 + += 7.67 = +* Backups with a modified wp-content path cannot be downloaded + += 7.66 = +* Better support for WordPress v6.0.2 + += 7.65 = +* Improved support for single-letter prefixed databases + += 7.64 = +* Better support for database binary fields + += 7.63 = +* CSRF and XSS issue in the plugin. Thank you, WPScan, for reporting it + += 7.62 = +* Password-protect and encrypt backups + += 7.61 = +* Issue with 7.60 release + += 7.60 = +* What's new page - easy way to get up to speed with the newest features +* List of all the items in a backup file, then select and download archived files +* Support for WordPress v6 + += 7.59 = +* Fix a flaw in which the admin user has the ability to remove files other than backups + += 7.58 = +* Hide the backups count if there are no backups + += 7.57 = +* Improved UX on backups page + += 7.56 = +* Better support for PHP 8.1 + += 7.55 = +* When importing or restoring across various PHP versions, the notice has been improved + += 7.54 = +* Improved YouTube and Twitter buttons + += 7.53 = +* Total number of backups in the plugin menu + += 7.52 = +* Out of disk space when exporting database.sql + += 7.51 = +* Link to YouTube Channel + += 7.50 = +* Improved reliability for scheduling events + += 7.49 = +* Better error handling when making HTTP requests +* Store a list of site files as CSV +* Filter to change the request method + += 7.48 = +* Support for BuddyPress plugin + += 7.47 = +* Improved database migration + += 7.46 = +* Support custom themes directory + += 7.45 = +* Support custom plugins directory + += 7.44 = +* Better support for MySQL <= 5.5 +* Support for BuddyBoss plugin +* Report issue button + += 7.43 = +* Improved reliability + += 7.42 = +* Better support for WooCommerce plugin + += 7.41 = +* Improved free disk space checking +* Improved backup validation +* Improved path replacement on import +* Horizontal scrollbar on MacOS (Backups Page) + += 7.40 = +* Better support for WP Cerber plugin +* Backup page style issues on narrow screens + += 7.39 = +* Remove deprecated jQuery methods + += 5.56 = +* Fix an issue with WP_Hook class introcuded in WP 4.7 + += 5.55 = +* Fix an issue with resolving URL on export/import when using non-blocking streams client + += 5.54 = +* Fix an issue with resolving URL on export/import + += 5.53 = +* Send HTTP basic authorization header on upload (fetch method) +* Add Accept-Encoding, Accept-Charset and Accept-Language on export/import +* Do not replace already replaced values on database import/export +* Set silent mode when activating sidewide plugins +* Replace old media style URLs with the new media style URLs on database import +* Replace user_level and capabilities user meta keys if tables have empty prefix on export +* Create separate action for extracting must-use plugins +* Add option "Do not export must-use plugins" in advanced settings +* Fix an issue with SSL that produces "Unable to resolve URL..." + += 5.52 = +* Simplify the text on import page +* Fix an issue with special characters on export and import +* Fix an issue with export and import of large files + += 5.51 = +* Add support for utf8mb4_unicode_520_ci database collation + += 5.50 = +* Improve database export process +* Simplify export and import cron +* Fix an issue with export and import progress status + += 5.49 = +* Test plugin up to WordPress 4.6 + += 5.48 = +* Improve support for large databases on export +* Add support for Box cloud storage +* Fix an issue with status on export/import +* Fix an issue with asynchronous requests on export/import + += 5.47 = +* Fix an issue with incorrect file size on export + += 5.46 = +* Add "Restore from Backups" video in readme file +* Display message if backups are inaccessible + += 5.45 = +* Fix an issue with blogs.dir path replacement + += 5.44 = +* Add "Do not replace email domain" option in advanced settings +* Add "ai1wm_exclude_content_from_export" WordPress hook on export +* Add HTML5 uploader + += 5.43 = +* Fix an issue when archiving dynamic files on export +* Support custom upload path for multisites +* Add support for various cache plugins + += 5.42 = +* Catch E_PARSE error on mu-plugins import +* Fix an issue with stop export that doesn't clean up the storage directory +* Initialize new cache instead of flushing the existing one on import/export + += 5.41 = +* Fix an issue when replacing serialized values on import +* List files in chunks +* Convert svg images to png +* Check if backups are readable before displaying them on "Backups" page +* Display version incompatibility notification on export/import/restore screen +* Fix double port issue on Bitnami +* Fix an issue on multisite export with cloud extensions + += 5.40 = +* Test plugin up to WordPress 4.5 + += 5.39 = +* Fix a bug in uploads path replacement + += 5.38 = +* Deactivate mu-plugins if fatal error appears on import + += 5.37 = +* Validate the archive before import + += 5.36 = +* Add OneDrive to readme.txt +* Fix a typo on import + += 5.35 = +* Add OneDrive to export/import pages +* Fix a bug when WordPress was used without a db prefix +* Fix a problem when downloading wpress files +* Improve the log system + += 4.19 = +* Fixed an issue with options cache + += 4.18 = +* Fixed an issue with large media files +* Fixed an issue with status file being cached + += 4.17 = +* Set "Tested up to" WordPress 4.4 + += 4.16 = +* Fix an issue with the transport layer on export/import + += 4.15 = +* Fix an issue with resovling mechanism on export/import + += 4.14 = +* Fix an issue with database import + += 4.13 = +* Add new mechanism for resolving HTTP requests + += 4.12 = +* Fix an issue with Google Drive extension + += 4.11 = +* Fix content filters on export + += 4.10 = +* Add HTTPS URL replacement +* Fix an issue when PDO is not available + += 4.6 = +* Fix an issue when the plugin was getting stuck on "Done creating an empty archive" +* Fix an issue when the plugin was getting stuck during import + += 4.3 = +* Add URL extension support +* Filter "mu-plugins" directory if "Do not export plugins (files)" is checked +* Fix utf8mb4 issue +* Fix translation issue + += 4.2 = +* Fix .wpress.bin format + += 4.1 = +* Add port to the host header on export/import +* Rename .wpress file to .wpress.bin file + += 4.0 = +* Fix file permission checks + += 3.9 = +* Fix could not resolve domain name on export/import + += 3.8 = +* Fix undefined method on Backups page if PHP version is < 5.3.6 + += 3.7 = +* Add IPv6 support on export/import + += 3.6 = +* Fixed undefined constant warnings + += 3.5 = +* Exclude core plugin and extensions on export if they have custom names + += 3.4 = +* Made export/import processes more reliable +* Allow the plugin to work with non-default name +* Preserve backups during plugin updates +* Improved find & replace functionality on the serialized data +* Removed backup file name restrictions + += 3.3 = +* Fixed a bug when retrieving export/import status progress +* Fixed a bug when database encoding utf8mb4_unicode_ci is not available + += 3.2.2 = +* Fixed plugin incompatibility during export/import that was reporting that the process could not be started + += 3.2.1 = +* Added username/password settings for WordPress sites behind HTTP basic authentication +* Fixed a bug when exporting/importing without public DNS record +* Fixed a bug when exporting/importing media files + += 3.2.0 = +* Added advanced settings on export page + += 3.1.1 = +* Fixed secret key issue on upgrade of the plugin + += 3.0.0 = +* Added export to File, [Dropbox](https://servmask.com/products/dropbox-extension), [Amazon S3](https://servmask.com/products/amazon-s3-extension), [Google Drive](https://servmask.com/products/google-drive-extension) +* Added import from File, [Dropbox](https://servmask.com/products/dropbox-extension), [Amazon S3](https://servmask.com/products/amazon-s3-extension), [Google Drive](https://servmask.com/products/google-drive-extension) +* Implemented our own archiving format that reduces export and import by a factor of 10 +* One-click export with the new simplified export page +* Improved upload functionality with auto-recognizing chunk size on import +* New **Backups** page for storing all WordPress site exports +* Easy restore WordPress site from **Backups** page +* Monitoring availability of the disk space on the server +* Both export and import happen in time chunks of 3 seconds +* Plugin works behind HTTP basic authentication + += 2.0.4 = +* Updated readme to reflect that the plugin is not multisite compatible + += 2.0.3 = +* Fixed a security issue while importing site using regular users + += 2.0.2 = +* Added support for WordPress v4.0 + += 2.0.1 = +* Fixed a bug when all user permissions are lost on import + += 2.0.0 = +* Added support for migration of WordPress in Network Mode (Multi Site) +* New improved UI and UX +* New improved language translations on the menu items and help texts +* Better error handling and notifications +* Fixed a bug while exporting comments and associated comments meta data +* Fixed a bug while using find/replace functionality +* Fixed a bug with storage directory permissions and search indexation + += 1.9.2 = +* Added PHP <= v5.2.7 compatibility + += 1.9.1 = +* Fixed an issue with earlier versions of PHP + += 1.9.0 = +* New improved design on the export/import page +* Added an option for gathering user experience statistics +* Added a message box with important notifications about the plugin +* Fixed a bug while exporting database with multiple WordPress sites +* Fixed a bug while exporting database with table constraints +* Fixed a bug with auto recognizing zip archiver + += 1.8.1 = +* Added "Get Support" link in the plugin list page +* Removed "All-in-One WP Migration Beta" link from the readme file + += 1.8.0 = +* Added support for dynamically recognizing Site URL and Home URL on the import page +* Fixed a bug when maximum uploaded size is exceeded +* Fixed a bug while exporting big database tables + += 1.7.2 = +* Added support for automatically switching database adapters for better performance and optimization +* Fixed a bug while using host:port syntax with MySQL PDO +* Fixed a bug while using find/replace functionality + += 1.7.1 = +* Fixed a bug while exporting WordPress plugins directory + += 1.7.0 = +* Added storage layer to avoid permission issues with OS's directory used for temporary storage +* Added additional checks to verify the consistency of the imported archive +* Fixed a bug that caused the database to be exported without data +* Removed unused variables from package.json file + += 1.6.0 = +* Added additional check for directory's permissions +* Added additional check for output buffering when exporting a file +* Fixed a bug when the archive was exported or imported with old version of Zlib library +* Fixed a bug with permalinks and flushing the rules + += 1.5.0 = +* Added support for additional errors and exceptions handling +* Added support for reporting a problem in better and easier way +* Improved support process in ZenDesk system for faster response time +* Fixed typos on the import page. Thanks to Terry Heenan + += 1.4.0 = +* Added a Twitter and Facebook share buttons to the sidebar on import and export pages + += 1.3.1 = +* Fixed a bug when the user was unable to import site archive +* Optimized and speeded up import process + += 1.3.0 = +* Added support for mysql connection to happen over sockets or TCP +* Added support for Windows OS and fully tested the plugin on IIS +* Added support for limited memory_limit - 1MB - The plugin now requires only 1MB to operate properly +* Added support for multisite +* Used mysql_unbuffered_query instead of mysql_query to overcome any memory problems +* Fixed a deprecated warning for mysql_pconnect when php 5.5 and above is used +* Fixed memory_limit problem with PCLZIP library +* Fixed a bug when the archive is exported with zero size when using PCLZIP +* Fixed a bug when the archive was exported broken on some servers +* Fixed a deprecated usage of preg_replace \e in php v5.5 and above + += 1.2.1 = +* Fixed an issue when HTTP Error was shown on some hosts after import, credit to Michael Simon +* Fixed an issue when exporting databases with different prefix than wp_, credit to najtrox +* Fixed an issue when PDO is avalable but mysql driver for PDO is not, credit to Jaydesain69 +* Deleted a plugin specific option when uninstalling the plugin (clean after itself) +* Support is done via Zendesk +* Included WP Version and Plugin version in the feedback form + += 1.2.0 = +* Increased upload limit of files from 128MB to 512MB +* Used ZipArchive with fallback to PclZip (a few users notified us that they don't have ZipArchive enabled on their servers) +* Used PDO with fallback to mysql (a few users notified us that they dont have PDO enabled on their servers, mysql is deprecated as of PHP v5.5 but we are supporting PHP v5.2.17) +* Supported PHP v5.2.17 and WordPress v3.3 and above +* Fixed a bug during export that causes plugins to not be exported on some hosts (the problem that you are experiencing) + += 1.1.0 = +* Importing files using chunks to overcome any webserver upload size restriction +* Fixed a bug where HTTP code error was shown to some users + += 1.0.0 = +* Export database as SQL file +* Export media files +* Export themes files +* Export installed plugins +* Unlimited find/replace actions +* Option to exclude spam comments +* Option to apply find/replace to GUIDs +* Option to exclude post revisions +* Option to exclude tables data diff --git a/wp-content/plugins/all-in-one-wp-migration/constants.php b/wp-content/plugins/all-in-one-wp-migration/constants.php new file mode 100644 index 0000000..dedae51 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/constants.php @@ -0,0 +1,1557 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +// ================ +// = Plugin Debug = +// ================ +define( 'AI1WM_DEBUG', false ); + +// ================== +// = Plugin Version = +// ================== +define( 'AI1WM_VERSION', '7.111' ); + +// =============== +// = Plugin Name = +// =============== +define( 'AI1WM_PLUGIN_NAME', 'all-in-one-wp-migration' ); + +// ================ +// = Storage Path = +// ================ +define( 'AI1WM_STORAGE_PATH', AI1WM_PATH . DIRECTORY_SEPARATOR . 'storage' ); + +// ================== +// = Error Log Path = +// ================== +define( 'AI1WM_ERROR_FILE', AI1WM_STORAGE_PATH . DIRECTORY_SEPARATOR . 'error.log' ); + +// =============== +// = Status Path = +// =============== +define( 'AI1WM_STATUS_FILE', AI1WM_STORAGE_PATH . DIRECTORY_SEPARATOR . 'status.js' ); + +// ============ +// = Lib Path = +// ============ +define( 'AI1WM_LIB_PATH', AI1WM_PATH . DIRECTORY_SEPARATOR . 'lib' ); + +// =================== +// = Controller Path = +// =================== +define( 'AI1WM_CONTROLLER_PATH', AI1WM_LIB_PATH . DIRECTORY_SEPARATOR . 'controller' ); + +// ============== +// = Model Path = +// ============== +define( 'AI1WM_MODEL_PATH', AI1WM_LIB_PATH . DIRECTORY_SEPARATOR . 'model' ); + +// ============= +// = View Path = +// ============= +define( 'AI1WM_TEMPLATES_PATH', AI1WM_LIB_PATH . DIRECTORY_SEPARATOR . 'view' ); + +// =================== +// = Set Bandar Path = +// =================== +define( 'BANDAR_TEMPLATES_PATH', AI1WM_TEMPLATES_PATH ); + +// =============== +// = Vendor Path = +// =============== +define( 'AI1WM_VENDOR_PATH', AI1WM_LIB_PATH . DIRECTORY_SEPARATOR . 'vendor' ); + +// ========================= +// = ServMask Feedback URL = +// ========================= +define( 'AI1WM_FEEDBACK_URL', 'https://servmask.com/ai1wm/feedback/create' ); + +// ============================== +// = ServMask Archive Tools URL = +// ============================== +define( 'AI1WM_ARCHIVE_TOOLS_URL', 'https://servmask.com/archive/tools' ); + +// ========================= +// = ServMask Table Prefix = +// ========================= +define( 'AI1WM_TABLE_PREFIX', 'SERVMASK_PREFIX_' ); + +// ======================== +// = Archive Backups Name = +// ======================== +define( 'AI1WM_BACKUPS_NAME', 'ai1wm-backups' ); + +// ========================= +// = Archive Database Name = +// ========================= +define( 'AI1WM_DATABASE_NAME', 'database.sql' ); + +// ======================== +// = Archive Package Name = +// ======================== +define( 'AI1WM_PACKAGE_NAME', 'package.json' ); + +// ========================== +// = Archive Multisite Name = +// ========================== +define( 'AI1WM_MULTISITE_NAME', 'multisite.json' ); + +// ====================== +// = Archive Blogs Name = +// ====================== +define( 'AI1WM_BLOGS_NAME', 'blogs.json' ); + +// ========================= +// = Archive Settings Name = +// ========================= +define( 'AI1WM_SETTINGS_NAME', 'settings.json' ); + +// ========================== +// = Archive Multipart Name = +// ========================== +define( 'AI1WM_MULTIPART_NAME', 'multipart.list' ); + +// ============================= +// = Archive Content List Name = +// ============================= +define( 'AI1WM_CONTENT_LIST_NAME', 'content.list' ); + +// =========================== +// = Archive Media List Name = +// =========================== +define( 'AI1WM_MEDIA_LIST_NAME', 'media.list' ); + +// ============================= +// = Archive Plugins List Name = +// ============================= +define( 'AI1WM_PLUGINS_LIST_NAME', 'plugins.list' ); + +// ============================ +// = Archive Themes List Name = +// ============================ +define( 'AI1WM_THEMES_LIST_NAME', 'themes.list' ); + +// ============================ +// = Archive Tables List Name = +// ============================ +define( 'AI1WM_TABLES_LIST_NAME', 'tables.list' ); + +// ================================= +// = Incremental Content List Name = +// ================================= +define( 'AI1WM_INCREMENTAL_CONTENT_LIST_NAME', 'incremental.content.list' ); + +// =============================== +// = Incremental Media List Name = +// =============================== +define( 'AI1WM_INCREMENTAL_MEDIA_LIST_NAME', 'incremental.media.list' ); + +// ================================= +// = Incremental Plugins List Name = +// ================================= +define( 'AI1WM_INCREMENTAL_PLUGINS_LIST_NAME', 'incremental.plugins.list' ); + +// ================================ +// = Incremental Themes List Name = +// ================================ +define( 'AI1WM_INCREMENTAL_THEMES_LIST_NAME', 'incremental.themes.list' ); + +// ================================= +// = Incremental Backups List Name = +// ================================= +define( 'AI1WM_INCREMENTAL_BACKUPS_LIST_NAME', 'incremental.backups.list' ); + +// ============================= +// = Archive Cookies Text Name = +// ============================= +define( 'AI1WM_COOKIES_NAME', 'cookies.txt' ); + +// ================================= +// = Archive Must-Use Plugins Name = +// ================================= +define( 'AI1WM_MUPLUGINS_NAME', 'mu-plugins' ); + +// ======================== +// = Less Cache Extension = +// ======================== +define( 'AI1WM_LESS_CACHE_EXTENSION', '.less.cache' ); + +// ============================= +// = SQLite Database Extension = +// ============================= +define( 'AI1WM_SQLITE_DATABASE_EXTENSION', '.sqlite' ); + +// ============================ +// = Elementor CSS Cache Name = +// ============================ +define( 'AI1WM_ELEMENTOR_CSS_NAME', 'uploads' . DIRECTORY_SEPARATOR . 'elementor' . DIRECTORY_SEPARATOR . 'css' ); + +// ========================= +// = CiviCRM Settings Name = +// ========================= +define( 'AI1WM_CIVICRM_SETTINGS_NAME', 'uploads' . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR . 'civicrm.settings.php' ); + +// ============================ +// = CiviCRM Templates C Name = +// ============================ +define( 'AI1WM_CIVICRM_TEMPLATES_C_NAME', 'uploads' . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR . 'templates_c' ); + +// =============================== +// = CiviCRM Config And Log Name = +// =============================== +define( 'AI1WM_CIVICRM_CONFIG_AND_LOG_NAME', 'uploads' . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR . 'ConfigAndLog' ); + +// ======================= +// = CiviCRM Upload Name = +// ======================= +define( 'AI1WM_CIVICRM_UPLOAD_NAME', 'uploads' . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR . 'upload' ); + +// ======================== +// = CiviCRM Dynamic Name = +// ======================== +define( 'AI1WM_CIVICRM_DYNAMIC_NAME', 'uploads' . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR . 'dynamic' ); + +// ========================= +// = Themes Functions Name = +// ========================= +define( 'AI1WM_THEMES_FUNCTIONS_NAME', 'themes' . DIRECTORY_SEPARATOR . 'functions.php' ); + +// ============================= +// = Endurance Page Cache Name = +// ============================= +define( 'AI1WM_ENDURANCE_PAGE_CACHE_NAME', 'endurance-page-cache.php' ); + +// =========================== +// = Endurance PHP Edge Name = +// =========================== +define( 'AI1WM_ENDURANCE_PHP_EDGE_NAME', 'endurance-php-edge.php' ); + +// ================================ +// = Endurance Browser Cache Name = +// ================================ +define( 'AI1WM_ENDURANCE_BROWSER_CACHE_NAME', 'endurance-browser-cache.php' ); + +// ========================= +// = GD System Plugin Name = +// ========================= +define( 'AI1WM_GD_SYSTEM_PLUGIN_NAME', 'gd-system-plugin.php' ); + +// ======================= +// = WP Stack Cache Name = +// ======================= +define( 'AI1WM_WP_STACK_CACHE_NAME', 'wp-stack-cache.php' ); + +// =========================== +// = WP.com Site Loader Name = +// =========================== +define( 'AI1WM_WP_COMSH_LOADER_NAME', 'wpcomsh-loader.php' ); + +// =========================== +// = WP.com Site Helper Name = +// =========================== +define( 'AI1WM_WP_COMSH_HELPER_NAME', 'wpcomsh' ); + +// ==================================== +// = SQLite Database Integration Name = +// ==================================== +define( 'AI1WM_SQLITE_DATABASE_INTEGRATION_NAME', 'sqlite-database-integration' ); + +// ============================= +// = SQLite Database Zero Name = +// ============================= +define( 'AI1WM_SQLITE_DATABASE_ZERO_NAME', '0-sqlite.php' ); + +// ================================ +// = WP Engine System Plugin Name = +// ================================ +define( 'AI1WM_WP_ENGINE_SYSTEM_PLUGIN_NAME', 'mu-plugin.php' ); + +// =========================== +// = WPE Sign On Plugin Name = +// =========================== +define( 'AI1WM_WPE_SIGN_ON_PLUGIN_NAME', 'wpe-wp-sign-on-plugin.php' ); + +// =================================== +// = WP Engine Security Auditor Name = +// =================================== +define( 'AI1WM_WP_ENGINE_SECURITY_AUDITOR_NAME', 'wpengine-security-auditor.php' ); + +// =========================== +// = WP Cerber Security Name = +// =========================== +define( 'AI1WM_WP_CERBER_SECURITY_NAME', 'aaa-wp-cerber.php' ); + +// ============================= +// = EOS Deactivate Plugins Name +// ============================= +define( 'AI1WM_EOS_DEACTIVATE_PLUGINS_NAME', 'eos-deactivate-plugins.php' ); + +// =============================== +// = W3TC config file to exclude = +// =============================== +define( 'AI1WM_W3TC_CONFIG_FILE', 'w3tc-config' . DIRECTORY_SEPARATOR . 'master.php' ); + +// ================== +// = Error Log Name = +// ================== +define( 'AI1WM_ERROR_NAME', 'error-log-%s.log' ); + +// ============== +// = Secret Key = +// ============== +define( 'AI1WM_SECRET_KEY', 'ai1wm_secret_key' ); + +// ============= +// = Auth User = +// ============= +define( 'AI1WM_AUTH_USER', 'ai1wm_auth_user' ); + +// ================= +// = Auth Password = +// ================= +define( 'AI1WM_AUTH_PASSWORD', 'ai1wm_auth_password' ); + +// =============== +// = Auth Header = +// =============== +define( 'AI1WM_AUTH_HEADER', 'ai1wm_auth_header' ); + +// ============ +// = Site URL = +// ============ +define( 'AI1WM_SITE_URL', 'siteurl' ); + +// ============ +// = Home URL = +// ============ +define( 'AI1WM_HOME_URL', 'home' ); + +// ================ +// = Uploads Path = +// ================ +define( 'AI1WM_UPLOADS_PATH', 'upload_path' ); + +// ==================== +// = Uploads URL Path = +// ==================== +define( 'AI1WM_UPLOADS_URL_PATH', 'upload_url_path' ); + +// ================== +// = Active Plugins = +// ================== +define( 'AI1WM_ACTIVE_PLUGINS', 'active_plugins' ); + +// =========================== +// = Active Sitewide Plugins = +// =========================== +define( 'AI1WM_ACTIVE_SITEWIDE_PLUGINS', 'active_sitewide_plugins' ); + +// ========================== +// = Jetpack Active Modules = +// ========================== +define( 'AI1WM_JETPACK_ACTIVE_MODULES', 'jetpack_active_modules' ); + +// ==================================== +// = Swift Optimizer Plugin Organizer = +// ==================================== +define( 'AI1WM_SWIFT_OPTIMIZER_PLUGIN_ORGANIZER', 'swift_performance_plugin_organizer' ); + +// ====================== +// = MS Files Rewriting = +// ====================== +define( 'AI1WM_MS_FILES_REWRITING', 'ms_files_rewriting' ); + +// =================== +// = Active Template = +// =================== +define( 'AI1WM_ACTIVE_TEMPLATE', 'template' ); + +// ===================== +// = Active Stylesheet = +// ===================== +define( 'AI1WM_ACTIVE_STYLESHEET', 'stylesheet' ); + +// ============== +// = DB Version = +// ============== +define( 'AI1WM_DB_VERSION', 'db_version' ); + +// ====================== +// = Initial DB Version = +// ====================== +define( 'AI1WM_INITIAL_DB_VERSION', 'initial_db_version' ); + +// ============ +// = Cron Key = +// ============ +define( 'AI1WM_CRON', 'cron' ); + +// ======================= +// = Backups Path Option = +// ======================= +define( 'AI1WM_BACKUPS_PATH_OPTION', 'ai1wm_backups_path' ); + +// =================== +// = Backups Labels = +// =================== +define( 'AI1WM_BACKUPS_LABELS', 'ai1wm_backups_labels' ); + +// =============== +// = Sites Links = +// =============== +define( 'AI1WM_SITES_LINKS', 'ai1wm_sites_links' ); + +// ============================== +// = Last Check For Updates Key = +// ============================== +define( 'AI1WM_LAST_CHECK_FOR_UPDATES', 'ai1wm_last_check_for_updates' ); + +// =============== +// = Updater Key = +// =============== +define( 'AI1WM_UPDATER', 'ai1wm_updater' ); + +// ============== +// = Status Key = +// ============== +define( 'AI1WM_STATUS', 'ai1wm_status' ); + +// ================ +// = Messages Key = +// ================ +define( 'AI1WM_MESSAGES', 'ai1wm_messages' ); + +// ================= +// = Support Email = +// ================= +define( 'AI1WM_SUPPORT_EMAIL', 'support@servmask.com' ); + +// ================== +// = Max Chunk Size = +// ================== +define( 'AI1WM_MAX_CHUNK_SIZE', 5 * 1024 * 1024 ); + +// ===================== +// = Max Chunk Retries = +// ===================== +define( 'AI1WM_MAX_CHUNK_RETRIES', 10 ); + +// =============== +// = CIPHER NAME = +// =============== +define( 'AI1WM_CIPHER_NAME', 'AES-256-CBC' ); + +// ============= +// = SIGN TEXT = +// ============= +define( 'AI1WM_SIGN_TEXT', '"How long do you want these messages to remain secret? I want them to remain secret for as long as men are capable of evil." - Neal Stephenson' ); + +// =========================== +// = Max Transaction Queries = +// =========================== +if ( ! defined( 'AI1WM_MAX_TRANSACTION_QUERIES' ) ) { + define( 'AI1WM_MAX_TRANSACTION_QUERIES', 1000 ); +} + +// ====================== +// = Max Select Records = +// ====================== +if ( ! defined( 'AI1WM_MAX_SELECT_RECORDS' ) ) { + define( 'AI1WM_MAX_SELECT_RECORDS', 1000 ); +} + +// ======================= +// = Max Storage Cleanup = +// ======================= +define( 'AI1WM_MAX_STORAGE_CLEANUP', 24 * 60 * 60 ); + +// =================== +// = Max Log Cleanup = +// =================== +define( 'AI1WM_MAX_LOG_CLEANUP', 7 * 24 * 60 * 60 ); + +// ===================== +// = Disk Space Factor = +// ===================== +define( 'AI1WM_DISK_SPACE_FACTOR', 2 ); + +// ==================== +// = Disk Space Extra = +//===================== +define( 'AI1WM_DISK_SPACE_EXTRA', 300 * 1024 * 1024 ); + +// =========================== +// = WP_CONTENT_DIR Constant = +// =========================== +if ( ! defined( 'WP_CONTENT_DIR' ) ) { + define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); +} + +// ======================== +// = Backups Default Path = +// ======================== +if ( ! defined( 'AI1WM_DEFAULT_BACKUPS_PATH' ) ) { + define( 'AI1WM_DEFAULT_BACKUPS_PATH', WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'ai1wm-backups' ); +} + +// ================ +// = Backups Path = +// ================ +define( 'AI1WM_BACKUPS_PATH', ai1wm_resolve_backups_path() ); + +// ========================== +// = Storage index.php File = +// ========================== +define( 'AI1WM_STORAGE_INDEX_PHP', AI1WM_STORAGE_PATH . DIRECTORY_SEPARATOR . 'index.php' ); + +// =========================== +// = Storage index.html File = +// =========================== +define( 'AI1WM_STORAGE_INDEX_HTML', AI1WM_STORAGE_PATH . DIRECTORY_SEPARATOR . 'index.html' ); + +// ========================== +// = Storage .htaccess File = +// ========================== +define( 'AI1WM_STORAGE_HTACCESS', AI1WM_STORAGE_PATH . DIRECTORY_SEPARATOR . '.htaccess' ); + +// =========================== +// = Storage web.config File = +// =========================== +define( 'AI1WM_STORAGE_WEBCONFIG', AI1WM_STORAGE_PATH . DIRECTORY_SEPARATOR . 'web.config' ); + +// ========================== +// = Backups index.php File = +// ========================== +define( 'AI1WM_BACKUPS_INDEX_PHP', AI1WM_BACKUPS_PATH . DIRECTORY_SEPARATOR . 'index.php' ); + +// =========================== +// = Backups index.html File = +// =========================== +define( 'AI1WM_BACKUPS_INDEX_HTML', AI1WM_BACKUPS_PATH . DIRECTORY_SEPARATOR . 'index.html' ); + +// =========================== +// = Backups robots.txt File = +// =========================== +define( 'AI1WM_BACKUPS_ROBOTS_TXT', AI1WM_BACKUPS_PATH . DIRECTORY_SEPARATOR . 'robots.txt' ); + +// ========================== +// = Backups .htaccess File = +// ========================== +define( 'AI1WM_BACKUPS_HTACCESS', AI1WM_BACKUPS_PATH . DIRECTORY_SEPARATOR . '.htaccess' ); + +// =========================== +// = Backups web.config File = +// =========================== +define( 'AI1WM_BACKUPS_WEBCONFIG', AI1WM_BACKUPS_PATH . DIRECTORY_SEPARATOR . 'web.config' ); + +// ============================ +// = WordPress .htaccess File = +// ============================ +define( 'AI1WM_WORDPRESS_HTACCESS', ABSPATH . DIRECTORY_SEPARATOR . '.htaccess' ); + +// ============================= +// = WordPress web.config File = +// ============================= +define( 'AI1WM_WORDPRESS_WEBCONFIG', ABSPATH . DIRECTORY_SEPARATOR . 'web.config' ); + +// ================================ +// = WP Migration Plugin Base Dir = +// ================================ +if ( defined( 'AI1WM_PLUGIN_BASENAME' ) ) { + define( 'AI1WM_PLUGIN_BASEDIR', dirname( AI1WM_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WM_PLUGIN_BASEDIR', 'all-in-one-wp-migration' ); +} + +// ====================================== +// = Microsoft Azure Extension Base Dir = +// ====================================== +if ( defined( 'AI1WMZE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMZE_PLUGIN_BASEDIR', dirname( AI1WMZE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMZE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-azure-storage-extension' ); +} + +// =================================== +// = Microsoft Azure Extension Title = +// =================================== +if ( ! defined( 'AI1WMZE_PLUGIN_TITLE' ) ) { + define( 'AI1WMZE_PLUGIN_TITLE', 'Microsoft Azure Storage Extension' ); +} + +// =================================== +// = Microsoft Azure Extension About = +// =================================== +if ( ! defined( 'AI1WMZE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMZE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/microsoft-azure-storage-extension.json' ); +} + +// =================================== +// = Microsoft Azure Extension Check = +// =================================== +if ( ! defined( 'AI1WMZE_PLUGIN_CHECK' ) ) { + define( 'AI1WMZE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/microsoft-azure-storage-extension' ); +} + +// ================================= +// = Microsoft Azure Extension Key = +// ================================= +if ( ! defined( 'AI1WMZE_PLUGIN_KEY' ) ) { + define( 'AI1WMZE_PLUGIN_KEY', 'ai1wmze_plugin_key' ); +} + +// =================================== +// = Microsoft Azure Extension Short = +// =================================== +if ( ! defined( 'AI1WMZE_PLUGIN_SHORT' ) ) { + define( 'AI1WMZE_PLUGIN_SHORT', 'azure-storage' ); +} + +// =================================== +// = Backblaze B2 Extension Base Dir = +// =================================== +if ( defined( 'AI1WMAE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMAE_PLUGIN_BASEDIR', dirname( AI1WMAE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMAE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-b2-extension' ); +} + +// ================================ +// = Backblaze B2 Extension Title = +// ================================ +if ( ! defined( 'AI1WMAE_PLUGIN_TITLE' ) ) { + define( 'AI1WMAE_PLUGIN_TITLE', 'Backblaze B2 Extension' ); +} + +// ================================ +// = Backblaze B2 Extension About = +// ================================ +if ( ! defined( 'AI1WMAE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMAE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/backblaze-b2-extension.json' ); +} + +// ================================ +// = Backblaze B2 Extension Check = +// ================================ +if ( ! defined( 'AI1WMAE_PLUGIN_CHECK' ) ) { + define( 'AI1WMAE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/backblaze-b2-extension' ); +} + +// ============================== +// = Backblaze B2 Extension Key = +// ============================== +if ( ! defined( 'AI1WMAE_PLUGIN_KEY' ) ) { + define( 'AI1WMAE_PLUGIN_KEY', 'ai1wmae_plugin_key' ); +} + +// ================================ +// = Backblaze B2 Extension Short = +// ================================ +if ( ! defined( 'AI1WMAE_PLUGIN_SHORT' ) ) { + define( 'AI1WMAE_PLUGIN_SHORT', 'b2' ); +} + +// ========================== +// = Backup Plugin Base Dir = +// ========================== +if ( defined( 'AI1WMVE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMVE_PLUGIN_BASEDIR', dirname( AI1WMVE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMVE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-backup' ); +} + +// ======================= +// = Backup Plugin Title = +// ======================= +if ( ! defined( 'AI1WMVE_PLUGIN_TITLE' ) ) { + define( 'AI1WMVE_PLUGIN_TITLE', 'Backup Plugin' ); +} + +// ======================= +// = Backup Plugin About = +// ======================= +if ( ! defined( 'AI1WMVE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMVE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/backup-plugin.json' ); +} + +// ======================= +// = Backup Plugin Check = +// ======================= +if ( ! defined( 'AI1WMVE_PLUGIN_CHECK' ) ) { + define( 'AI1WMVE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/backup-plugin' ); +} + +// ===================== +// = Backup Plugin Key = +// ===================== +if ( ! defined( 'AI1WMVE_PLUGIN_KEY' ) ) { + define( 'AI1WMVE_PLUGIN_KEY', 'ai1wmve_plugin_key' ); +} + +// ======================= +// = Backup Plugin Short = +// ======================= +if ( ! defined( 'AI1WMVE_PLUGIN_SHORT' ) ) { + define( 'AI1WMVE_PLUGIN_SHORT', 'backup' ); +} + +// ========================== +// = Box Extension Base Dir = +// ========================== +if ( defined( 'AI1WMBE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMBE_PLUGIN_BASEDIR', dirname( AI1WMBE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMBE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-box-extension' ); +} + +// ======================= +// = Box Extension Title = +// ======================= +if ( ! defined( 'AI1WMBE_PLUGIN_TITLE' ) ) { + define( 'AI1WMBE_PLUGIN_TITLE', 'Box Extension' ); +} + +// ======================= +// = Box Extension About = +// ======================= +if ( ! defined( 'AI1WMBE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMBE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/box-extension.json' ); +} + +// ======================= +// = Box Extension Check = +// ======================= +if ( ! defined( 'AI1WMBE_PLUGIN_CHECK' ) ) { + define( 'AI1WMBE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/box-extension' ); +} + +// ===================== +// = Box Extension Key = +// ===================== +if ( ! defined( 'AI1WMBE_PLUGIN_KEY' ) ) { + define( 'AI1WMBE_PLUGIN_KEY', 'ai1wmbe_plugin_key' ); +} + +// ======================= +// = Box Extension Short = +// ======================= +if ( ! defined( 'AI1WMBE_PLUGIN_SHORT' ) ) { + define( 'AI1WMBE_PLUGIN_SHORT', 'box' ); +} + +// ========================================== +// = DigitalOcean Spaces Extension Base Dir = +// ========================================== +if ( defined( 'AI1WMIE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMIE_PLUGIN_BASEDIR', dirname( AI1WMIE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMIE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-digitalocean-extension' ); +} + +// ======================================= +// = DigitalOcean Spaces Extension Title = +// ======================================= +if ( ! defined( 'AI1WMIE_PLUGIN_TITLE' ) ) { + define( 'AI1WMIE_PLUGIN_TITLE', 'DigitalOcean Spaces Extension' ); +} + +// ======================================= +// = DigitalOcean Spaces Extension About = +// ======================================= +if ( ! defined( 'AI1WMIE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMIE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/digitalocean-spaces-extension.json' ); +} + +// ======================================= +// = DigitalOcean Spaces Extension Check = +// ======================================= +if ( ! defined( 'AI1WMIE_PLUGIN_CHECK' ) ) { + define( 'AI1WMIE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/digitalocean-spaces-extension' ); +} + +// ===================================== +// = DigitalOcean Spaces Extension Key = +// ===================================== +if ( ! defined( 'AI1WMIE_PLUGIN_KEY' ) ) { + define( 'AI1WMIE_PLUGIN_KEY', 'ai1wmie_plugin_key' ); +} + +// ======================================= +// = DigitalOcean Spaces Extension Short = +// ======================================= +if ( ! defined( 'AI1WMIE_PLUGIN_SHORT' ) ) { + define( 'AI1WMIE_PLUGIN_SHORT', 'digitalocean' ); +} + +// ============================= +// = Direct Extension Base Dir = +// ============================= +if ( defined( 'AI1WMXE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMXE_PLUGIN_BASEDIR', dirname( AI1WMXE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMXE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-direct-extension' ); +} +// ========================== +// = Direct Extension Title = +// ========================== +if ( ! defined( 'AI1WMXE_PLUGIN_TITLE' ) ) { + define( 'AI1WMXE_PLUGIN_TITLE', 'Direct Extension' ); +} +// ========================== +// = Direct Extension About = +// ========================== +if ( ! defined( 'AI1WMXE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMXE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/direct-extension.json' ); +} + +// ========================== +// = Direct Extension Check = +// ========================== +if ( ! defined( 'AI1WMXE_PLUGIN_CHECK' ) ) { + define( 'AI1WMXE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/direct-extension' ); +} + +// ======================== +// = Direct Extension Key = +// ======================== +if ( ! defined( 'AI1WMXE_PLUGIN_KEY' ) ) { + define( 'AI1WMXE_PLUGIN_KEY', 'ai1wmxe_plugin_key' ); +} +// ========================== +// = Direct Extension Short = +// ========================== +if ( ! defined( 'AI1WMXE_PLUGIN_SHORT' ) ) { + define( 'AI1WMXE_PLUGIN_SHORT', 'direct' ); +} + +// ============================== +// = Dropbox Extension Base Dir = +// ============================== +if ( defined( 'AI1WMDE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMDE_PLUGIN_BASEDIR', dirname( AI1WMDE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMDE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-dropbox-extension' ); +} + +// =========================== +// = Dropbox Extension Title = +// =========================== +if ( ! defined( 'AI1WMDE_PLUGIN_TITLE' ) ) { + define( 'AI1WMDE_PLUGIN_TITLE', 'Dropbox Extension' ); +} + +// =========================== +// = Dropbox Extension About = +// =========================== +if ( ! defined( 'AI1WMDE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMDE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/dropbox-extension.json' ); +} + +// =========================== +// = Dropbox Extension Check = +// =========================== +if ( ! defined( 'AI1WMDE_PLUGIN_CHECK' ) ) { + define( 'AI1WMDE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/dropbox-extension' ); +} + +// ========================= +// = Dropbox Extension Key = +// ========================= +if ( ! defined( 'AI1WMDE_PLUGIN_KEY' ) ) { + define( 'AI1WMDE_PLUGIN_KEY', 'ai1wmde_plugin_key' ); +} + +// =========================== +// = Dropbox Extension Short = +// =========================== +if ( ! defined( 'AI1WMDE_PLUGIN_SHORT' ) ) { + define( 'AI1WMDE_PLUGIN_SHORT', 'dropbox' ); +} + +// =========================== +// = File Extension Base Dir = +// =========================== +if ( defined( 'AI1WMTE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMTE_PLUGIN_BASEDIR', dirname( AI1WMTE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMTE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-file-extension' ); +} + +// ======================== +// = File Extension Title = +// ======================== +if ( ! defined( 'AI1WMTE_PLUGIN_TITLE' ) ) { + define( 'AI1WMTE_PLUGIN_TITLE', 'File Extension' ); +} + +// ======================== +// = File Extension About = +// ======================== +if ( ! defined( 'AI1WMTE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMTE_PLUGIN_ABOUT', 'https://import.wp-migration.com/file-extension.json' ); +} + +// ======================== +// = File Extension Check = +// ======================== +if ( ! defined( 'AI1WMTE_PLUGIN_CHECK' ) ) { + define( 'AI1WMTE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/file-extension' ); +} + +// ====================== +// = File Extension Key = +// ====================== +if ( ! defined( 'AI1WMTE_PLUGIN_KEY' ) ) { + define( 'AI1WMTE_PLUGIN_KEY', 'ai1wmte_plugin_key' ); +} + +// ======================== +// = File Extension Short = +// ======================== +if ( ! defined( 'AI1WMTE_PLUGIN_SHORT' ) ) { + define( 'AI1WMTE_PLUGIN_SHORT', 'file' ); +} + +// ========================== +// = FTP Extension Base Dir = +// ========================== +if ( defined( 'AI1WMFE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMFE_PLUGIN_BASEDIR', dirname( AI1WMFE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMFE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-ftp-extension' ); +} + +// ======================= +// = FTP Extension Title = +// ======================= +if ( ! defined( 'AI1WMFE_PLUGIN_TITLE' ) ) { + define( 'AI1WMFE_PLUGIN_TITLE', 'FTP Extension' ); +} + +// ======================= +// = FTP Extension About = +// ======================= +if ( ! defined( 'AI1WMFE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMFE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/ftp-extension.json' ); +} + +// ======================= +// = FTP Extension Check = +// ======================= +if ( ! defined( 'AI1WMFE_PLUGIN_CHECK' ) ) { + define( 'AI1WMFE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/ftp-extension' ); +} + +// ===================== +// = FTP Extension Key = +// ===================== +if ( ! defined( 'AI1WMFE_PLUGIN_KEY' ) ) { + define( 'AI1WMFE_PLUGIN_KEY', 'ai1wmfe_plugin_key' ); +} + +// ======================= +// = FTP Extension Short = +// ======================= +if ( ! defined( 'AI1WMFE_PLUGIN_SHORT' ) ) { + define( 'AI1WMFE_PLUGIN_SHORT', 'ftp' ); +} + +// =========================================== +// = Google Cloud Storage Extension Base Dir = +// =========================================== +if ( defined( 'AI1WMCE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMCE_PLUGIN_BASEDIR', dirname( AI1WMCE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMCE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-gcloud-storage-extension' ); +} + +// ======================================== +// = Google Cloud Storage Extension Title = +// ======================================== +if ( ! defined( 'AI1WMCE_PLUGIN_TITLE' ) ) { + define( 'AI1WMCE_PLUGIN_TITLE', 'Google Cloud Storage Extension' ); +} + +// ======================================== +// = Google Cloud Storage Extension About = +// ======================================== +if ( ! defined( 'AI1WMCE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMCE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/google-cloud-storage-extension.json' ); +} + +// ======================================== +// = Google Cloud Storage Extension Check = +// ======================================== +if ( ! defined( 'AI1WMCE_PLUGIN_CHECK' ) ) { + define( 'AI1WMCE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/google-cloud-storage-extension' ); +} + +// ====================================== +// = Google Cloud Storage Extension Key = +// ====================================== +if ( ! defined( 'AI1WMCE_PLUGIN_KEY' ) ) { + define( 'AI1WMCE_PLUGIN_KEY', 'ai1wmce_plugin_key' ); +} + +// ======================================== +// = Google Cloud Storage Extension Short = +// ======================================== +if ( ! defined( 'AI1WMCE_PLUGIN_SHORT' ) ) { + define( 'AI1WMCE_PLUGIN_SHORT', 'gcloud-storage' ); +} + +// =================================== +// = Google Drive Extension Base Dir = +// =================================== +if ( defined( 'AI1WMGE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMGE_PLUGIN_BASEDIR', dirname( AI1WMGE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMGE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-gdrive-extension' ); +} + +// ================================ +// = Google Drive Extension Title = +// ================================ +if ( ! defined( 'AI1WMGE_PLUGIN_TITLE' ) ) { + define( 'AI1WMGE_PLUGIN_TITLE', 'Google Drive Extension' ); +} + +// ================================ +// = Google Drive Extension About = +// ================================ +if ( ! defined( 'AI1WMGE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMGE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/google-drive-extension.json' ); +} + +// ================================ +// = Google Drive Extension Check = +// ================================ +if ( ! defined( 'AI1WMGE_PLUGIN_CHECK' ) ) { + define( 'AI1WMGE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/google-drive-extension' ); +} + +// ============================== +// = Google Drive Extension Key = +// ============================== +if ( ! defined( 'AI1WMGE_PLUGIN_KEY' ) ) { + define( 'AI1WMGE_PLUGIN_KEY', 'ai1wmge_plugin_key' ); +} + +// ================================ +// = Google Drive Extension Short = +// ================================ +if ( ! defined( 'AI1WMGE_PLUGIN_SHORT' ) ) { + define( 'AI1WMGE_PLUGIN_SHORT', 'gdrive' ); +} + +// ===================================== +// = Amazon Glacier Extension Base Dir = +// ===================================== +if ( defined( 'AI1WMRE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMRE_PLUGIN_BASEDIR', dirname( AI1WMRE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMRE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-glacier-extension' ); +} + +// ================================== +// = Amazon Glacier Extension Title = +// ================================== +if ( ! defined( 'AI1WMRE_PLUGIN_TITLE' ) ) { + define( 'AI1WMRE_PLUGIN_TITLE', 'Amazon Glacier Extension' ); +} + +// ================================== +// = Amazon Glacier Extension About = +// ================================== +if ( ! defined( 'AI1WMRE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMRE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/amazon-glacier-extension.json' ); +} + +// ================================== +// = Amazon Glacier Extension Check = +// ================================== +if ( ! defined( 'AI1WMRE_PLUGIN_CHECK' ) ) { + define( 'AI1WMRE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/amazon-glacier-extension' ); +} + +// ================================ +// = Amazon Glacier Extension Key = +// ================================ +if ( ! defined( 'AI1WMRE_PLUGIN_KEY' ) ) { + define( 'AI1WMRE_PLUGIN_KEY', 'ai1wmre_plugin_key' ); +} + +// ================================== +// = Amazon Glacier Extension Short = +// ================================== +if ( ! defined( 'AI1WMRE_PLUGIN_SHORT' ) ) { + define( 'AI1WMRE_PLUGIN_SHORT', 'glacier' ); +} + +// =========================== +// = Mega Extension Base Dir = +// =========================== +if ( defined( 'AI1WMEE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMEE_PLUGIN_BASEDIR', dirname( AI1WMEE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMEE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-mega-extension' ); +} + +// ======================== +// = Mega Extension Title = +// ======================== +if ( ! defined( 'AI1WMEE_PLUGIN_TITLE' ) ) { + define( 'AI1WMEE_PLUGIN_TITLE', 'Mega Extension' ); +} + +// ======================== +// = Mega Extension About = +// ======================== +if ( ! defined( 'AI1WMEE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMEE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/mega-extension.json' ); +} + +// ======================== +// = Mega Extension Check = +// ======================== +if ( ! defined( 'AI1WMEE_PLUGIN_CHECK' ) ) { + define( 'AI1WMEE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/mega-extension' ); +} + +// ====================== +// = Mega Extension Key = +// ====================== +if ( ! defined( 'AI1WMEE_PLUGIN_KEY' ) ) { + define( 'AI1WMEE_PLUGIN_KEY', 'ai1wmee_plugin_key' ); +} + +// ======================== +// = Mega Extension Short = +// ======================== +if ( ! defined( 'AI1WMEE_PLUGIN_SHORT' ) ) { + define( 'AI1WMEE_PLUGIN_SHORT', 'mega' ); +} + +// ================================ +// = Multisite Extension Base Dir = +// ================================ +if ( defined( 'AI1WMME_PLUGIN_BASENAME' ) ) { + define( 'AI1WMME_PLUGIN_BASEDIR', dirname( AI1WMME_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMME_PLUGIN_BASEDIR', 'all-in-one-wp-migration-multisite-extension' ); +} + +// ============================= +// = Multisite Extension Title = +// ============================= +if ( ! defined( 'AI1WMME_PLUGIN_TITLE' ) ) { + define( 'AI1WMME_PLUGIN_TITLE', 'Multisite Extension' ); +} + +// ============================= +// = Multisite Extension About = +// ============================= +if ( ! defined( 'AI1WMME_PLUGIN_ABOUT' ) ) { + define( 'AI1WMME_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/multisite-extension.json' ); +} + +// ============================= +// = Multisite Extension Check = +// ============================= +if ( ! defined( 'AI1WMME_PLUGIN_CHECK' ) ) { + define( 'AI1WMME_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/multisite-extension' ); +} + +// =========================== +// = Multisite Extension Key = +// =========================== +if ( ! defined( 'AI1WMME_PLUGIN_KEY' ) ) { + define( 'AI1WMME_PLUGIN_KEY', 'ai1wmme_plugin_key' ); +} + +// ============================= +// = Multisite Extension Short = +// ============================= +if ( ! defined( 'AI1WMME_PLUGIN_SHORT' ) ) { + define( 'AI1WMME_PLUGIN_SHORT', 'multisite' ); +} + +// =============================== +// = OneDrive Extension Base Dir = +// =============================== +if ( defined( 'AI1WMOE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMOE_PLUGIN_BASEDIR', dirname( AI1WMOE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMOE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-onedrive-extension' ); +} + +// ============================ +// = OneDrive Extension Title = +// ============================ +if ( ! defined( 'AI1WMOE_PLUGIN_TITLE' ) ) { + define( 'AI1WMOE_PLUGIN_TITLE', 'OneDrive Extension' ); +} + +// ============================ +// = OneDrive Extension About = +// ============================ +if ( ! defined( 'AI1WMOE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMOE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/onedrive-extension.json' ); +} + +// ============================ +// = OneDrive Extension Check = +// ============================ +if ( ! defined( 'AI1WMOE_PLUGIN_CHECK' ) ) { + define( 'AI1WMOE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/onedrive-extension' ); +} + +// ========================== +// = OneDrive Extension Key = +// ========================== +if ( ! defined( 'AI1WMOE_PLUGIN_KEY' ) ) { + define( 'AI1WMOE_PLUGIN_KEY', 'ai1wmoe_plugin_key' ); +} + +// ============================ +// = OneDrive Extension Short = +// ============================ +if ( ! defined( 'AI1WMOE_PLUGIN_SHORT' ) ) { + define( 'AI1WMOE_PLUGIN_SHORT', 'onedrive' ); +} + +// ============================= +// = pCloud Extension Base Dir = +// ============================= +if ( defined( 'AI1WMPE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMPE_PLUGIN_BASEDIR', dirname( AI1WMPE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMPE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-pcloud-extension' ); +} + +// ========================== +// = pCloud Extension Title = +// ========================== +if ( ! defined( 'AI1WMPE_PLUGIN_TITLE' ) ) { + define( 'AI1WMPE_PLUGIN_TITLE', 'pCloud Extension' ); +} + +// ========================== +// = pCloud Extension About = +// ========================== +if ( ! defined( 'AI1WMPE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMPE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/pcloud-extension.json' ); +} + +// ========================== +// = pCloud Extension Check = +// ========================== +if ( ! defined( 'AI1WMPE_PLUGIN_CHECK' ) ) { + define( 'AI1WMPE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/pcloud-extension' ); +} + +// ======================== +// = pCloud Extension Key = +// ======================== +if ( ! defined( 'AI1WMPE_PLUGIN_KEY' ) ) { + define( 'AI1WMPE_PLUGIN_KEY', 'ai1wmpe_plugin_key' ); +} + +// ========================== +// = pCloud Extension Short = +// ========================== +if ( ! defined( 'AI1WMPE_PLUGIN_SHORT' ) ) { + define( 'AI1WMPE_PLUGIN_SHORT', 'pcloud' ); +} + +// ======================= +// = Pro Plugin Base Dir = +// ======================= +if ( defined( 'AI1WMKE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMKE_PLUGIN_BASEDIR', dirname( AI1WMKE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMKE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-pro' ); +} + +// ==================== +// = Pro Plugin Title = +// ==================== +if ( ! defined( 'AI1WMKE_PLUGIN_TITLE' ) ) { + define( 'AI1WMKE_PLUGIN_TITLE', 'All-in-One WP Migration Pro' ); +} + +// ==================== +// = Pro Plugin About = +// ==================== +if ( ! defined( 'AI1WMKE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMKE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/all-in-one-wp-migration-pro.json' ); +} + +// ==================== +// = Pro Plugin Check = +// ==================== +if ( ! defined( 'AI1WMKE_PLUGIN_CHECK' ) ) { + define( 'AI1WMKE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/all-in-one-wp-migration-pro' ); +} + +// ================== +// = Pro Plugin Key = +// ================== +if ( ! defined( 'AI1WMKE_PLUGIN_KEY' ) ) { + define( 'AI1WMKE_PLUGIN_KEY', 'ai1wmke_plugin_key' ); +} + +// ==================== +// = Pro Plugin Short = +// ==================== +if ( ! defined( 'AI1WMKE_PLUGIN_SHORT' ) ) { + define( 'AI1WMKE_PLUGIN_SHORT', 'pro' ); +} + +// ================================ +// = S3 Client Extension Base Dir = +// ================================ +if ( defined( 'AI1WMNE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMNE_PLUGIN_BASEDIR', dirname( AI1WMNE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMNE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-s3-client-extension' ); +} + +// ============================= +// = S3 Client Extension Title = +// ============================= +if ( ! defined( 'AI1WMNE_PLUGIN_TITLE' ) ) { + define( 'AI1WMNE_PLUGIN_TITLE', 'S3 Client Extension' ); +} + +// ============================= +// = S3 Client Extension About = +// ============================= +if ( ! defined( 'AI1WMNE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMNE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/s3-client-extension.json' ); +} + +// ============================= +// = S3 Client Extension Check = +// ============================= +if ( ! defined( 'AI1WMNE_PLUGIN_CHECK' ) ) { + define( 'AI1WMNE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/s3-client-extension' ); +} + +// =========================== +// = S3 Client Extension Key = +// =========================== +if ( ! defined( 'AI1WMNE_PLUGIN_KEY' ) ) { + define( 'AI1WMNE_PLUGIN_KEY', 'ai1wmne_plugin_key' ); +} + +// ============================= +// = S3 Client Extension Short = +// ============================= +if ( ! defined( 'AI1WMNE_PLUGIN_SHORT' ) ) { + define( 'AI1WMNE_PLUGIN_SHORT', 's3-client' ); +} + +// ================================ +// = Amazon S3 Extension Base Dir = +// ================================ +if ( defined( 'AI1WMSE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMSE_PLUGIN_BASEDIR', dirname( AI1WMSE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMSE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-s3-extension' ); +} + +// ============================= +// = Amazon S3 Extension Title = +// ============================= +if ( ! defined( 'AI1WMSE_PLUGIN_TITLE' ) ) { + define( 'AI1WMSE_PLUGIN_TITLE', 'Amazon S3 Extension' ); +} + +// ============================= +// = Amazon S3 Extension About = +// ============================= +if ( ! defined( 'AI1WMSE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMSE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/amazon-s3-extension.json' ); +} + +// ============================= +// = Amazon S3 Extension Check = +// ============================= +if ( ! defined( 'AI1WMSE_PLUGIN_CHECK' ) ) { + define( 'AI1WMSE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/amazon-s3-extension' ); +} + +// =========================== +// = Amazon S3 Extension Key = +// =========================== +if ( ! defined( 'AI1WMSE_PLUGIN_KEY' ) ) { + define( 'AI1WMSE_PLUGIN_KEY', 'ai1wmse_plugin_key' ); +} + +// ============================= +// = Amazon S3 Extension Short = +// ============================= +if ( ! defined( 'AI1WMSE_PLUGIN_SHORT' ) ) { + define( 'AI1WMSE_PLUGIN_SHORT', 's3' ); +} + +// ================================ +// = Unlimited Extension Base Dir = +// ================================ +if ( defined( 'AI1WMUE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMUE_PLUGIN_BASEDIR', dirname( AI1WMUE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMUE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-unlimited-extension' ); +} + +// ============================= +// = Unlimited Extension Title = +// ============================= +if ( ! defined( 'AI1WMUE_PLUGIN_TITLE' ) ) { + define( 'AI1WMUE_PLUGIN_TITLE', 'Unlimited Extension' ); +} + +// ============================= +// = Unlimited Extension About = +// ============================= +if ( ! defined( 'AI1WMUE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMUE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/unlimited-extension.json' ); +} + +// ============================= +// = Unlimited Extension Check = +// ============================= +if ( ! defined( 'AI1WMUE_PLUGIN_CHECK' ) ) { + define( 'AI1WMUE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/unlimited-extension' ); +} + +// =========================== +// = Unlimited Extension Key = +// =========================== +if ( ! defined( 'AI1WMUE_PLUGIN_KEY' ) ) { + define( 'AI1WMUE_PLUGIN_KEY', 'ai1wmue_plugin_key' ); +} + +// ============================= +// = Unlimited Extension Short = +// ============================= +if ( ! defined( 'AI1WMUE_PLUGIN_SHORT' ) ) { + define( 'AI1WMUE_PLUGIN_SHORT', 'unlimited' ); +} + +// ========================== +// = URL Extension Base Dir = +// ========================== +if ( defined( 'AI1WMLE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMLE_PLUGIN_BASEDIR', dirname( AI1WMLE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMLE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-url-extension' ); +} + +// ======================= +// = URL Extension Title = +// ======================= +if ( ! defined( 'AI1WMLE_PLUGIN_TITLE' ) ) { + define( 'AI1WMLE_PLUGIN_TITLE', 'URL Extension' ); +} + +// ======================= +// = URL Extension About = +// ======================= +if ( ! defined( 'AI1WMLE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMLE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/url-extension.json' ); +} + +// ======================= +// = URL Extension Check = +// ======================= +if ( ! defined( 'AI1WMLE_PLUGIN_CHECK' ) ) { + define( 'AI1WMLE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/url-extension' ); +} + +// ===================== +// = URL Extension Key = +// ===================== +if ( ! defined( 'AI1WMLE_PLUGIN_KEY' ) ) { + define( 'AI1WMLE_PLUGIN_KEY', 'ai1wmle_plugin_key' ); +} + +// ======================= +// = URL Extension Short = +// ======================= +if ( ! defined( 'AI1WMLE_PLUGIN_SHORT' ) ) { + define( 'AI1WMLE_PLUGIN_SHORT', 'url' ); +} + +// ============================= +// = WebDAV Extension Base Dir = +// ============================= +if ( defined( 'AI1WMWE_PLUGIN_BASENAME' ) ) { + define( 'AI1WMWE_PLUGIN_BASEDIR', dirname( AI1WMWE_PLUGIN_BASENAME ) ); +} else { + define( 'AI1WMWE_PLUGIN_BASEDIR', 'all-in-one-wp-migration-webdav-extension' ); +} + +// ========================== +// = WebDAV Extension Title = +// ========================== +if ( ! defined( 'AI1WMWE_PLUGIN_TITLE' ) ) { + define( 'AI1WMWE_PLUGIN_TITLE', 'WebDAV Extension' ); +} + +// ========================== +// = WebDAV Extension About = +// ========================== +if ( ! defined( 'AI1WMWE_PLUGIN_ABOUT' ) ) { + define( 'AI1WMWE_PLUGIN_ABOUT', 'https://plugin-updates.wp-migration.com/webdav-extension.json' ); +} + +// ========================== +// = WebDAV Extension Check = +// ========================== +if ( ! defined( 'AI1WMWE_PLUGIN_CHECK' ) ) { + define( 'AI1WMWE_PLUGIN_CHECK', 'https://redirect.wp-migration.com/v1/check/webdav-extension' ); +} + +// ======================== +// = WebDAV Extension Key = +// ======================== +if ( ! defined( 'AI1WMWE_PLUGIN_KEY' ) ) { + define( 'AI1WMWE_PLUGIN_KEY', 'ai1wmwe_plugin_key' ); +} + +// ========================== +// = WebDAV Extension Short = +// ========================== +if ( ! defined( 'AI1WMWE_PLUGIN_SHORT' ) ) { + define( 'AI1WMWE_PLUGIN_SHORT', 'webdav' ); +} diff --git a/wp-content/plugins/all-in-one-wp-migration/deprecated.php b/wp-content/plugins/all-in-one-wp-migration/deprecated.php new file mode 100644 index 0000000..addf952 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/deprecated.php @@ -0,0 +1,32 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +function ai1wm_progress_path( $params ) {} diff --git a/wp-content/plugins/all-in-one-wp-migration/exceptions.php b/wp-content/plugins/all-in-one-wp-migration/exceptions.php new file mode 100644 index 0000000..eee7319 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/exceptions.php @@ -0,0 +1,55 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Archive_Exception extends Exception {} +class Ai1wm_Backups_Exception extends Exception {} +class Ai1wm_Export_Exception extends Exception {} +class Ai1wm_Http_Exception extends Exception {} +class Ai1wm_Import_Exception extends Exception {} +class Ai1wm_CRC_Exception extends Exception {} +class Ai1wm_Upload_Exception extends Exception {} +class Ai1wm_Not_Accessible_Exception extends Exception {} +class Ai1wm_Not_Seekable_Exception extends Exception {} +class Ai1wm_Not_Tellable_Exception extends Exception {} +class Ai1wm_Not_Readable_Exception extends Exception {} +class Ai1wm_Not_Writable_Exception extends Exception {} +class Ai1wm_Not_Truncatable_Exception extends Exception {} +class Ai1wm_Not_Closable_Exception extends Exception {} +class Ai1wm_Not_Found_Exception extends Exception {} +class Ai1wm_Not_Directory_Exception extends Exception {} +class Ai1wm_Not_Valid_Secret_Key_Exception extends Exception {} +class Ai1wm_Quota_Exceeded_Exception extends Exception {} +class Ai1wm_Storage_Exception extends Exception {} +class Ai1wm_Compatibility_Exception extends Exception {} +class Ai1wm_Feedback_Exception extends Exception {} +class Ai1wm_Database_Exception extends Exception {} +class Ai1wm_Not_Encryptable_Exception extends Exception {} +class Ai1wm_Not_Decryptable_Exception extends Exception {} diff --git a/wp-content/plugins/all-in-one-wp-migration/functions.php b/wp-content/plugins/all-in-one-wp-migration/functions.php new file mode 100644 index 0000000..7ef85c4 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/functions.php @@ -0,0 +1,2586 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +/** + * Get storage absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_storage_path( $params ) { + if ( empty( $params['storage'] ) ) { + throw new Ai1wm_Storage_Exception( + wp_kses( + __( 'Could not locate the storage path. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Validate storage path + if ( ai1wm_validate_file( $params['storage'] ) !== 0 ) { + throw new Ai1wm_Storage_Exception( + wp_kses( + __( 'Your storage directory name contains invalid characters: < > : " | ? * \0. It must not include these characters. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Get storage path + $storage = AI1WM_STORAGE_PATH . DIRECTORY_SEPARATOR . basename( $params['storage'] ); + if ( ! is_dir( $storage ) ) { + mkdir( $storage, 0777, true ); + } + + return $storage; +} + +/** + * Resolve the backups path. + * If the stored option points to a stale path (e.g., from a server migration) + * where neither the path nor its parent directory exist, the option is deleted + * and the default path is returned. + * + * @return string + */ +function ai1wm_resolve_backups_path() { + $backups_path = get_option( AI1WM_BACKUPS_PATH_OPTION, false ); + if ( $backups_path === false ) { + return AI1WM_DEFAULT_BACKUPS_PATH; + } + + $parent_backups_path = dirname( $backups_path ); + if ( ! is_dir( $parent_backups_path ) || ! is_writable( $parent_backups_path ) ) { + delete_option( AI1WM_BACKUPS_PATH_OPTION ); + return AI1WM_DEFAULT_BACKUPS_PATH; + } + + return $backups_path; +} + +/** + * Get backup absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_backup_path( $params ) { + if ( empty( $params['archive'] ) ) { + throw new Ai1wm_Archive_Exception( + wp_kses( + __( 'Could not locate the archive path. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Validate archive path + if ( ai1wm_validate_file( $params['archive'] ) !== 0 ) { + throw new Ai1wm_Archive_Exception( + wp_kses( + __( 'Your archive file name contains invalid characters: < > : " | ? * \0. It must not include these characters. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Validate file extension + if ( ! ai1wm_is_filename_supported( $params['archive'] ) ) { + throw new Ai1wm_Archive_Exception( + wp_kses( + __( 'Invalid archive file type. Only .wpress files are allowed. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), + ai1wm_allowed_html_tags() + ) + ); + } + + return AI1WM_BACKUPS_PATH . DIRECTORY_SEPARATOR . $params['archive']; +} + +/** + * Validates a file name and path against an allowed set of rules + * + * @param string $file File path + * @param array $allowed_files Array of allowed files + * @return integer + */ +function ai1wm_validate_file( $file, $allowed_files = array() ) { + $file = str_replace( '\\', '/', $file ); + + // Validates special characters that are illegal in filenames on certain + // operating systems and special characters requiring special escaping + // to manipulate at the command line + $invalid_chars = array( '<', '>', ':', '"', '|', '?', '*', chr( 0 ) ); + foreach ( $invalid_chars as $char ) { + if ( strpos( $file, $char ) !== false ) { + return 1; + } + } + + return validate_file( $file, $allowed_files ); +} + +/** + * Get archive absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_archive_path( $params ) { + if ( empty( $params['archive'] ) ) { + throw new Ai1wm_Archive_Exception( + wp_kses( + __( 'Could not locate the archive path. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Validate archive path + if ( ai1wm_validate_file( $params['archive'] ) !== 0 ) { + throw new Ai1wm_Archive_Exception( + wp_kses( + __( 'Your archive file name contains invalid characters: < > : " | ? * \0. It must not include these characters. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Validate file extension + if ( ! ai1wm_is_filename_supported( $params['archive'] ) ) { + throw new Ai1wm_Archive_Exception( + wp_kses( + __( 'Invalid archive file type. Only .wpress files are allowed. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Get archive path + if ( empty( $params['ai1wm_manual_restore'] ) ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . $params['archive']; + } + + return ai1wm_backup_path( $params ); +} + +/** + * Get multipart.list absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_multipart_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_MULTIPART_NAME; +} + +/** + * Get content.list absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_content_list_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_CONTENT_LIST_NAME; +} + +/** + * Get media.list absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_media_list_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_MEDIA_LIST_NAME; +} + +/** + * Get plugins.list absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_plugins_list_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_PLUGINS_LIST_NAME; +} + +/** + * Get themes.list absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_themes_list_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_THEMES_LIST_NAME; +} + +/** + * Get tables.list absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_tables_list_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_TABLES_LIST_NAME; +} + +/** + * Get incremental.content.list absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_incremental_content_list_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_INCREMENTAL_CONTENT_LIST_NAME; +} + +/** + * Get incremental.media.list absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_incremental_media_list_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_INCREMENTAL_MEDIA_LIST_NAME; +} + +/** + * Get incremental.plugins.list absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_incremental_plugins_list_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_INCREMENTAL_PLUGINS_LIST_NAME; +} + +/** + * Get incremental.themes.list absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_incremental_themes_list_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_INCREMENTAL_THEMES_LIST_NAME; +} + +/** + * Get incremental.backups.list absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_incremental_backups_list_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_INCREMENTAL_BACKUPS_LIST_NAME; +} + +/** + * Get package.json absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_package_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_PACKAGE_NAME; +} + +/** + * Get multisite.json absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_multisite_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_MULTISITE_NAME; +} + +/** + * Get blogs.json absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_blogs_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_BLOGS_NAME; +} + +/** + * Get settings.json absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_settings_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_SETTINGS_NAME; +} + +/** + * Get database.sql absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_database_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_DATABASE_NAME; +} + +/** + * Get cookies.txt absolute path + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_cookies_path( $params ) { + return ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_COOKIES_NAME; +} + +/** + * Get error log absolute path + * + * @param mixed $nonce Log file identifier + * @return string + */ +function ai1wm_error_path( $nonce ) { + // Build the file name from the base name of a clean string identifier. + $nonce = is_scalar( $nonce ) ? str_replace( chr( 0 ), '', (string) $nonce ) : ''; + + return AI1WM_STORAGE_PATH . DIRECTORY_SEPARATOR . sprintf( AI1WM_ERROR_NAME, ai1wm_basename( $nonce ) ); +} + +/** + * Get archive name + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_archive_name( $params ) { + return basename( $params['archive'] ); +} + +/** + * Get backup URL address + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_backup_url( $params ) { + static $backups_base_url = ''; + if ( empty( $backups_base_url ) ) { + if ( Ai1wm_Backups::are_in_wp_content_folder() ) { + $backups_base_url = str_replace( untrailingslashit( WP_CONTENT_DIR ), '', AI1WM_BACKUPS_PATH ); + $backups_base_url = content_url( + ai1wm_replace_directory_separator_with_forward_slash( $backups_base_url ) + ); + } else { + $backups_base_url = str_replace( untrailingslashit( ABSPATH ), '', AI1WM_BACKUPS_PATH ); + $backups_base_url = site_url( + ai1wm_replace_directory_separator_with_forward_slash( $backups_base_url ) + ); + } + } + + return $backups_base_url . '/' . ai1wm_replace_directory_separator_with_forward_slash( $params['archive'] ); +} + +/** + * Get archive size in bytes + * + * @param array $params Request parameters + * @return integer + */ +function ai1wm_archive_bytes( $params ) { + $archive_path = ai1wm_archive_path( $params ); + clearstatcache( true, $archive_path ); + + return filesize( $archive_path ); +} + +/** + * Get archive modified time in seconds + * + * @param array $params Request parameters + * @return integer + */ +function ai1wm_archive_mtime( $params ) { + return filemtime( ai1wm_archive_path( $params ) ); +} + +/** + * Get backup size in bytes + * + * @param array $params Request parameters + * @return integer + */ +function ai1wm_backup_bytes( $params ) { + return filesize( ai1wm_backup_path( $params ) ); +} + +/** + * Get database size in bytes + * + * @param array $params Request parameters + * @return integer + */ +function ai1wm_database_bytes( $params ) { + return filesize( ai1wm_database_path( $params ) ); +} + +/** + * Get package size in bytes + * + * @param array $params Request parameters + * @return integer + */ +function ai1wm_package_bytes( $params ) { + return filesize( ai1wm_package_path( $params ) ); +} + +/** + * Get multisite size in bytes + * + * @param array $params Request parameters + * @return integer + */ +function ai1wm_multisite_bytes( $params ) { + return filesize( ai1wm_multisite_path( $params ) ); +} + +/** + * Get archive size as text + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_archive_size( $params ) { + return ai1wm_size_format( filesize( ai1wm_archive_path( $params ) ) ); +} + +/** + * Get backup size as text + * + * @param array $params Request parameters + * @return string + */ +function ai1wm_backup_size( $params ) { + return ai1wm_size_format( filesize( ai1wm_backup_path( $params ) ) ); +} + +/** + * Parse file size + * + * @param string $size File size + * @param string $default Default size + * @return string + */ +function ai1wm_parse_size( $size, $default = null ) { + $suffixes = array( + '' => 1, + 'k' => 1000, + 'm' => 1000000, + 'g' => 1000000000, + ); + + // Parse size format + if ( preg_match( '/([0-9]+)\s*(k|m|g)?(b?(ytes?)?)/i', $size, $matches ) ) { + return $matches[1] * $suffixes[ strtolower( $matches[2] ) ]; + } + + return $default; +} + +/** + * Format file size into human-readable string + * + * Fixes the WP size_format bug: size_format( '0' ) => false + * + * @param int|string $bytes Number of bytes. Note max integer size for integers. + * @param int $decimals Optional. Precision of number of decimal places. Default 0. + * @return string|false False on failure. Number string on success. + */ +function ai1wm_size_format( $bytes, $decimals = 0 ) { + if ( strval( $bytes ) === '0' ) { + return size_format( 0, $decimals ); + } + + return size_format( $bytes, $decimals ); +} + +/** + * Get current site name + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_site_name( $blog_id = null ) { + return parse_url( get_site_url( $blog_id ), PHP_URL_HOST ); +} + +/** + * Get archive file name + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_archive_file( $blog_id = null ) { + $name = array(); + + // Add domain + if ( defined( 'AI1WM_KEEP_DOMAIN_NAME' ) ) { + $name[] = parse_url( get_site_url( $blog_id ), PHP_URL_HOST ); + } elseif ( ( $domain = explode( '.', parse_url( get_site_url( $blog_id ), PHP_URL_HOST ) ) ) ) { + foreach ( $domain as $subdomain ) { + if ( ( $subdomain = strtolower( $subdomain ) ) ) { + $name[] = $subdomain; + } + } + } + + // Add path + if ( ( $path = parse_url( get_site_url( $blog_id ), PHP_URL_PATH ) ) ) { + foreach ( explode( '/', $path ) as $directory ) { + if ( ( $directory = strtolower( preg_replace( '/[^A-Za-z0-9\-]/', '', $directory ) ) ) ) { + $name[] = $directory; + } + } + } + + // Add year, month and day + $name[] = current_time( 'Ymd' ); + + // Add hours, minutes and seconds + $name[] = current_time( 'His' ); + + // Add unique identifier + $name[] = ai1wm_generate_random_string( 12, false ); + + return sprintf( '%s.wpress', strtolower( implode( '-', $name ) ) ); +} + +/** + * Get archive folder name + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_archive_folder( $blog_id = null ) { + $name = array(); + + // Add domain + if ( defined( 'AI1WM_KEEP_DOMAIN_NAME' ) ) { + $name[] = parse_url( get_site_url( $blog_id ), PHP_URL_HOST ); + } elseif ( ( $domain = explode( '.', parse_url( get_site_url( $blog_id ), PHP_URL_HOST ) ) ) ) { + foreach ( $domain as $subdomain ) { + if ( ( $subdomain = strtolower( $subdomain ) ) ) { + $name[] = $subdomain; + } + } + } + + // Add path + if ( ( $path = parse_url( get_site_url( $blog_id ), PHP_URL_PATH ) ) ) { + foreach ( explode( '/', $path ) as $directory ) { + if ( ( $directory = strtolower( preg_replace( '/[^A-Za-z0-9\-]/', '', $directory ) ) ) ) { + $name[] = $directory; + } + } + } + + return strtolower( implode( '-', $name ) ); +} + +/** + * Get archive bucket name + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_archive_bucket( $blog_id = null ) { + $name = array(); + + // Add domain + if ( ( $domain = explode( '.', parse_url( get_site_url( $blog_id ), PHP_URL_HOST ) ) ) ) { + foreach ( $domain as $subdomain ) { + if ( ( $subdomain = strtolower( $subdomain ) ) ) { + $name[] = $subdomain; + } + } + } + + // Add path + if ( ( $path = parse_url( get_site_url( $blog_id ), PHP_URL_PATH ) ) ) { + foreach ( explode( '/', $path ) as $directory ) { + if ( ( $directory = strtolower( preg_replace( '/[^A-Za-z0-9\-]/', '', $directory ) ) ) ) { + $name[] = $directory; + } + } + } + + return strtolower( implode( '-', $name ) ); +} + +/** + * Get archive vault name + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_archive_vault( $blog_id = null ) { + $name = array(); + + // Add domain + if ( ( $domain = explode( '.', parse_url( get_site_url( $blog_id ), PHP_URL_HOST ) ) ) ) { + foreach ( $domain as $subdomain ) { + if ( ( $subdomain = strtolower( $subdomain ) ) ) { + $name[] = $subdomain; + } + } + } + + // Add path + if ( ( $path = parse_url( get_site_url( $blog_id ), PHP_URL_PATH ) ) ) { + foreach ( explode( '/', $path ) as $directory ) { + if ( ( $directory = strtolower( preg_replace( '/[^A-Za-z0-9\-]/', '', $directory ) ) ) ) { + $name[] = $directory; + } + } + } + + return strtolower( implode( '-', $name ) ); +} + +/** + * Get archive project name + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_archive_project( $blog_id = null ) { + $name = array(); + + // Add domain + if ( ( $domain = explode( '.', parse_url( get_site_url( $blog_id ), PHP_URL_HOST ) ) ) ) { + foreach ( $domain as $subdomain ) { + if ( ( $subdomain = strtolower( $subdomain ) ) ) { + $name[] = $subdomain; + } + } + } + + // Add path + if ( ( $path = parse_url( get_site_url( $blog_id ), PHP_URL_PATH ) ) ) { + foreach ( explode( '/', $path ) as $directory ) { + if ( ( $directory = strtolower( preg_replace( '/[^A-Za-z0-9\-]/', '', $directory ) ) ) ) { + $name[] = $directory; + } + } + } + + return strtolower( implode( '-', $name ) ); +} + +/** + * Get archive share name + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_archive_share( $blog_id = null ) { + $name = array(); + + // Add domain + if ( ( $domain = explode( '.', parse_url( get_site_url( $blog_id ), PHP_URL_HOST ) ) ) ) { + foreach ( $domain as $subdomain ) { + if ( ( $subdomain = strtolower( $subdomain ) ) ) { + $name[] = $subdomain; + } + } + } + + // Add path + if ( ( $path = parse_url( get_site_url( $blog_id ), PHP_URL_PATH ) ) ) { + foreach ( explode( '/', $path ) as $directory ) { + if ( ( $directory = strtolower( preg_replace( '/[^A-Za-z0-9\-]/', '', $directory ) ) ) ) { + $name[] = $directory; + } + } + } + + return strtolower( implode( '-', $name ) ); +} + +/** + * Generate random string + * + * @param integer $length String length + * @param boolean $mixed_chars Whether to include mixed characters + * @param boolean $special_chars Whether to include special characters + * @param boolean $extra_special_chars Whether to include extra special characters + * @return string + */ +function ai1wm_generate_random_string( $length = 12, $mixed_chars = true, $special_chars = false, $extra_special_chars = false ) { + $chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; + if ( $mixed_chars ) { + $chars .= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; + } + + if ( $special_chars ) { + $chars .= '!@#$%^&*()'; + } + + if ( $extra_special_chars ) { + $chars .= '-_ []{}<>~`+=,.;:/?|'; + } + + $str = ''; + for ( $i = 0; $i < $length; $i++ ) { + $str .= substr( $chars, wp_rand( 0, strlen( $chars ) - 1 ), 1 ); + } + + return $str; +} + +/** + * Get storage folder name + * + * @return string + */ +function ai1wm_storage_folder() { + return uniqid(); +} + +/** + * Check whether blog ID is main site + * + * @param integer $blog_id Blog ID + * @return boolean + */ +function ai1wm_is_mainsite( $blog_id = null ) { + return $blog_id === null || $blog_id === 0 || $blog_id === 1; +} + +/** + * Get files absolute path by blog ID + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_blog_files_abspath( $blog_id = null ) { + if ( ai1wm_is_mainsite( $blog_id ) ) { + return ai1wm_get_uploads_dir(); + } + + return WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'blogs.dir' . DIRECTORY_SEPARATOR . $blog_id . DIRECTORY_SEPARATOR . 'files'; +} + +/** + * Get blogs.dir absolute path by blog ID + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_blog_blogsdir_abspath( $blog_id = null ) { + if ( ai1wm_is_mainsite( $blog_id ) ) { + return ai1wm_get_uploads_dir(); + } + + return WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'blogs.dir' . DIRECTORY_SEPARATOR . $blog_id; +} + +/** + * Get sites absolute path by blog ID + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_blog_sites_abspath( $blog_id = null ) { + if ( ai1wm_is_mainsite( $blog_id ) ) { + return ai1wm_get_uploads_dir(); + } + + return ai1wm_get_uploads_dir() . DIRECTORY_SEPARATOR . 'sites' . DIRECTORY_SEPARATOR . $blog_id; +} + +/** + * Get files relative path by blog ID + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_blog_files_relpath( $blog_id = null ) { + if ( ai1wm_is_mainsite( $blog_id ) ) { + return 'uploads'; + } + + return 'blogs.dir' . DIRECTORY_SEPARATOR . $blog_id . DIRECTORY_SEPARATOR . 'files'; +} + +/** + * Get blogs.dir relative path by blog ID + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_blog_blogsdir_relpath( $blog_id = null ) { + if ( ai1wm_is_mainsite( $blog_id ) ) { + return 'uploads'; + } + + return 'blogs.dir' . DIRECTORY_SEPARATOR . $blog_id; +} + +/** + * Get sites relative path by blog ID + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_blog_sites_relpath( $blog_id = null ) { + if ( ai1wm_is_mainsite( $blog_id ) ) { + return 'uploads'; + } + + return 'uploads' . DIRECTORY_SEPARATOR . 'sites' . DIRECTORY_SEPARATOR . $blog_id; +} + +/** + * Get files URL by blog ID + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_blog_files_url( $blog_id = null ) { + if ( ai1wm_is_mainsite( $blog_id ) ) { + return '/wp-content/uploads/'; + } + + return sprintf( '/wp-content/blogs.dir/%d/files/', $blog_id ); +} + +/** + * Get blogs.dir URL by blog ID + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_blog_blogsdir_url( $blog_id = null ) { + if ( ai1wm_is_mainsite( $blog_id ) ) { + return '/wp-content/uploads/'; + } + + return sprintf( '/wp-content/blogs.dir/%d/', $blog_id ); +} + +/** + * Get sites URL by blog ID + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_blog_sites_url( $blog_id = null ) { + if ( ai1wm_is_mainsite( $blog_id ) ) { + return '/wp-content/uploads/'; + } + + return sprintf( '/wp-content/uploads/sites/%d/', $blog_id ); +} + +/** + * Get uploads URL by blog ID + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_blog_uploads_url( $blog_id = null ) { + if ( ai1wm_is_mainsite( $blog_id ) ) { + return sprintf( '/%s/', ai1wm_get_uploads_path() ); + } + + return sprintf( '/%s/sites/%d/', ai1wm_get_uploads_path(), $blog_id ); +} + +/** + * Get ServMask table prefix by blog ID + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_servmask_prefix( $blog_id = null ) { + if ( ai1wm_is_mainsite( $blog_id ) ) { + return AI1WM_TABLE_PREFIX; + } + + return AI1WM_TABLE_PREFIX . $blog_id . '_'; +} + +/** + * Get WordPress table prefix by blog ID + * + * @param integer $blog_id Blog ID + * @return string + */ +function ai1wm_table_prefix( $blog_id = null ) { + global $wpdb; + + // Set base table prefix + if ( ai1wm_is_mainsite( $blog_id ) ) { + return $wpdb->base_prefix; + } + + return $wpdb->base_prefix . $blog_id . '_'; +} + +/** + * Get default config filters + * + * @param array $filters List of files and directories + * @return array + */ +function ai1wm_config_filters( $filters = array() ) { + return array_merge( + $filters, + array( + AI1WM_PACKAGE_NAME, + AI1WM_MULTISITE_NAME, + ) + ); +} + +/** + * Get default content filters + * + * @param array $filters List of files and directories + * @return array + */ +function ai1wm_content_filters( $filters = array() ) { + return array_merge( + $filters, + array( + AI1WM_BACKUPS_PATH, + AI1WM_BACKUPS_NAME, + AI1WM_PACKAGE_NAME, + AI1WM_MULTISITE_NAME, + AI1WM_DATABASE_NAME, + AI1WM_W3TC_CONFIG_FILE, + ) + ); +} + +/** + * Get default media filters + * + * @param array $filters List of files and directories + * @return array + */ +function ai1wm_media_filters( $filters = array() ) { + return array_merge( + $filters, + array( + AI1WM_BACKUPS_PATH, + ) + ); +} + +/** + * Get default plugin filters + * + * @param array $filters List of plugins + * @return array + */ +function ai1wm_plugin_filters( $filters = array() ) { + return array_merge( + $filters, + array( + AI1WM_BACKUPS_PATH, + AI1WM_PLUGIN_BASEDIR, + AI1WMZE_PLUGIN_BASEDIR, + AI1WMAE_PLUGIN_BASEDIR, + AI1WMVE_PLUGIN_BASEDIR, + AI1WMBE_PLUGIN_BASEDIR, + AI1WMIE_PLUGIN_BASEDIR, + AI1WMXE_PLUGIN_BASEDIR, + AI1WMDE_PLUGIN_BASEDIR, + AI1WMTE_PLUGIN_BASEDIR, + AI1WMFE_PLUGIN_BASEDIR, + AI1WMCE_PLUGIN_BASEDIR, + AI1WMGE_PLUGIN_BASEDIR, + AI1WMRE_PLUGIN_BASEDIR, + AI1WMEE_PLUGIN_BASEDIR, + AI1WMME_PLUGIN_BASEDIR, + AI1WMOE_PLUGIN_BASEDIR, + AI1WMPE_PLUGIN_BASEDIR, + AI1WMKE_PLUGIN_BASEDIR, + AI1WMNE_PLUGIN_BASEDIR, + AI1WMSE_PLUGIN_BASEDIR, + AI1WMUE_PLUGIN_BASEDIR, + AI1WMLE_PLUGIN_BASEDIR, + AI1WMWE_PLUGIN_BASEDIR, + ) + ); +} + +/** + * Get default theme filters + * + * @param array $filters List of files and directories + * @return array + */ +function ai1wm_theme_filters( $filters = array() ) { + return array_merge( + $filters, + array( + AI1WM_BACKUPS_PATH, + ) + ); +} + +/** + * Get active ServMask plugins + * + * @return array + */ +function ai1wm_active_servmask_plugins( $plugins = array() ) { + // WP Migration Plugin + if ( defined( 'AI1WM_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WM_PLUGIN_BASENAME; + } + + // Microsoft Azure Extension + if ( defined( 'AI1WMZE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMZE_PLUGIN_BASENAME; + } + + // Backblaze B2 Extension + if ( defined( 'AI1WMAE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMAE_PLUGIN_BASENAME; + } + + // Backup Plugin + if ( defined( 'AI1WMVE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMVE_PLUGIN_BASENAME; + } + + // Box Extension + if ( defined( 'AI1WMBE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMBE_PLUGIN_BASENAME; + } + + // DigitalOcean Spaces Extension + if ( defined( 'AI1WMIE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMIE_PLUGIN_BASENAME; + } + + // Direct Extension + if ( defined( 'AI1WMXE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMXE_PLUGIN_BASENAME; + } + + // Dropbox Extension + if ( defined( 'AI1WMDE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMDE_PLUGIN_BASENAME; + } + + // File Extension + if ( defined( 'AI1WMTE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMTE_PLUGIN_BASENAME; + } + + // FTP Extension + if ( defined( 'AI1WMFE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMFE_PLUGIN_BASENAME; + } + + // Google Cloud Storage Extension + if ( defined( 'AI1WMCE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMCE_PLUGIN_BASENAME; + } + + // Google Drive Extension + if ( defined( 'AI1WMGE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMGE_PLUGIN_BASENAME; + } + + // Amazon Glacier Extension + if ( defined( 'AI1WMRE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMRE_PLUGIN_BASENAME; + } + + // Mega Extension + if ( defined( 'AI1WMEE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMEE_PLUGIN_BASENAME; + } + + // Multisite Extension + if ( defined( 'AI1WMME_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMME_PLUGIN_BASENAME; + } + + // OneDrive Extension + if ( defined( 'AI1WMOE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMOE_PLUGIN_BASENAME; + } + + // pCloud Extension + if ( defined( 'AI1WMPE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMPE_PLUGIN_BASENAME; + } + + // Pro Plugin + if ( defined( 'AI1WMKE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMKE_PLUGIN_BASENAME; + } + + // S3 Client Extension + if ( defined( 'AI1WMNE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMNE_PLUGIN_BASENAME; + } + + // Amazon S3 Extension + if ( defined( 'AI1WMSE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMSE_PLUGIN_BASENAME; + } + + // Unlimited Extension + if ( defined( 'AI1WMUE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMUE_PLUGIN_BASENAME; + } + + // URL Extension + if ( defined( 'AI1WMLE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMLE_PLUGIN_BASENAME; + } + + // WebDAV Extension + if ( defined( 'AI1WMWE_PLUGIN_BASENAME' ) ) { + $plugins[] = AI1WMWE_PLUGIN_BASENAME; + } + + return $plugins; +} + +/** + * Get active sitewide plugins + * + * @return array + */ +function ai1wm_active_sitewide_plugins() { + return array_keys( get_site_option( AI1WM_ACTIVE_SITEWIDE_PLUGINS, array() ) ); +} + +/** + * Get active plugins + * + * @return array + */ +function ai1wm_active_plugins() { + return array_values( get_option( AI1WM_ACTIVE_PLUGINS, array() ) ); +} + +/** + * Set active sitewide plugins (inspired by WordPress activate_plugins() function) + * + * @param array $plugins List of plugins + * @return boolean + */ +function ai1wm_activate_sitewide_plugins( $plugins ) { + $current = get_site_option( AI1WM_ACTIVE_SITEWIDE_PLUGINS, array() ); + + // Add plugins + foreach ( $plugins as $plugin ) { + if ( ! isset( $current[ $plugin ] ) && ! is_wp_error( validate_plugin( $plugin ) ) ) { + $current[ $plugin ] = time(); + } + } + + return update_site_option( AI1WM_ACTIVE_SITEWIDE_PLUGINS, $current ); +} + +/** + * Set active plugins (inspired by WordPress activate_plugins() function) + * + * @param array $plugins List of plugins + * @return boolean + */ +function ai1wm_activate_plugins( $plugins ) { + $current = get_option( AI1WM_ACTIVE_PLUGINS, array() ); + + // Add plugins + foreach ( $plugins as $plugin ) { + if ( ! in_array( $plugin, $current ) && ! is_wp_error( validate_plugin( $plugin ) ) ) { + $current[] = $plugin; + } + } + + return update_option( AI1WM_ACTIVE_PLUGINS, $current ); +} + +/** + * Get active template + * + * @return string + */ +function ai1wm_active_template() { + return get_option( AI1WM_ACTIVE_TEMPLATE ); +} + +/** + * Get active stylesheet + * + * @return string + */ +function ai1wm_active_stylesheet() { + return get_option( AI1WM_ACTIVE_STYLESHEET ); +} + +/** + * Set active template + * + * @param string $template Template name + * @return boolean + */ +function ai1wm_activate_template( $template ) { + return update_option( AI1WM_ACTIVE_TEMPLATE, $template ); +} + +/** + * Set active stylesheet + * + * @param string $stylesheet Stylesheet name + * @return boolean + */ +function ai1wm_activate_stylesheet( $stylesheet ) { + return update_option( AI1WM_ACTIVE_STYLESHEET, $stylesheet ); +} + +/** + * Set inactive sitewide plugins (inspired by WordPress deactivate_plugins() function) + * + * @param array $plugins List of plugins + * @return boolean + */ +function ai1wm_deactivate_sitewide_plugins( $plugins ) { + $current = get_site_option( AI1WM_ACTIVE_SITEWIDE_PLUGINS, array() ); + + // Add plugins + foreach ( $plugins as $plugin ) { + if ( isset( $current[ $plugin ] ) ) { + unset( $current[ $plugin ] ); + } + } + + return update_site_option( AI1WM_ACTIVE_SITEWIDE_PLUGINS, $current ); +} + + +/** + * Set inactive plugins (inspired by WordPress deactivate_plugins() function) + * + * @param array $plugins List of plugins + * @return boolean + */ +function ai1wm_deactivate_plugins( $plugins ) { + $current = get_option( AI1WM_ACTIVE_PLUGINS, array() ); + + // Remove plugins + foreach ( $plugins as $plugin ) { + if ( ( $key = array_search( $plugin, $current ) ) !== false ) { + unset( $current[ $key ] ); + } + } + + return update_option( AI1WM_ACTIVE_PLUGINS, $current ); +} + +/** + * Deactivate Jetpack modules + * + * @param array $modules List of modules + * @return boolean + */ +function ai1wm_deactivate_jetpack_modules( $modules ) { + $current = get_option( AI1WM_JETPACK_ACTIVE_MODULES, array() ); + + // Remove modules + foreach ( $modules as $module ) { + if ( ( $key = array_search( $module, $current ) ) !== false ) { + unset( $current[ $key ] ); + } + } + + return update_option( AI1WM_JETPACK_ACTIVE_MODULES, $current ); +} + +/** + * Deactivate Swift Optimizer rules + * + * @param array $rules List of rules + * @return boolean + */ +function ai1wm_deactivate_swift_optimizer_rules( $rules ) { + $current = get_option( AI1WM_SWIFT_OPTIMIZER_PLUGIN_ORGANIZER, array() ); + + // Remove rules + foreach ( $rules as $rule ) { + unset( $current['rules'][ $rule ] ); + } + + return update_option( AI1WM_SWIFT_OPTIMIZER_PLUGIN_ORGANIZER, $current ); +} + +/** + * Deactivate sitewide Revolution Slider + * + * @param string $basename Plugin basename + * @return boolean + */ +function ai1wm_deactivate_sitewide_revolution_slider( $basename ) { + if ( ( $plugins = get_plugins() ) ) { + if ( isset( $plugins[ $basename ]['Version'] ) && ( $version = $plugins[ $basename ]['Version'] ) ) { + if ( version_compare( PHP_VERSION, '7.3', '>=' ) && version_compare( $version, '5.4.8.3', '<' ) ) { + return ai1wm_deactivate_sitewide_plugins( array( $basename ) ); + } + + if ( version_compare( PHP_VERSION, '7.2', '>=' ) && version_compare( $version, '5.4.6', '<' ) ) { + return ai1wm_deactivate_sitewide_plugins( array( $basename ) ); + } + + if ( version_compare( PHP_VERSION, '7.1', '>=' ) && version_compare( $version, '5.4.1', '<' ) ) { + return ai1wm_deactivate_sitewide_plugins( array( $basename ) ); + } + + if ( version_compare( PHP_VERSION, '7.0', '>=' ) && version_compare( $version, '4.6.5', '<' ) ) { + return ai1wm_deactivate_sitewide_plugins( array( $basename ) ); + } + } + } + + return false; +} + +/** + * Deactivate Revolution Slider + * + * @param string $basename Plugin basename + * @return boolean + */ +function ai1wm_deactivate_revolution_slider( $basename ) { + if ( ( $plugins = get_plugins() ) ) { + if ( isset( $plugins[ $basename ]['Version'] ) && ( $version = $plugins[ $basename ]['Version'] ) ) { + if ( version_compare( PHP_VERSION, '7.3', '>=' ) && version_compare( $version, '5.4.8.3', '<' ) ) { + return ai1wm_deactivate_plugins( array( $basename ) ); + } + + if ( version_compare( PHP_VERSION, '7.2', '>=' ) && version_compare( $version, '5.4.6', '<' ) ) { + return ai1wm_deactivate_plugins( array( $basename ) ); + } + + if ( version_compare( PHP_VERSION, '7.1', '>=' ) && version_compare( $version, '5.4.1', '<' ) ) { + return ai1wm_deactivate_plugins( array( $basename ) ); + } + + if ( version_compare( PHP_VERSION, '7.0', '>=' ) && version_compare( $version, '4.6.5', '<' ) ) { + return ai1wm_deactivate_plugins( array( $basename ) ); + } + } + } + + return false; +} + +/** + * Initial DB version + * + * @return boolean + */ +function ai1wm_initial_db_version() { + if ( ! get_option( AI1WM_DB_VERSION ) ) { + return update_option( AI1WM_DB_VERSION, get_option( AI1WM_INITIAL_DB_VERSION ) ); + } + + return false; +} + +/** + * Discover plugin basename + * + * @param string $basename Plugin basename + * @return string + */ +function ai1wm_discover_plugin_basename( $basename ) { + if ( ( $plugins = get_plugins() ) ) { + foreach ( $plugins as $plugin => $info ) { + if ( strpos( dirname( $plugin ), dirname( $basename ) ) !== false ) { + if ( basename( $plugin ) === basename( $basename ) ) { + return $plugin; + } + } + } + } + + return $basename; +} + +/** + * Validate plugin basename + * + * @param string $basename Plugin basename + * @return boolean + */ +function ai1wm_validate_plugin_basename( $basename ) { + if ( ( $plugins = get_plugins() ) ) { + foreach ( $plugins as $plugin => $info ) { + if ( $plugin === $basename ) { + return true; + } + } + } + + return false; +} + +/** + * Validate theme basename + * + * @param string $basename Theme basename + * @return boolean + */ +function ai1wm_validate_theme_basename( $basename ) { + if ( ( $themes = search_theme_directories() ) ) { + foreach ( $themes as $theme => $info ) { + if ( $info['theme_file'] === $basename ) { + return true; + } + } + } + + return false; +} + +/** + * Flush WP options cache + * + * @return void + */ +function ai1wm_cache_flush() { + wp_cache_init(); + wp_cache_flush(); + + // Reset WP options cache + wp_cache_set( 'alloptions', array(), 'options' ); + wp_cache_set( 'notoptions', array(), 'options' ); + + // Reset WP sitemeta cache + wp_cache_set( '1:notoptions', array(), 'site-options' ); + wp_cache_set( '1:ms_files_rewriting', false, 'site-options' ); + wp_cache_set( '1:active_sitewide_plugins', false, 'site-options' ); + + // Delete WP options cache + wp_cache_delete( 'alloptions', 'options' ); + wp_cache_delete( 'notoptions', 'options' ); + + // Delete WP sitemeta cache + wp_cache_delete( '1:notoptions', 'site-options' ); + wp_cache_delete( '1:ms_files_rewriting', 'site-options' ); + wp_cache_delete( '1:active_sitewide_plugins', 'site-options' ); + + // Remove WP options filter + remove_all_filters( 'sanitize_option_home' ); + remove_all_filters( 'sanitize_option_siteurl' ); + remove_all_filters( 'default_site_option_ms_files_rewriting' ); +} + +/** + * Flush Elementor cache + * + * @return void + */ +function ai1wm_elementor_cache_flush() { + delete_post_meta_by_key( '_elementor_css' ); + delete_post_meta_by_key( '_elementor_element_cache' ); + delete_post_meta_by_key( '_elementor_page_assets' ); + + delete_option( '_elementor_global_css' ); + delete_option( '_elementor_assets_data' ); + delete_option( 'elementor-custom-breakpoints-files' ); +} + +/** + * Set WooCommerce Force SSL checkout + * + * @param boolean $yes Force SSL checkout + * @return void + */ +function ai1wm_woocommerce_force_ssl( $yes = true ) { + if ( get_option( 'woocommerce_force_ssl_checkout' ) ) { + if ( $yes ) { + update_option( 'woocommerce_force_ssl_checkout', 'yes' ); + } else { + update_option( 'woocommerce_force_ssl_checkout', 'no' ); + } + } +} + +/** + * Set URL scheme + * + * @param string $url URL value + * @param string $scheme URL scheme + * @return string + */ +function ai1wm_url_scheme( $url, $scheme = '' ) { + if ( empty( $scheme ) ) { + return preg_replace( '#^\w+://#', '//', $url ); + } + + return preg_replace( '#^\w+://#', $scheme . '://', $url ); +} + +/** + * Opens a file in specified mode + * + * @param string $file Path to the file to open + * @param string $mode Mode in which to open the file + * @return resource + * @throws Ai1wm_Not_Accessible_Exception + */ +function ai1wm_open( $file, $mode ) { + $file_handle = @fopen( $file, $mode ); + if ( false === $file_handle ) { + throw new Ai1wm_Not_Accessible_Exception( + wp_kses( + /* translators: 1: File path, 2: mode */ + sprintf( __( 'Could not open %1$s with mode %2$s. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), $file, $mode ), + ai1wm_allowed_html_tags() + ) + ); + } + + return $file_handle; +} + +/** + * Opens a gzipped file in specified mode + * + * @param string $file Path to the file to open + * @param string $mode Mode in which to open the file + * @return resource + * @throws Ai1wm_Not_Accessible_Exception + */ +function ai1wm_gzopen( $file, $mode ) { + $file_handle = @fopen( "compress.zlib://{$file}", $mode ); + if ( false === $file_handle ) { + throw new Ai1wm_Not_Accessible_Exception( + wp_kses( + /* translators: 1: File path, 2: mode */ + sprintf( __( 'Could not open %1$s with mode %2$s. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), $file, $mode ), + ai1wm_allowed_html_tags() + ) + ); + } + + return $file_handle; +} + +/** + * Write contents to a file + * + * @param resource $handle File handle to write to + * @param string $content Contents to write to the file + * @return integer + * @throws Ai1wm_Not_Writable_Exception + * @throws Ai1wm_Quota_Exceeded_Exception + */ +function ai1wm_write( $handle, $content ) { + $write_result = @fwrite( $handle, $content ); + if ( false === $write_result ) { + if ( ( $meta = stream_get_meta_data( $handle ) ) ) { + throw new Ai1wm_Not_Writable_Exception( + wp_kses( + /* translators: 1: Meta data stream URI. */ + sprintf( __( 'Could not write to: %s. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), $meta['uri'] ), + ai1wm_allowed_html_tags() + ) + ); + } + } elseif ( null === $write_result ) { + return strlen( $content ); + } elseif ( strlen( $content ) !== $write_result ) { + if ( ( $meta = stream_get_meta_data( $handle ) ) ) { + throw new Ai1wm_Quota_Exceeded_Exception( + wp_kses( + /* translators: 1: Meta data stream URI. */ + sprintf( __( 'Out of disk space. Could not write to: %s. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), $meta['uri'] ), + ai1wm_allowed_html_tags() + ) + ); + } + } + + return $write_result; +} + +/** + * Read contents from a file + * + * @param resource $handle File handle to read from + * @param integer $length Up to length number of bytes read + * @return string + * @throws Ai1wm_Not_Readable_Exception + */ +function ai1wm_read( $handle, $length ) { + if ( $length > 0 ) { + $read_result = @fread( $handle, $length ); + if ( false === $read_result ) { + if ( ( $meta = stream_get_meta_data( $handle ) ) ) { + throw new Ai1wm_Not_Readable_Exception( + wp_kses( + /* translators: 1: Meta data stream URI. */ + sprintf( __( 'Could not read file: %s. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), $meta['uri'] ), + ai1wm_allowed_html_tags() + ) + ); + } + } + + return $read_result; + } + + return false; +} + +/** + * Seeks on a file pointer + * + * @param resource $handle File handle + * @param integer $offset File offset + * @param integer $mode Offset mode + * @return integer + */ +function ai1wm_seek( $handle, $offset, $mode = SEEK_SET ) { + $seek_result = @fseek( $handle, $offset, $mode ); + if ( -1 === $seek_result ) { + if ( ( $meta = stream_get_meta_data( $handle ) ) ) { + throw new Ai1wm_Not_Seekable_Exception( + wp_kses( + /* translators: 1: File offset, 2: Meta data stream URI. */ + sprintf( __( 'Could not seek to offset %1$d on %2$s. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), $offset, $meta['uri'] ), + ai1wm_allowed_html_tags() + ) + ); + } + } + + return $seek_result; +} + +/** + * Returns the current position of the file read/write pointer + * + * @param resource $handle File handle + * @return integer + */ +function ai1wm_tell( $handle ) { + $tell_result = @ftell( $handle ); + if ( false === $tell_result ) { + if ( ( $meta = stream_get_meta_data( $handle ) ) ) { + throw new Ai1wm_Not_Tellable_Exception( + wp_kses( + /* translators: 1: Meta data stream URI. */ + sprintf( __( 'Could not get current pointer position of %s. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), $meta['uri'] ), + ai1wm_allowed_html_tags() + ) + ); + } + } + + return $tell_result; +} + +/** + * Write fields to a file + * + * @param resource $handle File handle to write to + * @param array $fields Fields to write to the file + * @param string $separator + * @param string $enclosure + * @param string $escape + * + * @return integer + * @throws Ai1wm_Not_Writable_Exception + */ +function ai1wm_putcsv( $handle, $fields, $separator = ',', $enclosure = '"', $escape = '\\' ) { + if ( PHP_MAJOR_VERSION >= 7 ) { + // phpcs:ignore PHPCompatibility.FunctionUse.NewFunctionParameters + $write_result = @fputcsv( $handle, $fields, $separator, $enclosure, $escape ); + } else { + $write_result = @fputcsv( $handle, $fields, $separator, $enclosure ); + } + + if ( false === $write_result ) { + if ( ( $meta = stream_get_meta_data( $handle ) ) ) { + throw new Ai1wm_Not_Writable_Exception( + wp_kses( + /* translators: 1: Meta data stream URI. */ + sprintf( __( 'Could not write to: %s. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), $meta['uri'] ), + ai1wm_allowed_html_tags() + ) + ); + } + } + + return $write_result; +} + +/** + * Read fields from a file + * + * @param resource $handle File handle to read from + * @param int $length + * @param string $separator + * @param string $enclosure + * @param string $escape + * + * @return array|false|null + */ +function ai1wm_getcsv( $handle, $length = null, $separator = ',', $enclosure = '"', $escape = '\\' ) { + return fgetcsv( $handle, $length, $separator, $enclosure, $escape ); +} + +/** + * Closes a file handle + * + * @param resource $handle File handle to close + * @return boolean + */ +function ai1wm_close( $handle ) { + return @fclose( $handle ); +} + +/** + * Deletes a file + * + * @param string $file Path to file to delete + * @return boolean + */ +function ai1wm_unlink( $file ) { + return @unlink( $file ); +} + +/** + * Sets modification time of a file + * + * @param string $file Path to file to change modification time + * @param integer $time File modification time + * @return boolean + */ +function ai1wm_touch( $file, $mtime ) { + return @touch( $file, $mtime ); +} + +/** + * Changes file mode + * + * @param string $file Path to file to change mode + * @param integer $time File mode + * @return boolean + */ +function ai1wm_chmod( $file, $mode ) { + return @chmod( $file, $mode ); +} + +/** + * Copies one file's contents to another + * + * @param string $target_file File to copy the contents from + * @param string $output_file File to copy the contents to + * @param integer $output_file_offset Output file offset bytes + * @return void + */ +function ai1wm_copy( $target_file, $output_file, $output_file_offset = 0 ) { + $target_handle = ai1wm_open( $target_file, 'rb' ); + $output_handle = ai1wm_open( $output_file, 'cb' ); + if ( ai1wm_seek( $output_handle, $output_file_offset, SEEK_SET ) !== -1 ) { + while ( ( $file_buffer = ai1wm_read( $target_handle, 4096 ) ) ) { + ai1wm_write( $output_handle, $file_buffer ); + } + } + + ai1wm_close( $target_handle ); + ai1wm_close( $output_handle ); +} + +/** + * Copies gzipped file's contents while uncompressing to another + * + * @param string $target_file File to copy the contents from + * @param string $output_file File to copy the contents to + * @param integer $output_file_offset Output file offset bytes + * @return void + */ +function ai1wm_copy_gz( $target_file, $output_file, $output_file_offset = 0 ) { + $target_handle = ai1wm_gzopen( $target_file, 'rb' ); + $output_handle = ai1wm_open( $output_file, 'cb' ); + if ( ai1wm_seek( $output_handle, $output_file_offset, SEEK_SET ) !== -1 ) { + while ( ( $file_buffer = ai1wm_read( $target_handle, 4096 ) ) ) { + ai1wm_write( $output_handle, $file_buffer ); + } + } + + ai1wm_close( $target_handle ); + ai1wm_close( $output_handle ); +} + + +/** + * Check whether file size is supported by current PHP version + * + * @param string $file Path to file + * @param integer $php_int_size Size of PHP integer + * @return boolean $php_int_max Max value of PHP integer + */ +function ai1wm_is_filesize_supported( $file, $php_int_size = PHP_INT_SIZE, $php_int_max = PHP_INT_MAX ) { + $size_result = true; + + // Check whether file size is less than 2GB in PHP 32bits + if ( $php_int_size === 4 ) { + if ( ( $file_handle = @fopen( $file, 'rb' ) ) ) { + if ( @fseek( $file_handle, $php_int_max, SEEK_SET ) !== -1 ) { + if ( @fgetc( $file_handle ) !== false ) { + $size_result = false; + } + } + + @fclose( $file_handle ); + } + } + + return $size_result; +} + +/** + * Check whether file name is supported by All-in-One WP Migration + * + * @param string $file Path to file + * @param array $extensions File extensions + * @return boolean + */ +function ai1wm_is_filename_supported( $file, $extensions = array( 'wpress' ) ) { + if ( in_array( pathinfo( $file, PATHINFO_EXTENSION ), $extensions ) ) { + return true; + } + + return false; +} + +/** + * Check whether file data is supported by All-in-One WP Migration + * + * @param string $file Path to file + * @return boolean + */ +function ai1wm_is_filedata_supported( $file ) { + if ( ( $file_handle = @fopen( $file, 'rb' ) ) ) { + if ( ( $file_buffer = @fread( $file_handle, Ai1wm_Archiver::HEADER_SIZE ) ) ) { + if ( ( $file_data = @unpack( 'a255filename/a14size/a12mtime/a4088path/a8crc32', $file_buffer ) ) !== false ) { + if ( AI1WM_PACKAGE_NAME === trim( $file_data['filename'] ) ) { + return true; + } + } + } + + @fclose( $file_handle ); + } + + return false; +} + +/** + * Check whether gzipped file data is supported by All-in-One WP Migration + * + * @param string $file Path to file + * @return boolean + */ +function ai1wm_is_gzipped_filedata_supported( $file ) { + if ( ( $file_handle = @gzopen( $file, 'rb' ) ) ) { + if ( ( $file_buffer = @gzread( $file_handle, Ai1wm_Archiver::HEADER_SIZE ) ) ) { + if ( ( $file_data = @unpack( 'a255filename/a14size/a12mtime/a4088path/a8crc32', $file_buffer ) ) !== false ) { + if ( AI1WM_PACKAGE_NAME === trim( $file_data['filename'] ) ) { + return true; + } + } + } + + @gzclose( $file_handle ); + } + + return false; +} + +/** + * Verify secret key + * + * @param string $secret_key Secret key + * @return boolean + * @throws Ai1wm_Not_Valid_Secret_Key_Exception + */ +function ai1wm_verify_secret_key( $secret_key ) { + if ( $secret_key !== get_option( AI1WM_SECRET_KEY ) ) { + throw new Ai1wm_Not_Valid_Secret_Key_Exception( + wp_kses( + __( 'Could not authenticate the secret key. The process cannot continue. Technical details', 'all-in-one-wp-migration' ), + ai1wm_allowed_html_tags() + ) + ); + } + + return true; +} + +/** + * Is scheduled backup? + * + * @return boolean + */ +function ai1wm_is_scheduled_backup() { + if ( isset( $_GET['ai1wm_manual_export'] ) || isset( $_POST['ai1wm_manual_export'] ) ) { + return false; + } + + if ( isset( $_GET['ai1wm_manual_import'] ) || isset( $_POST['ai1wm_manual_import'] ) ) { + return false; + } + + if ( isset( $_GET['ai1wm_manual_restore'] ) || isset( $_POST['ai1wm_manual_restore'] ) ) { + return false; + } + + if ( isset( $_GET['ai1wm_manual_reset'] ) || isset( $_POST['ai1wm_manual_reset'] ) ) { + return false; + } + + return true; +} + +/** + * PHP setup environment + * + * @return void + */ +function ai1wm_setup_environment() { + // Set whether a client disconnect should abort script execution + @ignore_user_abort( true ); + + // Set maximum execution time + @set_time_limit( 0 ); + + // Set maximum time in seconds a script is allowed to parse input data + @ini_set( 'max_input_time', '-1' ); + + // Set maximum backtracking steps + @ini_set( 'pcre.backtrack_limit', PHP_INT_MAX ); + + // Set binary safe encoding + // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives + if ( @function_exists( 'mb_internal_encoding' ) && ( @ini_get( 'mbstring.func_overload' ) & 2 ) ) { + @mb_internal_encoding( 'ISO-8859-1' ); + } + + // Clean (erase) the output buffer and turn off output buffering + if ( @ob_get_length() ) { + @ob_end_clean(); + } +} + +/** + * PHP register error handlers + * + * @return void + */ +function ai1wm_setup_errors() { + @set_error_handler( 'Ai1wm_Handler::error' ); + @register_shutdown_function( 'Ai1wm_Handler::shutdown' ); +} + +/** + * Get WordPress time zone string + * + * @return string + */ +function ai1wm_get_timezone_string() { + if ( ( $timezone_string = get_option( 'timezone_string' ) ) ) { + return $timezone_string; + } + + if ( ( $gmt_offset = get_option( 'gmt_offset' ) ) ) { + if ( $gmt_offset > 0 ) { + return sprintf( 'UTC+%s', abs( $gmt_offset ) ); + } elseif ( $gmt_offset < 0 ) { + return sprintf( 'UTC-%s', abs( $gmt_offset ) ); + } + } + + return 'UTC'; +} + +/** + * Get WordPress filter hooks + * + * @param string $tag The name of the filter hook + * @return array + */ +function ai1wm_get_filters( $tag ) { + global $wp_filter; + + // Get WordPress filter hooks + $filters = array(); + if ( isset( $wp_filter[ $tag ] ) ) { + if ( ( $filters = $wp_filter[ $tag ] ) ) { + // WordPress 4.7 introduces new class for working with filters/actions called WP_Hook + // which adds another level of abstraction and we need to address it. + if ( isset( $filters->callbacks ) ) { + $filters = $filters->callbacks; + } + } + + ksort( $filters ); + } + + return $filters; +} + +/** + * Get WordPress plugins directories + * + * @return array + */ +function ai1wm_get_themes_dirs() { + $theme_dirs = array(); + foreach ( search_theme_directories() as $theme_name => $theme_info ) { + if ( isset( $theme_info['theme_root'] ) ) { + if ( ! in_array( $theme_info['theme_root'], $theme_dirs ) ) { + $theme_dirs[] = untrailingslashit( $theme_info['theme_root'] ); + } + } + } + + return $theme_dirs; +} + +/** + * Get WordPress plugins directory + * + * @return string + */ +function ai1wm_get_plugins_dir() { + return untrailingslashit( WP_PLUGIN_DIR ); +} + +/** + * Get WordPress uploads directory + * + * @return string + */ +function ai1wm_get_uploads_dir() { + if ( ( $upload_dir = wp_upload_dir() ) ) { + if ( isset( $upload_dir['basedir'] ) ) { + return untrailingslashit( $upload_dir['basedir'] ); + } + } +} + +/** + * Get WordPress uploads URL + * + * @return string + */ +function ai1wm_get_uploads_url() { + if ( ( $upload_dir = wp_upload_dir() ) ) { + if ( isset( $upload_dir['baseurl'] ) ) { + return trailingslashit( $upload_dir['baseurl'] ); + } + } +} + +/** + * Get WordPress uploads path + * + * @return string + */ +function ai1wm_get_uploads_path() { + if ( ( $upload_dir = wp_upload_dir() ) ) { + if ( isset( $upload_dir['basedir'] ) ) { + return str_replace( ABSPATH, '', $upload_dir['basedir'] ); + } + } +} + +/** + * i18n friendly version of basename() + * + * @param string $path File path + * @param string $suffix If the filename ends in suffix this will also be cut off + * @return string + */ +function ai1wm_basename( $path, $suffix = '' ) { + return urldecode( basename( str_replace( array( '%2F', '%5C' ), '/', urlencode( $path ) ), $suffix ) ); +} + +/** + * i18n friendly version of dirname() + * + * @param string $path File path + * @return string + */ +function ai1wm_dirname( $path ) { + return urldecode( dirname( str_replace( array( '%2F', '%5C' ), '/', urlencode( $path ) ) ) ); +} + +/** + * Replace forward slash with current directory separator + * + * @param string $path Path + * @return string + */ +function ai1wm_replace_forward_slash_with_directory_separator( $path ) { + return str_replace( '/', DIRECTORY_SEPARATOR, $path ); +} + +/** + * Replace current directory separator with forward slash + * + * @param string $path Path + * @return string + */ +function ai1wm_replace_directory_separator_with_forward_slash( $path ) { + return str_replace( DIRECTORY_SEPARATOR, '/', $path ); +} + +/** + * Escape Windows directory separator + * + * @param string $path Path + * @return string + */ +function ai1wm_escape_windows_directory_separator( $path ) { + return preg_replace( '/[\\\\]+/', '\\\\\\\\', $path ); +} + +/** + * Should reset WordPress permalinks? + * + * @param array $params Request parameters + * @return boolean + */ +function ai1wm_should_reset_permalinks( $params ) { + global $wp_rewrite, $is_apache; + + // Permalinks are not supported + if ( empty( $params['using_permalinks'] ) ) { + if ( $wp_rewrite->using_permalinks() ) { + if ( $is_apache ) { + if ( ! apache_mod_loaded( 'mod_rewrite', false ) ) { + return true; + } + } + } + } + + return false; +} + +/** + * Get .htaccess file content + * + * @return string + */ +function ai1wm_get_htaccess() { + if ( is_file( AI1WM_WORDPRESS_HTACCESS ) ) { + return @file_get_contents( AI1WM_WORDPRESS_HTACCESS ); + } + + return ''; +} + +/** + * Get web.config file content + * + * @return string + */ +function ai1wm_get_webconfig() { + if ( is_file( AI1WM_WORDPRESS_WEBCONFIG ) ) { + return @file_get_contents( AI1WM_WORDPRESS_WEBCONFIG ); + } + + return ''; +} + +/** + * Get available space on filesystem or disk partition + * + * @param string $path Directory of the filesystem or disk partition + * @return mixed + */ +function ai1wm_disk_free_space( $path ) { + if ( function_exists( 'disk_free_space' ) ) { + return @disk_free_space( $path ); + } +} + +/** + * Set response header to json end echo data + * + * @param array $data + * @param int $options + * @param int $depth + * @return void + */ +function ai1wm_json_response( $data, $options = 0 ) { + if ( ! headers_sent() ) { + header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset', 'utf-8' ) ); + } + + echo json_encode( $data, $options ); +} + +/** + * Determines if the server can encrypt backups + * + * @return boolean + */ +function ai1wm_can_encrypt() { + if ( ! function_exists( 'openssl_encrypt' ) ) { + return false; + } + + if ( ! function_exists( 'openssl_random_pseudo_bytes' ) ) { + return false; + } + + if ( ! function_exists( 'openssl_cipher_iv_length' ) ) { + return false; + } + + if ( ! function_exists( 'sha1' ) ) { + return false; + } + + if ( ! in_array( AI1WM_CIPHER_NAME, array_map( 'strtoupper', openssl_get_cipher_methods() ) ) ) { + return false; + } + + return true; +} + +/** + * Determines if the server can decrypt backups + * + * @return boolean + */ +function ai1wm_can_decrypt() { + if ( ! function_exists( 'openssl_decrypt' ) ) { + return false; + } + + if ( ! function_exists( 'openssl_random_pseudo_bytes' ) ) { + return false; + } + + if ( ! function_exists( 'openssl_cipher_iv_length' ) ) { + return false; + } + + if ( ! function_exists( 'sha1' ) ) { + return false; + } + + if ( ! in_array( AI1WM_CIPHER_NAME, array_map( 'strtoupper', openssl_get_cipher_methods() ) ) ) { + return false; + } + + return true; +} + +/** + * Encrypts a string with a key + * + * @param string $string String to encrypt + * @param string $key Key to encrypt the string with + * @return string + * @throws Ai1wm_Not_Encryptable_Exception + */ +function ai1wm_encrypt_string( $string, $key ) { + $iv_length = ai1wm_crypt_iv_length(); + $key = substr( sha1( $key, true ), 0, $iv_length ); + + $iv = openssl_random_pseudo_bytes( $iv_length ); + if ( $iv === false ) { + throw new Ai1wm_Not_Encryptable_Exception( esc_html__( 'Could not generate random bytes. The process cannot continue.', 'all-in-one-wp-migration' ) ); + } + + // phpcs:ignore PHPCompatibility.FunctionUse.NewFunctionParameters, PHPCompatibility.Constants.NewConstants + $encrypted_string = openssl_encrypt( $string, AI1WM_CIPHER_NAME, $key, OPENSSL_RAW_DATA, $iv ); + if ( $encrypted_string === false ) { + throw new Ai1wm_Not_Encryptable_Exception( esc_html__( 'Could not encrypt data. The process cannot continue.', 'all-in-one-wp-migration' ) ); + } + + return sprintf( '%s%s', $iv, $encrypted_string ); +} + +/** + * Returns encrypt/decrypt iv length + * + * @return int + * @throws Ai1wm_Not_Encryptable_Exception + */ +function ai1wm_crypt_iv_length() { + $iv_length = openssl_cipher_iv_length( AI1WM_CIPHER_NAME ); + if ( $iv_length === false ) { + throw new Ai1wm_Not_Encryptable_Exception( esc_html__( 'Could not obtain cipher length. The process cannot continue.', 'all-in-one-wp-migration' ) ); + } + + return $iv_length; +} + +/** + * Decrypts a string with a key + * + * @param string $encrypted_string String to decrypt + * @param string $key Key to decrypt the string with + * @return string + * @throws Ai1wm_Not_Encryptable_Exception + * @throws Ai1wm_Not_Decryptable_Exception + */ +function ai1wm_decrypt_string( $encrypted_string, $key ) { + $iv_length = ai1wm_crypt_iv_length(); + $key = substr( sha1( $key, true ), 0, $iv_length ); + $iv = substr( $encrypted_string, 0, $iv_length ); + + // phpcs:ignore PHPCompatibility.Constants.NewConstants, PHPCompatibility.FunctionUse.NewFunctionParameters + $decrypted_string = openssl_decrypt( substr( $encrypted_string, $iv_length ), AI1WM_CIPHER_NAME, $key, OPENSSL_RAW_DATA, $iv ); + if ( $decrypted_string === false ) { + throw new Ai1wm_Not_Decryptable_Exception( esc_html__( 'Could not decrypt data. The process cannot continue.', 'all-in-one-wp-migration' ) ); + } + + return $decrypted_string; +} + +/** + * Checks if decryption password is valid + * + * @param string $encrypted_signature + * @param string $password + * @return bool + */ +function ai1wm_is_decryption_password_valid( $encrypted_signature, $password ) { + try { + $encrypted_signature = base64_decode( $encrypted_signature ); + + return ai1wm_decrypt_string( $encrypted_signature, $password ) === AI1WM_SIGN_TEXT; + } catch ( Ai1wm_Not_Decryptable_Exception $exception ) { + return false; + } +} + +function ai1wm_populate_roles() { + if ( ! function_exists( 'populate_roles' ) && ! function_exists( 'populate_options' ) && ! function_exists( 'populate_network' ) ) { + require_once ABSPATH . 'wp-admin/includes/schema.php'; + } + + if ( function_exists( 'populate_roles' ) ) { + populate_roles(); + } +} + +/** + * Set basic auth header to request + * + * @param array $headers + * + * @return array + */ +function ai1wm_auth_headers( $headers = array() ) { + if ( $hash = get_option( AI1WM_AUTH_HEADER ) ) { + $headers['Authorization'] = sprintf( 'Basic %s', $hash ); + } + + if ( ( $user = get_option( AI1WM_AUTH_USER ) ) && ( $password = get_option( AI1WM_AUTH_PASSWORD ) ) ) { + if ( ! isset( $headers['Authorization'] ) && ( $hash = base64_encode( sprintf( '%s:%s', $user, $password ) ) ) ) { + update_option( AI1WM_AUTH_HEADER, $hash ); + $headers['Authorization'] = sprintf( 'Basic %s', $hash ); + } + delete_option( AI1WM_AUTH_USER ); + delete_option( AI1WM_AUTH_PASSWORD ); + } + + return $headers; +} + +/** + * Check if direct download of backup supported + * + * @return bool + */ +function ai1wm_direct_download_supported() { + return ! ( $_SERVER['SERVER_NAME'] === 'playground.wordpress.net' || $_SERVER['SERVER_SOFTWARE'] === 'PHP.wasm' ); +} + +/** + * Get allowed HTML tags when output with `wp_kses()` + * + * @return array + */ +function ai1wm_allowed_html_tags() { + return array( + 'a' => array( + 'href' => array(), + 'title' => array(), + 'target' => array(), + 'id' => array(), + 'name' => array(), + 'aria-label' => array(), + 'class' => array(), + 'style' => array(), + 'disabled' => array(), + 'download' => array(), + ), + 'p' => array( + 'class' => array(), + 'style' => array(), + ), + 'br' => array(), + 'em' => array(), + 'h3' => array(), + 'i' => array( + 'class' => array(), + 'aria-hidden' => array(), + 'aria-label' => array(), + ), + 'small' => array(), + 'strong' => array(), + 'input' => array( + 'type' => array(), + 'name' => array(), + 'aria-label' => array(), + 'style' => array(), + 'id' => array(), + 'value' => array(), + 'class' => array(), + 'disabled' => array(), + ), + ); +} + +/** + * Wrapper for wp_register_style function + * + * @param string $handle Name of the stylesheet + * @param string $src Path of the stylesheet + * @param array $deps An array of registered stylesheet handles this stylesheet depends on + * @param mixed $ver String specifying stylesheet version number + * @param string $media The media for which this stylesheet has been defined + * + * @return bool + */ +function ai1wm_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) { + if ( is_rtl() ) { + $src = str_replace( '.min.css', '.min.rtl.css', $src ); + } + + return wp_register_style( $handle, $src, $deps, $ver, $media ); +} + +/** + * Wrapper for wp_enqueue_style function + * + * @param string $handle Name of the stylesheet + * @param string $src Path of the stylesheet + * @param array $deps An array of registered stylesheet handles this stylesheet depends on + * @param mixed $ver String specifying stylesheet version number + * @param string $media The media for which this stylesheet has been defined + * + * @return void + */ +function ai1wm_enqueue_style( $handle, $src = '', $deps = array(), $ver = false, $media = 'all' ) { + if ( is_rtl() ) { + $src = str_replace( '.min.css', '.min.rtl.css', $src ); + } + + wp_enqueue_style( $handle, $src, $deps, $ver, $media ); +} + +/** + * Wrapper for wp_register_script function + * + * @param string $handle Name of the script + * @param string $src Path of the script + * @param array $deps An array of registered script handles this script depends on + * @param mixed $ver String specifying script version number + * @param mixed $args An array of additional script loading strategies + * + * @return bool + */ +function ai1wm_register_script( $handle, $src, $deps = array(), $ver = false, $args = array() ) { + return wp_register_script( $handle, $src, $deps, $ver, $args ); +} + +/** + * Wrapper for wp_enqueue_script function + * + * @param string $handle Name of the script + * @param string $src Path of the script + * @param array $deps An array of registered script handles this script depends on + * @param mixed $ver String specifying script version number + * @param mixed $args An array of additional script loading strategies + * + * @return void + */ +function ai1wm_enqueue_script( $handle, $src = '', $deps = array(), $ver = false, $args = array() ) { + wp_enqueue_script( $handle, $src, $deps, $ver, $args ); +} + +/** + * Check for compression type availability + * + * @param string $name Compression type + * @return boolean + */ +function ai1wm_has_compression_type( $name ) { + switch ( strtolower( $name ) ) { + case 'gzip': + return function_exists( 'gzcompress' ); + + case 'bzip2': + return function_exists( 'bzcompress' ); + + default: + return false; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-backups-controller.php b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-backups-controller.php new file mode 100644 index 0000000..2cd7504 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-backups-controller.php @@ -0,0 +1,481 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Backups_Controller { + + public static function index() { + Ai1wm_Template::render( + 'backups/index', + array( + 'backups' => Ai1wm_Backups::get_files(), + 'labels' => Ai1wm_Backups::get_labels(), + 'downloadable' => Ai1wm_Backups::are_downloadable(), + ) + ); + } + + /** + * Render the bulk delete button below the backups list + * + * Hooked to ai1wm_backups_left_end, which is fired by both the Backups page of the + * plugin and the Reset page of the paid extensions, so that the button follows the + * backups list wherever the list is rendered. + * + * @return void + */ + public static function bulk_delete_button() { + Ai1wm_Template::render( 'backups/backups-bulk-delete' ); + } + + public static function clean( $params = array() ) { + ai1wm_setup_environment(); + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( $_POST ); + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + try { + // Ensure that unauthorized people cannot access backups list action + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + // Delete storage files + Ai1wm_Directory::delete( ai1wm_storage_path( $params ) ); + exit; + } + + public static function delete( $params = array() ) { + ai1wm_setup_environment(); + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( $_POST ); + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + // Set archives + $archives = array(); + if ( isset( $params['archives'] ) && is_array( $params['archives'] ) ) { + $archives = array_map( 'trim', $params['archives'] ); + } elseif ( isset( $params['archive'] ) ) { + $archives = array( trim( $params['archive'] ) ); + } + + try { + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + $deleted = array(); + $failed = array(); + + try { + foreach ( $archives as $archive ) { + if ( Ai1wm_Backups::delete_file( $archive ) ) { + $deleted[] = $archive; + } else { + $failed[] = $archive; + } + } + + Ai1wm_Backups::delete_labels( $deleted ); + } catch ( Ai1wm_Backups_Exception $e ) { + ai1wm_json_response( array( 'deleted' => $deleted, 'errors' => array( $e->getMessage() ) ) ); + exit; + } + + $errors = array(); + if ( $failed ) { + $errors[] = sprintf( + _n( + '%d backup could not be deleted. Please verify the file permissions of your backups folder.', + '%d backups could not be deleted. Please verify the file permissions of your backups folder.', + count( $failed ), + 'all-in-one-wp-migration' + ), + count( $failed ) + ); + } + + ai1wm_json_response( array( 'deleted' => $deleted, 'errors' => $errors ) ); + exit; + } + + public static function add_label( $params = array() ) { + ai1wm_setup_environment(); + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( $_POST ); + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + // Set archive + $archive = null; + if ( isset( $params['archive'] ) ) { + $archive = trim( $params['archive'] ); + } + + // Set backup label + $label = null; + if ( isset( $params['label'] ) ) { + $label = trim( $params['label'] ); + } + + try { + // Ensure that unauthorized people cannot access add label action + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + try { + Ai1wm_Backups::set_label( $archive, $label ); + } catch ( Ai1wm_Backups_Exception $e ) { + ai1wm_json_response( array( 'errors' => array( $e->getMessage() ) ) ); + exit; + } + + ai1wm_json_response( array( 'errors' => array() ) ); + exit; + } + + public static function backup_list( $params = array() ) { + ai1wm_setup_environment(); + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( $_GET ); + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + try { + // Ensure that unauthorized people cannot access backups list action + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + Ai1wm_Template::render( + 'backups/backups-list', + array( + 'backups' => Ai1wm_Backups::get_files(), + 'labels' => Ai1wm_Backups::get_labels(), + 'downloadable' => Ai1wm_Backups::are_downloadable(), + ) + ); + exit; + } + + public static function backup_get_config( $params = array() ) { + ai1wm_setup_environment(); + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( $_POST ); + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + try { + // Ensure that unauthorized people cannot access backups list action + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + try { + // Open the archive file for reading + $archive = new Ai1wm_Extractor( ai1wm_backup_path( $params ) ); + $archive->extract_by_files_array( ai1wm_storage_path( $params ), array( AI1WM_PACKAGE_NAME ) ); + $archive->close(); + } catch ( Exception $e ) { + ai1wm_json_response( array( 'errors' => array( $e->getMessage() ) ) ); + exit; + } + + ai1wm_json_response( array( 'errors' => array() ) ); + exit; + } + + public static function backup_check_encryption( $params = array() ) { + ai1wm_setup_environment(); + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( $_POST ); + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + try { + // Ensure that unauthorized people cannot access backups list action + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + // Read package.json file + $handle = ai1wm_open( ai1wm_package_path( $params ), 'r' ); + + // Parse package.json file + $package = ai1wm_read( $handle, filesize( ai1wm_package_path( $params ) ) ); + $package = json_decode( $package, true ); + + // Close handle + ai1wm_close( $handle ); + + // No encryption provided + if ( empty( $package['Encrypted'] ) || empty( $package['EncryptedSignature'] ) ) { + ai1wm_json_response( array( 'errors' => array() ) ); + exit; + } + + // Check decryption support + if ( ! ai1wm_can_decrypt() ) { + ai1wm_json_response( array( 'errors' => array( __( 'Download a file from encrypted backup is not supported on this server. The process cannot continue. Technical details', 'all-in-one-wp-migration' ) ) ) ); + exit; + } + + // Validate decryption password + if ( ! empty( $params['decryption_password'] ) ) { + if ( ! ai1wm_is_decryption_password_valid( $package['EncryptedSignature'], $params['decryption_password'] ) ) { + ai1wm_json_response( array( 'errors' => array( __( 'The decryption password is not valid. The process cannot continue.', 'all-in-one-wp-migration' ) ) ) ); + exit; + } + + ai1wm_json_response( array( 'errors' => array() ) ); + exit; + } + + ai1wm_json_response( array( 'check' => true, 'errors' => array() ) ); + exit; + } + + public static function backup_list_content( $params = array() ) { + ai1wm_setup_environment(); + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( $_POST ); + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + try { + // Ensure that unauthorized people cannot access backups list action + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + $files = array(); + + try { + $archive = new Ai1wm_Extractor( ai1wm_backup_path( $params ) ); + if ( ! $archive->is_valid() ) { + throw new Ai1wm_Backups_Exception( + __( 'Could not list the backup content. Please ensure the backup file is accessible and not corrupted.', 'all-in-one-wp-migration' ) + ); + } + + $files = $archive->list_files(); + $archive->close(); + } catch ( Exception $e ) { + ai1wm_json_response( array( 'errors' => $e->getMessage() ) ); + exit; + } + + ai1wm_json_response( $files ); + exit; + } + + public static function download_file( $params = array() ) { + ai1wm_setup_environment(); + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( $_POST ); + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + // Set decryption password + $decryption_password = null; + if ( isset( $params['decryption_password'] ) ) { + $decryption_password = $params['decryption_password']; + } + + // Set file name + $file_name = null; + if ( isset( $params['file_name'] ) ) { + $file_name = trim( $params['file_name'] ); + } + + // Set file offset + if ( isset( $params['file_offset'] ) ) { + $file_offset = (int) $params['file_offset']; + } else { + $file_offset = 0; + } + + try { + // Ensure that unauthorized people cannot access backups list action + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + // Read package.json file + $handle = ai1wm_open( ai1wm_package_path( $params ), 'r' ); + + // Parse package.json file + $config = ai1wm_read( $handle, filesize( ai1wm_package_path( $params ) ) ); + $config = json_decode( $config, true ); + + // Close handle + ai1wm_close( $handle ); + + // Get compression type + $compression_type = null; + if ( ! empty( $config['Compression']['Enabled'] ) ) { + $compression_type = $config['Compression']['Type']; + } + + // Open the archive file for reading + $archive = new Ai1wm_Extractor( ai1wm_backup_path( $params ), $decryption_password, $compression_type ); + $archive->set_file_pointer( $file_offset ); + $archive->extract_one_file_to( ai1wm_storage_path( $params ) ); + $archive->close(); + + try { + // Validate file name and file path for directory traversal + if ( path_is_absolute( $file_name ) || validate_file( $file_name ) !== 0 ) { + exit; + } + + // Download file + if ( ( $file_handle = ai1wm_open( ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . $file_name, 'rb' ) ) ) { + while ( ! feof( $file_handle ) ) { + $file_buffer = ai1wm_read( $file_handle, 1024 * 1024 ); + echo $file_buffer; + ob_flush(); + flush(); + } + + ai1wm_close( $file_handle ); + } + } catch ( Exception $e ) { + } + + exit; + } + + public static function download_backup( $params = array() ) { + ai1wm_setup_environment(); + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( $_POST ); + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + try { + // Ensure that unauthorized people cannot access backups list action + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + try { + // Download file + if ( ( $file_handle = ai1wm_open( ai1wm_backup_path( $params ), 'rb' ) ) ) { + while ( ! feof( $file_handle ) ) { + $file_buffer = ai1wm_read( $file_handle, 1024 * 1024 ); + echo $file_buffer; + ob_flush(); + flush(); + } + + ai1wm_close( $file_handle ); + } + } catch ( Exception $e ) { + } + + exit; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-export-controller.php b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-export-controller.php new file mode 100644 index 0000000..e35ecaa --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-export-controller.php @@ -0,0 +1,345 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Controller { + + public static function index() { + Ai1wm_Template::render( 'export/index' ); + } + + public static function export( $params = array() ) { + global $ai1wm_params; + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( array_merge( $_GET, $_POST ) ); + } + + // Set priority + if ( ! isset( $params['priority'] ) ) { + $params['priority'] = 5; + } + + $ai1wm_params = $params; + + // Set job ID for per-job status tracking + if ( isset( $params['storage'] ) ) { + Ai1wm_Status::$job_id = $params['storage']; + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + ai1wm_setup_environment(); + + try { + // Ensure that unauthorized people cannot access export action + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + // Error handling is set up for the authorised request, after the secret-key check. + ai1wm_setup_errors(); + + // Loop over filters + if ( ( $filters = ai1wm_get_filters( 'ai1wm_export' ) ) ) { + while ( $hooks = current( $filters ) ) { + if ( intval( $params['priority'] ) === key( $filters ) ) { + foreach ( $hooks as $hook ) { + try { + + // Run function hook + $params = call_user_func_array( $hook['function'], array( $params ) ); + + } catch ( Ai1wm_Database_Exception $e ) { + do_action( 'ai1wm_status_export_error', $params, $e ); + + if ( defined( 'WP_CLI' ) ) { + /* translators: 1: Error code, 2: Error message. */ + WP_CLI::error( sprintf( __( 'Export failed (database error). Code: %1$s. Message: %2$s', 'all-in-one-wp-migration' ), $e->getCode(), $e->getMessage() ) ); + } + + // REST API: write job-scoped error so poll clients see the terminal state, then re-throw + if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { + Ai1wm_Status::error( __( 'Export failed', 'all-in-one-wp-migration' ), $e->getMessage() ); + throw $e; + } + + status_header( $e->getCode() ); + ai1wm_json_response( array( 'errors' => array( array( 'code' => $e->getCode(), 'message' => $e->getMessage() ) ) ) ); + exit; + } catch ( Exception $e ) { + do_action( 'ai1wm_status_export_error', $params, $e ); + + if ( defined( 'WP_CLI' ) ) { + /* translators: 1: Error message. */ + WP_CLI::error( sprintf( __( 'Export failed: %s', 'all-in-one-wp-migration' ), $e->getMessage() ) ); + } + + // Write job-scoped error first so REST poll clients see the terminal state + Ai1wm_Status::error( __( 'Export failed', 'all-in-one-wp-migration' ), $e->getMessage() ); + + // REST API: re-throw so the handler can return a WP_Error + if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { + throw $e; + } + + Ai1wm_Notification::error( __( 'Export failed', 'all-in-one-wp-migration' ), $e->getMessage() ); + exit; + } + } + + // Set completed + $completed = true; + if ( isset( $params['completed'] ) ) { + $completed = (bool) $params['completed']; + } + + // Do request + if ( $completed === false || ( $next = next( $filters ) ) && ( $params['priority'] = key( $filters ) ) ) { + if ( defined( 'WP_CLI' ) ) { + if ( ! defined( 'DOING_CRON' ) ) { + continue; + } + } + + if ( isset( $params['ai1wm_manual_export'] ) ) { + ai1wm_json_response( $params ); + exit; + } + + wp_remote_request( + apply_filters( 'ai1wm_http_export_url', add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_export' ) ) ), + array( + 'method' => apply_filters( 'ai1wm_http_export_method', 'POST' ), + 'timeout' => apply_filters( 'ai1wm_http_export_timeout', 10 ), + 'blocking' => apply_filters( 'ai1wm_http_export_blocking', false ), + 'sslverify' => apply_filters( 'ai1wm_http_export_sslverify', false ), + 'headers' => apply_filters( 'ai1wm_http_export_headers', array() ), + 'body' => apply_filters( 'ai1wm_http_export_body', $params ), + ) + ); + + // REST API: return params instead of exit so the handler can build a response + if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { + return $params; + } + + exit; + } + } + + next( $filters ); + } + } + + return $params; + } + + public static function buttons() { + $active_filters = array(); + $static_filters = array(); + + // All-in-One WP Migration + if ( defined( 'AI1WM_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_file', Ai1wm_Template::get_content( 'export/button-file' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_file', Ai1wm_Template::get_content( 'export/button-file' ) ); + } + + // Add Google Drive Extension + if ( defined( 'AI1WMGE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_gdrive', Ai1wm_Template::get_content( 'export/button-gdrive' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_gdrive', Ai1wm_Template::get_content( 'export/button-gdrive' ) ); + } + + // Add FTP Extension + if ( defined( 'AI1WMFE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_ftp', Ai1wm_Template::get_content( 'export/button-ftp' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_ftp', Ai1wm_Template::get_content( 'export/button-ftp' ) ); + } + + // Add Dropbox Extension + if ( defined( 'AI1WMDE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_dropbox', Ai1wm_Template::get_content( 'export/button-dropbox' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_dropbox', Ai1wm_Template::get_content( 'export/button-dropbox' ) ); + } + + // Add Amazon S3 Extension + if ( defined( 'AI1WMSE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_s3', Ai1wm_Template::get_content( 'export/button-s3' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_s3', Ai1wm_Template::get_content( 'export/button-s3' ) ); + } + + // Add OneDrive Extension + if ( defined( 'AI1WMOE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_onedrive', Ai1wm_Template::get_content( 'export/button-onedrive' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_onedrive', Ai1wm_Template::get_content( 'export/button-onedrive' ) ); + } + + // Add pCloud Extension + if ( defined( 'AI1WMPE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_pcloud', Ai1wm_Template::get_content( 'export/button-pcloud' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_pcloud', Ai1wm_Template::get_content( 'export/button-pcloud' ) ); + } + + // Add S3 Client Extension + if ( defined( 'AI1WMNE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_s3_client', Ai1wm_Template::get_content( 'export/button-s3-client' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_s3_client', Ai1wm_Template::get_content( 'export/button-s3-client' ) ); + } + + // Add Google Cloud Storage Extension + if ( defined( 'AI1WMCE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_gcloud_storage', Ai1wm_Template::get_content( 'export/button-gcloud-storage' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_gcloud_storage', Ai1wm_Template::get_content( 'export/button-gcloud-storage' ) ); + } + + // Add DigitalOcean Spaces Extension + if ( defined( 'AI1WMIE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_digitalocean', Ai1wm_Template::get_content( 'export/button-digitalocean' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_digitalocean', Ai1wm_Template::get_content( 'export/button-digitalocean' ) ); + } + + // Add Mega Extension + if ( defined( 'AI1WMEE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_mega', Ai1wm_Template::get_content( 'export/button-mega' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_mega', Ai1wm_Template::get_content( 'export/button-mega' ) ); + } + + // Add Backblaze B2 Extension + if ( defined( 'AI1WMAE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_b2', Ai1wm_Template::get_content( 'export/button-b2' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_b2', Ai1wm_Template::get_content( 'export/button-b2' ) ); + } + + // Add Box Extension + if ( defined( 'AI1WMBE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_box', Ai1wm_Template::get_content( 'export/button-box' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_box', Ai1wm_Template::get_content( 'export/button-box' ) ); + } + + // Add Microsoft Azure Extension + if ( defined( 'AI1WMZE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_azure_storage', Ai1wm_Template::get_content( 'export/button-azure-storage' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_azure_storage', Ai1wm_Template::get_content( 'export/button-azure-storage' ) ); + } + + // Add WebDAV Extension + if ( defined( 'AI1WMWE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_webdav', Ai1wm_Template::get_content( 'export/button-webdav' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_webdav', Ai1wm_Template::get_content( 'export/button-webdav' ) ); + } + + // Add Amazon Glacier Extension + if ( defined( 'AI1WMRE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_export_glacier', Ai1wm_Template::get_content( 'export/button-glacier' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_export_glacier', Ai1wm_Template::get_content( 'export/button-glacier' ) ); + } + + return array_merge( $active_filters, $static_filters ); + } + + public static function cleanup() { + try { + // Iterate over storage directory + $iterator = new Ai1wm_Recursive_Directory_Iterator( AI1WM_STORAGE_PATH ); + + // Exclude index.php + $iterator = new Ai1wm_Recursive_Exclude_Filter( $iterator, array( 'index.php', 'index.html' ) ); + + // Loop over folders and files + foreach ( $iterator as $item ) { + try { + if ( $item->isFile() && $item->getExtension() === 'log' ) { + if ( $item->getMTime() < ( time() - AI1WM_MAX_LOG_CLEANUP ) ) { + Ai1wm_File::delete( $item->getPathname() ); + } + } elseif ( $item->getMTime() < ( time() - AI1WM_MAX_STORAGE_CLEANUP ) ) { + if ( $item->isDir() ) { + delete_option( 'ai1wm_status_' . basename( $item->getPathname() ) ); + Ai1wm_Directory::delete( $item->getPathname() ); + } else { + Ai1wm_File::delete( $item->getPathname() ); + } + } + } catch ( Exception $e ) { + } + } + } catch ( Exception $e ) { + } + + // Sweep orphan ai1wm_status_ options whose storage folder is gone. + // Pipeline Clean stages delete the folder before this cron sees it, so the + // folder-iterating loop above can't reach their option rows. + global $wpdb; + if ( $wpdb instanceof wpdb ) { + $prefix = 'ai1wm_status_'; + $prefix_len = strlen( $prefix ); + $storage_root = AI1WM_STORAGE_PATH . DIRECTORY_SEPARATOR; + $like = $wpdb->esc_like( $prefix ) . '%'; + // $wpdb->options is a trusted property, not user input. + // @phpstan-ignore-next-line argument.type + $sql = $wpdb->prepare( "SELECT option_name FROM {$wpdb->options} WHERE option_name LIKE %s", $like ); + $rows = $wpdb->get_col( $sql ); + if ( is_array( $rows ) ) { + foreach ( $rows as $option_name ) { + $job_id = substr( $option_name, $prefix_len ); + if ( ! preg_match( '/\A[a-zA-Z0-9_-]+\z/', $job_id ) ) { + continue; + } + if ( ! is_dir( $storage_root . $job_id ) ) { + delete_option( $option_name ); + } + } + } + } + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-feedback-controller.php b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-feedback-controller.php new file mode 100644 index 0000000..62fd2cc --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-feedback-controller.php @@ -0,0 +1,101 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Feedback_Controller { + + public static function feedback( $params = array() ) { + ai1wm_setup_environment(); + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( $_POST ); + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + // Set type + $type = null; + if ( isset( $params['ai1wm_type'] ) ) { + $type = trim( $params['ai1wm_type'] ); + } + + // Set e-mail + $email = null; + if ( isset( $params['ai1wm_email'] ) ) { + $email = trim( $params['ai1wm_email'] ); + } + + // Set message + $message = null; + if ( isset( $params['ai1wm_message'] ) ) { + $message = trim( $params['ai1wm_message'] ); + } + + // Set terms + $terms = false; + if ( isset( $params['ai1wm_terms'] ) ) { + $terms = (bool) $params['ai1wm_terms']; + } + + try { + // Ensure that unauthorized people cannot access feedback action + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + $extensions = Ai1wm_Extensions::get(); + + // Exclude File Extension + if ( defined( 'AI1WMTE_PLUGIN_NAME' ) ) { + unset( $extensions[ AI1WMTE_PLUGIN_NAME ] ); + } + + $purchases = array(); + foreach ( $extensions as $extension ) { + $purchases[] = $extension['key']; + } + + try { + Ai1wm_Feedback::add( $type, $email, $message, $terms, implode( PHP_EOL, $purchases ) ); + } catch ( Ai1wm_Feedback_Exception $e ) { + ai1wm_json_response( array( 'errors' => array( $e->getMessage() ) ) ); + exit; + } + + ai1wm_json_response( array( 'errors' => array() ) ); + exit; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-import-controller.php b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-import-controller.php new file mode 100644 index 0000000..a30e375 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-import-controller.php @@ -0,0 +1,336 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Controller { + + public static function index() { + Ai1wm_Template::render( 'import/index' ); + } + + public static function import( $params = array() ) { + global $ai1wm_params; + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( array_merge( $_GET, $_POST ) ); + } + + // Set priority + if ( ! isset( $params['priority'] ) ) { + $params['priority'] = 10; + } + + $ai1wm_params = $params; + + // Set job ID for per-job status tracking + if ( isset( $params['storage'] ) ) { + Ai1wm_Status::$job_id = $params['storage']; + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + ai1wm_setup_environment(); + + try { + // Ensure that unauthorized people cannot access import action + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + // Error handling is set up for the authorised request, after the secret-key check. + ai1wm_setup_errors(); + + // Loop over filters + if ( ( $filters = ai1wm_get_filters( 'ai1wm_import' ) ) ) { + while ( $hooks = current( $filters ) ) { + if ( intval( $params['priority'] ) === key( $filters ) ) { + foreach ( $hooks as $hook ) { + try { + + // Run function hook + $params = call_user_func_array( $hook['function'], array( $params ) ); + + } catch ( Ai1wm_Upload_Exception $e ) { + do_action( 'ai1wm_status_upload_error', $params, $e ); + + if ( defined( 'WP_CLI' ) ) { + /* translators: 1: Error code, 2: Error message. */ + WP_CLI::error( sprintf( __( 'Import failed. Code: %1$s. %2$s', 'all-in-one-wp-migration' ), $e->getCode(), $e->getMessage() ) ); + } + + // REST API: write job-scoped error so poll clients see the terminal state, then re-throw + if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { + Ai1wm_Status::error( __( 'Import failed', 'all-in-one-wp-migration' ), $e->getMessage() ); + throw $e; + } + + status_header( $e->getCode() ); + ai1wm_json_response( array( 'errors' => array( array( 'code' => $e->getCode(), 'message' => $e->getMessage() ) ) ) ); + exit; + } catch ( Ai1wm_Database_Exception $e ) { + do_action( 'ai1wm_status_import_error', $params, $e ); + + if ( defined( 'WP_CLI' ) ) { + /* translators: 1: Error code, 2: Error message. */ + WP_CLI::error( sprintf( __( 'Import failed (database error). Code: %1$s. %2$s', 'all-in-one-wp-migration' ), $e->getCode(), $e->getMessage() ) ); + } + + // REST API: write job-scoped error so poll clients see the terminal state, then re-throw + if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { + Ai1wm_Status::error( __( 'Import failed', 'all-in-one-wp-migration' ), $e->getMessage() ); + throw $e; + } + + status_header( $e->getCode() ); + ai1wm_json_response( array( 'errors' => array( array( 'code' => $e->getCode(), 'message' => $e->getMessage() ) ) ) ); + exit; + } catch ( Ai1wm_Not_Decryptable_Exception $e ) { + // Check_Encryption signals pipeline halt; storage/status preserved for retry via /confirm + if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { + throw $e; + } + + exit; + } catch ( Exception $e ) { + do_action( 'ai1wm_status_import_error', $params, $e ); + + if ( defined( 'WP_CLI' ) ) { + /* translators: Error message. */ + WP_CLI::error( sprintf( __( 'Import failed: %s', 'all-in-one-wp-migration' ), $e->getMessage() ) ); + } + + // Write job-scoped error first so REST poll clients see the terminal state + if ( $e instanceof Ai1wm_CRC_Exception ) { + Ai1wm_Status::left_error( __( 'Import failed', 'all-in-one-wp-migration' ), $e->getMessage() ); + } else { + Ai1wm_Status::error( __( 'Import failed', 'all-in-one-wp-migration' ), $e->getMessage() ); + } + + // REST API: re-throw so the handler can return a WP_Error + if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { + throw $e; + } + + Ai1wm_Notification::error( __( 'Import failed', 'all-in-one-wp-migration' ), $e->getMessage() ); + exit; + } + } + + // Set completed + $completed = true; + if ( isset( $params['completed'] ) ) { + $completed = (bool) $params['completed']; + } + + // Do request + if ( $completed === false || ( $next = next( $filters ) ) && ( $params['priority'] = key( $filters ) ) ) { + if ( defined( 'WP_CLI' ) ) { + if ( ! defined( 'DOING_CRON' ) ) { + continue; + } + } + + if ( isset( $params['ai1wm_manual_import'] ) || isset( $params['ai1wm_manual_restore'] ) ) { + ai1wm_json_response( $params ); + exit; + } + + wp_remote_request( + apply_filters( 'ai1wm_http_import_url', add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_import' ) ) ), + array( + 'method' => apply_filters( 'ai1wm_http_import_method', 'POST' ), + 'timeout' => apply_filters( 'ai1wm_http_import_timeout', 10 ), + 'blocking' => apply_filters( 'ai1wm_http_import_blocking', false ), + 'sslverify' => apply_filters( 'ai1wm_http_import_sslverify', false ), + 'headers' => apply_filters( 'ai1wm_http_import_headers', array() ), + 'body' => apply_filters( 'ai1wm_http_import_body', $params ), + ) + ); + + // REST API: return params instead of exit so the handler can build a response + if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { + return $params; + } + + exit; + } + } + + next( $filters ); + } + } + + return $params; + } + + public static function buttons() { + $active_filters = array(); + $static_filters = array(); + + // All-in-One WP Migration + if ( defined( 'AI1WM_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_file', Ai1wm_Template::get_content( 'import/button-file' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_file', Ai1wm_Template::get_content( 'import/button-file' ) ); + } + + // Add Google Drive Extension + if ( defined( 'AI1WMGE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_gdrive', Ai1wm_Template::get_content( 'import/button-gdrive' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_gdrive', Ai1wm_Template::get_content( 'import/button-gdrive' ) ); + } + + // Add FTP Extension + if ( defined( 'AI1WMFE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_ftp', Ai1wm_Template::get_content( 'import/button-ftp' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_ftp', Ai1wm_Template::get_content( 'import/button-ftp' ) ); + } + + // Add Dropbox Extension + if ( defined( 'AI1WMDE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_dropbox', Ai1wm_Template::get_content( 'import/button-dropbox' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_dropbox', Ai1wm_Template::get_content( 'import/button-dropbox' ) ); + } + + // Add URL Extension + if ( defined( 'AI1WMLE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_url', Ai1wm_Template::get_content( 'import/button-url' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_url', Ai1wm_Template::get_content( 'import/button-url' ) ); + } + + // Add Amazon S3 Extension + if ( defined( 'AI1WMSE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_s3', Ai1wm_Template::get_content( 'import/button-s3' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_s3', Ai1wm_Template::get_content( 'import/button-s3' ) ); + } + + // Add OneDrive Extension + if ( defined( 'AI1WMOE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_onedrive', Ai1wm_Template::get_content( 'import/button-onedrive' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_onedrive', Ai1wm_Template::get_content( 'import/button-onedrive' ) ); + } + + // Add pCloud Extension + if ( defined( 'AI1WMPE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_pcloud', Ai1wm_Template::get_content( 'import/button-pcloud' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_pcloud', Ai1wm_Template::get_content( 'import/button-pcloud' ) ); + } + + // Add S3 Client Extension + if ( defined( 'AI1WMNE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_s3_client', Ai1wm_Template::get_content( 'import/button-s3-client' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_s3_client', Ai1wm_Template::get_content( 'import/button-s3-client' ) ); + } + + // Add Google Cloud Storage Extension + if ( defined( 'AI1WMCE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_gcloud_storage', Ai1wm_Template::get_content( 'import/button-gcloud-storage' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_gcloud_storage', Ai1wm_Template::get_content( 'import/button-gcloud-storage' ) ); + } + + // Add DigitalOcean Spaces Extension + if ( defined( 'AI1WMIE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_digitalocean', Ai1wm_Template::get_content( 'import/button-digitalocean' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_digitalocean', Ai1wm_Template::get_content( 'import/button-digitalocean' ) ); + } + + // Add Mega Extension + if ( defined( 'AI1WMEE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_mega', Ai1wm_Template::get_content( 'import/button-mega' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_mega', Ai1wm_Template::get_content( 'import/button-mega' ) ); + } + + // Add Backblaze B2 Extension + if ( defined( 'AI1WMAE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_b2', Ai1wm_Template::get_content( 'import/button-b2' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_b2', Ai1wm_Template::get_content( 'import/button-b2' ) ); + } + + // Add Box Extension + if ( defined( 'AI1WMBE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_box', Ai1wm_Template::get_content( 'import/button-box' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_box', Ai1wm_Template::get_content( 'import/button-box' ) ); + } + + // Add Microsoft Azure Extension + if ( defined( 'AI1WMZE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_azure_storage', Ai1wm_Template::get_content( 'import/button-azure-storage' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_azure_storage', Ai1wm_Template::get_content( 'import/button-azure-storage' ) ); + } + + // Add WebDAV Extension + if ( defined( 'AI1WMWE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_webdav', Ai1wm_Template::get_content( 'import/button-webdav' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_webdav', Ai1wm_Template::get_content( 'import/button-webdav' ) ); + } + + // Add Amazon Glacier Extension + if ( defined( 'AI1WMRE_PLUGIN_NAME' ) ) { + $active_filters[] = apply_filters( 'ai1wm_import_glacier', Ai1wm_Template::get_content( 'import/button-glacier' ) ); + } else { + $static_filters[] = apply_filters( 'ai1wm_import_glacier', Ai1wm_Template::get_content( 'import/button-glacier' ) ); + } + + return array_merge( $active_filters, $static_filters ); + } + + public static function pro() { + return Ai1wm_Template::get_content( 'import/pro' ); + } + + public static function max_chunk_size() { + return min( + ai1wm_parse_size( ini_get( 'post_max_size' ), AI1WM_MAX_CHUNK_SIZE ), + ai1wm_parse_size( ini_get( 'upload_max_filesize' ), AI1WM_MAX_CHUNK_SIZE ), + ai1wm_parse_size( AI1WM_MAX_CHUNK_SIZE ) + ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-main-controller.php b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-main-controller.php new file mode 100644 index 0000000..8390f2c --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-main-controller.php @@ -0,0 +1,1444 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Main_Controller { + + /** + * Main Application Controller + * + * @return Ai1wm_Main_Controller + */ + public function __construct() { + register_activation_hook( AI1WM_PLUGIN_BASENAME, array( $this, 'activation_hook' ) ); + + // Activate hooks + $this->activate_actions(); + $this->activate_filters(); + } + + /** + * Activation hook callback + * + * @return void + */ + public function activation_hook() { + if ( extension_loaded( 'litespeed' ) ) { + $this->create_litespeed_htaccess( AI1WM_WORDPRESS_HTACCESS ); + } + + $this->setup_backups_folder(); + $this->setup_storage_folder(); + $this->setup_secret_key(); + } + + /** + * Initializes language domain for the plugin + * + * @return void + */ + public function load_textdomain() { + load_plugin_textdomain( AI1WM_PLUGIN_NAME, false, false ); + } + + /** + * Register listeners for actions + * + * @return void + */ + private function activate_actions() { + // Load admin header styles + add_action( 'admin_head', array( $this, 'admin_head' ) ); + + // Load core functionality + add_action( 'cli_init', array( $this, 'cli_init' ) ); + add_action( 'admin_init', array( $this, 'init' ) ); + add_action( 'admin_init', array( $this, 'router' ) ); + add_action( 'admin_init', array( $this, 'wp_importing' ), 5 ); + add_action( 'admin_init', array( $this, 'setup_backups_folder' ) ); + add_action( 'admin_init', array( $this, 'setup_storage_folder' ) ); + add_action( 'admin_init', array( $this, 'setup_secret_key' ) ); + add_action( 'admin_init', array( $this, 'check_auto_increment' ) ); + add_action( 'admin_init', array( $this, 'check_user_role_capability' ) ); + add_action( 'admin_init', array( $this, 'schedule_crons' ) ); + add_action( 'admin_init', array( $this, 'load_textdomain' ) ); + + // Load commands and buttons + add_action( 'plugins_loaded', array( $this, 'ai1wm_loaded' ), 10 ); + add_action( 'plugins_loaded', array( $this, 'ai1wm_commands' ), 10 ); + add_action( 'plugins_loaded', array( $this, 'ai1wm_buttons' ), 10 ); + + // Register scripts and styles + add_action( 'admin_enqueue_scripts', array( $this, 'register_servmask_scripts_and_styles' ), 5 ); + add_action( 'admin_enqueue_scripts', array( $this, 'register_settings_scripts_and_styles' ), 5 ); + add_action( 'admin_enqueue_scripts', array( $this, 'register_export_scripts_and_styles' ), 5 ); + add_action( 'admin_enqueue_scripts', array( $this, 'register_import_scripts_and_styles' ), 5 ); + add_action( 'admin_enqueue_scripts', array( $this, 'register_backups_scripts_and_styles' ), 5 ); + add_action( 'admin_enqueue_scripts', array( $this, 'register_schedules_scripts_and_styles' ), 5 ); + add_action( 'admin_enqueue_scripts', array( $this, 'register_reset_scripts_and_styles' ), 5 ); + add_action( 'admin_enqueue_scripts', array( $this, 'register_updater_scripts_and_styles' ), 5 ); + + // Enqueue scripts and styles + add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_export_scripts_and_styles' ), 5 ); + add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_import_scripts_and_styles' ), 5 ); + add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_backups_scripts_and_styles' ), 5 ); + add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_schedules_scripts_and_styles' ), 5 ); + add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_reset_scripts_and_styles' ), 5 ); + add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_updater_scripts_and_styles' ), 5 ); + + // Render the bulk delete button below the backups list + add_action( 'ai1wm_backups_left_end', 'Ai1wm_Backups_Controller::bulk_delete_button' ); + + // Handle export/import exceptions (errors) + add_action( 'ai1wm_status_export_error', array( $this, 'handle_error_cleanup' ), 5, 2 ); + add_action( 'ai1wm_status_import_error', array( $this, 'handle_error_cleanup' ), 5, 2 ); + } + + /** + * Register listeners for filters + * + * @return void + */ + private function activate_filters() { + // Add links to plugin list page + add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 ); + + // Add custom schedules + add_filter( 'cron_schedules', array( $this, 'add_cron_schedules' ), 9999 ); + + // Map the full-site import meta capability + add_filter( 'map_meta_cap', array( $this, 'add_map_meta_cap' ), 9999, 4 ); + } + + /** + * Export and import commands + * + * @return void + */ + public function ai1wm_commands() { + // Add export commands + add_filter( 'ai1wm_export', 'Ai1wm_Export_Init::execute', 5 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Compatibility::execute', 10 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Archive::execute', 30 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Config::execute', 50 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Config_File::execute', 60 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Enumerate_Content::execute', 100 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Enumerate_Media::execute', 110 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Enumerate_Plugins::execute', 120 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Enumerate_Themes::execute', 130 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Enumerate_Tables::execute', 140 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Content::execute', 150 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Media::execute', 160 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Plugins::execute', 170 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Themes::execute', 180 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Database::execute', 200 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Database_File::execute', 220 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Archive_Crc::execute', 240 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Download::execute', 250 ); + add_filter( 'ai1wm_export', 'Ai1wm_Export_Clean::execute', 300 ); + + // Add import commands + add_filter( 'ai1wm_import', 'Ai1wm_Import_Upload::execute', 5 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Compatibility::execute', 10 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Validate::execute', 50 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Validate_Crc::execute', 55 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Check_Compression::execute', 70 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Check_Encryption::execute', 75 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Confirm::execute', 100 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Blogs::execute', 150 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Permalinks::execute', 170 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Enumerate::execute', 200 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Content::execute', 250 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Mu_Plugins::execute', 270 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Database_File::execute', 295 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Database::execute', 300 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Users::execute', 310 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Options::execute', 330 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Done::execute', 350 ); + add_filter( 'ai1wm_import', 'Ai1wm_Import_Clean::execute', 400 ); + } + + /** + * Export and import buttons + * + * @return void + */ + public function ai1wm_buttons() { + add_filter( 'ai1wm_export_buttons', 'Ai1wm_Export_Controller::buttons' ); + add_filter( 'ai1wm_import_buttons', 'Ai1wm_Import_Controller::buttons' ); + add_filter( 'ai1wm_pro', 'Ai1wm_Import_Controller::pro', 10 ); + } + + /** + * All-in-One WP Migration loaded + * + * @return void + */ + public function ai1wm_loaded() { + if ( ! defined( 'AI1WMME_PLUGIN_NAME' ) ) { + if ( is_multisite() ) { + add_action( 'network_admin_notices', array( $this, 'multisite_notice' ) ); + } else { + add_action( 'admin_menu', array( $this, 'admin_menu' ) ); + } + } else { + if ( is_multisite() ) { + add_action( 'network_admin_menu', array( $this, 'admin_menu' ) ); + } else { + add_action( 'admin_menu', array( $this, 'admin_menu' ) ); + } + } + + // Add in plugin update message + foreach ( Ai1wm_Extensions::get() as $slug => $extension ) { + add_action( "in_plugin_update_message-{$extension['basename']}", 'Ai1wm_Updater_Controller::in_plugin_update_message', 10, 2 ); + } + + // Add automatic plugins update + add_action( 'wp_maybe_auto_update', 'Ai1wm_Updater_Controller::check_for_updates' ); + + // Add HTTP export headers + add_filter( 'ai1wm_http_export_headers', 'ai1wm_auth_headers' ); + + // Add HTTP import headers + add_filter( 'ai1wm_http_import_headers', 'ai1wm_auth_headers' ); + + // Add HTTP reset headers + add_filter( 'ai1wm_http_reset_headers', 'ai1wm_auth_headers' ); + + // Add chunk size limit + add_filter( 'ai1wm_max_chunk_size', 'Ai1wm_Import_Controller::max_chunk_size' ); + + // Add plugins API + add_filter( 'plugins_api', 'Ai1wm_Updater_Controller::plugins_api', 20, 3 ); + + // Add plugins updates + add_filter( 'pre_set_site_transient_update_plugins', 'Ai1wm_Updater_Controller::pre_update_plugins' ); + + // Add plugins metadata + add_filter( 'site_transient_update_plugins', 'Ai1wm_Updater_Controller::update_plugins' ); + + // Add "Check for updates" link to plugin list page + add_filter( 'plugin_row_meta', 'Ai1wm_Updater_Controller::plugin_row_meta', 10, 2 ); + + // Add storage folder daily cleanup cron + add_action( 'ai1wm_storage_cleanup', 'Ai1wm_Export_Controller::cleanup' ); + + // Register REST API routes + add_action( 'rest_api_init', 'Ai1wm_Rest_Controller::register_routes' ); + + // Let a valid secret_key authenticate read-only poll/log routes after an import wipes user credentials + add_filter( 'rest_authentication_errors', 'Ai1wm_Rest_Controller::allow_secret_key_auth', 1000 ); + } + + /** + * WP CLI commands + * + * @return void + */ + public function cli_init() { + if ( defined( 'WP_CLI' ) && count( Ai1wm_Extensions::get() ) === 0 ) { + WP_CLI::add_command( 'ai1wm', 'Ai1wm_WP_CLI_Command', array( 'shortdesc' => __( 'All-in-One WP Migration Command', 'all-in-one-wp-migration' ) ) ); + } + } + + /** + * Create backups folder with index.php, index.html, .htaccess and web.config files + * + * @return void + */ + public function setup_backups_folder() { + $this->create_backups_folder( AI1WM_BACKUPS_PATH ); + $this->create_backups_htaccess( AI1WM_BACKUPS_HTACCESS ); + $this->create_backups_webconfig( AI1WM_BACKUPS_WEBCONFIG ); + $this->create_backups_index_php( AI1WM_BACKUPS_INDEX_PHP ); + $this->create_backups_index_html( AI1WM_BACKUPS_INDEX_HTML ); + $this->create_backups_robots_txt( AI1WM_BACKUPS_ROBOTS_TXT ); + } + + /** + * Create storage folder with index.php and index.html files + * + * @return void + */ + public function setup_storage_folder() { + $this->create_storage_folder( AI1WM_STORAGE_PATH ); + $this->create_storage_htaccess( AI1WM_STORAGE_HTACCESS ); + $this->create_storage_webconfig( AI1WM_STORAGE_WEBCONFIG ); + $this->create_storage_index_php( AI1WM_STORAGE_INDEX_PHP ); + $this->create_storage_index_html( AI1WM_STORAGE_INDEX_HTML ); + } + + /** + * Create secret key if they don't exist yet + * + * @return void + */ + public function setup_secret_key() { + if ( ! get_option( AI1WM_SECRET_KEY ) ) { + update_option( AI1WM_SECRET_KEY, ai1wm_generate_random_string( 12 ) ); + } + } + + /** + * Check auto increment + * + * @return void + */ + public function check_auto_increment() { + global $wpdb; + + $db_client = Ai1wm_Database_Utility::get_client(); + if ( ! $db_client->has_auto_increment( $wpdb->options ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'missing_auto_increment' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'missing_auto_increment' ) ); + } + } + } + + /** + * Check user role capability + * + * Only administrators are warned. is_super_admin() covers both installs: the + * super admin list on multisite, and delete_users, meaning an administrator, on + * a standalone install. + * + * @return void + */ + public function check_user_role_capability() { + if ( is_super_admin() ) { + if ( ! ( current_user_can( 'ai1wm_export_site' ) || current_user_can( 'ai1wm_import_site' ) ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'missing_role_capability_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'missing_role_capability_notice' ) ); + } + } + } + } + + /** + * Schedule cron tasks for plugin operation, if not done yet + * + * @return void + */ + public function schedule_crons() { + if ( ! Ai1wm_Cron::exists( 'ai1wm_storage_cleanup' ) ) { + Ai1wm_Cron::add( 'ai1wm_storage_cleanup', 'daily', time() ); + } + + Ai1wm_Cron::clear( 'ai1wm_cleanup_cron' ); + } + + /** + * Create storage folder + * + * @param string Path to folder + * @return void + */ + public function create_storage_folder( $path ) { + if ( ! Ai1wm_Directory::create( $path ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'storage_path_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'storage_path_notice' ) ); + } + } + } + + /** + * Create backups folder + * + * @param string Path to folder + * @return void + */ + public function create_backups_folder( $path ) { + if ( ! Ai1wm_Directory::create( $path ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'backups_path_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'backups_path_notice' ) ); + } + } + } + + /** + * Create storage .htaccess file + * + * @param string Path to file + * @return void + */ + public function create_storage_htaccess( $path ) { + if ( ! Ai1wm_File_Htaccess::storage( $path ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'storage_htaccess_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'storage_htaccess_notice' ) ); + } + } + } + + /** + * Create storage web.config file + * + * @param string Path to file + * @return void + */ + public function create_storage_webconfig( $path ) { + if ( ! Ai1wm_File_Webconfig::storage( $path ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'storage_webconfig_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'storage_webconfig_notice' ) ); + } + } + } + + /** + * Create storage index.php file + * + * @param string Path to file + * @return void + */ + public function create_storage_index_php( $path ) { + if ( ! Ai1wm_File_Index::create( $path ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'storage_index_php_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'storage_index_php_notice' ) ); + } + } + } + + /** + * Create storage index.html file + * + * @param string Path to file + * @return void + */ + public function create_storage_index_html( $path ) { + if ( ! Ai1wm_File_Index::create( $path ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'storage_index_html_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'storage_index_html_notice' ) ); + } + } + } + + /** + * Create backups .htaccess file + * + * @param string Path to file + * @return void + */ + public function create_backups_htaccess( $path ) { + if ( ! Ai1wm_File_Htaccess::backups( $path ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'backups_htaccess_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'backups_htaccess_notice' ) ); + } + } + } + + /** + * Create backups web.config file + * + * @param string Path to file + * @return void + */ + public function create_backups_webconfig( $path ) { + if ( ! Ai1wm_File_Webconfig::backups( $path ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'backups_webconfig_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'backups_webconfig_notice' ) ); + } + } + } + + /** + * Create backups index.php file + * + * @param string Path to file + * @return void + */ + public function create_backups_index_php( $path ) { + if ( ! Ai1wm_File_Index::create( $path ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'backups_index_php_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'backups_index_php_notice' ) ); + } + } + } + + /** + * Create backups index.html file + * + * @param string Path to file + * @return void + */ + public function create_backups_index_html( $path ) { + if ( ! Ai1wm_File_Index::create( $path ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'backups_index_html_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'backups_index_html_notice' ) ); + } + } + } + + /** + * Create backups robots.txt file + * + * @param string Path to file + * @return void + */ + public function create_backups_robots_txt( $path ) { + if ( ! Ai1wm_File_Robots::create( $path ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'backups_robots_txt_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'backups_robots_txt_notice' ) ); + } + } + } + + /** + * If the "noabort" environment variable has been set, + * the script will continue to run even though the connection has been broken + * + * @return void + */ + public function create_litespeed_htaccess( $path ) { + if ( ! Ai1wm_File_Htaccess::litespeed( $path ) ) { + if ( is_multisite() ) { + return add_action( 'network_admin_notices', array( $this, 'wordpress_htaccess_notice' ) ); + } else { + return add_action( 'admin_notices', array( $this, 'wordpress_htaccess_notice' ) ); + } + } + } + + /** + * Display multisite notice + * + * @return void + */ + public function multisite_notice() { + Ai1wm_Template::render( 'main/multisite-notice' ); + } + + /** + * Display notice for storage directory + * + * @return void + */ + public function storage_path_notice() { + Ai1wm_Template::render( 'main/storage-path-notice' ); + } + + /** + * Display notice for .htaccess file in storage directory + * + * @return void + */ + public function storage_htaccess_notice() { + Ai1wm_Template::render( 'main/storage-htaccess-notice' ); + } + + /** + * Display notice for web.config file in storage directory + * + * @return void + */ + public function storage_webconfig_notice() { + Ai1wm_Template::render( 'main/storage-webconfig-notice' ); + } + + /** + * Display notice for index.php file in storage directory + * + * @return void + */ + public function storage_index_php_notice() { + Ai1wm_Template::render( 'main/storage-index-php-notice' ); + } + + /** + * Display notice for index.html file in storage directory + * + * @return void + */ + public function storage_index_html_notice() { + Ai1wm_Template::render( 'main/storage-index-html-notice' ); + } + + /** + * Display notice for backups directory + * + * @return void + */ + public function backups_path_notice() { + Ai1wm_Template::render( 'main/backups-path-notice' ); + } + + /** + * Display notice for .htaccess file in backups directory + * + * @return void + */ + public function backups_htaccess_notice() { + Ai1wm_Template::render( 'main/backups-htaccess-notice' ); + } + + /** + * Display notice for web.config file in backups directory + * + * @return void + */ + public function backups_webconfig_notice() { + Ai1wm_Template::render( 'main/backups-webconfig-notice' ); + } + + /** + * Display notice for index.php file in backups directory + * + * @return void + */ + public function backups_index_php_notice() { + Ai1wm_Template::render( 'main/backups-index-php-notice' ); + } + + /** + * Display notice for index.html file in backups directory + * + * @return void + */ + public function backups_index_html_notice() { + Ai1wm_Template::render( 'main/backups-index-html-notice' ); + } + + /** + * Display notice for robots.txt file in backups directory + * + * @return void + */ + public function backups_robots_txt_notice() { + Ai1wm_Template::render( 'main/backups-robots-txt-notice' ); + } + + /** + * Display notice for .htaccess file in WordPress directory + * + * @return void + */ + public function wordpress_htaccess_notice() { + Ai1wm_Template::render( 'main/wordpress-htaccess-notice' ); + } + + /** + * Display notice for missing auto increment + * + * @return void + */ + public function missing_auto_increment() { + Ai1wm_Template::render( 'main/missing-auto-increment' ); + } + + /** + * Display notice for missing role capability + * + * @return void + */ + public function missing_role_capability_notice() { + Ai1wm_Template::render( 'main/missing-role-capability-notice' ); + } + + /** + * Add links to plugin list page + * + * @return array + */ + public function plugin_row_meta( $links, $file ) { + if ( $file === AI1WM_PLUGIN_BASENAME ) { + $links[] = Ai1wm_Template::get_content( 'main/contact-support' ); + $links[] = Ai1wm_Template::get_content( 'main/translate' ); + } + + return $links; + } + + /** + * Register plugin menus + * + * @return void + */ + public function admin_menu() { + add_menu_page( + 'All-in-One WP Migration', + 'All-in-One WP Migration', + 'ai1wm_export_site', + 'ai1wm_export', + 'Ai1wm_Export_Controller::index', + '', + '76.295' + ); + + add_submenu_page( + 'ai1wm_export', + __( 'Export', 'all-in-one-wp-migration' ), + __( 'Export', 'all-in-one-wp-migration' ), + 'ai1wm_export_site', + 'ai1wm_export', + 'Ai1wm_Export_Controller::index' + ); + + add_submenu_page( + 'ai1wm_export', + __( 'Import', 'all-in-one-wp-migration' ), + __( 'Import', 'all-in-one-wp-migration' ), + 'ai1wm_import_site', + 'ai1wm_import', + 'Ai1wm_Import_Controller::index' + ); + + add_submenu_page( + 'ai1wm_export', + __( 'Backups', 'all-in-one-wp-migration' ), + __( 'Backups', 'all-in-one-wp-migration' ) . ' ' . Ai1wm_Template::get_content( 'main/backups', array( 'count' => Ai1wm_Backups::count_files() ) ), + 'ai1wm_import_site', + 'ai1wm_backups', + 'Ai1wm_Backups_Controller::index' + ); + + if ( ! ( defined( 'AI1WMVE_PATH' ) || defined( 'AI1WMKE_PATH' ) || defined( 'AI1WMME_PATH' ) || defined( 'AI1WMUE_PATH' ) ) ) { + add_submenu_page( + 'ai1wm_export', + __( 'Reset Hub', 'all-in-one-wp-migration' ), + __( 'Reset Hub', 'all-in-one-wp-migration' ) . Ai1wm_Template::get_content( 'main/premium-badge' ), + 'ai1wm_export_site', + 'ai1wm_reset', + 'Ai1wm_Reset_Controller::index' + ); + + add_submenu_page( + 'ai1wm_export', + __( 'Schedules', 'all-in-one-wp-migration' ), + __( 'Schedules', 'all-in-one-wp-migration' ) . Ai1wm_Template::get_content( 'main/premium-badge' ), + 'ai1wm_export_site', + 'ai1wm_schedules', + 'Ai1wm_Schedules_Controller::index' + ); + } + } + + /** + * Register ServMask scripts and styles + * + * @return void + */ + public function register_servmask_scripts_and_styles() { + ai1wm_register_style( + 'ai1wm_servmask', + Ai1wm_Template::asset_link( 'css/servmask.min.css' ) + ); + + ai1wm_register_script( + 'ai1wm_util', + Ai1wm_Template::asset_link( 'javascript/util.min.js' ), + array( 'jquery' ), + AI1WM_VERSION, + false + ); + + ai1wm_register_script( + 'ai1wm_servmask', + Ai1wm_Template::asset_link( 'javascript/servmask.min.js' ), + array( 'ai1wm_util' ), + AI1WM_VERSION, + false + ); + + wp_localize_script( + 'ai1wm_servmask', + 'ai1wm_feedback', + array( + 'ajax' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_feedback' ) ) ), + ), + 'secret_key' => get_option( AI1WM_SECRET_KEY ), + ) + ); + + $upload_limit_text = sprintf( + /* translators: 1: Max upload file size */ + __( + 'Your file exceeds the %1$s upload limit set by your host.
%2$s
%3$s', + 'all-in-one-wp-migration' + ), + esc_html( ai1wm_size_format( wp_max_upload_size() ) ), + sprintf( + /* translators: Link to Unlimited Extension */ + __( 'Our Unlimited Extension bypasses this!', 'all-in-one-wp-migration' ), + 'https://servmask.com/products/unlimited-extension?utm_source=file-import&utm_medium=plugin&utm_campaign=ai1wm' + ), + sprintf( + /* translators: Link to how to article */ + __( 'If you prefer a manual fix, follow our step-by-step guide on raising your upload limit.', 'all-in-one-wp-migration' ), + 'https://help.servmask.com/2018/10/27/how-to-increase-maximum-upload-file-size-in-wordpress/' + ) + ); + + wp_localize_script( + 'ai1wm_servmask', + 'ai1wm_locale', + array( + // Feedback + 'thanks_for_submitting_your_feedback' => __( 'Thank you! We have received your request and will be in touch soon.', 'all-in-one-wp-migration' ), + + // Updater + 'check_for_updates' => __( 'Check for updates', 'all-in-one-wp-migration' ), + 'invalid_purchase_id' => __( 'Your purchase ID is invalid. Please contact us.', 'all-in-one-wp-migration' ), + + // Export + 'stop_exporting_your_website' => __( 'Are you sure you want to stop the export?', 'all-in-one-wp-migration' ), + 'preparing_to_export' => __( 'Preparing to export...', 'all-in-one-wp-migration' ), + 'unable_to_export' => __( 'Export failed', 'all-in-one-wp-migration' ), + 'unable_to_start_the_export' => __( 'Could not start the export. Please refresh and try again.', 'all-in-one-wp-migration' ), + 'unable_to_run_the_export' => __( 'Could not run the export. Please refresh and try again.', 'all-in-one-wp-migration' ), + 'unable_to_stop_the_export' => __( 'Could not stop the export. Please refresh and try again.', 'all-in-one-wp-migration' ), + 'please_wait_stopping_the_export' => __( 'Stopping the export, please wait...', 'all-in-one-wp-migration' ), + 'close_export' => __( 'Close', 'all-in-one-wp-migration' ), + 'stop_export' => __( 'Stop export', 'all-in-one-wp-migration' ), + /* translators: 1: Number of backups. */ + 'backups_count_singular' => __( 'You have %d backup', 'all-in-one-wp-migration' ), + /* translators: 1: Number of backups. */ + 'backups_count_plural' => __( 'You have %d backups', 'all-in-one-wp-migration' ), + 'archive_browser_download_error' => __( 'Could not download backup', 'all-in-one-wp-migration' ), + 'view_error_log_button' => __( 'View Error Log', 'all-in-one-wp-migration' ), + + // Import + 'stop_importing_your_website' => __( 'Are you sure you want to stop the import?', 'all-in-one-wp-migration' ), + 'preparing_to_import' => __( 'Preparing to import...', 'all-in-one-wp-migration' ), + 'unable_to_import' => __( 'Import failed', 'all-in-one-wp-migration' ), + 'unable_to_start_the_import' => __( 'Could not start the import. Please refresh and try again.', 'all-in-one-wp-migration' ), + 'unable_to_confirm_the_import' => __( 'Could not confirm the import. Please refresh and try again.', 'all-in-one-wp-migration' ), + 'unable_to_check_decryption_password' => __( 'Could not check the decryption password. Please refresh and try again.', 'all-in-one-wp-migration' ), + 'unable_to_prepare_blogs_on_import' => __( 'Could not prepare blogs for import. Please refresh and try again.', 'all-in-one-wp-migration' ), + 'unable_to_stop_the_import' => __( 'Could not stop the import. Please refresh and try again.', 'all-in-one-wp-migration' ), + 'please_wait_stopping_the_import' => __( 'Stopping the import, please wait...', 'all-in-one-wp-migration' ), + 'close_import' => __( 'Close', 'all-in-one-wp-migration' ), + 'stop_import' => __( 'Stop import', 'all-in-one-wp-migration' ), + 'finish_import' => __( 'Finish', 'all-in-one-wp-migration' ), + 'confirm_import' => __( 'Proceed', 'all-in-one-wp-migration' ), + 'confirm_disk_space' => __( 'I have enough disk space', 'all-in-one-wp-migration' ), + 'continue_import' => __( 'Continue', 'all-in-one-wp-migration' ), + 'please_do_not_close_this_browser' => __( 'Please do not close this browser window or your import will fail', 'all-in-one-wp-migration' ), + 'backup_encrypted' => __( 'The backup is encrypted', 'all-in-one-wp-migration' ), + 'backup_encrypted_message' => __( 'Please enter a password to restore the backup', 'all-in-one-wp-migration' ), + 'unlock' => __( 'Unlock', 'all-in-one-wp-migration' ), + 'enter_password' => __( 'Enter a password', 'all-in-one-wp-migration' ), + 'repeat_password' => __( 'Repeat the password', 'all-in-one-wp-migration' ), + 'passwords_do_not_match' => __( 'The passwords do not match', 'all-in-one-wp-migration' ), + 'upload_failed_connection_lost' => __( 'Upload failed - connection lost or timeout. Try uploading the file again.', 'all-in-one-wp-migration' ), + 'upload_failed' => __( 'Upload failed', 'all-in-one-wp-migration' ), + /* translators: Disk space to free up. */ + 'out_of_disk_space' => __( 'Not enough disk space.
Free up %s before restoring.', 'all-in-one-wp-migration' ), + 'file_too_large' => sprintf( + /* translators: 1: Link to Unlimited Extension, 2: Link to how to article */ + __( + 'Your file exceeds the upload limit set by your host web server.
%1$s
%2$s', + 'all-in-one-wp-migration' + ), + sprintf( + /* translators: Link to Unlimited Extension */ + __( 'Our Unlimited Extension bypasses this!', 'all-in-one-wp-migration' ), + 'https://servmask.com/products/unlimited-extension?utm_source=file-upload-webserver&utm_medium=plugin&utm_campaign=ai1wm' + ), + sprintf( + /* translators: Link to how to article */ + __( 'If you prefer a manual fix, follow our step-by-step guide on raising your upload limit.', 'all-in-one-wp-migration' ), + 'https://help.servmask.com/2018/10/27/how-to-increase-maximum-upload-file-size-in-wordpress/' + ) + ), + 'import_from_file' => $upload_limit_text, + 'invalid_archive_extension' => __( + 'Invalid file type. Please ensure that your file is a .wpress file created with All-in-One WP Migration. + Technical details', + 'all-in-one-wp-migration' + ), + 'upgrade' => $upload_limit_text, + + // Backups + 'want_to_delete_this_file' => __( 'Are you sure you want to delete this backup?', 'all-in-one-wp-migration' ), + 'want_to_delete_selected_singular' => __( 'Are you sure you want to delete %d selected backup?', 'all-in-one-wp-migration' ), + 'want_to_delete_selected_plural' => __( 'Are you sure you want to delete %d selected backups?', 'all-in-one-wp-migration' ), + 'delete_selected' => __( 'Delete (%d selected)', 'all-in-one-wp-migration' ), + 'session_expired' => __( 'Your session has expired. The page will reload so you can log in again.', 'all-in-one-wp-migration' ), + 'unlimited' => __( 'Backup restore requires the Unlimited Extension. Get it here', 'all-in-one-wp-migration' ), + 'restore_from_file' => sprintf( + /* translators: 1: Link to Unlimited Extension */ + __( '"Restore" functionality is available in our Unlimited Extension.
If you would rather go the manual route, you can still restore by downloading your backup and using "Import from file".', 'all-in-one-wp-migration' ), + 'https://servmask.com/products/unlimited-extension?utm_source=restore-from-file&utm_medium=plugin&utm_campaign=ai1wm' + ), + 'archive_browser_error' => __( 'Error', 'all-in-one-wp-migration' ), + 'archive_browser_list_error' => __( 'Could not read backup content', 'all-in-one-wp-migration' ), + 'archive_browser_title' => __( 'List the content of the backup', 'all-in-one-wp-migration' ), + 'progress_bar_title' => __( 'Reading...', 'all-in-one-wp-migration' ), + 'close_encryption' => __( 'Close', 'all-in-one-wp-migration' ), + 'check_encryption' => __( 'Submit', 'all-in-one-wp-migration' ), + ) + ); + } + + /** + * Register settings scripts and styles + * + * @return void + */ + public function register_settings_scripts_and_styles() { + ai1wm_register_script( + 'ai1wm_settings', + Ai1wm_Template::asset_link( 'javascript/settings.min.js' ), + array( 'ai1wm_servmask' ), + AI1WM_VERSION, + false + ); + } + + /** + * Register export scripts and styles + * + * @return void + */ + public function register_export_scripts_and_styles() { + ai1wm_register_style( + 'ai1wm_export', + Ai1wm_Template::asset_link( 'css/export.min.css' ) + ); + + ai1wm_register_script( + 'ai1wm_export', + Ai1wm_Template::asset_link( 'javascript/export.min.js' ), + array( 'ai1wm_servmask' ), + AI1WM_VERSION, + false + ); + + wp_localize_script( + 'ai1wm_export', + 'ai1wm_export', + array( + 'ajax' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_export' ) ) ), + ), + 'download_backup' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_backup_download_backup' ) ) ), + ), + 'status' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1, 'secret_key' => get_option( AI1WM_SECRET_KEY ) ), admin_url( 'admin-ajax.php?action=ai1wm_status' ) ) ), + ), + 'storage' => array( + 'url' => AI1WM_STORAGE_URL, + ), + 'error_log' => array( + 'pattern' => AI1WM_ERROR_NAME, + ), + 'secret_key' => get_option( AI1WM_SECRET_KEY ), + ) + ); + } + + /** + * Register import scripts and styles + * + * @return void + */ + public function register_import_scripts_and_styles() { + ai1wm_register_style( + 'ai1wm_import', + Ai1wm_Template::asset_link( 'css/import.min.css' ) + ); + + ai1wm_register_script( + 'ai1wm_import', + Ai1wm_Template::asset_link( 'javascript/import.min.js' ), + array( 'ai1wm_servmask' ), + AI1WM_VERSION, + false + ); + + wp_localize_script( + 'ai1wm_import', + 'ai1wm_uploader', + array( + 'max_file_size' => wp_max_upload_size(), + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_import' ) ) ), + 'params' => array( + 'priority' => 5, + 'secret_key' => get_option( AI1WM_SECRET_KEY ), + ), + ) + ); + + wp_localize_script( + 'ai1wm_import', + 'ai1wm_import', + array( + 'ajax' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_import' ) ) ), + ), + 'status' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1, 'secret_key' => get_option( AI1WM_SECRET_KEY ) ), admin_url( 'admin-ajax.php?action=ai1wm_status' ) ) ), + ), + 'storage' => array( + 'url' => AI1WM_STORAGE_URL, + ), + 'error_log' => array( + 'pattern' => AI1WM_ERROR_NAME, + ), + 'secret_key' => get_option( AI1WM_SECRET_KEY ), + ) + ); + + wp_localize_script( + 'ai1wm_import', + 'ai1wm_compatibility', + array( + 'messages' => Ai1wm_Compatibility::get( array() ), + ) + ); + + wp_localize_script( + 'ai1wm_import', + 'ai1wm_disk_space', + array( + 'free' => ai1wm_disk_free_space( AI1WM_STORAGE_PATH ), + 'factor' => AI1WM_DISK_SPACE_FACTOR, + 'extra' => AI1WM_DISK_SPACE_EXTRA, + ) + ); + } + + /** + * Register backups scripts and styles + * + * @return void + */ + public function register_backups_scripts_and_styles() { + ai1wm_register_style( + 'ai1wm_backups', + Ai1wm_Template::asset_link( 'css/backups.min.css' ) + ); + + ai1wm_register_script( + 'ai1wm_backups', + Ai1wm_Template::asset_link( 'javascript/backups.min.js' ), + array( 'ai1wm_export', 'ai1wm_import' ), + AI1WM_VERSION, + false + ); + + wp_localize_script( + 'ai1wm_backups', + 'ai1wm_backups', + array( + 'clean' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_backup_clean' ) ) ), + ), + 'delete' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_backup_delete' ) ) ), + ), + 'list' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_backup_list' ) ) ), + ), + 'add_label' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_backup_add_label' ) ) ), + ), + 'get_config' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_backup_get_config' ) ) ), + ), + 'check_encryption' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_backup_check_encryption' ) ) ), + ), + 'list_content' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_backup_list_content' ) ) ), + ), + 'download_file' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_backup_download_file' ) ) ), + ), + 'download_backup' => array( + 'url' => wp_make_link_relative( add_query_arg( array( 'ai1wm_import' => 1 ), admin_url( 'admin-ajax.php?action=ai1wm_backup_download_backup' ) ) ), + ), + 'secret_key' => get_option( AI1WM_SECRET_KEY ), + ) + ); + } + + /** + * Register schedules scripts and styles + * + * @return void + */ + public function register_schedules_scripts_and_styles() { + ai1wm_register_style( + 'ai1wm_schedules', + Ai1wm_Template::asset_link( 'css/schedules.min.css' ) + ); + + ai1wm_register_script( + 'ai1wm_schedules', + Ai1wm_Template::asset_link( 'javascript/schedules.min.js' ), + array( 'ai1wm_servmask' ), + AI1WM_VERSION, + false + ); + } + + /** + * Register reset scripts and styles + * + * @return void + */ + public function register_reset_scripts_and_styles() { + ai1wm_register_style( + 'ai1wm_reset', + Ai1wm_Template::asset_link( 'css/reset.min.css' ) + ); + + ai1wm_register_script( + 'ai1wm_reset', + Ai1wm_Template::asset_link( 'javascript/reset.min.js' ), + array( 'ai1wm_servmask' ), + AI1WM_VERSION, + false + ); + } + + /** + * Register updater scripts and styles + * + * @return void + */ + public function register_updater_scripts_and_styles() { + ai1wm_register_style( + 'ai1wm_updater', + Ai1wm_Template::asset_link( 'css/updater.min.css' ) + ); + } + + /** + * Enqueue scripts and styles for Export Controller + * + * @param string $hook Hook suffix + * @return void + */ + public function enqueue_export_scripts_and_styles( $hook ) { + if ( stripos( 'toplevel_page_ai1wm_export', $hook ) === false ) { + return; + } + + // We don't want heartbeat to occur when exporting + wp_deregister_script( 'heartbeat' ); + + // We don't want auth check for monitoring whether the user is still logged in + remove_action( 'admin_enqueue_scripts', 'wp_auth_check_load' ); + + // Load scripts and styles + ai1wm_enqueue_style( 'ai1wm_export' ); + ai1wm_enqueue_script( 'ai1wm_export' ); + } + + /** + * Enqueue scripts and styles for Import Controller + * + * @param string $hook Hook suffix + * @return void + */ + public function enqueue_import_scripts_and_styles( $hook ) { + if ( stripos( 'all-in-one-wp-migration_page_ai1wm_import', $hook ) === false ) { + return; + } + + // We don't want heartbeat to occur when importing + wp_deregister_script( 'heartbeat' ); + + // We don't want auth check for monitoring whether the user is still logged in + remove_action( 'admin_enqueue_scripts', 'wp_auth_check_load' ); + + // Load scripts and styles + ai1wm_enqueue_style( 'ai1wm_import' ); + ai1wm_enqueue_script( 'ai1wm_import' ); + } + + /** + * Enqueue scripts and styles for Backups Controller + * + * @param string $hook Hook suffix + * @return void + */ + public function enqueue_backups_scripts_and_styles( $hook ) { + if ( stripos( 'all-in-one-wp-migration_page_ai1wm_backups', $hook ) === false ) { + return; + } + + // We don't want heartbeat to occur when restoring + wp_deregister_script( 'heartbeat' ); + + // We don't want auth check for monitoring whether the user is still logged in + remove_action( 'admin_enqueue_scripts', 'wp_auth_check_load' ); + + // Load scripts and styles + ai1wm_enqueue_style( 'ai1wm_backups' ); + ai1wm_enqueue_script( 'ai1wm_backups' ); + } + + /** + * Enqueue scripts and styles for Schedules page + * + * @param string $hook Hook suffix + * @return void + */ + public function enqueue_schedules_scripts_and_styles( $hook ) { + if ( stripos( 'all-in-one-wp-migration_page_ai1wm_schedules', $hook ) === false ) { + return; + } + + // We don't want heartbeat to occur when restoring + wp_deregister_script( 'heartbeat' ); + + // We don't want auth check for monitoring whether the user is still logged in + remove_action( 'admin_enqueue_scripts', 'wp_auth_check_load' ); + + // Load scripts and styles + ai1wm_enqueue_style( 'ai1wm_schedules' ); + ai1wm_enqueue_script( 'ai1wm_schedules' ); + } + + /** + * Enqueue scripts and styles for Reset page + * + * @param string $hook Hook suffix + * @return void + */ + public function enqueue_reset_scripts_and_styles( $hook ) { + if ( stripos( 'all-in-one-wp-migration_page_ai1wm_reset', $hook ) === false ) { + return; + } + + // We don't want heartbeat to occur when restoring + wp_deregister_script( 'heartbeat' ); + + // We don't want auth check for monitoring whether the user is still logged in + remove_action( 'admin_enqueue_scripts', 'wp_auth_check_load' ); + + // Load scripts and styles + ai1wm_enqueue_style( 'ai1wm_reset' ); + ai1wm_enqueue_script( 'ai1wm_reset' ); + } + + /** + * Enqueue scripts and styles for Updater Controller + * + * @param string $hook Hook suffix + * @return void + */ + public function enqueue_updater_scripts_and_styles( $hook ) { + if ( 'plugins.php' !== strtolower( $hook ) ) { + return; + } + + // Load styles + ai1wm_enqueue_style( 'ai1wm_updater' ); + } + + /** + * Outputs menu icon between head tags + * + * @return void + */ + public function admin_head() { + global $wp_version; + + // Admin header + Ai1wm_Template::render( 'main/admin-head', array( 'version' => $wp_version ) ); + } + + /** + * Register initial parameters + * + * @return void + */ + public function init() { + // Capture the HTTP Basic credentials so a loopback export/import/reset can replay them past + // a server-level auth wall. Restrict the capture to a user who can run a migration: init() + // runs on admin_init, which also fires on admin-ajax.php and admin-post.php requests that + // have not authenticated. + if ( current_user_can( 'ai1wm_export_site' ) || current_user_can( 'ai1wm_import_site' ) ) { + $user = $password = false; + + // Set username + if ( isset( $_SERVER['PHP_AUTH_USER'] ) ) { + $user = $_SERVER['PHP_AUTH_USER']; + } elseif ( isset( $_SERVER['REMOTE_USER'] ) ) { + $user = $_SERVER['REMOTE_USER']; + } + + // Set password + if ( isset( $_SERVER['PHP_AUTH_PW'] ) ) { + $password = $_SERVER['PHP_AUTH_PW']; + } + + if ( $user !== false && $password !== false ) { + update_option( AI1WM_AUTH_HEADER, base64_encode( sprintf( '%s:%s', $user, $password ) ) ); + } + } + + // Check for updates + if ( isset( $_GET['ai1wm_check_for_updates'] ) ) { + if ( check_admin_referer( 'ai1wm_check_for_updates', 'ai1wm_nonce' ) ) { + if ( current_user_can( 'update_plugins' ) ) { + Ai1wm_Updater::check_for_updates(); + } + } + } + } + + /** + * Register initial router + * + * @return void + */ + public function router() { + // Public actions + add_action( 'wp_ajax_nopriv_ai1wm_export', 'Ai1wm_Export_Controller::export' ); + add_action( 'wp_ajax_nopriv_ai1wm_import', 'Ai1wm_Import_Controller::import' ); + add_action( 'wp_ajax_nopriv_ai1wm_status', 'Ai1wm_Status_Controller::status' ); + + // Private actions + add_action( 'wp_ajax_ai1wm_export', 'Ai1wm_Export_Controller::export' ); + add_action( 'wp_ajax_ai1wm_import', 'Ai1wm_Import_Controller::import' ); + add_action( 'wp_ajax_ai1wm_status', 'Ai1wm_Status_Controller::status' ); + add_action( 'wp_ajax_ai1wm_feedback', 'Ai1wm_Feedback_Controller::feedback' ); + + if ( current_user_can( 'ai1wm_import_site' ) ) { + add_action( 'wp_ajax_ai1wm_backup_clean', 'Ai1wm_Backups_Controller::clean' ); + add_action( 'wp_ajax_ai1wm_backup_delete', 'Ai1wm_Backups_Controller::delete' ); + add_action( 'wp_ajax_ai1wm_backup_list', 'Ai1wm_Backups_Controller::backup_list' ); + add_action( 'wp_ajax_ai1wm_backup_get_config', 'Ai1wm_Backups_Controller::backup_get_config' ); + add_action( 'wp_ajax_ai1wm_backup_check_encryption', 'Ai1wm_Backups_Controller::backup_check_encryption' ); + add_action( 'wp_ajax_ai1wm_backup_list_content', 'Ai1wm_Backups_Controller::backup_list_content' ); + add_action( 'wp_ajax_ai1wm_backup_add_label', 'Ai1wm_Backups_Controller::add_label' ); + add_action( 'wp_ajax_ai1wm_backup_download_file', 'Ai1wm_Backups_Controller::download_file' ); + } + + if ( current_user_can( 'ai1wm_export_site' ) || current_user_can( 'ai1wm_import_site' ) ) { + add_action( 'wp_ajax_ai1wm_backup_download_backup', 'Ai1wm_Backups_Controller::download_backup' ); + } + } + + /** + * Enable WP importing + * + * @return void + */ + public function wp_importing() { + if ( isset( $_GET['ai1wm_import'] ) ) { + if ( ! defined( 'WP_IMPORTING' ) ) { + define( 'WP_IMPORTING', true ); + } + } + } + + /** + * Add custom cron schedules + * + * @param array $schedules List of schedules + * @return array + */ + public function add_cron_schedules( $schedules ) { + $schedules['weekly'] = array( + 'display' => __( 'Weekly', 'all-in-one-wp-migration' ), + 'interval' => 60 * 60 * 24 * 7, + ); + $schedules['monthly'] = array( + 'display' => __( 'Monthly', 'all-in-one-wp-migration' ), + 'interval' => ( strtotime( '+1 month' ) - time() ), + ); + + return $schedules; + } + + /** + * Add map meta capabilities + * + * @param array $caps Primitive capabilities required of the user + * @param string $cap Capability being checked + * @param int $user_id The user ID + * @param array $args Adds context to the capability check, typically starting with an object ID + * @return array + */ + public function add_map_meta_cap( $caps, $cap, $user_id, $args ) { + if ( $cap === 'ai1wm_export_site' ) { + if ( is_multisite() ) { + return array( 'export', 'manage_network' ); + } + + return array( 'export', 'manage_options' ); + } + + if ( $cap === 'ai1wm_import_site' ) { + if ( is_multisite() ) { + return array( 'import', 'manage_network' ); + } + + return array( 'import', 'manage_options' ); + } + + return $caps; + } + + /** + * Handles ai1wm_status_export_error hook + * + * @param $params + * @param $exception + * + * @return void + */ + public function handle_error_cleanup( $params, $exception = null ) { + Ai1wm_Directory::delete( ai1wm_storage_path( $params ) ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-reset-controller.php b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-reset-controller.php new file mode 100644 index 0000000..a16cd59 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-reset-controller.php @@ -0,0 +1,36 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Reset_Controller { + public static function index() { + Ai1wm_Template::render( 'reset/index' ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-rest-controller.php b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-rest-controller.php new file mode 100644 index 0000000..ddacc9e --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-rest-controller.php @@ -0,0 +1,1236 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Rest_Controller { + + const REST_NAMESPACE = 'ai1wm/v1'; + + /** + * Register all REST API routes + * + * @return void + */ + public static function register_routes() { + // Regex bounds: + // job_id — ai1wm_storage_folder() emits uniqid() = 13 lowercase hex chars; + // allow {13,40} as a small safety margin for future changes. + // name — bound the overall match to 255 chars (common filesystem limit) + // including the .wpress suffix. + $job_id_path = '(?P[a-f0-9]{13,40})'; + $name_path = '(?P[a-zA-Z0-9._-]{1,247}\.wpress)'; + + $secret_key_arg = array( + 'secret_key' => array( + 'type' => 'string', + 'required' => false, + 'description' => 'Shared-secret auth fallback for status/log polling after an import has invalidated the Application Password.', + ), + ); + + $password_arg = array( + 'password' => array( + 'type' => 'string', + 'required' => false, + 'description' => 'Archive password. For exports: enables encryption. For imports: used to decrypt an encrypted archive.', + ), + ); + + // Discovery + register_rest_route( + self::REST_NAMESPACE, + '/capabilities', + array( + 'methods' => 'GET', + 'callback' => array( __CLASS__, 'capabilities' ), + 'permission_callback' => array( __CLASS__, 'can_export' ), + ) + ); + + // Export operations + register_rest_route( + self::REST_NAMESPACE, + '/exports', + array( + 'methods' => 'POST', + 'callback' => array( __CLASS__, 'create_export' ), + 'permission_callback' => array( __CLASS__, 'can_export' ), + 'args' => array_merge( + $password_arg, + array( + 'options' => array( 'type' => 'object', 'required' => false ), + 'find_replace' => array( + 'type' => 'array', + 'required' => false, + 'items' => array( + 'type' => 'object', + 'required' => array( 'find', 'replace' ), + 'properties' => array( + 'find' => array( 'type' => 'string' ), + 'replace' => array( 'type' => 'string' ), + ), + 'additionalProperties' => false, + ), + ), + ) + ), + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/exports/' . $job_id_path, + array( + 'methods' => 'GET', + 'callback' => array( __CLASS__, 'get_export_status' ), + 'permission_callback' => array( __CLASS__, 'can_poll_export' ), + 'args' => $secret_key_arg, + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/exports/' . $job_id_path . '/log', + array( + 'methods' => 'GET', + 'callback' => array( __CLASS__, 'get_export_log' ), + 'permission_callback' => array( __CLASS__, 'can_poll_export' ), + 'args' => $secret_key_arg, + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/exports/' . $job_id_path, + array( + 'methods' => 'DELETE', + 'callback' => array( __CLASS__, 'cancel_job' ), + 'permission_callback' => array( __CLASS__, 'can_export' ), + ) + ); + + // Import operations + register_rest_route( + self::REST_NAMESPACE, + '/imports', + array( + 'methods' => 'POST', + 'callback' => array( __CLASS__, 'create_import' ), + 'permission_callback' => array( __CLASS__, 'can_import' ), + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/imports/' . $job_id_path . '/file', + array( + 'methods' => 'POST', + 'callback' => array( __CLASS__, 'upload_import_file' ), + 'permission_callback' => array( __CLASS__, 'can_upload_import_file' ), + 'args' => array( + 'auto_confirm' => array( 'type' => 'boolean', 'required' => false ), + ), + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/imports/' . $job_id_path, + array( + 'methods' => 'GET', + 'callback' => array( __CLASS__, 'get_import_status' ), + 'permission_callback' => array( __CLASS__, 'can_poll_import' ), + 'args' => $secret_key_arg, + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/imports/' . $job_id_path . '/confirm', + array( + 'methods' => 'POST', + 'callback' => array( __CLASS__, 'confirm_import' ), + 'permission_callback' => array( __CLASS__, 'can_import' ), + 'args' => array_merge( + $password_arg, + array( + 'proceed' => array( 'type' => 'boolean', 'required' => true ), + ) + ), + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/imports/' . $job_id_path . '/log', + array( + 'methods' => 'GET', + 'callback' => array( __CLASS__, 'get_import_log' ), + 'permission_callback' => array( __CLASS__, 'can_poll_import' ), + 'args' => $secret_key_arg, + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/imports/' . $job_id_path, + array( + 'methods' => 'DELETE', + 'callback' => array( __CLASS__, 'cancel_job' ), + 'permission_callback' => array( __CLASS__, 'can_import' ), + ) + ); + + // Backup management + register_rest_route( + self::REST_NAMESPACE, + '/backups', + array( + 'methods' => 'GET', + 'callback' => array( __CLASS__, 'list_backups' ), + 'permission_callback' => array( __CLASS__, 'can_export' ), + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/backups/' . $name_path, + array( + 'methods' => 'GET', + 'callback' => array( __CLASS__, 'get_backup' ), + 'permission_callback' => array( __CLASS__, 'can_export' ), + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/backups/' . $name_path, + array( + 'methods' => 'PATCH', + 'callback' => array( __CLASS__, 'update_backup_label' ), + 'permission_callback' => array( __CLASS__, 'can_import' ), + 'args' => array( + 'label' => array( + 'type' => 'string', + 'required' => false, + 'sanitize_callback' => 'sanitize_text_field', + 'validate_callback' => array( __CLASS__, 'validate_label_length' ), + ), + ), + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/backups/' . $name_path, + array( + 'methods' => 'DELETE', + 'callback' => array( __CLASS__, 'delete_backup' ), + 'permission_callback' => array( __CLASS__, 'can_import' ), + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/backups/' . $name_path . '/download', + array( + 'methods' => 'GET', + 'callback' => array( __CLASS__, 'download_backup' ), + 'permission_callback' => array( __CLASS__, 'can_export' ), + ) + ); + + register_rest_route( + self::REST_NAMESPACE, + '/backups/' . $name_path . '/restore', + array( + 'methods' => 'POST', + 'callback' => array( __CLASS__, 'restore_backup' ), + 'permission_callback' => array( __CLASS__, 'can_import' ), + ) + ); + } + + // ── Permission callbacks ──────────────────────────────────────────── + + /** + * @return bool + */ + protected static function can_run_on_network() { + return ! is_multisite() || is_super_admin(); + } + + /** + * @return bool + */ + public static function can_export() { + return self::can_run_on_network() && current_user_can( 'ai1wm_export_site' ); + } + + /** + * @return bool + */ + public static function can_import() { + return self::can_run_on_network() && current_user_can( 'ai1wm_import_site' ); + } + + /** + * Poll/log endpoints: accept either the normal user capability OR a valid + * secret_key. Mirrors the wp_ajax_nopriv_ai1wm_status pattern so clients + * can keep polling after the import replaces the users table and the + * original Application Password stops authenticating. + * + * @param WP_REST_Request> $request + * @return bool + */ + public static function can_poll_export( $request ) { + return self::can_export() || self::has_valid_secret_key( $request ); + } + + /** + * @param WP_REST_Request> $request + * @return bool + */ + public static function can_poll_import( $request ) { + return self::can_import() || self::has_valid_secret_key( $request ); + } + + /** + * Upload endpoint gate: require import capability AND that the job_id was + * issued by create_import for the current user (prevents cross-user job + * clobber). Returns a 404 WP_Error on unknown/foreign job ids rather than + * 403 — refusing to confirm whether another user's job exists. + * + * @param WP_REST_Request> $request + * @return bool|WP_Error + */ + public static function can_upload_import_file( $request ) { + if ( ! self::can_import() ) { + return false; + } + + $job_id = $request->get_param( 'job_id' ); + $issued_to = get_transient( 'ai1wm_rest_import_' . $job_id ); + if ( $issued_to === false || (int) $issued_to !== get_current_user_id() ) { + return new WP_Error( 'not_found', __( 'Import job not found.', 'all-in-one-wp-migration' ), array( 'status' => 404 ) ); + } + + return true; + } + + /** + * Cap backup label length at 255 chars to keep the wp_options row bounded. + * + * @param mixed $label + * @return bool|WP_Error + */ + public static function validate_label_length( $label ) { + if ( is_string( $label ) && strlen( $label ) <= 255 ) { + return true; + } + + return new WP_Error( 'label_too_long', __( 'Label must be 255 characters or fewer.', 'all-in-one-wp-migration' ), array( 'status' => 400 ) ); + } + + /** + * @param WP_REST_Request> $request + * @return bool + */ + private static function has_valid_secret_key( $request ) { + $provided = $request->get_param( 'secret_key' ); + if ( empty( $provided ) || ! is_string( $provided ) ) { + return false; + } + + try { + ai1wm_verify_secret_key( $provided ); + return true; + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + return false; + } + } + + /** + * Clear WordPress's authentication error for read-only poll/log routes that + * carry a valid secret_key. Once an import replaces wp_users/wp_usermeta the + * client's Application Password (or login cookie) stops authenticating, and + * core rejects the request at the rest_authentication_errors layer before the + * route's permission_callback runs. Returning null lets the request reach + * can_poll_*, which re-checks the secret_key. Registered at priority 1000 so + * it runs after core's application-password (90) and cookie (100) handlers. + * + * @param WP_Error|null|true $result Current authentication result + * @return WP_Error|null|true + */ + public static function allow_secret_key_auth( $result ) { + // Only act once WordPress has already rejected authentication. + if ( ! is_wp_error( $result ) ) { + return $result; + } + + // Poll/log endpoints are GET only. + if ( ! isset( $_SERVER['REQUEST_METHOD'] ) || $_SERVER['REQUEST_METHOD'] !== 'GET' ) { + return $result; + } + + // Limit to the import status and log routes. Export never replaces + // wp_users/wp_usermeta, so the client's credentials stay valid and this + // fallback is not needed there. + $route = isset( $GLOBALS['wp']->query_vars['rest_route'] ) ? $GLOBALS['wp']->query_vars['rest_route'] : ''; + if ( ! preg_match( '#^/' . self::REST_NAMESPACE . '/imports/[a-f0-9]{13,40}(/log)?$#', $route ) ) { + return $result; + } + + // Require a valid secret key supplied as a query parameter. + $provided = isset( $_GET['secret_key'] ) ? stripslashes_deep( $_GET['secret_key'] ) : ''; + if ( ! is_string( $provided ) || $provided === '' ) { + return $result; + } + + try { + ai1wm_verify_secret_key( $provided ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + return $result; + } + + return null; + } + + // ── Discovery ─────────────────────────────────────────────────────── + + /** + * GET /capabilities + * + * @param WP_REST_Request> $request + * @return WP_REST_Response + */ + public static function capabilities( $request ) { + $capabilities = array( + 'export' => self::can_export(), + 'import' => self::can_import(), + 'max_upload_size' => wp_max_upload_size(), + 'max_upload_size_human' => size_format( wp_max_upload_size() ), + 'wordpress_version' => get_bloginfo( 'version' ), + 'php_version' => PHP_VERSION, + 'plugin_version' => AI1WM_VERSION, + 'site_url' => site_url(), + 'storage_path_writable' => is_writable( AI1WM_STORAGE_PATH ), + 'available_space' => ai1wm_disk_free_space( AI1WM_STORAGE_PATH ), + 'available_space_human' => size_format( ai1wm_disk_free_space( AI1WM_STORAGE_PATH ) ), + 'encryption_supported' => ai1wm_can_encrypt(), + ); + + return new WP_REST_Response( apply_filters( 'ai1wm_rest_capabilities', $capabilities ), 200 ); + } + + // ── Export operations ─────────────────────────────────────────────── + + /** + * POST /exports + * + * @param WP_REST_Request> $request + * @return WP_REST_Response|WP_Error + */ + public static function create_export( $request ) { + $params = self::build_export_params( $request ); + + try { + $params = Ai1wm_Export_Controller::export( $params ); + } catch ( Exception $e ) { + return new WP_Error( 'export_failed', $e->getMessage(), array( 'status' => 500 ) ); + } + + $response = new WP_REST_Response( + array( + 'job_id' => $params['storage'], + 'status' => 'running', + 'message' => __( 'Preparing export...', 'all-in-one-wp-migration' ), + 'secret_key' => $params['secret_key'], + ), + 202 + ); + $response->header( 'Location', rest_url( self::REST_NAMESPACE . '/exports/' . $params['storage'] ) ); + + return $response; + } + + /** + * GET /exports/{job_id} + * + * @param WP_REST_Request> $request + * @return WP_REST_Response + */ + public static function get_export_status( $request ) { + return self::read_job_status( $request->get_param( 'job_id' ) ); + } + + /** + * GET /exports/{job_id}/log + * + * @param WP_REST_Request> $request + * @return WP_REST_Response + */ + public static function get_export_log( $request ) { + return self::read_job_log( $request->get_param( 'job_id' ) ); + } + + // ── Import operations ─────────────────────────────────────────────── + + /** + * POST /imports + * + * @param WP_REST_Request> $request + * @return WP_REST_Response + */ + public static function create_import( $request ) { + $job_id = ai1wm_storage_folder(); + + // Record that this job id was issued to the current user, so /file uploads + // can't target a job id belonging to another in-flight export/import. + // TTL auto-expires if the client never calls /file. + set_transient( 'ai1wm_rest_import_' . $job_id, get_current_user_id(), HOUR_IN_SECONDS ); + + return new WP_REST_Response( + array( + 'job_id' => $job_id, + 'status' => 'awaiting_upload', + ), + 201 + ); + } + + /** + * POST /imports/{job_id}/file (multipart/form-data with upload_file field) + * + * @param WP_REST_Request> $request + * @return WP_REST_Response|WP_Error + */ + public static function upload_import_file( $request ) { + $job_id = $request->get_param( 'job_id' ); + + // Ownership already validated in can_upload_import_file; consume the + // one-shot transient so the job id cannot be reused. + delete_transient( 'ai1wm_rest_import_' . $job_id ); + + // Prefer the REST abstraction; fall back to $_FILES for WP versions / + // request paths where get_file_params() is unavailable or empty. + $files = $request->get_file_params(); + $upload_file = isset( $files['upload_file'] ) ? $files['upload_file'] : ( isset( $_FILES['upload_file'] ) ? $_FILES['upload_file'] : null ); + + if ( ! is_array( $upload_file ) ) { + return new WP_Error( + 'no_file', + __( 'No file attached. Use the "upload_file" multipart field.', 'all-in-one-wp-migration' ), + array( 'status' => 400 ) + ); + } + + $upload_error = isset( $upload_file['error'] ) ? (int) $upload_file['error'] : UPLOAD_ERR_OK; + switch ( $upload_error ) { + case UPLOAD_ERR_OK: + break; + case UPLOAD_ERR_INI_SIZE: + case UPLOAD_ERR_FORM_SIZE: + return new WP_Error( 'file_too_large', self::upload_limit_message(), array( 'status' => 413 ) ); + case UPLOAD_ERR_NO_FILE: + return new WP_Error( + 'no_file', + __( 'No file was uploaded.', 'all-in-one-wp-migration' ), + array( 'status' => 400 ) + ); + case UPLOAD_ERR_PARTIAL: + return new WP_Error( + 'upload_incomplete', + __( 'The uploaded file was only partially received.', 'all-in-one-wp-migration' ), + array( 'status' => 400 ) + ); + case UPLOAD_ERR_NO_TMP_DIR: + case UPLOAD_ERR_CANT_WRITE: + case UPLOAD_ERR_EXTENSION: + default: + return new WP_Error( + 'upload_failed', + __( 'The server could not accept the uploaded file. Check the server logs.', 'all-in-one-wp-migration' ), + array( 'status' => 500 ) + ); + } + + if ( empty( $upload_file['tmp_name'] ) ) { + return new WP_Error( + 'upload_failed', + __( 'The upload finished without producing a readable file.', 'all-in-one-wp-migration' ), + array( 'status' => 500 ) + ); + } + + $params = array( + 'storage' => $job_id, + 'archive' => sanitize_file_name( $upload_file['name'] ), + ); + + if ( $request->get_param( 'auto_confirm' ) ) { + $params['ai1wm_confirmed'] = 1; + } + + // Start import pipeline at priority 5 (Import_Upload handles validation + copy) + $params['priority'] = 5; + $params['secret_key'] = get_option( AI1WM_SECRET_KEY ); + + try { + $params = Ai1wm_Import_Controller::import( $params ); + } catch ( Ai1wm_Upload_Exception $e ) { + $message = ( $e->getCode() === 413 ) ? self::upload_limit_message() : $e->getMessage(); + + return new WP_Error( 'upload_error', $message, array( 'status' => $e->getCode() ) ); + } catch ( Ai1wm_Not_Decryptable_Exception $e ) { + // Check_Encryption halted the pipeline (encrypted archive, bad password, or no decrypt support). + // Storage preserved; client reads type/status from the status option. + return self::read_job_status( $job_id ); + } catch ( Exception $e ) { + return new WP_Error( 'import_failed', $e->getMessage(), array( 'status' => 500 ) ); + } + + $response = new WP_REST_Response( + array( + 'job_id' => $job_id, + 'status' => 'running', + 'message' => __( 'Importing...', 'all-in-one-wp-migration' ), + 'secret_key' => $params['secret_key'], + ), + 202 + ); + $response->header( 'Location', rest_url( self::REST_NAMESPACE . '/imports/' . $job_id ) ); + + return $response; + } + + /** + * GET /imports/{job_id} + * + * @param WP_REST_Request> $request + * @return WP_REST_Response + */ + public static function get_import_status( $request ) { + return self::read_job_status( $request->get_param( 'job_id' ) ); + } + + /** + * POST /imports/{job_id}/confirm + * + * @param WP_REST_Request> $request + * @return WP_REST_Response|WP_Error + */ + public static function confirm_import( $request ) { + $job_id = $request->get_param( 'job_id' ); + + // Verify job is actually waiting for confirmation + $status = get_option( 'ai1wm_status_' . $job_id, array() ); + $status_type = isset( $status['type'] ) ? $status['type'] : ''; + if ( ! in_array( $status_type, array( 'confirm', 'disk_space_confirm', 'backup_is_encrypted' ), true ) ) { + return new WP_Error( + 'conflict', + __( 'Import is not waiting for confirmation.', 'all-in-one-wp-migration' ), + array( 'status' => 409 ) + ); + } + + if ( ! $request->has_param( 'proceed' ) ) { + return new WP_Error( + 'missing_proceed', + __( 'The proceed parameter is required. Use DELETE /imports/{id} to cancel.', 'all-in-one-wp-migration' ), + array( 'status' => 400 ) + ); + } + + if ( ! $request->get_param( 'proceed' ) ) { + // Explicit proceed=false — cancel the import + self::cleanup_job( $job_id ); + return new WP_REST_Response( + array( + 'job_id' => $job_id, + 'status' => 'canceled', + ), + 200 + ); + } + + $params = array( + 'storage' => $job_id, + // Recover the archive name from status; the confirm halt dropped it from request params + 'archive' => isset( $status['archive'] ) ? $status['archive'] : '', + 'ai1wm_confirmed' => 1, + // Resume priority: encrypted backup resumes decrypt stage, others skip confirm + 'priority' => ( $status_type === 'backup_is_encrypted' ) ? 75 : 150, + 'secret_key' => get_option( AI1WM_SECRET_KEY ), + ); + + $password = $request->get_param( 'password' ); + if ( ! empty( $password ) && is_string( $password ) ) { + $params['decryption_password'] = $password; + } + + try { + Ai1wm_Import_Controller::import( $params ); + } catch ( Ai1wm_Not_Decryptable_Exception $e ) { + // Wrong password (or still-missing one) on resume — status option already reflects it + return self::read_job_status( $job_id ); + } catch ( Exception $e ) { + return new WP_Error( 'import_failed', $e->getMessage(), array( 'status' => 500 ) ); + } + + return new WP_REST_Response( + array( + 'job_id' => $job_id, + 'status' => 'running', + 'message' => __( 'Importing...', 'all-in-one-wp-migration' ), + 'secret_key' => $params['secret_key'], + ), + 200 + ); + } + + /** + * GET /imports/{job_id}/log + * + * @param WP_REST_Request> $request + * @return WP_REST_Response + */ + public static function get_import_log( $request ) { + return self::read_job_log( $request->get_param( 'job_id' ) ); + } + + // ── Shared job operations ─────────────────────────────────────────── + + /** + * DELETE /exports/{job_id} or /imports/{job_id} + * + * @param WP_REST_Request> $request + * @return WP_REST_Response + */ + public static function cancel_job( $request ) { + $job_id = $request->get_param( 'job_id' ); + + // Write cancel marker to status + update_option( + 'ai1wm_status_' . $job_id, + array( + 'type' => 'canceled', + 'title' => __( 'Canceled', 'all-in-one-wp-migration' ), + 'message' => __( 'Operation canceled by REST API.', 'all-in-one-wp-migration' ), + ), + false + ); + + // Clean up storage folder and log file + self::cleanup_job( $job_id ); + + return new WP_REST_Response( + array( + 'job_id' => $job_id, + 'status' => 'canceled', + ), + 200 + ); + } + + // ── Backup management ─────────────────────────────────────────────── + + /** + * GET /backups + * + * @param WP_REST_Request> $request + * @return WP_REST_Response + */ + public static function list_backups( $request ) { + $backups = array(); + $files = Ai1wm_Backups::get_files(); + $labels = Ai1wm_Backups::get_labels(); + $downloadable = Ai1wm_Backups::are_downloadable(); + + foreach ( $files as $file ) { + $backups[] = self::format_backup( $file, $labels, $downloadable ); + } + + return new WP_REST_Response( array( 'backups' => $backups ), 200 ); + } + + /** + * GET /backups/{name} + * + * @param WP_REST_Request> $request + * @return WP_REST_Response|WP_Error + */ + public static function get_backup( $request ) { + $name = $request->get_param( 'name' ); + + $backup_file = self::find_backup( $name ); + if ( $backup_file === false ) { + return new WP_Error( 'not_found', __( 'Backup not found.', 'all-in-one-wp-migration' ), array( 'status' => 404 ) ); + } + + $backup = self::format_backup( $backup_file, Ai1wm_Backups::get_labels(), Ai1wm_Backups::are_downloadable() ); + + // Extract config metadata from archive + try { + $config = self::extract_backup_config( $name ); + if ( $config !== false ) { + $backup['config'] = $config; + } + } catch ( Exception $e ) { + // Config extraction failed, continue without it + } + + return new WP_REST_Response( $backup, 200 ); + } + + /** + * PATCH /backups/{name} + * + * @param WP_REST_Request> $request + * @return WP_REST_Response|WP_Error + */ + public static function update_backup_label( $request ) { + $name = $request->get_param( 'name' ); + + // Verify backup exists + if ( self::find_backup( $name ) === false ) { + return new WP_Error( 'not_found', __( 'Backup not found.', 'all-in-one-wp-migration' ), array( 'status' => 404 ) ); + } + + $label = $request->get_param( 'label' ); + $label = ! empty( $label ) ? sanitize_text_field( $label ) : ''; + + if ( empty( $label ) ) { + Ai1wm_Backups::delete_label( $name ); + } else { + Ai1wm_Backups::set_label( $name, $label ); + } + + return new WP_REST_Response( + array( + 'name' => $name, + 'label' => empty( $label ) ? '' : $label, + ), + 200 + ); + } + + /** + * DELETE /backups/{name} + * + * @param WP_REST_Request> $request + * @return WP_REST_Response|WP_Error + */ + public static function delete_backup( $request ) { + $name = $request->get_param( 'name' ); + + // Verify backup exists + if ( self::find_backup( $name ) === false ) { + return new WP_Error( 'not_found', __( 'Backup not found.', 'all-in-one-wp-migration' ), array( 'status' => 404 ) ); + } + + try { + Ai1wm_Backups::delete_file( $name ); + Ai1wm_Backups::delete_label( $name ); + } catch ( Exception $e ) { + return new WP_Error( 'delete_failed', $e->getMessage(), array( 'status' => 500 ) ); + } + + return new WP_REST_Response( array( 'deleted' => true ), 200 ); + } + + /** + * GET /backups/{name}/download + * + * @param WP_REST_Request> $request + * @return WP_REST_Response|WP_Error + */ + public static function download_backup( $request ) { + $name = $request->get_param( 'name' ); + + $backup_file = self::find_backup( $name ); + if ( $backup_file === false ) { + return new WP_Error( 'not_found', __( 'Backup not found.', 'all-in-one-wp-migration' ), array( 'status' => 404 ) ); + } + + if ( ! Ai1wm_Backups::are_downloadable() ) { + return new WP_Error( + 'not_downloadable', + __( 'Backups are stored outside the web root on this host and cannot be downloaded via URL.', 'all-in-one-wp-migration' ), + array( 'status' => 409 ) + ); + } + + return new WP_REST_Response( + array( + 'name' => $backup_file['filename'], + 'download_url' => ai1wm_backup_url( array( 'archive' => $backup_file['filename'] ) ), + 'size' => $backup_file['size'], + 'size_human' => size_format( $backup_file['size'] ), + ), + 200 + ); + } + + /** + * POST /backups/{name}/restore + * + * @param WP_REST_Request> $request + * @return WP_Error + */ + public static function restore_backup( $request ) { + return new WP_Error( + 'upgrade_required', + sprintf( + /* translators: 1: Link to Unlimited Extension */ + __( + '"Restore" functionality is available in our Unlimited Extension (%s). If you would rather go the manual route, you can still restore by downloading your backup and using the import endpoint.', + 'all-in-one-wp-migration' + ), + 'https://servmask.com/products/unlimited-extension' + ), + array( 'status' => 403 ) + ); + } + + // ── Private helpers ───────────────────────────────────────────────── + + /** + * Build export params from a REST request + * + * @param WP_REST_Request> $request REST request + * @return array Pipeline params + */ + private static function build_export_params( $request ) { + $params = array( + 'secret_key' => get_option( AI1WM_SECRET_KEY ), + 'options' => array(), + ); + + // Set export options (whitelist to prevent param injection) + $options = $request->get_param( 'options' ); + if ( is_array( $options ) ) { + $allowed = apply_filters( + 'ai1wm_rest_export_options_whitelist', + array( + 'no_spam_comments', + 'no_post_revisions', + 'no_media', + 'no_themes', + 'no_inactive_themes', + 'no_muplugins', + 'no_plugins', + 'no_inactive_plugins', + 'no_cache', + 'no_database', + 'no_email_replace', + ) + ); + foreach ( $allowed as $key ) { + if ( isset( $options[ $key ] ) ) { + $params['options'][ $key ] = $options[ $key ]; + } + } + } + + // Set find and replace (pipeline expects columnar shape: old_value[] / new_value[]) + $find_replace = $request->get_param( 'find_replace' ); + if ( is_array( $find_replace ) ) { + $params['options']['replace'] = array( 'old_value' => array(), 'new_value' => array() ); + foreach ( $find_replace as $pair ) { + if ( isset( $pair['find'], $pair['replace'] ) && is_string( $pair['find'] ) && is_string( $pair['replace'] ) ) { + $params['options']['replace']['old_value'][] = $pair['find']; + $params['options']['replace']['new_value'][] = $pair['replace']; + } + } + } + + // Set archive password — pipeline gates encryption on encrypt_backups + encrypt_password + $password = $request->get_param( 'password' ); + if ( ! empty( $password ) && is_string( $password ) ) { + $params['options']['encrypt_backups'] = true; + $params['options']['encrypt_password'] = $password; + } + + // Apply premium plugin filters + $params = apply_filters( 'ai1wm_rest_export_params', $params ); + + return $params; + } + + /** + * Read job-scoped status and augment for REST response + * + * @param string $job_id Job ID (storage folder name) + * @return WP_REST_Response + */ + private static function read_job_status( $job_id ) { + $data = get_option( 'ai1wm_status_' . $job_id, array() ); + + // No status yet (race condition between POST and first loopback write) + if ( empty( $data ) ) { + return new WP_REST_Response( + array( + 'job_id' => $job_id, + 'type' => 'progress', + 'status' => 'running', + 'percent' => 0, + 'message' => __( 'Preparing...', 'all-in-one-wp-migration' ), + ), + 200 + ); + } + + // Augment with job_id + $data['job_id'] = $job_id; + + // Derive simplified status from type + $type = isset( $data['type'] ) ? $data['type'] : ''; + switch ( $type ) { + case 'progress': + case 'info': + $data['status'] = 'running'; + break; + case 'confirm': + case 'disk_space_confirm': + case 'backup_is_encrypted': + $data['status'] = 'confirm'; + break; + case 'done': + case 'download': + $data['status'] = 'complete'; + break; + case 'error': + case 'server_cannot_decrypt': + $data['status'] = 'error'; + break; + case 'canceled': + $data['status'] = 'canceled'; + break; + case 'blogs': + $data['status'] = 'error'; + $data['message'] = __( 'Multisite blog selection is not supported via the REST API. Please use the admin interface.', 'all-in-one-wp-migration' ); + break; + default: + $data['status'] = 'running'; + break; + } + + // Augment confirm type with archive_info from package.json + if ( $type === 'confirm' ) { + $archive_info = self::read_archive_info( $job_id ); + if ( $archive_info !== false ) { + $data['archive_info'] = $archive_info; + } + } + + return new WP_REST_Response( $data, 200 ); + } + + /** + * Read job error log + * + * @param string $job_id Job ID (storage folder name) + * @return WP_REST_Response + */ + private static function read_job_log( $job_id ) { + $log_path = ai1wm_error_path( $job_id ); + + $log = ''; + if ( file_exists( $log_path ) ) { + $log = file_get_contents( $log_path ); + } + + return new WP_REST_Response( + array( + 'job_id' => $job_id, + 'log' => $log, + ), + 200 + ); + } + + /** + * Clean up a job's storage folder and log file + * + * @param string $job_id Job ID (storage folder name) + * @return void + */ + private static function cleanup_job( $job_id ) { + $params = array( 'storage' => $job_id ); + + try { + Ai1wm_Directory::delete( ai1wm_storage_path( $params ) ); + } catch ( Exception $e ) { + // Storage may already be deleted + } + + // Delete log file + $log_path = ai1wm_error_path( $job_id ); + if ( file_exists( $log_path ) ) { + ai1wm_unlink( $log_path ); + } + + delete_transient( 'ai1wm_rest_import_' . $job_id ); + } + + /** + * Format a backup file for REST response + * + * @param array $file Backup file from Ai1wm_Backups::get_files() + * @param array $labels Labels from Ai1wm_Backups::get_labels() + * @param boolean $downloadable Whether direct download URLs are available + * @return array + */ + private static function format_backup( $file, $labels, $downloadable ) { + $backup = array( + 'name' => $file['filename'], + 'size' => $file['size'], + 'size_human' => size_format( $file['size'] ), + 'created_at' => gmdate( 'Y-m-d\TH:i:s\Z', $file['mtime'] ), + 'label' => isset( $labels[ $file['filename'] ] ) ? $labels[ $file['filename'] ] : '', + 'downloadable' => $downloadable, + ); + + if ( $downloadable ) { + $backup['download_url'] = ai1wm_backup_url( array( 'archive' => $file['filename'] ) ); + } + + return $backup; + } + + /** + * Find a backup file by name + * + * @param string $name Backup filename + * @return array|false Backup file info or false + */ + private static function find_backup( $name ) { + $files = Ai1wm_Backups::get_files(); + foreach ( $files as $file ) { + if ( $file['filename'] === $name ) { + return $file; + } + } + + return false; + } + + /** + * Extract config metadata from backup's package.json + * + * @param string $name Backup filename + * @return array|false Config data or false + */ + private static function extract_backup_config( $name ) { + $params = array( 'archive' => $name, 'storage' => ai1wm_storage_folder() ); + $storage = ai1wm_storage_path( $params ); + + try { + $archive = new Ai1wm_Extractor( ai1wm_backup_path( $params ) ); + $archive->extract_by_files_array( $storage, array( AI1WM_PACKAGE_NAME ) ); + $archive->close(); + + $config = self::parse_package( $storage . DIRECTORY_SEPARATOR . AI1WM_PACKAGE_NAME ); + + Ai1wm_Directory::delete( $storage ); + + return $config; + } catch ( Exception $e ) { + try { + Ai1wm_Directory::delete( $storage ); + } catch ( Exception $e2 ) { + // Ignore + } + } + + return false; + } + + /** + * Read archive_info from the job's storage folder (package.json extracted by pipeline) + * + * @param string $job_id Job ID + * @return array|false + */ + private static function read_archive_info( $job_id ) { + $params = array( 'storage' => $job_id ); + + return self::parse_package( ai1wm_storage_path( $params ) . DIRECTORY_SEPARATOR . AI1WM_PACKAGE_NAME ); + } + + /** + * Parse package.json file into config array + * + * @param string $path Path to package.json + * @return array|false + */ + private static function parse_package( $path ) { + if ( ! file_exists( $path ) ) { + return false; + } + + $contents = file_get_contents( $path ); + if ( $contents === false ) { + return false; + } + + $package = json_decode( $contents, true ); + if ( ! is_array( $package ) ) { + return false; + } + + return array( + 'wordpress_version' => isset( $package['WordPress']['Version'] ) ? $package['WordPress']['Version'] : null, + 'php_version' => isset( $package['PHP']['Version'] ) ? $package['PHP']['Version'] : null, + 'plugin_version' => isset( $package['Plugin']['Version'] ) ? $package['Plugin']['Version'] : null, + 'site_url' => isset( $package['SiteURL'] ) ? $package['SiteURL'] : null, + 'encrypted' => ! empty( $package['Encrypted'] ), + ); + } + + /** + * Upload limit exceeded message (matches browser UI copy) + * + * @return string + */ + private static function upload_limit_message() { + return sprintf( + /* translators: 1: Max upload file size, 2: Link to Unlimited Extension, 3: Link to how to article */ + __( + 'Your file exceeds the %1$s upload limit set by your host. Our Unlimited Extension bypasses this! %2$s. If you prefer a manual fix, follow our step-by-step guide on raising your upload limit: %3$s', + 'all-in-one-wp-migration' + ), + ai1wm_size_format( wp_max_upload_size() ), + 'https://servmask.com/products/unlimited-extension', + 'https://help.servmask.com/2018/10/27/how-to-increase-maximum-upload-file-size-in-wordpress/' + ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-schedules-controller.php b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-schedules-controller.php new file mode 100644 index 0000000..e64b595 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-schedules-controller.php @@ -0,0 +1,36 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Schedules_Controller { + public static function index() { + Ai1wm_Template::render( 'schedules/index' ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-status-controller.php b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-status-controller.php new file mode 100644 index 0000000..146dd10 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-status-controller.php @@ -0,0 +1,58 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Status_Controller { + + public static function status( $params = array() ) { + ai1wm_setup_environment(); + + // Set params + if ( empty( $params ) ) { + $params = stripslashes_deep( $_GET ); + } + + // Set secret key + $secret_key = null; + if ( isset( $params['secret_key'] ) ) { + $secret_key = trim( $params['secret_key'] ); + } + + try { + // Ensure that unauthorized people cannot access status action + ai1wm_verify_secret_key( $secret_key ); + } catch ( Ai1wm_Not_Valid_Secret_Key_Exception $e ) { + exit; + } + + ai1wm_json_response( get_option( AI1WM_STATUS, array() ) ); + exit; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-updater-controller.php b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-updater-controller.php new file mode 100644 index 0000000..43fac8a --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/controller/class-ai1wm-updater-controller.php @@ -0,0 +1,79 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Updater_Controller { + + public static function plugins_api( $result, $action = null, $args = null ) { + return Ai1wm_Updater::plugins_api( $result, $action, $args ); + } + + public static function pre_update_plugins( $transient ) { + if ( empty( $transient->checked ) ) { + return $transient; + } + + // Check for updates every 11 hours + if ( ( $last_check_for_updates = get_site_transient( AI1WM_LAST_CHECK_FOR_UPDATES ) ) ) { + if ( ( time() - $last_check_for_updates ) < 11 * HOUR_IN_SECONDS ) { + return $transient; + } + } + + // Set last check for updates + set_site_transient( AI1WM_LAST_CHECK_FOR_UPDATES, time() ); + + // Check for updates + Ai1wm_Updater::check_for_updates(); + + return $transient; + } + + public static function update_plugins( $transient ) { + return Ai1wm_Updater::update_plugins( $transient ); + } + + public static function check_for_updates() { + return Ai1wm_Updater::check_for_updates(); + } + + public static function plugin_row_meta( $plugin_meta, $plugin_file ) { + return Ai1wm_Updater::plugin_row_meta( $plugin_meta, $plugin_file ); + } + + public static function in_plugin_update_message( $plugin_data, $response ) { + $updater = get_option( AI1WM_UPDATER, array() ); + + // Get updater details + if ( isset( $updater[ $plugin_data['slug'] ]['update_message'] ) ) { + Ai1wm_Template::render( 'updater/update', array( 'message' => $updater[ $plugin_data['slug'] ]['update_message'] ) ); + } + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-backups.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-backups.php new file mode 100644 index 0000000..7a536b8 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-backups.php @@ -0,0 +1,202 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Backups { + + /** + * Get all backup files + * + * @return array + */ + public static function get_files() { + $backups = array(); + + try { + + // Iterate over directory + $iterator = new Ai1wm_Recursive_Directory_Iterator( AI1WM_BACKUPS_PATH ); + + // Filter by extensions + $iterator = new Ai1wm_Recursive_Extension_Filter( $iterator, array( 'wpress' ) ); + + // Recursively iterate over directory + $iterator = new Ai1wm_Recursive_Iterator_Iterator( $iterator, RecursiveIteratorIterator::LEAVES_ONLY, RecursiveIteratorIterator::CATCH_GET_CHILD ); + + // Get backup files + foreach ( $iterator as $item ) { + try { + if ( ai1wm_is_filesize_supported( $item->getPathname() ) ) { + $backups[] = array( + 'path' => $iterator->getSubPath(), + 'filename' => $iterator->getSubPathname(), + 'mtime' => $iterator->getMTime(), + 'size' => $iterator->getSize(), + ); + } else { + $backups[] = array( + 'path' => $iterator->getSubPath(), + 'filename' => $iterator->getSubPathname(), + 'mtime' => $iterator->getMTime(), + 'size' => null, + ); + } + } catch ( Exception $e ) { + $backups[] = array( + 'path' => $iterator->getSubPath(), + 'filename' => $iterator->getSubPathname(), + 'mtime' => null, + 'size' => null, + ); + } + } + + // Sort backups modified date + usort( $backups, 'Ai1wm_Backups::compare' ); + + } catch ( Exception $e ) { + } + + return $backups; + } + + /** + * Count all backup files + * + * @return integer + */ + public static function count_files() { + return count( Ai1wm_Backups::get_files() ); + } + + /** + * Delete backup file + * + * @param string $file File name + * @return boolean + */ + public static function delete_file( $file ) { + if ( ai1wm_is_filename_supported( $file ) ) { + if ( $deleted = @unlink( ai1wm_backup_path( array( 'archive' => $file ) ) ) ) { + do_action( 'ai1wm_status_backup_deleted', $file ); + } + + return $deleted; + } + + return false; + } + + /** + * Get all backup labels + * + * @return array + */ + public static function get_labels() { + return get_option( AI1WM_BACKUPS_LABELS, array() ); + } + + /** + * Set backup label + * + * @param string $file File name + * @param string $label File label + * @return boolean + */ + public static function set_label( $file, $label ) { + if ( ( $labels = get_option( AI1WM_BACKUPS_LABELS, array() ) ) !== false ) { + $labels[ $file ] = $label; + } + + return update_option( AI1WM_BACKUPS_LABELS, $labels ); + } + + /** + * Delete backup label + * + * @param string $file File name + * @return boolean + */ + public static function delete_label( $file ) { + return Ai1wm_Backups::delete_labels( array( $file ) ); + } + + /** + * Delete backup labels of multiple files at once + * + * @param string[] $files File names + * @return boolean + */ + public static function delete_labels( $files ) { + if ( ( $labels = get_option( AI1WM_BACKUPS_LABELS, array() ) ) !== false ) { + foreach ( $files as $file ) { + unset( $labels[ $file ] ); + } + } + + return update_option( AI1WM_BACKUPS_LABELS, $labels ); + } + + /** + * Compare backup files by modified time + * + * @param array $a File item A + * @param array $b File item B + * @return integer + */ + public static function compare( $a, $b ) { + if ( $a['mtime'] === $b['mtime'] ) { + return 0; + } + + return ( $a['mtime'] > $b['mtime'] ) ? - 1 : 1; + } + + /** + * Check if backups are downloadable + */ + public static function are_downloadable() { + static $downloadable = null; + if ( is_null( $downloadable ) ) { + $downloadable = Ai1wm_Backups::are_in_wp_content_folder() || strpos( AI1WM_BACKUPS_PATH, untrailingslashit( ABSPATH ) ) === 0; + } + + return $downloadable; + } + + public static function are_in_wp_content_folder() { + static $in_wp_content = null; + if ( is_null( $in_wp_content ) ) { + $in_wp_content = strpos( AI1WM_BACKUPS_PATH, untrailingslashit( WP_CONTENT_DIR ) ) === 0; + } + + return $in_wp_content; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-compatibility.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-compatibility.php new file mode 100644 index 0000000..419b447 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-compatibility.php @@ -0,0 +1,73 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Compatibility { + + public static function get( $params ) { + $extensions = Ai1wm_Extensions::get(); + + foreach ( $extensions as $extension_name => $extension_data ) { + if ( ! isset( $params[ $extension_data['short'] ] ) ) { + unset( $extensions[ $extension_name ] ); + } + } + + // If no extension is used, update everything that is available + if ( empty( $extensions ) ) { + $extensions = Ai1wm_Extensions::get(); + } + + $messages = array(); + foreach ( $extensions as $extension_name => $extension_data ) { + if ( ! Ai1wm_Compatibility::check( $extension_data ) ) { + if ( defined( 'WP_CLI' ) ) { + /* translators: Extension name. */ + $messages[] = sprintf( __( '%s is out of date. Please update this extension before using it.', 'all-in-one-wp-migration' ), $extension_data['title'] ); + } else { + /* translators: 1: Extension name, 2: Plugins update page. */ + $messages[] = sprintf( __( '%1$s is out of date. You must update this extension before using it.
', 'all-in-one-wp-migration' ), $extension_data['title'], network_admin_url( 'plugins.php' ) ); + } + } + } + + return $messages; + } + + public static function check( $extension ) { + if ( $extension['version'] !== 'develop' ) { + if ( version_compare( $extension['version'], $extension['requires'], '<' ) ) { + return false; + } + } + + return true; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-deprecated.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-deprecated.php new file mode 100644 index 0000000..4473b03 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-deprecated.php @@ -0,0 +1,34 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Abstract {} +class Ai1wm_Import_Abstract {} +class Ai1wm_Config {} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-extensions.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-extensions.php new file mode 100644 index 0000000..fdac0fd --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-extensions.php @@ -0,0 +1,352 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Extensions { + + /** + * Get active extensions + * + * @return array + */ + public static function get() { + $extensions = array(); + + // Add Microsoft Azure Extension + if ( defined( 'AI1WMZE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMZE_PLUGIN_NAME ] = array( + 'key' => AI1WMZE_PURCHASE_ID, + 'title' => AI1WMZE_PLUGIN_TITLE, + 'about' => AI1WMZE_PLUGIN_ABOUT, + 'check' => AI1WMZE_PLUGIN_CHECK, + 'basename' => AI1WMZE_PLUGIN_BASENAME, + 'version' => AI1WMZE_VERSION, + 'requires' => '1.53', + 'short' => AI1WMZE_PLUGIN_SHORT, + ); + } + + // Add Backblaze B2 Extension + if ( defined( 'AI1WMAE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMAE_PLUGIN_NAME ] = array( + 'key' => AI1WMAE_PURCHASE_ID, + 'title' => AI1WMAE_PLUGIN_TITLE, + 'about' => AI1WMAE_PLUGIN_ABOUT, + 'check' => AI1WMAE_PLUGIN_CHECK, + 'basename' => AI1WMAE_PLUGIN_BASENAME, + 'version' => AI1WMAE_VERSION, + 'requires' => '1.59', + 'short' => AI1WMAE_PLUGIN_SHORT, + ); + } + + // Add Backup Plugin + if ( defined( 'AI1WMVE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMVE_PLUGIN_NAME ] = array( + 'key' => AI1WMVE_PURCHASE_ID, + 'title' => AI1WMVE_PLUGIN_TITLE, + 'about' => AI1WMVE_PLUGIN_ABOUT, + 'check' => AI1WMVE_PLUGIN_CHECK, + 'basename' => AI1WMVE_PLUGIN_BASENAME, + 'version' => AI1WMVE_VERSION, + 'requires' => '1.0', + 'short' => AI1WMVE_PLUGIN_SHORT, + ); + } + + // Add Box Extension + if ( defined( 'AI1WMBE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMBE_PLUGIN_NAME ] = array( + 'key' => AI1WMBE_PURCHASE_ID, + 'title' => AI1WMBE_PLUGIN_TITLE, + 'about' => AI1WMBE_PLUGIN_ABOUT, + 'check' => AI1WMBE_PLUGIN_CHECK, + 'basename' => AI1WMBE_PLUGIN_BASENAME, + 'version' => AI1WMBE_VERSION, + 'requires' => '1.69', + 'short' => AI1WMBE_PLUGIN_SHORT, + ); + } + + // Add DigitalOcean Spaces Extension + if ( defined( 'AI1WMIE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMIE_PLUGIN_NAME ] = array( + 'key' => AI1WMIE_PURCHASE_ID, + 'title' => AI1WMIE_PLUGIN_TITLE, + 'about' => AI1WMIE_PLUGIN_ABOUT, + 'check' => AI1WMIE_PLUGIN_CHECK, + 'basename' => AI1WMIE_PLUGIN_BASENAME, + 'version' => AI1WMIE_VERSION, + 'requires' => '1.69', + 'short' => AI1WMIE_PLUGIN_SHORT, + ); + } + + // Add Direct Extension + if ( defined( 'AI1WMXE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMXE_PLUGIN_NAME ] = array( + 'key' => AI1WMXE_PURCHASE_ID, + 'title' => AI1WMXE_PLUGIN_TITLE, + 'about' => AI1WMXE_PLUGIN_ABOUT, + 'check' => AI1WMXE_PLUGIN_CHECK, + 'basename' => AI1WMXE_PLUGIN_BASENAME, + 'version' => AI1WMXE_VERSION, + 'requires' => '1.38', + 'short' => AI1WMXE_PLUGIN_SHORT, + ); + } + + // Add Dropbox Extension + if ( defined( 'AI1WMDE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMDE_PLUGIN_NAME ] = array( + 'key' => AI1WMDE_PURCHASE_ID, + 'title' => AI1WMDE_PLUGIN_TITLE, + 'about' => AI1WMDE_PLUGIN_ABOUT, + 'check' => AI1WMDE_PLUGIN_CHECK, + 'basename' => AI1WMDE_PLUGIN_BASENAME, + 'version' => AI1WMDE_VERSION, + 'requires' => '3.94', + 'short' => AI1WMDE_PLUGIN_SHORT, + ); + } + + // Add File Extension + if ( defined( 'AI1WMTE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMTE_PLUGIN_NAME ] = array( + 'key' => AI1WMTE_PURCHASE_ID, + 'title' => AI1WMTE_PLUGIN_TITLE, + 'about' => AI1WMTE_PLUGIN_ABOUT, + 'check' => AI1WMTE_PLUGIN_CHECK, + 'basename' => AI1WMTE_PLUGIN_BASENAME, + 'version' => AI1WMTE_VERSION, + 'requires' => '1.5', + 'short' => AI1WMTE_PLUGIN_SHORT, + ); + } + + // Add FTP Extension + if ( defined( 'AI1WMFE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMFE_PLUGIN_NAME ] = array( + 'key' => AI1WMFE_PURCHASE_ID, + 'title' => AI1WMFE_PLUGIN_TITLE, + 'about' => AI1WMFE_PLUGIN_ABOUT, + 'check' => AI1WMFE_PLUGIN_CHECK, + 'basename' => AI1WMFE_PLUGIN_BASENAME, + 'version' => AI1WMFE_VERSION, + 'requires' => '2.93', + 'short' => AI1WMFE_PLUGIN_SHORT, + ); + } + + // Add Google Cloud Storage Extension + if ( defined( 'AI1WMCE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMCE_PLUGIN_NAME ] = array( + 'key' => AI1WMCE_PURCHASE_ID, + 'title' => AI1WMCE_PLUGIN_TITLE, + 'about' => AI1WMCE_PLUGIN_ABOUT, + 'check' => AI1WMCE_PLUGIN_CHECK, + 'basename' => AI1WMCE_PLUGIN_BASENAME, + 'version' => AI1WMCE_VERSION, + 'requires' => '1.62', + 'short' => AI1WMCE_PLUGIN_SHORT, + ); + } + + // Add Google Drive Extension + if ( defined( 'AI1WMGE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMGE_PLUGIN_NAME ] = array( + 'key' => AI1WMGE_PURCHASE_ID, + 'title' => AI1WMGE_PLUGIN_TITLE, + 'about' => AI1WMGE_PLUGIN_ABOUT, + 'check' => AI1WMGE_PLUGIN_CHECK, + 'basename' => AI1WMGE_PLUGIN_BASENAME, + 'version' => AI1WMGE_VERSION, + 'requires' => '2.100', + 'short' => AI1WMGE_PLUGIN_SHORT, + ); + } + + // Add Amazon Glacier Extension + if ( defined( 'AI1WMRE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMRE_PLUGIN_NAME ] = array( + 'key' => AI1WMRE_PURCHASE_ID, + 'title' => AI1WMRE_PLUGIN_TITLE, + 'about' => AI1WMRE_PLUGIN_ABOUT, + 'check' => AI1WMRE_PLUGIN_CHECK, + 'basename' => AI1WMRE_PLUGIN_BASENAME, + 'version' => AI1WMRE_VERSION, + 'requires' => '1.55', + 'short' => AI1WMRE_PLUGIN_SHORT, + ); + } + + // Add Mega Extension + if ( defined( 'AI1WMEE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMEE_PLUGIN_NAME ] = array( + 'key' => AI1WMEE_PURCHASE_ID, + 'title' => AI1WMEE_PLUGIN_TITLE, + 'about' => AI1WMEE_PLUGIN_ABOUT, + 'check' => AI1WMEE_PLUGIN_CHECK, + 'basename' => AI1WMEE_PLUGIN_BASENAME, + 'version' => AI1WMEE_VERSION, + 'requires' => '1.64', + 'short' => AI1WMEE_PLUGIN_SHORT, + ); + } + + // Add Multisite Extension + if ( defined( 'AI1WMME_PLUGIN_NAME' ) ) { + $extensions[ AI1WMME_PLUGIN_NAME ] = array( + 'key' => AI1WMME_PURCHASE_ID, + 'title' => AI1WMME_PLUGIN_TITLE, + 'about' => AI1WMME_PLUGIN_ABOUT, + 'check' => AI1WMME_PLUGIN_CHECK, + 'basename' => AI1WMME_PLUGIN_BASENAME, + 'version' => AI1WMME_VERSION, + 'requires' => '4.62', + 'short' => AI1WMME_PLUGIN_SHORT, + ); + } + + // Add OneDrive Extension + if ( defined( 'AI1WMOE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMOE_PLUGIN_NAME ] = array( + 'key' => AI1WMOE_PURCHASE_ID, + 'title' => AI1WMOE_PLUGIN_TITLE, + 'about' => AI1WMOE_PLUGIN_ABOUT, + 'check' => AI1WMOE_PLUGIN_CHECK, + 'basename' => AI1WMOE_PLUGIN_BASENAME, + 'version' => AI1WMOE_VERSION, + 'requires' => '1.84', + 'short' => AI1WMOE_PLUGIN_SHORT, + ); + } + + // Add pCloud Extension + if ( defined( 'AI1WMPE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMPE_PLUGIN_NAME ] = array( + 'key' => AI1WMPE_PURCHASE_ID, + 'title' => AI1WMPE_PLUGIN_TITLE, + 'about' => AI1WMPE_PLUGIN_ABOUT, + 'check' => AI1WMPE_PLUGIN_CHECK, + 'basename' => AI1WMPE_PLUGIN_BASENAME, + 'version' => AI1WMPE_VERSION, + 'requires' => '1.56', + 'short' => AI1WMPE_PLUGIN_SHORT, + ); + } + + // Add Pro Plugin + if ( defined( 'AI1WMKE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMKE_PLUGIN_NAME ] = array( + 'key' => AI1WMKE_PURCHASE_ID, + 'title' => AI1WMKE_PLUGIN_TITLE, + 'about' => AI1WMKE_PLUGIN_ABOUT, + 'check' => AI1WMKE_PLUGIN_CHECK, + 'basename' => AI1WMKE_PLUGIN_BASENAME, + 'version' => AI1WMKE_VERSION, + 'requires' => '1.43', + 'short' => AI1WMKE_PLUGIN_SHORT, + ); + } + + // Add S3 Client Extension + if ( defined( 'AI1WMNE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMNE_PLUGIN_NAME ] = array( + 'key' => AI1WMNE_PURCHASE_ID, + 'title' => AI1WMNE_PLUGIN_TITLE, + 'about' => AI1WMNE_PLUGIN_ABOUT, + 'check' => AI1WMNE_PLUGIN_CHECK, + 'basename' => AI1WMNE_PLUGIN_BASENAME, + 'version' => AI1WMNE_VERSION, + 'requires' => '1.56', + 'short' => AI1WMNE_PLUGIN_SHORT, + ); + } + + // Add Amazon S3 Extension + if ( defined( 'AI1WMSE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMSE_PLUGIN_NAME ] = array( + 'key' => AI1WMSE_PURCHASE_ID, + 'title' => AI1WMSE_PLUGIN_TITLE, + 'about' => AI1WMSE_PLUGIN_ABOUT, + 'check' => AI1WMSE_PLUGIN_CHECK, + 'basename' => AI1WMSE_PLUGIN_BASENAME, + 'version' => AI1WMSE_VERSION, + 'requires' => '3.95', + 'short' => AI1WMSE_PLUGIN_SHORT, + ); + } + + // Add Unlimited Extension + if ( defined( 'AI1WMUE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMUE_PLUGIN_NAME ] = array( + 'key' => AI1WMUE_PURCHASE_ID, + 'title' => AI1WMUE_PLUGIN_TITLE, + 'about' => AI1WMUE_PLUGIN_ABOUT, + 'check' => AI1WMUE_PLUGIN_CHECK, + 'basename' => AI1WMUE_PLUGIN_BASENAME, + 'version' => AI1WMUE_VERSION, + 'requires' => '2.83', + 'short' => AI1WMUE_PLUGIN_SHORT, + ); + } + + // Add URL Extension + if ( defined( 'AI1WMLE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMLE_PLUGIN_NAME ] = array( + 'key' => AI1WMLE_PURCHASE_ID, + 'title' => AI1WMLE_PLUGIN_TITLE, + 'about' => AI1WMLE_PLUGIN_ABOUT, + 'check' => AI1WMLE_PLUGIN_CHECK, + 'basename' => AI1WMLE_PLUGIN_BASENAME, + 'version' => AI1WMLE_VERSION, + 'requires' => '2.79', + 'short' => AI1WMLE_PLUGIN_SHORT, + ); + } + + // Add WebDAV Extension + if ( defined( 'AI1WMWE_PLUGIN_NAME' ) ) { + $extensions[ AI1WMWE_PLUGIN_NAME ] = array( + 'key' => AI1WMWE_PURCHASE_ID, + 'title' => AI1WMWE_PLUGIN_TITLE, + 'about' => AI1WMWE_PLUGIN_ABOUT, + 'check' => AI1WMWE_PLUGIN_CHECK, + 'basename' => AI1WMWE_PLUGIN_BASENAME, + 'version' => AI1WMWE_VERSION, + 'requires' => '1.50', + 'short' => AI1WMWE_PLUGIN_SHORT, + ); + } + + return $extensions; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-feedback.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-feedback.php new file mode 100644 index 0000000..baa49dd --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-feedback.php @@ -0,0 +1,86 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Feedback { + + /** + * Submit customer feedback to servmask.com + * + * @param string $type Feedback type + * @param string $email User e-mail + * @param string $message User message + * @param integer $terms User accept terms + * @param string $purchases Purchases IDs + * + * @return array + */ + public static function add( $type, $email, $message, $terms, $purchases ) { + // Validate email + if ( filter_var( $email, FILTER_VALIDATE_EMAIL ) === false ) { + throw new Ai1wm_Feedback_Exception( esc_html__( 'Please enter a valid email address.', 'all-in-one-wp-migration' ) ); + } + + // Validate type + if ( empty( $type ) ) { + throw new Ai1wm_Feedback_Exception( esc_html__( 'Please select a feedback type.', 'all-in-one-wp-migration' ) ); + } + + // Validate message + if ( empty( $message ) ) { + throw new Ai1wm_Feedback_Exception( esc_html__( 'Please describe your issue or feedback.', 'all-in-one-wp-migration' ) ); + } + + // Validate terms + if ( empty( $terms ) ) { + throw new Ai1wm_Feedback_Exception( esc_html__( 'Please check the consent box so we can use your email to respond to you.', 'all-in-one-wp-migration' ) ); + } + + $response = wp_remote_post( + AI1WM_FEEDBACK_URL, + array( + 'timeout' => 15, + 'body' => array( + 'type' => $type, + 'email' => $email, + 'message' => $message, + 'purchases' => $purchases, + ), + ) + ); + + if ( is_wp_error( $response ) ) { + /* translators: Error message. */ + throw new Ai1wm_Feedback_Exception( esc_html( sprintf( __( 'An error occurred while submitting your request: %s', 'all-in-one-wp-migration' ), $response->get_error_message() ) ) ); + } + + return $response; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-handler.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-handler.php new file mode 100644 index 0000000..5f70872 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-handler.php @@ -0,0 +1,63 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Handler { + + /** + * Error handler + * + * @param integer $errno Error level + * @param string $errstr Error message + * @param string $errfile Error file + * @param integer $errline Error line + * @return void + */ + public static function error( $errno, $errstr, $errfile, $errline ) { + global $ai1wm_params; + if ( ! empty( $ai1wm_params['storage'] ) ) { + Ai1wm_Log::error( $ai1wm_params['storage'], array( 'Number' => $errno, 'Message' => $errstr, 'File' => $errfile, 'Line' => $errline ) ); + } + } + + /** + * Shutdown handler + * + * @return void + */ + public static function shutdown() { + global $ai1wm_params; + if ( ! empty( $ai1wm_params['storage'] ) ) { + if ( ( $error = error_get_last() ) ) { + Ai1wm_Log::error( $ai1wm_params['storage'], $error ); + } + } + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-log.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-log.php new file mode 100644 index 0000000..120589c --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-log.php @@ -0,0 +1,52 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Log { + + public static function error( $nonce, $params ) { + $data = array(); + + // Add date + $data[] = gmdate( 'M d Y H:i:s', time() ); + + // Add params + $data[] = json_encode( $params ); + + // Add empty line + $data[] = PHP_EOL; + + // Write log data + if ( $handle = ai1wm_open( ai1wm_error_path( $nonce ), 'a' ) ) { + ai1wm_write( $handle, implode( PHP_EOL, $data ) ); + ai1wm_close( $handle ); + } + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-message.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-message.php new file mode 100644 index 0000000..b4e74c6 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-message.php @@ -0,0 +1,65 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Message { + + public static function flash( $type, $message ) { + if ( ( $messages = get_option( AI1WM_MESSAGES, array() ) ) !== false ) { + return update_option( AI1WM_MESSAGES, array_merge( $messages, array( $type => $message ) ) ); + } + + return false; + } + + public static function has( $type ) { + if ( ( $messages = get_option( AI1WM_MESSAGES, array() ) ) ) { + if ( isset( $messages[ $type ] ) ) { + return true; + } + } + + return false; + } + + public static function get( $type ) { + $message = null; + if ( ( $messages = get_option( AI1WM_MESSAGES, array() ) ) ) { + if ( isset( $messages[ $type ] ) && ( $message = $messages[ $type ] ) ) { + unset( $messages[ $type ] ); + } + + // Set messages + update_option( AI1WM_MESSAGES, $messages ); + } + + return $message; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-notification.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-notification.php new file mode 100644 index 0000000..a8f65f9 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-notification.php @@ -0,0 +1,87 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Notification { + + public static function ok( $subject, $message ) { + // Enable notifications + if ( ! apply_filters( 'ai1wm_notification_ok_toggle', false ) ) { + return; + } + + // Set email + if ( ! ( $email = apply_filters( 'ai1wm_notification_ok_email', get_option( 'admin_email', false ) ) ) ) { + return; + } + + // Set subject + if ( ! ( $subject = apply_filters( 'ai1wm_notification_ok_subject', $subject ) ) ) { + return; + } + + // Set message + if ( ! ( $message = apply_filters( 'ai1wm_notification_ok_message', $message ) ) ) { + return; + } + + // Send email + if ( ai1wm_is_scheduled_backup() ) { + wp_mail( $email, $subject, $message, array( 'Content-Type: text/html; charset=UTF-8' ) ); + } + } + + public static function error( $subject, $message ) { + // Enable notifications + if ( ! apply_filters( 'ai1wm_notification_error_toggle', false ) ) { + return; + } + + // Set email + if ( ! ( $email = apply_filters( 'ai1wm_notification_error_email', get_option( 'admin_email', false ) ) ) ) { + return; + } + + // Set subject + if ( ! ( $subject = apply_filters( 'ai1wm_notification_error_subject', $subject ) ) ) { + return; + } + + // Set message + if ( ! ( $message = apply_filters( 'ai1wm_notification_error_message', $message ) ) ) { + return; + } + + // Send email + if ( ai1wm_is_scheduled_backup() ) { + wp_mail( $email, $subject, $message, array( 'Content-Type: text/html; charset=UTF-8' ) ); + } + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-status.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-status.php new file mode 100644 index 0000000..4a39848 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-status.php @@ -0,0 +1,100 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Status { + + /** + * @var string|null + */ + public static $job_id = null; + + public static function error( $title, $message ) { + self::log( array( 'type' => 'error', 'title' => $title, 'message' => $message ) ); + } + + public static function left_error( $title, $message ) { + self::log( array( 'type' => 'error', 'title' => $title, 'message' => $message, 'leftAligned' => true ) ); + } + + public static function info( $message ) { + self::log( array( 'type' => 'info', 'message' => $message ) ); + } + + public static function download( $message ) { + self::log( array( 'type' => 'download', 'message' => $message ) ); + } + + public static function disk_space_confirm( $message ) { + self::log( array( 'type' => 'disk_space_confirm', 'message' => $message ) ); + } + + public static function confirm( $message ) { + self::log( array( 'type' => 'confirm', 'message' => $message ) ); + } + + public static function done( $title, $message = null ) { + self::log( array( 'type' => 'done', 'title' => $title, 'message' => $message ) ); + } + + public static function blogs( $title, $message ) { + self::log( array( 'type' => 'blogs', 'title' => $title, 'message' => $message ) ); + } + + public static function progress( $percent ) { + self::log( array( 'type' => 'progress', 'percent' => $percent ) ); + } + + public static function backup_is_encrypted( $error ) { + self::log( array( 'type' => 'backup_is_encrypted', 'error' => $error ) ); + } + + public static function server_cannot_decrypt( $message ) { + self::log( array( 'type' => 'server_cannot_decrypt', 'message' => $message ) ); + } + + public static function log( $data ) { + global $ai1wm_params; + + // Job-scoped write (when job_id is set, e.g. REST API or any pipeline with storage) + if ( self::$job_id !== null ) { + $job_data = $data; + if ( isset( $ai1wm_params['archive'] ) ) { + $job_data['archive'] = $ai1wm_params['archive']; + } + update_option( 'ai1wm_status_' . self::$job_id, $job_data, false ); + } + + // Global write (only for non-scheduled, preserves existing browser UI behavior) + if ( ! ai1wm_is_scheduled_backup() ) { + update_option( AI1WM_STATUS, $data ); + } + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-template.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-template.php new file mode 100644 index 0000000..c8dd06a --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-template.php @@ -0,0 +1,68 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Template extends Bandar { + + /** + * Renders a file and returns its contents + * + * @param string $view View to render + * @param array $args Set of arguments + * @param string|bool $path Path to template + * @return string Rendered view + */ + public static function render( $view, $args = array(), $path = false ) { + parent::render( $view, $args, $path ); + } + + /** + * Returns link to an asset file + * + * @param string $asset Asset file + * @param string $prefix Asset prefix + * @return string Asset URL + */ + public static function asset_link( $asset, $prefix = 'AI1WM' ) { + return constant( $prefix . '_URL' ) . '/lib/view/assets/' . $asset . '?v=' . constant( $prefix . '_VERSION' ); + } + + /** + * Renders a file and gets its contents + * + * @param string $view View to render + * @param array $args Set of arguments + * @param string|bool $path Path to template + * @return string Rendered view + */ + public static function get_content( $view, $args = array(), $path = false ) { + return parent::getTemplateContent( $view, $args, $path ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-updater.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-updater.php new file mode 100644 index 0000000..7630be9 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-updater.php @@ -0,0 +1,197 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Updater { + + /** + * Retrieve plugin installer pages from WordPress Plugins API. + * + * @param mixed $result + * @param string $action + * @param array|object $args + * @return mixed + */ + public static function plugins_api( $result, $action = null, $args = null ) { + if ( empty( $args->slug ) ) { + return $result; + } + + // Get extensions + $extensions = Ai1wm_Extensions::get(); + + // View details page + if ( isset( $extensions[ $args->slug ] ) && $action === 'plugin_information' ) { + $updater = get_option( AI1WM_UPDATER, array() ); + + // Plugin details + if ( isset( $updater[ $args->slug ] ) ) { + return (object) $updater[ $args->slug ]; + } + } + + return $result; + } + + /** + * Update WordPress plugin list page. + * + * @param object $transient + * @return object + */ + public static function update_plugins( $transient ) { + global $wp_version; + + // Creating default object from empty value + if ( ! is_object( $transient ) ) { + $transient = (object) array(); + } + + // Get extensions + $extensions = Ai1wm_Extensions::get(); + + // Get current updates + $updater = get_option( AI1WM_UPDATER, array() ); + + // Get extension updates + foreach ( $updater as $slug => $update ) { + if ( isset( $extensions[ $slug ], $update['version'], $update['homepage'], $update['download_link'], $update['icons'] ) ) { + + // Get download URL + $download_url = add_query_arg( array( 'siteurl' => get_site_url() ), sprintf( '%s/%s', $update['download_link'], $extensions[ $slug ]['key'] ) ); + + // Set plugin details + $plugin_details = (object) array( + 'slug' => $slug, + 'new_version' => $update['version'], + 'url' => $update['homepage'], + 'plugin' => $extensions[ $slug ]['basename'], + 'package' => $download_url, + 'tested' => $wp_version, + 'icons' => $update['icons'], + ); + + // Enable auto updates + if ( version_compare( $extensions[ $slug ]['version'], $update['version'], '<' ) ) { + $transient->response[ $extensions[ $slug ]['basename'] ] = $plugin_details; + } else { + $transient->no_update[ $extensions[ $slug ]['basename'] ] = $plugin_details; + } + } + } + + return $transient; + } + + /** + * Check for extension updates + * + * @return boolean + */ + public static function check_for_updates() { + $updater = get_option( AI1WM_UPDATER, array() ); + + // Get extension updates + foreach ( Ai1wm_Extensions::get() as $slug => $extension ) { + $about = wp_remote_get( + $extension['about'], + array( + 'timeout' => 15, + 'headers' => array( 'Accept' => 'application/json' ), + ) + ); + + // Add plugin updates + if ( is_wp_error( $about ) ) { + $updater[ $slug ]['error_message'] = $about->get_error_message(); + } else { + $body = wp_remote_retrieve_body( $about ); + if ( ( $data = json_decode( $body, true ) ) ) { + if ( isset( $data['slug'], $data['version'], $data['homepage'], $data['download_link'], $data['icons'] ) ) { + $updater[ $slug ] = $data; + } + } + + // Add plugin messages + $check = wp_remote_get( + add_query_arg( array( 'site_url' => get_site_url(), 'admin_email' => get_option( 'admin_email' ) ), sprintf( '%s/%s', $extension['check'], $extension['key'] ) ), + array( + 'timeout' => 15, + 'headers' => array( 'Accept' => 'application/json' ), + ) + ); + + // Add plugin checks + if ( is_wp_error( $check ) ) { + $updater[ $slug ]['error_message'] = $check->get_error_message(); + } else { + $body = wp_remote_retrieve_body( $check ); + if ( ( $data = json_decode( $body, true ) ) ) { + if ( isset( $updater[ $slug ], $data['message'] ) ) { + $updater[ $slug ]['update_message'] = $data['message']; + } + } + } + } + } + + return update_option( AI1WM_UPDATER, $updater ); + } + + /** + * Add "Check for updates" link + * + * @param array $plugin_meta An array of the plugin's metadata, including the version, author, author URI, and plugin URI + * @param string $plugin_file Path to the plugin file relative to the plugins directory + * @return array + */ + public static function plugin_row_meta( $plugin_meta, $plugin_file ) { + $updater = get_option( AI1WM_UPDATER, array() ); + + // Add link for each extension + foreach ( Ai1wm_Extensions::get() as $slug => $extension ) { + if ( $plugin_file === $extension['basename'] ) { + + // Get updater URL + $updater_url = add_query_arg( array( 'ai1wm_check_for_updates' => 1, 'ai1wm_nonce' => wp_create_nonce( 'ai1wm_check_for_updates' ) ), network_admin_url( 'plugins.php' ) ); + + // Check for updates + $plugin_meta[] = Ai1wm_Template::get_content( 'updater/check', array( 'url' => $updater_url ) ); + + // Check error message + if ( isset( $updater[ $slug ]['error_message'] ) ) { + $plugin_meta[] = Ai1wm_Template::get_content( 'updater/error', array( 'message' => $updater[ $slug ]['error_message'] ) ); + } + } + } + + return $plugin_meta; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-archive-crc.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-archive-crc.php new file mode 100644 index 0000000..7c144bb --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-archive-crc.php @@ -0,0 +1,141 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Archive_Crc { + + public static function execute( $params ) { + $archive_bytes_read = 0; + + // Set progress + Ai1wm_Status::info( __( 'Calculating archive checksum...', 'all-in-one-wp-migration' ) ); + + // Set archive bytes remaining + if ( isset( $params['archive_bytes_remaining'] ) ) { + $archive_bytes_remaining = (int) $params['archive_bytes_remaining']; + } else { + $archive_bytes_remaining = ai1wm_archive_bytes( $params ); + } + + // Set archive bytes offset + if ( isset( $params['archive_bytes_offset'] ) ) { + $archive_bytes_offset = (int) $params['archive_bytes_offset']; + } else { + $archive_bytes_offset = 0; + } + + // Set archive CRC value + $archive_crc_value = null; + if ( isset( $params['archive_crc_value'] ) ) { + $archive_crc_value = $params['archive_crc_value']; + } + + // Flag to hold if file data has been processed + $completed = true; + + // Start time + $start = microtime( true ); + + // Initialize CRC context for this chunk + $hash_ctx = Ai1wm_Crc::init_crc32(); + + // Open archive for reading + if ( ( $file_handle = ai1wm_open( ai1wm_archive_path( $params ), 'rb' ) ) ) { + if ( fseek( $file_handle, $archive_bytes_offset, SEEK_SET ) !== -1 ) { + + // Process file in chunks + while ( $archive_bytes_remaining > 0 ) { + if ( ( $file_content = ai1wm_read( $file_handle, min( Ai1wm_Archiver::READ_CHUNK_SIZE, $archive_bytes_remaining ) ) ) !== false ) { + + // Empty read indicates EOF + if ( strlen( $file_content ) === 0 ) { + break; + } + + // Add the amount of bytes we read + $archive_bytes_read += strlen( $file_content ); + + // Subtract the amount of bytes we read + $archive_bytes_remaining -= strlen( $file_content ); + + // Update CRC with original content + Ai1wm_Crc::update_crc32( $hash_ctx, $file_content ); + } + + // Time elapsed + if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { + if ( ( microtime( true ) - $start ) > $timeout ) { + $completed = false; + break; + } + } + } + + // Get archive bytes offset + $archive_bytes_offset += $archive_bytes_read; + } + + ai1wm_close( $file_handle ); + } + + // Combine and finalize CRC + if ( empty( $archive_crc_value ) ) { + $params['archive_crc_value'] = Ai1wm_Crc::finalize_crc32( $hash_ctx ); + } else { + $params['archive_crc_value'] = Ai1wm_Crc::combine_crc32( $archive_crc_value, Ai1wm_Crc::finalize_crc32( $hash_ctx ), $archive_bytes_read ); + } + + // End of the archive file? + if ( $completed ) { + + // St archive bytes remaining + unset( $params['archive_bytes_remaining'] ); + + // Unset archive offset + unset( $params['archive_bytes_offset'] ); + + // Unset completed flag + unset( $params['completed'] ); + + } else { + + // St archive bytes remaining + $params['archive_bytes_remaining'] = $archive_bytes_remaining; + + // Set archive offset + $params['archive_bytes_offset'] = $archive_bytes_offset; + + // Set completed flag + $params['completed'] = $completed; + } + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-archive.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-archive.php new file mode 100644 index 0000000..aa6d5a1 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-archive.php @@ -0,0 +1,50 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Archive { + + public static function execute( $params ) { + + do_action( 'ai1wm_status_export_start', $params ); + + // Set progress + Ai1wm_Status::info( __( 'Creating export file...', 'all-in-one-wp-migration' ) ); + + // Create empty archive file + $archive = new Ai1wm_Compressor( ai1wm_archive_path( $params ) ); + $archive->close(); + + // Set progress + Ai1wm_Status::info( __( 'Export file created.', 'all-in-one-wp-migration' ) ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-clean.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-clean.php new file mode 100644 index 0000000..446ac14 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-clean.php @@ -0,0 +1,51 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Clean { + + public static function execute( $params ) { + + // Delete storage files. The ai1wm_status_ option lingers so poll + // clients still see the terminal state; the daily cron sweeps it later. + Ai1wm_Directory::delete( ai1wm_storage_path( $params ) ); + + if ( isset( $params['ai1wm_export_cancel'] ) ) { + do_action( 'ai1wm_status_export_canceled', $params ); + } + + // Exit in console + if ( defined( 'WP_CLI' ) ) { + return $params; + } + + exit; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-compatibility.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-compatibility.php new file mode 100644 index 0000000..7103452 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-compatibility.php @@ -0,0 +1,50 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Compatibility { + + public static function execute( $params ) { + + // Set progress + Ai1wm_Status::info( __( 'Checking for compatibility...', 'all-in-one-wp-migration' ) ); + + // Get messages + $messages = Ai1wm_Compatibility::get( $params ); + + // Set messages + if ( empty( $messages ) ) { + return $params; + } + + // Error message + throw new Ai1wm_Compatibility_Exception( wp_kses( implode( $messages ), ai1wm_allowed_html_tags() ) ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-config-file.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-config-file.php new file mode 100644 index 0000000..16132de --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-config-file.php @@ -0,0 +1,56 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Config_File { + + public static function execute( $params ) { + + // Set progress + Ai1wm_Status::info( __( 'Archiving configuration...', 'all-in-one-wp-migration' ) ); + + // Open the archive file for writing + $archive = new Ai1wm_Compressor( ai1wm_archive_path( $params ) ); + + // Add package.json to archive + $archive->add_file( ai1wm_package_path( $params ), AI1WM_PACKAGE_NAME ); + + // Set progress + Ai1wm_Status::info( __( 'Configuration archived.', 'all-in-one-wp-migration' ) ); + + // Truncate the archive file + $archive->truncate(); + + // Close the archive file + $archive->close(); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-config.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-config.php new file mode 100644 index 0000000..29471ea --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-config.php @@ -0,0 +1,203 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Config { + + public static function execute( $params ) { + global $table_prefix, $wp_version; + + // Set progress + Ai1wm_Status::info( __( 'Preparing configuration...', 'all-in-one-wp-migration' ) ); + + // Get options + $options = wp_load_alloptions(); + + // Get database client + $db_client = Ai1wm_Database_Utility::get_client(); + + $config = array(); + + // Set site URL + $config['SiteURL'] = site_url(); + + // Set home URL + $config['HomeURL'] = home_url(); + + // Set internal site URL + if ( isset( $options['siteurl'] ) ) { + $config['InternalSiteURL'] = $options['siteurl']; + } + + // Set internal home URL + if ( isset( $options['home'] ) ) { + $config['InternalHomeURL'] = $options['home']; + } + + // Set replace old and new values + if ( isset( $params['options']['replace'] ) && ( $replace = $params['options']['replace'] ) ) { + for ( $i = 0; $i < count( $replace['old_value'] ); $i++ ) { + if ( ! empty( $replace['old_value'][ $i ] ) && ! empty( $replace['new_value'][ $i ] ) ) { + $config['Replace']['OldValues'][] = $replace['old_value'][ $i ]; + $config['Replace']['NewValues'][] = $replace['new_value'][ $i ]; + } + } + } + + // Set no spam comments + if ( isset( $params['options']['no_spam_comments'] ) ) { + $config['NoSpamComments'] = true; + } + + // Set no post revisions + if ( isset( $params['options']['no_post_revisions'] ) ) { + $config['NoPostRevisions'] = true; + } + + // Set no media + if ( isset( $params['options']['no_media'] ) ) { + $config['NoMedia'] = true; + } + + // Set no themes + if ( isset( $params['options']['no_themes'] ) ) { + $config['NoThemes'] = true; + } + + // Set no inactive themes + if ( isset( $params['options']['no_inactive_themes'] ) ) { + $config['NoInactiveThemes'] = true; + } + + // Set no must-use plugins + if ( isset( $params['options']['no_muplugins'] ) ) { + $config['NoMustUsePlugins'] = true; + } + + // Set no plugins + if ( isset( $params['options']['no_plugins'] ) ) { + $config['NoPlugins'] = true; + } + + // Set no inactive plugins + if ( isset( $params['options']['no_inactive_plugins'] ) ) { + $config['NoInactivePlugins'] = true; + } + + // Set no cache + if ( isset( $params['options']['no_cache'] ) ) { + $config['NoCache'] = true; + } + + // Set no database + if ( isset( $params['options']['no_database'] ) ) { + $config['NoDatabase'] = true; + } + + // Set no email replace + if ( isset( $params['options']['no_email_replace'] ) ) { + $config['NoEmailReplace'] = true; + } + + // Set plugin version + $config['Plugin'] = array( 'Version' => AI1WM_VERSION ); + + // Set WordPress version and content + $config['WordPress'] = array( 'Version' => $wp_version, 'Absolute' => ABSPATH, 'Content' => WP_CONTENT_DIR, 'Plugins' => ai1wm_get_plugins_dir(), 'Themes' => ai1wm_get_themes_dirs(), 'Uploads' => ai1wm_get_uploads_dir(), 'UploadsURL' => ai1wm_get_uploads_url() ); + + // Set database version + $config['Database'] = array( + 'Version' => $db_client->server_info(), + 'Charset' => defined( 'DB_CHARSET' ) ? DB_CHARSET : 'undefined', + 'Collate' => defined( 'DB_COLLATE' ) ? DB_COLLATE : 'undefined', + 'Prefix' => $table_prefix, + ); + + // Exclude selected db tables + if ( isset( $params['options']['exclude_db_tables'], $params['excluded_db_tables'] ) ) { + if ( ( $excluded_db_tables = explode( ',', $params['excluded_db_tables'] ) ) ) { + $config['Database']['ExcludedTables'] = $excluded_db_tables; + } + } + + // Include selected db tables + if ( isset( $params['options']['include_db_tables'], $params['included_db_tables'] ) ) { + if ( ( $included_db_tables = explode( ',', $params['included_db_tables'] ) ) ) { + $config['Database']['IncludedTables'] = $included_db_tables; + } + } + + // Set PHP version + $config['PHP'] = array( 'Version' => PHP_VERSION, 'System' => PHP_OS, 'Integer' => PHP_INT_SIZE ); + + // Set active plugins + $config['Plugins'] = array_values( array_diff( ai1wm_active_plugins(), ai1wm_active_servmask_plugins() ) ); + + // Set active template + $config['Template'] = ai1wm_active_template(); + + // Set active stylesheet + $config['Stylesheet'] = ai1wm_active_stylesheet(); + + // Set upload path + $config['Uploads'] = get_option( 'upload_path' ); + + // Set upload URL path + $config['UploadsURL'] = get_option( 'upload_url_path' ); + + // Set server info + $config['Server'] = array( '.htaccess' => base64_encode( ai1wm_get_htaccess() ), 'web.config' => base64_encode( ai1wm_get_webconfig() ) ); + + // Set encrypt backups + if ( isset( $params['options']['encrypt_backups'] ) ) { + $config['Encrypted'] = true; + } + + // Set encrypt password + if ( isset( $params['options']['encrypt_password'] ) ) { + $config['EncryptedSignature'] = base64_encode( ai1wm_encrypt_string( AI1WM_SIGN_TEXT, $params['options']['encrypt_password'] ) ); + } + + // Set compression type + if ( ! empty( $params['options']['compression_type'] ) ) { + $config['Compression'] = array( 'Enabled' => true, 'Type' => $params['options']['compression_type'] ); + } + + // Save package.json file + $handle = ai1wm_open( ai1wm_package_path( $params ), 'w' ); + ai1wm_write( $handle, json_encode( $config ) ); + ai1wm_close( $handle ); + + // Set progress + Ai1wm_Status::info( __( 'Configuration prepared.', 'all-in-one-wp-migration' ) ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-content.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-content.php new file mode 100644 index 0000000..997d667 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-content.php @@ -0,0 +1,239 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Content { + + public static function execute( $params ) { + + // Set encrypt password + $encrypt_password = null; + if ( isset( $params['options']['encrypt_backups'], $params['options']['encrypt_password'] ) ) { + $encrypt_password = $params['options']['encrypt_password']; + } + + // Set compression type + $compression_type = null; + if ( isset( $params['options']['compression_type'] ) ) { + $compression_type = $params['options']['compression_type']; + } + + // Set archive bytes offset + if ( isset( $params['archive_bytes_offset'] ) ) { + $archive_bytes_offset = (int) $params['archive_bytes_offset']; + } else { + $archive_bytes_offset = ai1wm_archive_bytes( $params ); + } + + // Set file bytes offset + if ( isset( $params['file_bytes_offset'] ) ) { + $file_bytes_offset = (int) $params['file_bytes_offset']; + } else { + $file_bytes_offset = 0; + } + + // Set file bytes written + if ( isset( $params['file_bytes_written'] ) ) { + $file_bytes_written = (int) $params['file_bytes_written']; + } else { + $file_bytes_written = 0; + } + + // Set content bytes offset + if ( isset( $params['content_bytes_offset'] ) ) { + $content_bytes_offset = (int) $params['content_bytes_offset']; + } else { + $content_bytes_offset = 0; + } + + // Get processed files size + if ( isset( $params['processed_files_size'] ) ) { + $processed_files_size = (int) $params['processed_files_size']; + } else { + $processed_files_size = 0; + } + + // Get total content files size + if ( isset( $params['total_content_files_size'] ) ) { + $total_content_files_size = (int) $params['total_content_files_size']; + } else { + $total_content_files_size = 1; + } + + // Get total content files count + if ( isset( $params['total_content_files_count'] ) ) { + $total_content_files_count = (int) $params['total_content_files_count']; + } else { + $total_content_files_count = 1; + } + + // Set file CRC + if ( isset( $params['file_crc'] ) ) { + $file_crc = $params['file_crc']; + } else { + $file_crc = null; + } + + // What percent of files have we processed? + $progress = (int) min( ( $processed_files_size / $total_content_files_size ) * 100, 100 ); + + // Set progress + /* translators: 1: Number of files, 2: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Archiving %1$d content files...
%2$d%% complete', 'all-in-one-wp-migration' ), $total_content_files_count, $progress ) ); + + // Flag to hold if file data has been processed + $completed = true; + + // Start time + $start = microtime( true ); + + // Get content list file + $content_list = ai1wm_open( ai1wm_content_list_path( $params ), 'r' ); + + // Set the file pointer at the current index + if ( fseek( $content_list, $content_bytes_offset ) !== -1 ) { + + // Open the archive file for writing + $archive = new Ai1wm_Compressor( ai1wm_archive_path( $params ), $encrypt_password, $compression_type ); + + // Set the file pointer to the one that we have saved + $archive->set_file_pointer( $archive_bytes_offset ); + + // Loop over files + while ( ( $row = ai1wm_getcsv( $content_list ) ) !== false ) { + list( $file_abspath, $file_relpath, $file_size, $file_mtime ) = $row; + $file_bytes_read = 0; + + // Add file to archive + if ( ( $completed = $archive->add_file( $file_abspath, $file_relpath, $file_bytes_read, $file_bytes_offset, $file_bytes_written, $file_crc ) ) ) { + $file_crc = null; + + // Reset file bytes + $file_bytes_offset = $file_bytes_written = 0; + + // Get content bytes offset + $content_bytes_offset = ftell( $content_list ); + } + + // Increment processed files size + $processed_files_size += $file_bytes_read; + + // What percent of files have we processed? + $progress = (int) min( ( $processed_files_size / $total_content_files_size ) * 100, 100 ); + + // Set progress + /* translators: 1: Number of files, 2: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Archiving %1$d content files...
%2$d%% complete', 'all-in-one-wp-migration' ), $total_content_files_count, $progress ) ); + + // More than 10 seconds have passed, break and do another request + if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { + if ( ( microtime( true ) - $start ) > $timeout ) { + $completed = false; + break; + } + } + } + + // Get archive bytes offset + $archive_bytes_offset = $archive->get_file_pointer(); + + // Truncate the archive file + $archive->truncate(); + + // Close the archive file + $archive->close(); + } + + // End of the content list? + if ( feof( $content_list ) ) { + + // Unset archive bytes offset + unset( $params['archive_bytes_offset'] ); + + // Unset file bytes offset + unset( $params['file_bytes_offset'] ); + + // Unset file bytes written + unset( $params['file_bytes_written'] ); + + // Unset content bytes offset + unset( $params['content_bytes_offset'] ); + + // Unset processed files size + unset( $params['processed_files_size'] ); + + // Unset total content files size + unset( $params['total_content_files_size'] ); + + // Unset total content files count + unset( $params['total_content_files_count'] ); + + // Unset file CRC + unset( $params['file_crc'] ); + + // Unset completed flag + unset( $params['completed'] ); + + } else { + + // Set archive bytes offset + $params['archive_bytes_offset'] = $archive_bytes_offset; + + // Set file bytes offset + $params['file_bytes_offset'] = $file_bytes_offset; + + // Set file bytes written + $params['file_bytes_written'] = $file_bytes_written; + + // Set content bytes offset + $params['content_bytes_offset'] = $content_bytes_offset; + + // Set processed files size + $params['processed_files_size'] = $processed_files_size; + + // Set total content files size + $params['total_content_files_size'] = $total_content_files_size; + + // Set total content files count + $params['total_content_files_count'] = $total_content_files_count; + + // Set file CRC + $params['file_crc'] = $file_crc; + + // Set completed flag + $params['completed'] = $completed; + } + + // Close the content list file + ai1wm_close( $content_list ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-database-file.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-database-file.php new file mode 100644 index 0000000..29e3132 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-database-file.php @@ -0,0 +1,166 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Database_File { + + public static function execute( $params ) { + + // Set exclude database + if ( isset( $params['options']['no_database'] ) ) { + return $params; + } + + $database_bytes_read = 0; + + // Set encrypt password + $encrypt_password = null; + if ( isset( $params['options']['encrypt_backups'], $params['options']['encrypt_password'] ) ) { + $encrypt_password = $params['options']['encrypt_password']; + } + + // Set compression type + $compression_type = null; + if ( isset( $params['options']['compression_type'] ) ) { + $compression_type = $params['options']['compression_type']; + } + + // Set archive bytes offset + if ( isset( $params['archive_bytes_offset'] ) ) { + $archive_bytes_offset = (int) $params['archive_bytes_offset']; + } else { + $archive_bytes_offset = ai1wm_archive_bytes( $params ); + } + + // Set database bytes offset + if ( isset( $params['database_bytes_offset'] ) ) { + $database_bytes_offset = (int) $params['database_bytes_offset']; + } else { + $database_bytes_offset = 0; + } + + // Set database bytes written + if ( isset( $params['database_bytes_written'] ) ) { + $database_bytes_written = (int) $params['database_bytes_written']; + } else { + $database_bytes_written = 0; + } + + // Set database CRC + if ( isset( $params['database_crc'] ) ) { + $database_crc = $params['database_crc']; + } else { + $database_crc = null; + } + + // Get total database size + if ( isset( $params['total_database_size'] ) ) { + $total_database_size = (int) $params['total_database_size']; + } else { + $total_database_size = ai1wm_database_bytes( $params ); + } + + // What percent of database have we processed? + $progress = (int) min( ( $database_bytes_offset / $total_database_size ) * 100, 100 ); + + // Set progress + /* translators: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Archiving database...
%d%% complete', 'all-in-one-wp-migration' ), $progress ) ); + + // Open the archive file for writing + $archive = new Ai1wm_Compressor( ai1wm_archive_path( $params ), $encrypt_password, $compression_type ); + + // Set the file pointer to the one that we have saved + $archive->set_file_pointer( $archive_bytes_offset ); + + // Add database.sql to archive + if ( $archive->add_file( ai1wm_database_path( $params ), AI1WM_DATABASE_NAME, $database_bytes_read, $database_bytes_offset, $database_bytes_written, $database_crc ) ) { + + // Set progress + Ai1wm_Status::info( __( 'Database archived.', 'all-in-one-wp-migration' ) ); + + // Unset archive bytes offset + unset( $params['archive_bytes_offset'] ); + + // Unset database bytes offset + unset( $params['database_bytes_offset'] ); + + // Unset database bytes written + unset( $params['database_bytes_written'] ); + + // Unset database CRC + unset( $params['database_crc'] ); + + // Unset total database size + unset( $params['total_database_size'] ); + + // Unset completed flag + unset( $params['completed'] ); + + } else { + + // Get archive bytes offset + $archive_bytes_offset = $archive->get_file_pointer(); + + // What percent of database have we processed? + $progress = (int) min( ( $database_bytes_offset / $total_database_size ) * 100, 100 ); + + // Set progress + /* translators: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Archiving database...
%d%% complete', 'all-in-one-wp-migration' ), $progress ) ); + + // Set archive bytes offset + $params['archive_bytes_offset'] = $archive_bytes_offset; + + // Set database bytes offset + $params['database_bytes_offset'] = $database_bytes_offset; + + // Set database bytes written + $params['database_bytes_written'] = $database_bytes_written; + + // Set database CRC + $params['database_crc'] = $database_crc; + + // Set total database size + $params['total_database_size'] = $total_database_size; + + // Set completed flag + $params['completed'] = false; + } + + // Truncate the archive file + $archive->truncate(); + + // Close the archive file + $archive->close(); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-database.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-database.php new file mode 100644 index 0000000..89e49b3 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-database.php @@ -0,0 +1,215 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Database { + + public static function execute( $params ) { + + // Set exclude database + if ( isset( $params['options']['no_database'] ) ) { + return $params; + } + + // Set query offset + if ( isset( $params['query_offset'] ) ) { + $query_offset = (int) $params['query_offset']; + } else { + $query_offset = 0; + } + + // Set table index + if ( isset( $params['table_index'] ) ) { + $table_index = (int) $params['table_index']; + } else { + $table_index = 0; + } + + // Set table offset + if ( isset( $params['table_offset'] ) ) { + $table_offset = (int) $params['table_offset']; + } else { + $table_offset = 0; + } + + // Set table rows + if ( isset( $params['table_rows'] ) ) { + $table_rows = (int) $params['table_rows']; + } else { + $table_rows = 0; + } + + // Set total tables count + if ( isset( $params['total_tables_count'] ) ) { + $total_tables_count = (int) $params['total_tables_count']; + } else { + $total_tables_count = 1; + } + + // What percent of tables have we processed? + $progress = (int) ( ( $table_index / $total_tables_count ) * 100 ); + + // Set progress + /* translators: 1: Progress, 2: Number of records. */ + Ai1wm_Status::info( sprintf( __( 'Exporting database...
%1$d%% complete
%2$s records saved', 'all-in-one-wp-migration' ), $progress, number_format_i18n( $table_rows ) ) ); + + // Get tables list file + $tables_list = ai1wm_open( ai1wm_tables_list_path( $params ), 'r' ); + + // Loop over tables + $tables = array(); + while ( ( $row = ai1wm_getcsv( $tables_list ) ) !== false ) { + list( $table_name ) = $row; + $tables[] = $table_name; // phpcs:ignore Generic.Formatting.MultipleStatementAlignment.NotSameWarning + } + + // Close the tables list file + ai1wm_close( $tables_list ); + + // Get database client + $db_client = Ai1wm_Database_Utility::get_client(); + + // Exclude spam comments + if ( isset( $params['options']['no_spam_comments'] ) ) { + $db_client->set_table_where_query( ai1wm_table_prefix() . 'comments', "`comment_approved` != 'spam'" ) + ->set_table_where_query( ai1wm_table_prefix() . 'commentmeta', sprintf( "`comment_ID` IN ( SELECT `comment_ID` FROM `%s` WHERE `comment_approved` != 'spam' )", ai1wm_table_prefix() . 'comments' ) ); + } + + // Exclude post revisions + if ( isset( $params['options']['no_post_revisions'] ) ) { + $db_client->set_table_where_query( ai1wm_table_prefix() . 'posts', "`post_type` != 'revision'" ) + ->set_table_where_query( ai1wm_table_prefix() . 'postmeta', sprintf( "`post_id` IN ( SELECT `ID` FROM `%s` WHERE `post_type` != 'revision' )", ai1wm_table_prefix() . 'posts' ) ); + } + + $old_table_prefixes = $old_column_prefixes = array(); + $new_table_prefixes = $new_column_prefixes = array(); + + // Set table prefixes + if ( ai1wm_table_prefix() ) { + $old_table_prefixes[] = ai1wm_table_prefix(); + $new_table_prefixes[] = ai1wm_servmask_prefix(); + } else { + foreach ( $tables as $table_name ) { + $old_table_prefixes[] = $table_name; + $new_table_prefixes[] = ai1wm_servmask_prefix() . $table_name; + } + } + + // Set column prefixes + if ( strlen( ai1wm_table_prefix() ) > 1 ) { + $old_column_prefixes[] = ai1wm_table_prefix(); + $new_column_prefixes[] = ai1wm_servmask_prefix(); + } else { + foreach ( array( 'user_roles', 'capabilities', 'user_level', 'dashboard_quick_press_last_post_id', 'user-settings', 'user-settings-time' ) as $column_prefix ) { + $old_column_prefixes[] = ai1wm_table_prefix() . $column_prefix; + $new_column_prefixes[] = ai1wm_servmask_prefix() . $column_prefix; + } + } + + $db_client->set_tables( $tables ) + ->set_old_table_prefixes( $old_table_prefixes ) + ->set_new_table_prefixes( $new_table_prefixes ) + ->set_old_column_prefixes( $old_column_prefixes ) + ->set_new_column_prefixes( $new_column_prefixes ); + + // Exclude column prefixes + $db_client->set_reserved_column_prefixes( array( 'wp_force_deactivated_plugins', 'wp_page_for_privacy_policy', 'wp_rocket_settings', 'wp_rocket_dismiss_imagify_notice', 'wp_rocket_no_licence', 'wp_rocket_rocketcdn_old_url', 'wp_rocket_hide_deactivation_form' ) ); + + // Exclude site options + $db_client->set_table_where_query( ai1wm_table_prefix() . 'options', sprintf( "`option_name` NOT IN ('%s', '%s', '%s', '%s', '%s', '%s', '%s')", AI1WM_STATUS, AI1WM_SECRET_KEY, AI1WM_AUTH_USER, AI1WM_AUTH_PASSWORD, AI1WM_AUTH_HEADER, AI1WM_BACKUPS_LABELS, AI1WM_SITES_LINKS ) ); + + // Set table select columns + if ( ( $column_names = $db_client->get_column_names( ai1wm_table_prefix() . 'options' ) ) ) { + if ( isset( $column_names['option_name'], $column_names['option_value'] ) ) { + $column_names['option_value'] = sprintf( "(CASE WHEN option_name = '%s' THEN 'a:0:{}' WHEN (option_name = '%s' OR option_name = '%s') THEN '' ELSE option_value END) AS option_value", AI1WM_ACTIVE_PLUGINS, AI1WM_ACTIVE_TEMPLATE, AI1WM_ACTIVE_STYLESHEET ); + } + + $db_client->set_table_select_columns( ai1wm_table_prefix() . 'options', $column_names ); + } + + // Set table prefix columns + $db_client->set_table_prefix_columns( ai1wm_table_prefix() . 'options', array( 'option_name' ) ) + ->set_table_prefix_columns( ai1wm_table_prefix() . 'usermeta', array( 'meta_key' ) ); + + // Export database + if ( $db_client->export( ai1wm_database_path( $params ), $query_offset, $table_index, $table_offset, $table_rows ) ) { + + // Set progress + Ai1wm_Status::info( __( 'Database exported.', 'all-in-one-wp-migration' ) ); + + // Unset query offset + unset( $params['query_offset'] ); + + // Unset table index + unset( $params['table_index'] ); + + // Unset table offset + unset( $params['table_offset'] ); + + // Unset table rows + unset( $params['table_rows'] ); + + // Unset total tables count + unset( $params['total_tables_count'] ); + + // Unset completed flag + unset( $params['completed'] ); + + } else { + + // What percent of tables have we processed? + $progress = (int) ( ( $table_index / $total_tables_count ) * 100 ); + + // Set progress + /* translators: 1: Progress, 2: Number of records. */ + Ai1wm_Status::info( sprintf( __( 'Exporting database...
%1$d%% complete
%2$s records saved', 'all-in-one-wp-migration' ), $progress, number_format_i18n( $table_rows ) ) ); + + // Set query offset + $params['query_offset'] = $query_offset; + + // Set table index + $params['table_index'] = $table_index; + + // Set table offset + $params['table_offset'] = $table_offset; + + // Set table rows + $params['table_rows'] = $table_rows; + + // Set total tables count + $params['total_tables_count'] = $total_tables_count; + + // Set completed flag + $params['completed'] = false; + } + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-download.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-download.php new file mode 100644 index 0000000..79991b2 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-download.php @@ -0,0 +1,115 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Download { + + public static function execute( $params ) { + + // Get archive CRC value + $archive_crc_value = null; + if ( isset( $params['archive_crc_value'] ) ) { + $archive_crc_value = $params['archive_crc_value']; + } + + // Set progress + Ai1wm_Status::info( __( 'Renaming export file...', 'all-in-one-wp-migration' ) ); + + // Open the archive file for writing + $archive = new Ai1wm_Compressor( ai1wm_archive_path( $params ) ); + + // Append EOF block + $archive->close( true, $archive_crc_value ); + + // Rename archive file + if ( rename( ai1wm_archive_path( $params ), ai1wm_backup_path( $params ) ) ) { + $blog_id = null; + + // Get subsite Blog ID + if ( isset( $params['options']['sites'] ) && ( $sites = $params['options']['sites'] ) ) { + if ( count( $sites ) === 1 ) { + $blog_id = array_shift( $sites ); + } + } + + // Set archive details + $file = ai1wm_archive_name( $params ); + $link = ai1wm_backup_url( $params ); + $size = ai1wm_backup_size( $params ); + $name = ai1wm_site_name( $blog_id ); + + // Set progress + if ( ai1wm_direct_download_supported() ) { + Ai1wm_Status::download( + sprintf( + /* translators: 1: Link to archive, 2: Archive title, 3: File name, 4: Archive title, 5: File size. */ + __( + ' + Download %2$s + Size: %4$s + ', + 'all-in-one-wp-migration' + ), + $link, + $name, + $file, + $size + ) + ); + } else { + Ai1wm_Status::download( + sprintf( + /* translators: 1: Archive title, 2: File name, 3: Archive title, 4: File size. */ + __( + ' + Download %3$s + Size: %4$s + ', + 'all-in-one-wp-migration' + ), + $name, + $file, + $name, + $size + ) + ); + } + } + + do_action( 'ai1wm_status_export_done', $params ); + + // Run manual on backup created hook + if ( isset( $params['ai1wm_manual_backup'] ) ) { + do_action( 'ai1wm_status_backup_created', $params ); + } + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-content.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-content.php new file mode 100644 index 0000000..38d3f71 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-content.php @@ -0,0 +1,126 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Enumerate_Content { + + public static function execute( $params ) { + + $exclude_filters = array_merge( array( ai1wm_get_uploads_dir(), ai1wm_get_plugins_dir() ), ai1wm_get_themes_dirs() ); + + // Get total content files count + if ( isset( $params['total_content_files_count'] ) ) { + $total_content_files_count = (int) $params['total_content_files_count']; + } else { + $total_content_files_count = 1; + } + + // Get total content files size + if ( isset( $params['total_content_files_size'] ) ) { + $total_content_files_size = (int) $params['total_content_files_size']; + } else { + $total_content_files_size = 1; + } + + // Set progress + Ai1wm_Status::info( __( 'Gathering content files...', 'all-in-one-wp-migration' ) ); + + // Exclude cache + if ( isset( $params['options']['no_cache'] ) ) { + $exclude_filters[] = 'cache'; + } + + // Exclude must-use plugins + if ( isset( $params['options']['no_muplugins'] ) ) { + $exclude_filters[] = 'mu-plugins'; + } + + // Exclude media + if ( isset( $params['options']['no_media'] ) ) { + $exclude_filters[] = 'blogs.dir'; + } + + // Exclude SQLite file + if ( defined( 'FQDB' ) ) { + $exclude_filters[] = FQDB; + } + + // Exclude selected files + if ( isset( $params['options']['exclude_files'], $params['excluded_files'] ) ) { + if ( ( $excluded_files = explode( ',', $params['excluded_files'] ) ) ) { + foreach ( $excluded_files as $excluded_path ) { + $exclude_filters[] = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . untrailingslashit( $excluded_path ); + } + } + } + + // Create content list file + $content_list = ai1wm_open( ai1wm_content_list_path( $params ), 'w' ); + + // Enumerate over content directory + if ( isset( $params['options']['no_themes'], $params['options']['no_muplugins'], $params['options']['no_plugins'] ) === false ) { + + // Iterate over content directory + $iterator = new Ai1wm_Recursive_Directory_Iterator( WP_CONTENT_DIR ); + + // Exclude content files + $iterator = new Ai1wm_Recursive_Exclude_Filter( $iterator, apply_filters( 'ai1wm_exclude_content_from_export', ai1wm_content_filters( $exclude_filters ) ) ); + + // Recursively iterate over content directory + $iterator = new Ai1wm_Recursive_Iterator_Iterator( $iterator, RecursiveIteratorIterator::LEAVES_ONLY, RecursiveIteratorIterator::CATCH_GET_CHILD ); + + // Write path line + foreach ( $iterator as $item ) { + if ( $item->isFile() ) { + if ( ai1wm_putcsv( $content_list, array( $iterator->getPathname(), $iterator->getSubPathname(), $iterator->getSize(), $iterator->getMTime() ) ) ) { + $total_content_files_count++; + + // Add current file size + $total_content_files_size += $iterator->getSize(); + } + } + } + } + + // Set progress + Ai1wm_Status::info( __( 'Content files gathered.', 'all-in-one-wp-migration' ) ); + + // Set total content files count + $params['total_content_files_count'] = $total_content_files_count; + + // Set total content files size + $params['total_content_files_size'] = $total_content_files_size; + + // Close the content list file + ai1wm_close( $content_list ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-media.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-media.php new file mode 100644 index 0000000..bbe4f55 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-media.php @@ -0,0 +1,108 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Enumerate_Media { + + public static function execute( $params ) { + + $exclude_filters = array(); + + // Get total media files count + if ( isset( $params['total_media_files_count'] ) ) { + $total_media_files_count = (int) $params['total_media_files_count']; + } else { + $total_media_files_count = 1; + } + + // Get total media files size + if ( isset( $params['total_media_files_size'] ) ) { + $total_media_files_size = (int) $params['total_media_files_size']; + } else { + $total_media_files_size = 1; + } + + // Set progress + Ai1wm_Status::info( __( 'Gathering media files...', 'all-in-one-wp-migration' ) ); + + // Exclude selected files + if ( isset( $params['options']['exclude_files'], $params['excluded_files'] ) ) { + if ( ( $excluded_files = explode( ',', $params['excluded_files'] ) ) ) { + foreach ( $excluded_files as $excluded_path ) { + $exclude_filters[] = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . untrailingslashit( $excluded_path ); + } + } + } + + // Create media list file + $media_list = ai1wm_open( ai1wm_media_list_path( $params ), 'w' ); + + // Enumerate over media directory + if ( isset( $params['options']['no_media'] ) === false ) { + if ( is_dir( ai1wm_get_uploads_dir() ) ) { + + // Iterate over media directory + $iterator = new Ai1wm_Recursive_Directory_Iterator( ai1wm_get_uploads_dir() ); + + // Exclude media files + $iterator = new Ai1wm_Recursive_Exclude_Filter( $iterator, apply_filters( 'ai1wm_exclude_media_from_export', ai1wm_media_filters( $exclude_filters ) ) ); + + // Recursively iterate over content directory + $iterator = new Ai1wm_Recursive_Iterator_Iterator( $iterator, RecursiveIteratorIterator::LEAVES_ONLY, RecursiveIteratorIterator::CATCH_GET_CHILD ); + + // Write path line + foreach ( $iterator as $item ) { + if ( $item->isFile() ) { + if ( ai1wm_putcsv( $media_list, array( $iterator->getPathname(), $iterator->getSubPathname(), $iterator->getSize(), $iterator->getMTime() ) ) ) { + $total_media_files_count++; + + // Add current file size + $total_media_files_size += $iterator->getSize(); + } + } + } + } + } + + // Set progress + Ai1wm_Status::info( __( 'Media files gathered.', 'all-in-one-wp-migration' ) ); + + // Set total media files count + $params['total_media_files_count'] = $total_media_files_count; + + // Set total media files size + $params['total_media_files_size'] = $total_media_files_size; + + // Close the media list file + ai1wm_close( $media_list ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-plugins.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-plugins.php new file mode 100644 index 0000000..7137f50 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-plugins.php @@ -0,0 +1,115 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Enumerate_Plugins { + + public static function execute( $params ) { + + $exclude_filters = array( AI1WM_SQLITE_DATABASE_INTEGRATION_NAME ); + + // Get total plugins files count + if ( isset( $params['total_plugins_files_count'] ) ) { + $total_plugins_files_count = (int) $params['total_plugins_files_count']; + } else { + $total_plugins_files_count = 1; + } + + // Get total plugins files size + if ( isset( $params['total_plugins_files_size'] ) ) { + $total_plugins_files_size = (int) $params['total_plugins_files_size']; + } else { + $total_plugins_files_size = 1; + } + + // Set progress + Ai1wm_Status::info( __( 'Gathering plugin files...', 'all-in-one-wp-migration' ) ); + + // Exclude inactive plugins + if ( isset( $params['options']['no_inactive_plugins'] ) ) { + foreach ( get_plugins() as $plugin_name => $plugin_info ) { + if ( is_plugin_inactive( $plugin_name ) ) { + $exclude_filters[] = ( dirname( $plugin_name ) === '.' ? basename( $plugin_name ) : dirname( $plugin_name ) ); + } + } + } + + // Exclude selected files + if ( isset( $params['options']['exclude_files'], $params['excluded_files'] ) ) { + if ( ( $excluded_files = explode( ',', $params['excluded_files'] ) ) ) { + foreach ( $excluded_files as $excluded_path ) { + $exclude_filters[] = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . untrailingslashit( $excluded_path ); + } + } + } + + // Create plugins list file + $plugins_list = ai1wm_open( ai1wm_plugins_list_path( $params ), 'w' ); + + // Enumerate over plugins directory + if ( isset( $params['options']['no_plugins'] ) === false ) { + + // Iterate over plugins directory + $iterator = new Ai1wm_Recursive_Directory_Iterator( ai1wm_get_plugins_dir() ); + + // Exclude plugins files + $iterator = new Ai1wm_Recursive_Exclude_Filter( $iterator, apply_filters( 'ai1wm_exclude_plugins_from_export', ai1wm_plugin_filters( $exclude_filters ) ) ); + + // Recursively iterate over plugins directory + $iterator = new Ai1wm_Recursive_Iterator_Iterator( $iterator, RecursiveIteratorIterator::LEAVES_ONLY, RecursiveIteratorIterator::CATCH_GET_CHILD ); + + // Write path line + foreach ( $iterator as $item ) { + if ( $item->isFile() ) { + if ( ai1wm_putcsv( $plugins_list, array( $iterator->getPathname(), $iterator->getSubPathname(), $iterator->getSize(), $iterator->getMTime() ) ) ) { + $total_plugins_files_count++; + + // Add current file size + $total_plugins_files_size += $iterator->getSize(); + } + } + } + } + + // Set progress + Ai1wm_Status::info( __( 'Plugin files gathered.', 'all-in-one-wp-migration' ) ); + + // Set total plugins files count + $params['total_plugins_files_count'] = $total_plugins_files_count; + + // Set total plugins files size + $params['total_plugins_files_size'] = $total_plugins_files_size; + + // Close the plugins list file + ai1wm_close( $plugins_list ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-tables.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-tables.php new file mode 100644 index 0000000..740a341 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-tables.php @@ -0,0 +1,99 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Enumerate_Tables { + + public static function execute( $params ) { + // Set exclude database + if ( isset( $params['options']['no_database'] ) ) { + return $params; + } + + // Get total tables count + if ( isset( $params['total_tables_count'] ) ) { + $total_tables_count = (int) $params['total_tables_count']; + } else { + $total_tables_count = 1; + } + + // Set progress + Ai1wm_Status::info( __( 'Gathering database tables...', 'all-in-one-wp-migration' ) ); + + // Get database client + $db_client = Ai1wm_Database_Utility::get_client(); + + // Include table prefixes + if ( ai1wm_table_prefix() ) { + $db_client->add_table_prefix_filter( ai1wm_table_prefix() ); + + // Include table prefixes (Webba Booking and CiviCRM) + foreach ( array( 'wbk_', 'civicrm_' ) as $table_name ) { + $db_client->add_table_prefix_filter( $table_name ); + } + } + + // Create tables list file + $tables_list = ai1wm_open( ai1wm_tables_list_path( $params ), 'w' ); + + // Exclude selected db tables + $excluded_db_tables = array(); + if ( isset( $params['options']['exclude_db_tables'], $params['excluded_db_tables'] ) ) { + $excluded_db_tables = explode( ',', $params['excluded_db_tables'] ); + } + + // Write table line + foreach ( $db_client->get_tables() as $table_name ) { + if ( ! in_array( $table_name, $excluded_db_tables ) && ai1wm_putcsv( $tables_list, array( $table_name ) ) ) { + $total_tables_count++; + } + } + + // Include selected db tables + if ( isset( $params['options']['include_db_tables'] ) && ! empty( $params['included_db_tables'] ) ) { + foreach ( explode( ',', $params['included_db_tables'] ) as $table_name ) { + if ( ai1wm_putcsv( $tables_list, array( $table_name ) ) ) { + $total_tables_count++; + } + } + } + + // Set progress + Ai1wm_Status::info( __( 'Database tables gathered.', 'all-in-one-wp-migration' ) ); + + // Set total tables count + $params['total_tables_count'] = $total_tables_count; + + // Close the tables list file + ai1wm_close( $tables_list ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-themes.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-themes.php new file mode 100644 index 0000000..485f421 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-enumerate-themes.php @@ -0,0 +1,121 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Enumerate_Themes { + + public static function execute( $params ) { + + $exclude_filters = array(); + + // Get total themes files count + if ( isset( $params['total_themes_files_count'] ) ) { + $total_themes_files_count = (int) $params['total_themes_files_count']; + } else { + $total_themes_files_count = 1; + } + + // Get total themes files size + if ( isset( $params['total_themes_files_size'] ) ) { + $total_themes_files_size = (int) $params['total_themes_files_size']; + } else { + $total_themes_files_size = 1; + } + + // Set progress + Ai1wm_Status::info( __( 'Gathering theme files...', 'all-in-one-wp-migration' ) ); + + // Exclude inactive themes + if ( isset( $params['options']['no_inactive_themes'] ) ) { + foreach ( search_theme_directories() as $theme_name => $theme_info ) { + if ( ! in_array( $theme_name, array( get_template(), get_stylesheet() ) ) ) { + if ( isset( $theme_info['theme_root'] ) ) { + $exclude_filters[] = $theme_info['theme_root'] . DIRECTORY_SEPARATOR . $theme_name; + } + } + } + } + + // Exclude selected files + if ( isset( $params['options']['exclude_files'], $params['excluded_files'] ) ) { + if ( ( $excluded_files = explode( ',', $params['excluded_files'] ) ) ) { + foreach ( $excluded_files as $excluded_path ) { + $exclude_filters[] = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . untrailingslashit( $excluded_path ); + } + } + } + + // Create themes list file + $themes_list = ai1wm_open( ai1wm_themes_list_path( $params ), 'w' ); + + // Enumerate over themes directory + if ( isset( $params['options']['no_themes'] ) === false ) { + foreach ( ai1wm_get_themes_dirs() as $theme_dir ) { + if ( is_dir( $theme_dir ) ) { + + // Iterate over themes directory + $iterator = new Ai1wm_Recursive_Directory_Iterator( $theme_dir ); + + // Exclude themes files + $iterator = new Ai1wm_Recursive_Exclude_Filter( $iterator, apply_filters( 'ai1wm_exclude_themes_from_export', ai1wm_theme_filters( $exclude_filters ) ) ); + + // Recursively iterate over themes directory + $iterator = new Ai1wm_Recursive_Iterator_Iterator( $iterator, RecursiveIteratorIterator::LEAVES_ONLY, RecursiveIteratorIterator::CATCH_GET_CHILD ); + + // Write path line + foreach ( $iterator as $item ) { + if ( $item->isFile() ) { + if ( ai1wm_putcsv( $themes_list, array( $iterator->getPathname(), $iterator->getSubPathname(), $iterator->getSize(), $iterator->getMTime() ) ) ) { + $total_themes_files_count++; + + // Add current file size + $total_themes_files_size += $iterator->getSize(); + } + } + } + } + } + } + + // Set progress + Ai1wm_Status::info( __( 'Theme files gathered.', 'all-in-one-wp-migration' ) ); + + // Set total themes files count + $params['total_themes_files_count'] = $total_themes_files_count; + + // Set total themes files size + $params['total_themes_files_size'] = $total_themes_files_size; + + // Close the themes list file + ai1wm_close( $themes_list ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-init.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-init.php new file mode 100644 index 0000000..bfe9abe --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-init.php @@ -0,0 +1,61 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Init { + + public static function execute( $params ) { + $blog_id = null; + + // Get subsite Blog ID + if ( isset( $params['options']['sites'] ) && ( $sites = $params['options']['sites'] ) ) { + if ( count( $sites ) === 1 ) { + $blog_id = array_shift( $sites ); + } + } + + do_action( 'ai1wm_status_export_init', $params ); + + // Set progress + Ai1wm_Status::info( __( 'Preparing to export...', 'all-in-one-wp-migration' ) ); + + // Set archive + if ( empty( $params['archive'] ) ) { + $params['archive'] = ai1wm_archive_file( $blog_id ); + } + + // Set storage + if ( empty( $params['storage'] ) ) { + $params['storage'] = ai1wm_storage_folder(); + } + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-media.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-media.php new file mode 100644 index 0000000..e15ed7f --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-media.php @@ -0,0 +1,239 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Media { + + public static function execute( $params ) { + + // Set encrypt password + $encrypt_password = null; + if ( isset( $params['options']['encrypt_backups'], $params['options']['encrypt_password'] ) ) { + $encrypt_password = $params['options']['encrypt_password']; + } + + // Set compression type + $compression_type = null; + if ( isset( $params['options']['compression_type'] ) ) { + $compression_type = $params['options']['compression_type']; + } + + // Set archive bytes offset + if ( isset( $params['archive_bytes_offset'] ) ) { + $archive_bytes_offset = (int) $params['archive_bytes_offset']; + } else { + $archive_bytes_offset = ai1wm_archive_bytes( $params ); + } + + // Set file bytes offset + if ( isset( $params['file_bytes_offset'] ) ) { + $file_bytes_offset = (int) $params['file_bytes_offset']; + } else { + $file_bytes_offset = 0; + } + + // Set file bytes written + if ( isset( $params['file_bytes_written'] ) ) { + $file_bytes_written = (int) $params['file_bytes_written']; + } else { + $file_bytes_written = 0; + } + + // Set media bytes offset + if ( isset( $params['media_bytes_offset'] ) ) { + $media_bytes_offset = (int) $params['media_bytes_offset']; + } else { + $media_bytes_offset = 0; + } + + // Get processed files size + if ( isset( $params['processed_files_size'] ) ) { + $processed_files_size = (int) $params['processed_files_size']; + } else { + $processed_files_size = 0; + } + + // Get total media files size + if ( isset( $params['total_media_files_size'] ) ) { + $total_media_files_size = (int) $params['total_media_files_size']; + } else { + $total_media_files_size = 1; + } + + // Get total media files count + if ( isset( $params['total_media_files_count'] ) ) { + $total_media_files_count = (int) $params['total_media_files_count']; + } else { + $total_media_files_count = 1; + } + + // Set file CRC + if ( isset( $params['file_crc'] ) ) { + $file_crc = $params['file_crc']; + } else { + $file_crc = null; + } + + // What percent of files have we processed? + $progress = (int) min( ( $processed_files_size / $total_media_files_size ) * 100, 100 ); + + // Set progress + /* translators: 1: Number of files, 2: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Archiving %1$d media files...
%2$d%% complete', 'all-in-one-wp-migration' ), $total_media_files_count, $progress ) ); + + // Flag to hold if file data has been processed + $completed = true; + + // Start time + $start = microtime( true ); + + // Get media list file + $media_list = ai1wm_open( ai1wm_media_list_path( $params ), 'r' ); + + // Set the file pointer at the current index + if ( fseek( $media_list, $media_bytes_offset ) !== -1 ) { + + // Open the archive file for writing + $archive = new Ai1wm_Compressor( ai1wm_archive_path( $params ), $encrypt_password, $compression_type ); + + // Set the file pointer to the one that we have saved + $archive->set_file_pointer( $archive_bytes_offset ); + + // Loop over files + while ( ( $row = ai1wm_getcsv( $media_list ) ) !== false ) { + list( $file_abspath, $file_relpath, $file_size, $file_mtime ) = $row; + $file_bytes_read = 0; + + // Add file to archive + if ( ( $completed = $archive->add_file( $file_abspath, 'uploads' . DIRECTORY_SEPARATOR . $file_relpath, $file_bytes_read, $file_bytes_offset, $file_bytes_written, $file_crc ) ) ) { + $file_crc = null; + + // Reset file bytes + $file_bytes_offset = $file_bytes_written = 0; + + // Get media bytes offset + $media_bytes_offset = ftell( $media_list ); + } + + // Increment processed files size + $processed_files_size += $file_bytes_read; + + // What percent of files have we processed? + $progress = (int) min( ( $processed_files_size / $total_media_files_size ) * 100, 100 ); + + // Set progress + /* translators: 1: Number of files, 2: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Archiving %1$d media files...
%2$d%% complete', 'all-in-one-wp-migration' ), $total_media_files_count, $progress ) ); + + // More than 10 seconds have passed, break and do another request + if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { + if ( ( microtime( true ) - $start ) > $timeout ) { + $completed = false; + break; + } + } + } + + // Get archive bytes offset + $archive_bytes_offset = $archive->get_file_pointer(); + + // Truncate the archive file + $archive->truncate(); + + // Close the archive file + $archive->close(); + } + + // End of the media list? + if ( feof( $media_list ) ) { + + // Unset archive bytes offset + unset( $params['archive_bytes_offset'] ); + + // Unset file bytes offset + unset( $params['file_bytes_offset'] ); + + // Unset file bytes written + unset( $params['file_bytes_written'] ); + + // Unset media bytes offset + unset( $params['media_bytes_offset'] ); + + // Unset processed files size + unset( $params['processed_files_size'] ); + + // Unset total media files size + unset( $params['total_media_files_size'] ); + + // Unset total media files count + unset( $params['total_media_files_count'] ); + + // Unset file CRC + unset( $params['file_crc'] ); + + // Unset completed flag + unset( $params['completed'] ); + + } else { + + // Set archive bytes offset + $params['archive_bytes_offset'] = $archive_bytes_offset; + + // Set file bytes offset + $params['file_bytes_offset'] = $file_bytes_offset; + + // Set file bytes written + $params['file_bytes_written'] = $file_bytes_written; + + // Set media bytes offset + $params['media_bytes_offset'] = $media_bytes_offset; + + // Set processed files size + $params['processed_files_size'] = $processed_files_size; + + // Set total media files size + $params['total_media_files_size'] = $total_media_files_size; + + // Set total media files count + $params['total_media_files_count'] = $total_media_files_count; + + // Set file CRC + $params['file_crc'] = $file_crc; + + // Set completed flag + $params['completed'] = $completed; + } + + // Close the media list file + ai1wm_close( $media_list ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-plugins.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-plugins.php new file mode 100644 index 0000000..506ca76 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-plugins.php @@ -0,0 +1,239 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Plugins { + + public static function execute( $params ) { + + // Set encrypt password + $encrypt_password = null; + if ( isset( $params['options']['encrypt_backups'], $params['options']['encrypt_password'] ) ) { + $encrypt_password = $params['options']['encrypt_password']; + } + + // Set compression type + $compression_type = null; + if ( isset( $params['options']['compression_type'] ) ) { + $compression_type = $params['options']['compression_type']; + } + + // Set archive bytes offset + if ( isset( $params['archive_bytes_offset'] ) ) { + $archive_bytes_offset = (int) $params['archive_bytes_offset']; + } else { + $archive_bytes_offset = ai1wm_archive_bytes( $params ); + } + + // Set file bytes offset + if ( isset( $params['file_bytes_offset'] ) ) { + $file_bytes_offset = (int) $params['file_bytes_offset']; + } else { + $file_bytes_offset = 0; + } + + // Set file bytes written + if ( isset( $params['file_bytes_written'] ) ) { + $file_bytes_written = (int) $params['file_bytes_written']; + } else { + $file_bytes_written = 0; + } + + // Set plugins bytes offset + if ( isset( $params['plugins_bytes_offset'] ) ) { + $plugins_bytes_offset = (int) $params['plugins_bytes_offset']; + } else { + $plugins_bytes_offset = 0; + } + + // Get processed files size + if ( isset( $params['processed_files_size'] ) ) { + $processed_files_size = (int) $params['processed_files_size']; + } else { + $processed_files_size = 0; + } + + // Get total plugins files size + if ( isset( $params['total_plugins_files_size'] ) ) { + $total_plugins_files_size = (int) $params['total_plugins_files_size']; + } else { + $total_plugins_files_size = 1; + } + + // Get total plugins files count + if ( isset( $params['total_plugins_files_count'] ) ) { + $total_plugins_files_count = (int) $params['total_plugins_files_count']; + } else { + $total_plugins_files_count = 1; + } + + // Set file CRC + if ( isset( $params['file_crc'] ) ) { + $file_crc = $params['file_crc']; + } else { + $file_crc = null; + } + + // What percent of files have we processed? + $progress = (int) min( ( $processed_files_size / $total_plugins_files_size ) * 100, 100 ); + + // Set progress + /* translators: 1: Number of files, 2: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Archiving %1$d plugin files...
%2$d%% complete', 'all-in-one-wp-migration' ), $total_plugins_files_count, $progress ) ); + + // Flag to hold if file data has been processed + $completed = true; + + // Start time + $start = microtime( true ); + + // Get plugins list file + $plugins_list = ai1wm_open( ai1wm_plugins_list_path( $params ), 'r' ); + + // Set the file pointer at the current index + if ( fseek( $plugins_list, $plugins_bytes_offset ) !== -1 ) { + + // Open the archive file for writing + $archive = new Ai1wm_Compressor( ai1wm_archive_path( $params ), $encrypt_password, $compression_type ); + + // Set the file pointer to the one that we have saved + $archive->set_file_pointer( $archive_bytes_offset ); + + // Loop over files + while ( ( $row = ai1wm_getcsv( $plugins_list ) ) !== false ) { + list( $file_abspath, $file_relpath, $file_size, $file_mtime ) = $row; + $file_bytes_read = 0; + + // Add file to archive + if ( ( $completed = $archive->add_file( $file_abspath, 'plugins' . DIRECTORY_SEPARATOR . $file_relpath, $file_bytes_read, $file_bytes_offset, $file_bytes_written, $file_crc ) ) ) { + $file_crc = null; + + // Reset file bytes + $file_bytes_offset = $file_bytes_written = 0; + + // Get plugins bytes offset + $plugins_bytes_offset = ftell( $plugins_list ); + } + + // Increment processed files size + $processed_files_size += $file_bytes_read; + + // What percent of files have we processed? + $progress = (int) min( ( $processed_files_size / $total_plugins_files_size ) * 100, 100 ); + + // Set progress + /* translators: 1: Number of files, 2: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Archiving %1$d plugin files...
%2$d%% complete', 'all-in-one-wp-migration' ), $total_plugins_files_count, $progress ) ); + + // More than 10 seconds have passed, break and do another request + if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { + if ( ( microtime( true ) - $start ) > $timeout ) { + $completed = false; + break; + } + } + } + + // Get archive bytes offset + $archive_bytes_offset = $archive->get_file_pointer(); + + // Truncate the archive file + $archive->truncate(); + + // Close the archive file + $archive->close(); + } + + // End of the plugins list? + if ( feof( $plugins_list ) ) { + + // Unset archive bytes offset + unset( $params['archive_bytes_offset'] ); + + // Unset file bytes offset + unset( $params['file_bytes_offset'] ); + + // Unset file bytes written + unset( $params['file_bytes_written'] ); + + // Unset plugins bytes offset + unset( $params['plugins_bytes_offset'] ); + + // Unset processed files size + unset( $params['processed_files_size'] ); + + // Unset total plugins files size + unset( $params['total_plugins_files_size'] ); + + // Unset total plugins files count + unset( $params['total_plugins_files_count'] ); + + // Unset file CRC + unset( $params['file_crc'] ); + + // Unset completed flag + unset( $params['completed'] ); + + } else { + + // Set archive bytes offset + $params['archive_bytes_offset'] = $archive_bytes_offset; + + // Set file bytes offset + $params['file_bytes_offset'] = $file_bytes_offset; + + // Set file bytes written + $params['file_bytes_written'] = $file_bytes_written; + + // Set plugins bytes offset + $params['plugins_bytes_offset'] = $plugins_bytes_offset; + + // Set processed files size + $params['processed_files_size'] = $processed_files_size; + + // Set total plugins files size + $params['total_plugins_files_size'] = $total_plugins_files_size; + + // Set total plugins files count + $params['total_plugins_files_count'] = $total_plugins_files_count; + + // Set file CRC + $params['file_crc'] = $file_crc; + + // Set completed flag + $params['completed'] = $completed; + } + + // Close the plugins list file + ai1wm_close( $plugins_list ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-themes.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-themes.php new file mode 100644 index 0000000..813e532 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-themes.php @@ -0,0 +1,239 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Export_Themes { + + public static function execute( $params ) { + + // Set encrypt password + $encrypt_password = null; + if ( isset( $params['options']['encrypt_backups'], $params['options']['encrypt_password'] ) ) { + $encrypt_password = $params['options']['encrypt_password']; + } + + // Set compression type + $compression_type = null; + if ( isset( $params['options']['compression_type'] ) ) { + $compression_type = $params['options']['compression_type']; + } + + // Set archive bytes offset + if ( isset( $params['archive_bytes_offset'] ) ) { + $archive_bytes_offset = (int) $params['archive_bytes_offset']; + } else { + $archive_bytes_offset = ai1wm_archive_bytes( $params ); + } + + // Set file bytes offset + if ( isset( $params['file_bytes_offset'] ) ) { + $file_bytes_offset = (int) $params['file_bytes_offset']; + } else { + $file_bytes_offset = 0; + } + + // Set file bytes written + if ( isset( $params['file_bytes_written'] ) ) { + $file_bytes_written = (int) $params['file_bytes_written']; + } else { + $file_bytes_written = 0; + } + + // Set themes bytes offset + if ( isset( $params['themes_bytes_offset'] ) ) { + $themes_bytes_offset = (int) $params['themes_bytes_offset']; + } else { + $themes_bytes_offset = 0; + } + + // Get processed files size + if ( isset( $params['processed_files_size'] ) ) { + $processed_files_size = (int) $params['processed_files_size']; + } else { + $processed_files_size = 0; + } + + // Get total themes files size + if ( isset( $params['total_themes_files_size'] ) ) { + $total_themes_files_size = (int) $params['total_themes_files_size']; + } else { + $total_themes_files_size = 1; + } + + // Get total themes files count + if ( isset( $params['total_themes_files_count'] ) ) { + $total_themes_files_count = (int) $params['total_themes_files_count']; + } else { + $total_themes_files_count = 1; + } + + // Set file CRC + if ( isset( $params['file_crc'] ) ) { + $file_crc = $params['file_crc']; + } else { + $file_crc = null; + } + + // What percent of files have we processed? + $progress = (int) min( ( $processed_files_size / $total_themes_files_size ) * 100, 100 ); + + // Set progress + /* translators: 1: Number of files, 2: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Archiving %1$d theme files...
%2$d%% complete', 'all-in-one-wp-migration' ), $total_themes_files_count, $progress ) ); + + // Flag to hold if file data has been processed + $completed = true; + + // Start time + $start = microtime( true ); + + // Get themes list file + $themes_list = ai1wm_open( ai1wm_themes_list_path( $params ), 'r' ); + + // Set the file pointer at the current index + if ( fseek( $themes_list, $themes_bytes_offset ) !== -1 ) { + + // Open the archive file for writing + $archive = new Ai1wm_Compressor( ai1wm_archive_path( $params ), $encrypt_password, $compression_type ); + + // Set the file pointer to the one that we have saved + $archive->set_file_pointer( $archive_bytes_offset ); + + // Loop over files + while ( ( $row = ai1wm_getcsv( $themes_list ) ) !== false ) { + list( $file_abspath, $file_relpath, $file_size, $file_mtime ) = $row; + $file_bytes_read = 0; + + // Add file to archive + if ( ( $completed = $archive->add_file( $file_abspath, 'themes' . DIRECTORY_SEPARATOR . $file_relpath, $file_bytes_read, $file_bytes_offset, $file_bytes_written, $file_crc ) ) ) { + $file_crc = null; + + // Reset file bytes + $file_bytes_offset = $file_bytes_written = 0; + + // Get themes bytes offset + $themes_bytes_offset = ftell( $themes_list ); + } + + // Increment processed files size + $processed_files_size += $file_bytes_read; + + // What percent of files have we processed? + $progress = (int) min( ( $processed_files_size / $total_themes_files_size ) * 100, 100 ); + + // Set progress + /* translators: 1: Number of files, 2: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Archiving %1$d theme files...
%2$d%% complete', 'all-in-one-wp-migration' ), $total_themes_files_count, $progress ) ); + + // More than 10 seconds have passed, break and do another request + if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { + if ( ( microtime( true ) - $start ) > $timeout ) { + $completed = false; + break; + } + } + } + + // Get archive bytes offset + $archive_bytes_offset = $archive->get_file_pointer(); + + // Truncate the archive file + $archive->truncate(); + + // Close the archive file + $archive->close(); + } + + // End of the themes list? + if ( feof( $themes_list ) ) { + + // Unset archive bytes offset + unset( $params['archive_bytes_offset'] ); + + // Unset file bytes offset + unset( $params['file_bytes_offset'] ); + + // Unset file bytes written + unset( $params['file_bytes_written'] ); + + // Unset themes bytes offset + unset( $params['themes_bytes_offset'] ); + + // Unset processed files size + unset( $params['processed_files_size'] ); + + // Unset total themes files size + unset( $params['total_themes_files_size'] ); + + // Unset total themes files count + unset( $params['total_themes_files_count'] ); + + // Unset file CRC + unset( $params['file_crc'] ); + + // Unset completed flag + unset( $params['completed'] ); + + } else { + + // Set archive bytes offset + $params['archive_bytes_offset'] = $archive_bytes_offset; + + // Set file bytes offset + $params['file_bytes_offset'] = $file_bytes_offset; + + // Set file bytes written + $params['file_bytes_written'] = $file_bytes_written; + + // Set themes bytes offset + $params['themes_bytes_offset'] = $themes_bytes_offset; + + // Set processed files size + $params['processed_files_size'] = $processed_files_size; + + // Set total themes files size + $params['total_themes_files_size'] = $total_themes_files_size; + + // Set total themes files count + $params['total_themes_files_count'] = $total_themes_files_count; + + // Set file CRC + $params['file_crc'] = $file_crc; + + // Set completed flag + $params['completed'] = $completed; + } + + // Close the themes list file + ai1wm_close( $themes_list ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-blogs.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-blogs.php new file mode 100644 index 0000000..233ae3e --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-blogs.php @@ -0,0 +1,156 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Blogs { + + public static function execute( $params ) { + + // Set progress + Ai1wm_Status::info( __( 'Preparing blogs...', 'all-in-one-wp-migration' ) ); + + $blogs = array(); + + // Check multisite.json file + if ( true === is_file( ai1wm_multisite_path( $params ) ) ) { + + // Read multisite.json file + $handle = ai1wm_open( ai1wm_multisite_path( $params ), 'r' ); + + // Parse multisite.json file + $multisite = ai1wm_read( $handle, filesize( ai1wm_multisite_path( $params ) ) ); + $multisite = json_decode( $multisite, true ); + + // Close handle + ai1wm_close( $handle ); + + // Validate + if ( empty( $multisite['Network'] ) ) { + if ( isset( $multisite['Sites'] ) && ( $sites = $multisite['Sites'] ) ) { + if ( count( $sites ) === 1 && ( $subsite = current( $sites ) ) ) { + + // Set internal Site URL (backward compatibility) + if ( empty( $subsite['InternalSiteURL'] ) ) { + $subsite['InternalSiteURL'] = null; + } + + // Set internal Home URL (backward compatibility) + if ( empty( $subsite['InternalHomeURL'] ) ) { + $subsite['InternalHomeURL'] = null; + } + + // Set active plugins (backward compatibility) + if ( empty( $subsite['Plugins'] ) ) { + $subsite['Plugins'] = array(); + } + + // Set active template (backward compatibility) + if ( empty( $subsite['Template'] ) ) { + $subsite['Template'] = null; + } + + // Set active stylesheet (backward compatibility) + if ( empty( $subsite['Stylesheet'] ) ) { + $subsite['Stylesheet'] = null; + } + + // Set uploads path (backward compatibility) + if ( empty( $subsite['Uploads'] ) ) { + $subsite['Uploads'] = null; + } + + // Set uploads URL path (backward compatibility) + if ( empty( $subsite['UploadsURL'] ) ) { + $subsite['UploadsURL'] = null; + } + + // Set uploads path (backward compatibility) + if ( empty( $subsite['WordPress']['Uploads'] ) ) { + $subsite['WordPress']['Uploads'] = null; + } + + // Set uploads URL path (backward compatibility) + if ( empty( $subsite['WordPress']['UploadsURL'] ) ) { + $subsite['WordPress']['UploadsURL'] = null; + } + + // Set blog items + $blogs[] = array( + 'Old' => array( + 'BlogID' => $subsite['BlogID'], + 'SiteURL' => $subsite['SiteURL'], + 'HomeURL' => $subsite['HomeURL'], + 'InternalSiteURL' => $subsite['InternalSiteURL'], + 'InternalHomeURL' => $subsite['InternalHomeURL'], + 'Plugins' => $subsite['Plugins'], + 'Template' => $subsite['Template'], + 'Stylesheet' => $subsite['Stylesheet'], + 'Uploads' => $subsite['Uploads'], + 'UploadsURL' => $subsite['UploadsURL'], + 'WordPress' => $subsite['WordPress'], + ), + 'New' => array( + 'BlogID' => null, + 'SiteURL' => site_url(), + 'HomeURL' => home_url(), + 'InternalSiteURL' => site_url(), + 'InternalHomeURL' => home_url(), + 'Plugins' => $subsite['Plugins'], + 'Template' => $subsite['Template'], + 'Stylesheet' => $subsite['Stylesheet'], + 'Uploads' => get_option( 'upload_path' ), + 'UploadsURL' => get_option( 'upload_url_path' ), + 'WordPress' => array( + 'UploadsURL' => ai1wm_get_uploads_url(), + ), + ), + ); + } else { + throw new Ai1wm_Import_Exception( esc_html__( 'The archive must contain only a single WordPress site. The process cannot continue. Please revisit your export settings.', 'all-in-one-wp-migration' ) ); + } + } else { + throw new Ai1wm_Import_Exception( esc_html__( 'The archive must contain at least one WordPress site. The process cannot continue. Please check your export settings.', 'all-in-one-wp-migration' ) ); + } + } else { + throw new Ai1wm_Import_Exception( esc_html__( 'Could not import a WordPress Network into a single WordPress site. The process cannot continue. Please check your import settings.', 'all-in-one-wp-migration' ) ); + } + } + + // Write blogs.json file + $handle = ai1wm_open( ai1wm_blogs_path( $params ), 'w' ); + ai1wm_write( $handle, json_encode( $blogs ) ); + ai1wm_close( $handle ); + + // Set progress + Ai1wm_Status::info( __( 'Blogs prepared.', 'all-in-one-wp-migration' ) ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-check-compression.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-check-compression.php new file mode 100644 index 0000000..5291449 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-check-compression.php @@ -0,0 +1,73 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Check_Compression { + + public static function execute( $params ) { + + // Read package.json file + $handle = ai1wm_open( ai1wm_package_path( $params ), 'r' ); + + // Parse package.json file + $package = ai1wm_read( $handle, filesize( ai1wm_package_path( $params ) ) ); + $package = json_decode( $package, true ); + + // Close handle + ai1wm_close( $handle ); + + // No compression provided + if ( empty( $package['Compression']['Enabled'] ) || empty( $package['Compression']['Type'] ) ) { + return $params; + } + + // Check if server supports decompression + if ( ! ai1wm_has_compression_type( $package['Compression']['Type'] ) ) { + throw new Ai1wm_Import_Exception( + wp_kses( + sprintf( + __( + 'Importing a compressed backup is not supported on this server. + Please ensure %s extension is enabled. Technical details', + 'all-in-one-wp-migration' + ), + $package['Compression']['Type'] + ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Set progres + Ai1wm_Status::info( __( 'Compressed backup detected. Compression will be handled automatically.', 'all-in-one-wp-migration' ) ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-check-encryption.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-check-encryption.php new file mode 100644 index 0000000..4585810 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-check-encryption.php @@ -0,0 +1,107 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Check_Encryption { + + public static function execute( $params ) { + + // Read package.json file + $handle = ai1wm_open( ai1wm_package_path( $params ), 'r' ); + + // Parse package.json file + $package = ai1wm_read( $handle, filesize( ai1wm_package_path( $params ) ) ); + $package = json_decode( $package, true ); + + // Close handle + ai1wm_close( $handle ); + + // No encryption provided + if ( empty( $package['Encrypted'] ) || empty( $package['EncryptedSignature'] ) ) { + return $params; + } + + // Check decryption support + if ( ! ai1wm_can_decrypt() ) { + if ( defined( 'WP_CLI' ) ) { + WP_CLI::error( __( 'Importing an encrypted backup is not supported on this server. The process cannot continue. Technical details: https://help.servmask.com/knowledgebase/unable-to-encrypt-and-decrypt-backups/', 'all-in-one-wp-migration' ) ); + } else { + Ai1wm_Status::server_cannot_decrypt( __( 'Importing an encrypted backup is not supported on this server. The process cannot continue. Technical details', 'all-in-one-wp-migration' ) ); + + // REST API: throw to halt the pipeline; controller preserves the status option + if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { + throw new Ai1wm_Not_Decryptable_Exception( 'server_cannot_decrypt' ); + } + + exit; + } + } + + // Get WP CLI decryption password + if ( defined( 'WP_CLI' ) ) { + $params['decryption_password'] = readline( __( 'Backup is encrypted. Please provide decryption password: ', 'all-in-one-wp-migration' ) ); + } + + // Validate decryption password + if ( ! empty( $params['decryption_password'] ) ) { + if ( ai1wm_is_decryption_password_valid( $package['EncryptedSignature'], $params['decryption_password'] ) ) { + + // Set progress + Ai1wm_Status::info( __( 'Decryption password validated.', 'all-in-one-wp-migration' ) ); + + return $params; + } + + $decryption_password_error = __( 'The decryption password is not valid. The process cannot continue.', 'all-in-one-wp-migration' ); + + if ( defined( 'WP_CLI' ) ) { + WP_CLI::error( $decryption_password_error ); + } else { + Ai1wm_Status::backup_is_encrypted( $decryption_password_error ); + + // REST API: throw to halt the pipeline; controller preserves the status option + if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { + throw new Ai1wm_Not_Decryptable_Exception( 'invalid_password' ); + } + + exit; + } + } + + Ai1wm_Status::backup_is_encrypted( null ); + + // REST API: throw to halt the pipeline; controller preserves the status option + if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { + throw new Ai1wm_Not_Decryptable_Exception( 'awaiting_password' ); + } + + exit; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-clean.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-clean.php new file mode 100644 index 0000000..d61f9cd --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-clean.php @@ -0,0 +1,60 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Clean { + + public static function execute( $params ) { + // Get database client + $db_client = Ai1wm_Database_Utility::get_client(); + + // Flush mainsite tables + $db_client->add_table_prefix_filter( ai1wm_table_prefix( 'mainsite' ) ); + $db_client->flush(); + + // Trigger import cancel action + if ( isset( $params['ai1wm_import_cancel'] ) ) { + do_action( 'ai1wm_status_import_canceled', $params ); + } else { + do_action( 'ai1wm_status_import_cleaned', $params ); + } + + // Delete storage files. The ai1wm_status_ option lingers so poll + // clients still see the terminal state; the daily cron sweeps it later. + Ai1wm_Directory::delete( ai1wm_storage_path( $params ) ); + + // Exit in console + if ( defined( 'WP_CLI' ) ) { + return $params; + } + + exit; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-compatibility.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-compatibility.php new file mode 100644 index 0000000..60bf6f0 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-compatibility.php @@ -0,0 +1,51 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Compatibility { + + public static function execute( $params ) { + do_action( 'ai1wm_status_import_start', $params ); + + // Set progress + Ai1wm_Status::info( __( 'Checking for compatibility...', 'all-in-one-wp-migration' ) ); + + // Get messages + $messages = Ai1wm_Compatibility::get( $params ); + + // Set messages + if ( empty( $messages ) ) { + return $params; + } + + // Error message + throw new Ai1wm_Compatibility_Exception( wp_kses( implode( $messages ), ai1wm_allowed_html_tags() ) ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-confirm.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-confirm.php new file mode 100644 index 0000000..6952247 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-confirm.php @@ -0,0 +1,141 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Confirm { + + public static function execute( $params ) { + + // Skip confirmation when auto-confirmed (REST API). Use !empty so a truthy + // value is required — isset() would also accept 0 / '' / false and bypass. + if ( ! empty( $params['ai1wm_confirmed'] ) ) { + return $params; + } + + $messages = array(); + + // Read package.json file + $handle = ai1wm_open( ai1wm_package_path( $params ), 'r' ); + + // Parse package.json file + $package = ai1wm_read( $handle, filesize( ai1wm_package_path( $params ) ) ); + $package = json_decode( $package, true ); + + // Close handle + ai1wm_close( $handle ); + + // Confirm message + if ( defined( 'WP_CLI' ) ) { + $messages[] = sprintf( + /* translators: Link to Unlimited Extension */ + __( + 'Importing this file will only replace matching content. Other items stay unchanged. + Need a full reset first? Try Reset Hub in our Unlimited Extension (%s). + Ensure you have a current backup. Proceed?', + 'all-in-one-wp-migration' + ), + 'https://servmask.com/products/unlimited-extension' + ); + } else { + $messages[] = sprintf( + /* translators: Link to Unlimited Extension */ + __( + 'Importing this file will only replace matching content. Other items stay unchanged. + Need a full reset first? Try Reset Hub in our Unlimited Extension.
+ Ensure you have a current backup. Proceed?', + 'all-in-one-wp-migration' + ), + 'https://servmask.com/products/unlimited-extension?utm_source=import-confirm&utm_medium=plugin&utm_campaign=ai1wm' + ); + } + + // Check compatibility of PHP versions + if ( isset( $package['PHP']['Version'] ) ) { + // Extract major and minor version numbers + $source_versions = explode( '.', $package['PHP']['Version'] ); + $target_versions = explode( '.', PHP_VERSION ); + + $source_major_version = intval( $source_versions[0] ); + $source_minor_version = intval( isset( $source_versions[1] ) ? $source_versions[1] : 0 ); + + $target_major_version = intval( $target_versions[0] ); + $target_minor_version = intval( isset( $target_versions[1] ) ? $target_versions[1] : 0 ); + + if ( $source_major_version !== $target_major_version ) { + $from_php = $source_major_version; + $to_php = $target_major_version; + } elseif ( $source_minor_version !== $target_minor_version ) { + $from_php = sprintf( '%s.%s', $source_major_version, $source_minor_version ); + $to_php = sprintf( '%s.%s', $target_major_version, $target_minor_version ); + } + + if ( isset( $from_php, $to_php ) ) { + if ( defined( 'WP_CLI' ) ) { + $messages[] = sprintf( + /* translators: 1: Source PHP version, 2: Target PHP version. */ + __( + 'Your backup is from a PHP %1$s but the site that you are importing to is PHP %2$s. + This could cause the import to fail. Technical details: https://help.servmask.com/knowledgebase/migrate-wordpress-from-php-5-to-php-7/', + 'all-in-one-wp-migration' + ), + $from_php, + $to_php + ); + } else { + $messages[] = sprintf( + '' . + /* translators: 1: Source PHP version, 2: Target PHP version. */ + __( + 'Your backup is from a PHP %1$s but the site that you are importing to is PHP %2$s. This could cause the import to fail. Technical details', + 'all-in-one-wp-migration' + ) . '', + $from_php, + $to_php + ); + } + } + } + + if ( defined( 'WP_CLI' ) ) { + $assoc_args = array(); + if ( isset( $params['cli_args'] ) ) { + $assoc_args = $params['cli_args']; + } + + WP_CLI::confirm( implode( PHP_EOL, $messages ), $assoc_args ); + + return $params; + } + + // Set progress + Ai1wm_Status::confirm( implode( $messages ) ); + exit; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-content.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-content.php new file mode 100644 index 0000000..2660f04 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-content.php @@ -0,0 +1,318 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Content { + + public static function execute( $params ) { + + // Set decryption password + $decryption_password = null; + if ( isset( $params['decryption_password'] ) ) { + $decryption_password = $params['decryption_password']; + } + + // Set archive bytes offset + if ( isset( $params['archive_bytes_offset'] ) ) { + $archive_bytes_offset = (int) $params['archive_bytes_offset']; + } else { + $archive_bytes_offset = 0; + } + + // Set file bytes offset + if ( isset( $params['file_bytes_offset'] ) ) { + $file_bytes_offset = (int) $params['file_bytes_offset']; + } else { + $file_bytes_offset = 0; + } + + // Set file bytes written + if ( isset( $params['file_bytes_written'] ) ) { + $file_bytes_written = (int) $params['file_bytes_written']; + } else { + $file_bytes_written = 0; + } + + // Get processed files size + if ( isset( $params['processed_files_size'] ) ) { + $processed_files_size = (int) $params['processed_files_size']; + } else { + $processed_files_size = 0; + } + + // Get total files size + if ( isset( $params['total_files_size'] ) ) { + $total_files_size = (int) $params['total_files_size']; + } else { + $total_files_size = 1; + } + + // Get total files count + if ( isset( $params['total_files_count'] ) ) { + $total_files_count = (int) $params['total_files_count']; + } else { + $total_files_count = 1; + } + + // Read blogs.json file + $handle = ai1wm_open( ai1wm_blogs_path( $params ), 'r' ); + + // Parse blogs.json file + $blogs = ai1wm_read( $handle, filesize( ai1wm_blogs_path( $params ) ) ); + $blogs = json_decode( $blogs, true ); + + // Close handle + ai1wm_close( $handle ); + + // Read package.json file + $handle = ai1wm_open( ai1wm_package_path( $params ), 'r' ); + + // Parse package.json file + $config = ai1wm_read( $handle, filesize( ai1wm_package_path( $params ) ) ); + $config = json_decode( $config, true ); + + // Close handle + ai1wm_close( $handle ); + + // What percent of files have we processed? + $progress = (int) min( ( $processed_files_size / $total_files_size ) * 100, 100 ); + + // Set progress + /* translators: 1: Number of files, 2: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Restoring %1$d files...
%2$d%% complete', 'all-in-one-wp-migration' ), $total_files_count, $progress ) ); + + // Flag to hold if file data has been processed + $completed = true; + + // Start time + $start = microtime( true ); + + // Get compression type + $compression_type = null; + if ( ! empty( $config['Compression']['Enabled'] ) ) { + $compression_type = $config['Compression']['Type']; + } + + // Open the archive file for reading + $archive = new Ai1wm_Extractor( ai1wm_archive_path( $params ), $decryption_password, $compression_type ); + + // Set the file pointer to the one that we have saved + $archive->set_file_pointer( $archive_bytes_offset ); + + $old_paths = array( 'plugins', 'themes' ); + $new_paths = array( ai1wm_get_plugins_dir(), get_theme_root() ); + + // Set extract paths + foreach ( $blogs as $blog ) { + if ( ai1wm_is_mainsite( $blog['Old']['BlogID'] ) === false ) { + if ( defined( 'UPLOADBLOGSDIR' ) ) { + // Old files dir style + $old_paths[] = ai1wm_blog_files_relpath( $blog['Old']['BlogID'] ); + $new_paths[] = ai1wm_blog_files_abspath( $blog['New']['BlogID'] ); + + // Old blogs.dir style + $old_paths[] = ai1wm_blog_blogsdir_relpath( $blog['Old']['BlogID'] ); + $new_paths[] = ai1wm_blog_blogsdir_abspath( $blog['New']['BlogID'] ); + + // New sites dir style + $old_paths[] = ai1wm_blog_sites_relpath( $blog['Old']['BlogID'] ); + $new_paths[] = ai1wm_blog_files_abspath( $blog['New']['BlogID'] ); + } else { + // Old files dir style + $old_paths[] = ai1wm_blog_files_relpath( $blog['Old']['BlogID'] ); + $new_paths[] = ai1wm_blog_sites_abspath( $blog['New']['BlogID'] ); + + // Old blogs.dir style + $old_paths[] = ai1wm_blog_blogsdir_relpath( $blog['Old']['BlogID'] ); + $new_paths[] = ai1wm_blog_sites_abspath( $blog['New']['BlogID'] ); + + // New sites dir style + $old_paths[] = ai1wm_blog_sites_relpath( $blog['Old']['BlogID'] ); + $new_paths[] = ai1wm_blog_sites_abspath( $blog['New']['BlogID'] ); + } + } + } + + // Set base site extract paths (should be added at the end of arrays) + foreach ( $blogs as $blog ) { + if ( ai1wm_is_mainsite( $blog['Old']['BlogID'] ) === true ) { + if ( defined( 'UPLOADBLOGSDIR' ) ) { + // Old files dir style + $old_paths[] = ai1wm_blog_files_relpath( $blog['Old']['BlogID'] ); + $new_paths[] = ai1wm_blog_files_abspath( $blog['New']['BlogID'] ); + + // Old blogs.dir style + $old_paths[] = ai1wm_blog_blogsdir_relpath( $blog['Old']['BlogID'] ); + $new_paths[] = ai1wm_blog_blogsdir_abspath( $blog['New']['BlogID'] ); + + // New sites dir style + $old_paths[] = ai1wm_blog_sites_relpath( $blog['Old']['BlogID'] ); + $new_paths[] = ai1wm_blog_files_abspath( $blog['New']['BlogID'] ); + } else { + // Old files dir style + $old_paths[] = ai1wm_blog_files_relpath( $blog['Old']['BlogID'] ); + $new_paths[] = ai1wm_blog_sites_abspath( $blog['New']['BlogID'] ); + + // Old blogs.dir style + $old_paths[] = ai1wm_blog_blogsdir_relpath( $blog['Old']['BlogID'] ); + $new_paths[] = ai1wm_blog_sites_abspath( $blog['New']['BlogID'] ); + + // New sites dir style + $old_paths[] = ai1wm_blog_sites_relpath( $blog['Old']['BlogID'] ); + $new_paths[] = ai1wm_blog_sites_abspath( $blog['New']['BlogID'] ); + } + } + } + + $old_paths[] = ai1wm_blog_sites_relpath(); + $new_paths[] = ai1wm_blog_sites_abspath(); + + while ( $archive->has_not_reached_eof() ) { + $file_bytes_read = 0; + + // Exclude WordPress files + $exclude_files = array_keys( _get_dropins() ); + + // Exclude plugin files + $exclude_files = array_merge( + $exclude_files, + array( + AI1WM_PACKAGE_NAME, + AI1WM_MULTISITE_NAME, + AI1WM_DATABASE_NAME, + AI1WM_MUPLUGINS_NAME, + ) + ); + + // Exclude theme files + $exclude_files = array_merge( $exclude_files, array( AI1WM_THEMES_FUNCTIONS_NAME ) ); + + // Exclude Elementor files + $exclude_files = array_merge( $exclude_files, array( AI1WM_ELEMENTOR_CSS_NAME ) ); + + // Exclude CiviCRM config, regenerable caches and temp files. These are + // environment specific and rebuilt on the destination, so restoring them + // would carry over the source paths, URLs and DB credentials. Real data + // under custom/, persist/ and ext/ is restored untouched. + $exclude_files = array_merge( + $exclude_files, + array( + AI1WM_CIVICRM_SETTINGS_NAME, + AI1WM_CIVICRM_TEMPLATES_C_NAME, + AI1WM_CIVICRM_CONFIG_AND_LOG_NAME, + AI1WM_CIVICRM_UPLOAD_NAME, + AI1WM_CIVICRM_DYNAMIC_NAME, + ) + ); + + // Exclude content extensions + $exclude_extensions = array( AI1WM_LESS_CACHE_EXTENSION, AI1WM_SQLITE_DATABASE_EXTENSION ); + + // Extract a file from archive to WP_CONTENT_DIR + if ( ( $completed = $archive->extract_one_file_to( WP_CONTENT_DIR, $exclude_files, $exclude_extensions, $old_paths, $new_paths, $file_bytes_read, $file_bytes_offset, $file_bytes_written ) ) ) { + $file_bytes_offset = $file_bytes_written = 0; + } + + // Get archive bytes offset + $archive_bytes_offset = $archive->get_file_pointer(); + + // Increment processed files size + $processed_files_size += $file_bytes_read; + + // What percent of files have we processed? + $progress = (int) min( ( $processed_files_size / $total_files_size ) * 100, 100 ); + + // Set progress + /* translators: 1: Number of files, 2: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Restoring %1$d files...
%2$d%% complete', 'all-in-one-wp-migration' ), $total_files_count, $progress ) ); + + // More than 10 seconds have passed, break and do another request + if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { + if ( ( microtime( true ) - $start ) > $timeout ) { + $completed = false; + break; + } + } + } + + // End of the archive? + if ( $archive->has_reached_eof() ) { + + // Unset archive bytes offset + unset( $params['archive_bytes_offset'] ); + + // Unset file bytes offset + unset( $params['file_bytes_offset'] ); + + // Unset file bytes written + unset( $params['file_bytes_written'] ); + + // Unset processed files size + unset( $params['processed_files_size'] ); + + // Unset total files size + unset( $params['total_files_size'] ); + + // Unset total files count + unset( $params['total_files_count'] ); + + // Unset completed flag + unset( $params['completed'] ); + + } else { + + // Set archive bytes offset + $params['archive_bytes_offset'] = $archive_bytes_offset; + + // Set file bytes offset + $params['file_bytes_offset'] = $file_bytes_offset; + + // Set file bytes written + $params['file_bytes_written'] = $file_bytes_written; + + // Set processed files size + $params['processed_files_size'] = $processed_files_size; + + // Set total files size + $params['total_files_size'] = $total_files_size; + + // Set total files count + $params['total_files_count'] = $total_files_count; + + // Set completed flag + $params['completed'] = $completed; + } + + // Close the archive file + $archive->close(); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-database-file.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-database-file.php new file mode 100644 index 0000000..1f6b9a5 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-database-file.php @@ -0,0 +1,165 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Database_File { + + public static function execute( $params ) { + + // Set decryption password + $decryption_password = null; + if ( isset( $params['decryption_password'] ) ) { + $decryption_password = $params['decryption_password']; + } + + // Set archive bytes offset + if ( isset( $params['archive_bytes_offset'] ) ) { + $archive_bytes_offset = (int) $params['archive_bytes_offset']; + } else { + $archive_bytes_offset = 0; + } + + // Set file bytes offset + if ( isset( $params['file_bytes_offset'] ) ) { + $file_bytes_offset = (int) $params['file_bytes_offset']; + } else { + $file_bytes_offset = 0; + } + + // Set file bytes written + if ( isset( $params['file_bytes_written'] ) ) { + $file_bytes_written = (int) $params['file_bytes_written']; + } else { + $file_bytes_written = 0; + } + + // Get total archive size + if ( isset( $params['total_archive_size'] ) ) { + $total_archive_size = (int) $params['total_archive_size']; + } else { + $total_archive_size = ai1wm_archive_bytes( $params ); + } + + // Read package.json file + $handle = ai1wm_open( ai1wm_package_path( $params ), 'r' ); + + // Parse package.json file + $config = ai1wm_read( $handle, filesize( ai1wm_package_path( $params ) ) ); + $config = json_decode( $config, true ); + + // Close handle + ai1wm_close( $handle ); + + // What percent of archive have we processed? + $progress = (int) min( ( $archive_bytes_offset / $total_archive_size ) * 100, 100 ); + + // Set progress + /* translators: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Unpacking database...
%d%% complete', 'all-in-one-wp-migration' ), $progress ) ); + + // Get compression type + $compression_type = null; + if ( ! empty( $config['Compression']['Enabled'] ) ) { + $compression_type = $config['Compression']['Type']; + } + + // Open the archive file for reading + $archive = new Ai1wm_Extractor( ai1wm_archive_path( $params ), $decryption_password, $compression_type ); + + // Set the file pointer to the one that we have saved + $archive->set_file_pointer( $archive_bytes_offset ); + + // Flag to hold if file data has been processed + $completed = true; + + if ( $archive->has_not_reached_eof() ) { + $file_bytes_read = 0; + + // Unpack database.sql file + if ( ( $completed = $archive->extract_by_files_array( ai1wm_storage_path( $params ), array( AI1WM_DATABASE_NAME ), array(), array(), $file_bytes_read, $file_bytes_offset, $file_bytes_written ) ) ) { + $file_bytes_offset = $file_bytes_written = 0; + } + + // Get archive bytes offset + $archive_bytes_offset = $archive->get_file_pointer(); + } + + // End of the archive? + if ( $archive->has_reached_eof() ) { + + // Set progress + Ai1wm_Status::info( __( 'Database unpacked.', 'all-in-one-wp-migration' ) ); + + // Unset archive bytes offset + unset( $params['archive_bytes_offset'] ); + + // Unset file bytes offset + unset( $params['file_bytes_offset'] ); + + // Unset file bytes written + unset( $params['file_bytes_written'] ); + + // Unset total archive size + unset( $params['total_archive_size'] ); + + // Unset completed flag + unset( $params['completed'] ); + + } else { + + // What percent of archive have we processed? + $progress = (int) min( ( $archive_bytes_offset / $total_archive_size ) * 100, 100 ); + + // Set progress + /* translators: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Unpacking database...
%d%% complete', 'all-in-one-wp-migration' ), $progress ) ); + + // Set archive bytes offset + $params['archive_bytes_offset'] = $archive_bytes_offset; + + // Set file bytes offset + $params['file_bytes_offset'] = $file_bytes_offset; + + // Set file bytes written + $params['file_bytes_written'] = $file_bytes_written; + + // Set total archive size + $params['total_archive_size'] = $total_archive_size; + + // Set completed flag + $params['completed'] = $completed; + } + + // Close the archive file + $archive->close(); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-database.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-database.php new file mode 100644 index 0000000..d505784 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-database.php @@ -0,0 +1,1093 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Database { + + public static function execute( $params ) { + global $wpdb; + + // Skip database import + if ( ! is_file( ai1wm_database_path( $params ) ) ) { + return $params; + } + + // Set query offset + if ( isset( $params['query_offset'] ) ) { + $query_offset = (int) $params['query_offset']; + } else { + $query_offset = 0; + } + + // Set total queries size + if ( isset( $params['total_queries_size'] ) ) { + $total_queries_size = (int) $params['total_queries_size']; + } else { + $total_queries_size = 1; + } + + // Read blogs.json file + $handle = ai1wm_open( ai1wm_blogs_path( $params ), 'r' ); + + // Parse blogs.json file + $blogs = ai1wm_read( $handle, filesize( ai1wm_blogs_path( $params ) ) ); + $blogs = json_decode( $blogs, true ); + + // Close handle + ai1wm_close( $handle ); + + // Read package.json file + $handle = ai1wm_open( ai1wm_package_path( $params ), 'r' ); + + // Parse package.json file + $config = ai1wm_read( $handle, filesize( ai1wm_package_path( $params ) ) ); + $config = json_decode( $config, true ); + + // Close handle + ai1wm_close( $handle ); + + // What percent of queries have we processed? + $progress = (int) ( ( $query_offset / $total_queries_size ) * 100 ); + + // Set progress + /* translators: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Restoring database...
%d%% complete', 'all-in-one-wp-migration' ), $progress ) ); + + $old_replace_values = $old_replace_raw_values = array(); + $new_replace_values = $new_replace_raw_values = array(); + + // Get Blog URLs + foreach ( $blogs as $blog ) { + + // Handle old and new sites dir style + if ( defined( 'UPLOADBLOGSDIR' ) ) { + + // Get plain Files Path + if ( ! in_array( ai1wm_blog_files_url( $blog['Old']['BlogID'] ), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_blog_files_url( $blog['Old']['BlogID'] ); + $new_replace_values[] = ai1wm_blog_files_url( $blog['New']['BlogID'] ); + } + + // Get URL encoded Files Path + if ( ! in_array( urlencode( ai1wm_blog_files_url( $blog['Old']['BlogID'] ) ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_blog_files_url( $blog['Old']['BlogID'] ) ); + $new_replace_values[] = urlencode( ai1wm_blog_files_url( $blog['New']['BlogID'] ) ); + } + + // Get URL raw encoded Files Path + if ( ! in_array( rawurlencode( ai1wm_blog_files_url( $blog['Old']['BlogID'] ) ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_blog_files_url( $blog['Old']['BlogID'] ) ); + $new_replace_values[] = rawurlencode( ai1wm_blog_files_url( $blog['New']['BlogID'] ) ); + } + + // Get JSON escaped Files Path + if ( ! in_array( addcslashes( ai1wm_blog_files_url( $blog['Old']['BlogID'] ), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_blog_files_url( $blog['Old']['BlogID'] ), '/' ); + $new_replace_values[] = addcslashes( ai1wm_blog_files_url( $blog['New']['BlogID'] ), '/' ); + } + + // Get plain Sites Path + if ( ! in_array( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_blog_sites_url( $blog['Old']['BlogID'] ); + $new_replace_values[] = ai1wm_blog_files_url( $blog['New']['BlogID'] ); + } + + // Get URL encoded Sites Path + if ( ! in_array( urlencode( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ) ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ) ); + $new_replace_values[] = urlencode( ai1wm_blog_files_url( $blog['New']['BlogID'] ) ); + } + + // Get URL raw encoded Sites Path + if ( ! in_array( rawurlencode( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ) ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ) ); + $new_replace_values[] = rawurlencode( ai1wm_blog_files_url( $blog['New']['BlogID'] ) ); + } + + // Get JSON escaped Sites Path + if ( ! in_array( addcslashes( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ), '/' ); + $new_replace_values[] = addcslashes( ai1wm_blog_files_url( $blog['New']['BlogID'] ), '/' ); + } + } else { + + // Get plain Files Path + if ( ! in_array( ai1wm_blog_files_url( $blog['Old']['BlogID'] ), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_blog_files_url( $blog['Old']['BlogID'] ); + $new_replace_values[] = ai1wm_blog_uploads_url( $blog['New']['BlogID'] ); + } + + // Get URL encoded Files Path + if ( ! in_array( urlencode( ai1wm_blog_files_url( $blog['Old']['BlogID'] ) ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_blog_files_url( $blog['Old']['BlogID'] ) ); + $new_replace_values[] = urlencode( ai1wm_blog_uploads_url( $blog['New']['BlogID'] ) ); + } + + // Get URL raw encoded Files Path + if ( ! in_array( rawurlencode( ai1wm_blog_files_url( $blog['Old']['BlogID'] ) ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_blog_files_url( $blog['Old']['BlogID'] ) ); + $new_replace_values[] = rawurlencode( ai1wm_blog_uploads_url( $blog['New']['BlogID'] ) ); + } + + // Get JSON escaped Files Path + if ( ! in_array( addcslashes( ai1wm_blog_files_url( $blog['Old']['BlogID'] ), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_blog_files_url( $blog['Old']['BlogID'] ), '/' ); + $new_replace_values[] = addcslashes( ai1wm_blog_uploads_url( $blog['New']['BlogID'] ), '/' ); + } + + // Get plain Sites Path + if ( ! in_array( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_blog_sites_url( $blog['Old']['BlogID'] ); + $new_replace_values[] = ai1wm_blog_uploads_url( $blog['New']['BlogID'] ); + } + + // Get URL encoded Sites Path + if ( ! in_array( urlencode( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ) ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ) ); + $new_replace_values[] = urlencode( ai1wm_blog_uploads_url( $blog['New']['BlogID'] ) ); + } + + // Get URL raw encoded Sites Path + if ( ! in_array( rawurlencode( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ) ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ) ); + $new_replace_values[] = rawurlencode( ai1wm_blog_uploads_url( $blog['New']['BlogID'] ) ); + } + + // Get JSON escaped Sites Path + if ( ! in_array( addcslashes( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_blog_sites_url( $blog['Old']['BlogID'] ), '/' ); + $new_replace_values[] = addcslashes( ai1wm_blog_uploads_url( $blog['New']['BlogID'] ), '/' ); + } + } + + $site_urls = array(); + + // Add Site URL + if ( ! empty( $blog['Old']['SiteURL'] ) ) { + $site_urls[] = $blog['Old']['SiteURL']; + } + + // Add Internal Site URL + if ( ! empty( $blog['Old']['InternalSiteURL'] ) ) { + if ( parse_url( $blog['Old']['InternalSiteURL'], PHP_URL_SCHEME ) && parse_url( $blog['Old']['InternalSiteURL'], PHP_URL_HOST ) ) { + $site_urls[] = $blog['Old']['InternalSiteURL']; + } + } + + // Get Site URL + foreach ( $site_urls as $site_url ) { + + // Get www URL + if ( stripos( $site_url, '//www.' ) !== false ) { + $site_url_www_inversion = str_ireplace( '//www.', '//', $site_url ); + } else { + $site_url_www_inversion = str_ireplace( '//', '//www.', $site_url ); + } + + // Replace Site URL + foreach ( array( $site_url, $site_url_www_inversion ) as $url ) { + + // Get domain + $old_domain = parse_url( $url, PHP_URL_HOST ); + $new_domain = parse_url( $blog['New']['SiteURL'], PHP_URL_HOST ); + + // Get path + $old_path = (string) parse_url( $url, PHP_URL_PATH ); + $new_path = (string) parse_url( $blog['New']['SiteURL'], PHP_URL_PATH ); + + // Get scheme + $new_scheme = parse_url( $blog['New']['SiteURL'], PHP_URL_SCHEME ); + + // Add domain and path + if ( ! in_array( sprintf( "'%s','%s'", $old_domain, trailingslashit( $old_path ) ), $old_replace_raw_values ) ) { + $old_replace_raw_values[] = sprintf( "'%s','%s'", $old_domain, trailingslashit( $old_path ) ); + $new_replace_raw_values[] = sprintf( "'%s','%s'", $new_domain, trailingslashit( $new_path ) ); + } + + // Add domain and path with single quote + if ( ! in_array( sprintf( "='%s%s", $old_domain, untrailingslashit( $old_path ) ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( "='%s%s", $old_domain, untrailingslashit( $old_path ) ); + $new_replace_values[] = sprintf( "='%s%s", $new_domain, untrailingslashit( $new_path ) ); + } + + // Add domain and path with double quote + if ( ! in_array( sprintf( '="%s%s', $old_domain, untrailingslashit( $old_path ) ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( '="%s%s', $old_domain, untrailingslashit( $old_path ) ); + $new_replace_values[] = sprintf( '="%s%s', $new_domain, untrailingslashit( $new_path ) ); + } + + // Add Site URL scheme + $old_schemes = array( 'http', 'https', '' ); + $new_schemes = array( $new_scheme, $new_scheme, '' ); + + // Replace Site URL scheme + for ( $i = 0; $i < count( $old_schemes ); $i++ ) { + + // Handle old and new sites dir style + if ( ! defined( 'UPLOADBLOGSDIR' ) ) { + + // Add plain Uploads URL + if ( ! in_array( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ); + $new_replace_values[] = ai1wm_url_scheme( $blog['New']['WordPress']['UploadsURL'], $new_schemes[ $i ] ); + } + + // Add URL encoded Uploads URL + if ( ! in_array( urlencode( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ) ); + $new_replace_values[] = urlencode( ai1wm_url_scheme( $blog['New']['WordPress']['UploadsURL'], $new_schemes[ $i ] ) ); + } + + // Add URL raw encoded Uploads URL + if ( ! in_array( rawurlencode( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ) ); + $new_replace_values[] = rawurlencode( ai1wm_url_scheme( $blog['New']['WordPress']['UploadsURL'], $new_schemes[ $i ] ) ); + } + + // Add JSON escaped Uploads URL + if ( ! in_array( addcslashes( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ), '/' ); + $new_replace_values[] = addcslashes( ai1wm_url_scheme( $blog['New']['WordPress']['UploadsURL'], $new_schemes[ $i ] ), '/' ); + } + } + + // Add plain Site URL + if ( ! in_array( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ); + $new_replace_values[] = ai1wm_url_scheme( untrailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ); + } + + // Add URL encoded Site URL + if ( ! in_array( urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ); + $new_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ) ); + } + + // Add URL raw encoded Site URL + if ( ! in_array( rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ); + $new_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ) ); + } + + // Add JSON escaped Site URL + if ( ! in_array( addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ); + $new_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $blog['New']['SiteURL'] ), $new_schemes[ $i ] ), '/' ); + } + } + + // Add email + if ( ! isset( $config['NoEmailReplace'] ) ) { + if ( ! in_array( sprintf( '@%s', $old_domain ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( '@%s', $old_domain ); + $new_replace_values[] = str_ireplace( '@www.', '@', sprintf( '@%s', $new_domain ) ); + } + } + } + } + + $home_urls = array(); + + // Add Home URL + if ( ! empty( $blog['Old']['HomeURL'] ) ) { + $home_urls[] = $blog['Old']['HomeURL']; + } + + // Add Internal Home URL + if ( ! empty( $blog['Old']['InternalHomeURL'] ) ) { + if ( parse_url( $blog['Old']['InternalHomeURL'], PHP_URL_SCHEME ) && parse_url( $blog['Old']['InternalHomeURL'], PHP_URL_HOST ) ) { + $home_urls[] = $blog['Old']['InternalHomeURL']; + } + } + + // Get Home URL + foreach ( $home_urls as $home_url ) { + + // Get www URL + if ( stripos( $home_url, '//www.' ) !== false ) { + $home_url_www_inversion = str_ireplace( '//www.', '//', $home_url ); + } else { + $home_url_www_inversion = str_ireplace( '//', '//www.', $home_url ); + } + + // Replace Home URL + foreach ( array( $home_url, $home_url_www_inversion ) as $url ) { + + // Get domain + $old_domain = parse_url( $url, PHP_URL_HOST ); + $new_domain = parse_url( $blog['New']['HomeURL'], PHP_URL_HOST ); + + // Get path + $old_path = (string) parse_url( $url, PHP_URL_PATH ); + $new_path = (string) parse_url( $blog['New']['HomeURL'], PHP_URL_PATH ); + + // Get scheme + $new_scheme = parse_url( $blog['New']['HomeURL'], PHP_URL_SCHEME ); + + // Add domain and path + if ( ! in_array( sprintf( "'%s','%s'", $old_domain, trailingslashit( $old_path ) ), $old_replace_raw_values ) ) { + $old_replace_raw_values[] = sprintf( "'%s','%s'", $old_domain, trailingslashit( $old_path ) ); + $new_replace_raw_values[] = sprintf( "'%s','%s'", $new_domain, trailingslashit( $new_path ) ); + } + + // Add domain and path with single quote + if ( ! in_array( sprintf( "='%s%s", $old_domain, untrailingslashit( $old_path ) ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( "='%s%s", $old_domain, untrailingslashit( $old_path ) ); + $new_replace_values[] = sprintf( "='%s%s", $new_domain, untrailingslashit( $new_path ) ); + } + + // Add domain and path with double quote + if ( ! in_array( sprintf( '="%s%s', $old_domain, untrailingslashit( $old_path ) ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( '="%s%s', $old_domain, untrailingslashit( $old_path ) ); + $new_replace_values[] = sprintf( '="%s%s', $new_domain, untrailingslashit( $new_path ) ); + } + + // Set Home URL scheme + $old_schemes = array( 'http', 'https', '' ); + $new_schemes = array( $new_scheme, $new_scheme, '' ); + + // Replace Home URL scheme + for ( $i = 0; $i < count( $old_schemes ); $i++ ) { + + // Handle old and new sites dir style + if ( ! defined( 'UPLOADBLOGSDIR' ) ) { + + // Add plain Uploads URL + if ( ! in_array( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ); + $new_replace_values[] = ai1wm_url_scheme( $blog['New']['WordPress']['UploadsURL'], $new_schemes[ $i ] ); + } + + // Add URL encoded Uploads URL + if ( ! in_array( urlencode( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ) ); + $new_replace_values[] = urlencode( ai1wm_url_scheme( $blog['New']['WordPress']['UploadsURL'], $new_schemes[ $i ] ) ); + } + + // Add URL raw encoded Uploads URL + if ( ! in_array( rawurlencode( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ) ); + $new_replace_values[] = rawurlencode( ai1wm_url_scheme( $blog['New']['WordPress']['UploadsURL'], $new_schemes[ $i ] ) ); + } + + // Add JSON escaped Uploads URL + if ( ! in_array( addcslashes( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_url_scheme( sprintf( '%s/files/', untrailingslashit( $url ) ), $old_schemes[ $i ] ), '/' ); + $new_replace_values[] = addcslashes( ai1wm_url_scheme( $blog['New']['WordPress']['UploadsURL'], $new_schemes[ $i ] ), '/' ); + } + } + + // Add plain Home URL + if ( ! in_array( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ); + $new_replace_values[] = ai1wm_url_scheme( untrailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ); + } + + // Add URL encoded Home URL + if ( ! in_array( urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ); + $new_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ) ); + } + + // Add URL raw encoded Home URL + if ( ! in_array( rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ); + $new_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ) ); + } + + // Add JSON escaped Home URL + if ( ! in_array( addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ); + $new_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $blog['New']['HomeURL'] ), $new_schemes[ $i ] ), '/' ); + } + } + + // Add email + if ( ! isset( $config['NoEmailReplace'] ) ) { + if ( ! in_array( sprintf( '@%s', $old_domain ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( '@%s', $old_domain ); + $new_replace_values[] = str_ireplace( '@www.', '@', sprintf( '@%s', $new_domain ) ); + } + } + } + } + + $uploads_urls = array(); + + // Add Uploads URL + if ( ! empty( $blog['Old']['WordPress']['UploadsURL'] ) ) { + $uploads_urls[] = $blog['Old']['WordPress']['UploadsURL']; + } + + // Get Uploads URL + foreach ( $uploads_urls as $uploads_url ) { + + // Get www URL + if ( stripos( $uploads_url, '//www.' ) !== false ) { + $uploads_url_www_inversion = str_ireplace( '//www.', '//', $uploads_url ); + } else { + $uploads_url_www_inversion = str_ireplace( '//', '//www.', $uploads_url ); + } + + // Replace Uploads URL + foreach ( array( $uploads_url, $uploads_url_www_inversion ) as $url ) { + + // Get path + $old_path = (string) parse_url( $url, PHP_URL_PATH ); + $new_path = (string) parse_url( $blog['New']['WordPress']['UploadsURL'], PHP_URL_PATH ); + + // Get scheme + $new_scheme = parse_url( $blog['New']['WordPress']['UploadsURL'], PHP_URL_SCHEME ); + + // Replace Uploads URL Path + if ( basename( $old_path ) ) { + + // Add path with single quote + if ( ! in_array( sprintf( "='%s", trailingslashit( $old_path ) ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( "='%s", trailingslashit( $old_path ) ); + $new_replace_values[] = sprintf( "='%s", trailingslashit( $new_path ) ); + } + + // Add path with double quote + if ( ! in_array( sprintf( '="%s', trailingslashit( $old_path ) ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( '="%s', trailingslashit( $old_path ) ); + $new_replace_values[] = sprintf( '="%s', trailingslashit( $new_path ) ); + } + } + + // Set Uploads URL scheme + $old_schemes = array( 'http', 'https', '' ); + $new_schemes = array( $new_scheme, $new_scheme, '' ); + + // Replace Uploads URL scheme + for ( $i = 0; $i < count( $old_schemes ); $i++ ) { + + // Add plain Uploads URL + if ( ! in_array( ai1wm_url_scheme( $url, $old_schemes[ $i ] ), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_url_scheme( $url, $old_schemes[ $i ] ); + $new_replace_values[] = ai1wm_url_scheme( $blog['New']['WordPress']['UploadsURL'], $new_schemes[ $i ] ); + } + + // Add URL encoded Uploads URL + if ( ! in_array( urlencode( ai1wm_url_scheme( $url, $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_url_scheme( $url, $old_schemes[ $i ] ) ); + $new_replace_values[] = urlencode( ai1wm_url_scheme( $blog['New']['WordPress']['UploadsURL'], $new_schemes[ $i ] ) ); + } + + // Add URL raw encoded Uploads URL + if ( ! in_array( rawurlencode( ai1wm_url_scheme( $url, $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_url_scheme( $url, $old_schemes[ $i ] ) ); + $new_replace_values[] = rawurlencode( ai1wm_url_scheme( $blog['New']['WordPress']['UploadsURL'], $new_schemes[ $i ] ) ); + } + + // Add JSON escaped Uploads URL + if ( ! in_array( addcslashes( ai1wm_url_scheme( $url, $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_url_scheme( $url, $old_schemes[ $i ] ), '/' ); + $new_replace_values[] = addcslashes( ai1wm_url_scheme( $blog['New']['WordPress']['UploadsURL'], $new_schemes[ $i ] ), '/' ); + } + } + } + } + } + + // Get plain Sites Path + if ( ! in_array( ai1wm_blog_sites_url(), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_blog_sites_url(); + $new_replace_values[] = ai1wm_blog_uploads_url(); + } + + // Get URL encoded Sites Path + if ( ! in_array( urlencode( ai1wm_blog_sites_url() ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_blog_sites_url() ); + $new_replace_values[] = urlencode( ai1wm_blog_uploads_url() ); + } + + // Get URL raw encoded Sites Path + if ( ! in_array( rawurlencode( ai1wm_blog_sites_url() ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_blog_sites_url() ); + $new_replace_values[] = rawurlencode( ai1wm_blog_uploads_url() ); + } + + // Get JSON escaped Sites Path + if ( ! in_array( addcslashes( ai1wm_blog_sites_url(), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_blog_sites_url(), '/' ); + $new_replace_values[] = addcslashes( ai1wm_blog_uploads_url(), '/' ); + } + + $site_urls = array(); + + // Add Site URL + if ( ! empty( $config['SiteURL'] ) ) { + $site_urls[] = $config['SiteURL']; + } + + // Add Internal Site URL + if ( ! empty( $config['InternalSiteURL'] ) ) { + if ( parse_url( $config['InternalSiteURL'], PHP_URL_SCHEME ) && parse_url( $config['InternalSiteURL'], PHP_URL_HOST ) ) { + $site_urls[] = $config['InternalSiteURL']; + } + } + + // Get Site URL + foreach ( $site_urls as $site_url ) { + + // Get www URL + if ( stripos( $site_url, '//www.' ) !== false ) { + $site_url_www_inversion = str_ireplace( '//www.', '//', $site_url ); + } else { + $site_url_www_inversion = str_ireplace( '//', '//www.', $site_url ); + } + + // Replace Site URL + foreach ( array( $site_url, $site_url_www_inversion ) as $url ) { + + // Get domain + $old_domain = parse_url( $url, PHP_URL_HOST ); + $new_domain = parse_url( site_url(), PHP_URL_HOST ); + + // Get path + $old_path = (string) parse_url( $url, PHP_URL_PATH ); + $new_path = (string) parse_url( site_url(), PHP_URL_PATH ); + + // Get scheme + $new_scheme = parse_url( site_url(), PHP_URL_SCHEME ); + + // Add domain and path + if ( ! in_array( sprintf( "'%s','%s'", $old_domain, trailingslashit( $old_path ) ), $old_replace_raw_values ) ) { + $old_replace_raw_values[] = sprintf( "'%s','%s'", $old_domain, trailingslashit( $old_path ) ); + $new_replace_raw_values[] = sprintf( "'%s','%s'", $new_domain, trailingslashit( $new_path ) ); + } + + // Add domain and path with single quote + if ( ! in_array( sprintf( "='%s%s", $old_domain, untrailingslashit( $old_path ) ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( "='%s%s", $old_domain, untrailingslashit( $old_path ) ); + $new_replace_values[] = sprintf( "='%s%s", $new_domain, untrailingslashit( $new_path ) ); + } + + // Add domain and path with double quote + if ( ! in_array( sprintf( '="%s%s', $old_domain, untrailingslashit( $old_path ) ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( '="%s%s', $old_domain, untrailingslashit( $old_path ) ); + $new_replace_values[] = sprintf( '="%s%s', $new_domain, untrailingslashit( $new_path ) ); + } + + // Set Site URL scheme + $old_schemes = array( 'http', 'https', '' ); + $new_schemes = array( $new_scheme, $new_scheme, '' ); + + // Replace Site URL scheme + for ( $i = 0; $i < count( $old_schemes ); $i++ ) { + + // Add plain Site URL + if ( ! in_array( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ); + $new_replace_values[] = ai1wm_url_scheme( untrailingslashit( site_url() ), $new_schemes[ $i ] ); + } + + // Add URL encoded Site URL + if ( ! in_array( urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ); + $new_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( site_url() ), $new_schemes[ $i ] ) ); + } + + // Add URL raw encoded Site URL + if ( ! in_array( rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ); + $new_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( site_url() ), $new_schemes[ $i ] ) ); + } + + // Add JSON escaped Site URL + if ( ! in_array( addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ); + $new_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( site_url() ), $new_schemes[ $i ] ), '/' ); + } + } + + // Add email + if ( ! isset( $config['NoEmailReplace'] ) ) { + if ( ! in_array( sprintf( '@%s', $old_domain ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( '@%s', $old_domain ); + $new_replace_values[] = str_ireplace( '@www.', '@', sprintf( '@%s', $new_domain ) ); + } + } + } + } + + $home_urls = array(); + + // Add Home URL + if ( ! empty( $config['HomeURL'] ) ) { + $home_urls[] = $config['HomeURL']; + } + + // Add Internal Home URL + if ( ! empty( $config['InternalHomeURL'] ) ) { + if ( parse_url( $config['InternalHomeURL'], PHP_URL_SCHEME ) && parse_url( $config['InternalHomeURL'], PHP_URL_HOST ) ) { + $home_urls[] = $config['InternalHomeURL']; + } + } + + // Get Home URL + foreach ( $home_urls as $home_url ) { + + // Get www URL + if ( stripos( $home_url, '//www.' ) !== false ) { + $home_url_www_inversion = str_ireplace( '//www.', '//', $home_url ); + } else { + $home_url_www_inversion = str_ireplace( '//', '//www.', $home_url ); + } + + // Replace Home URL + foreach ( array( $home_url, $home_url_www_inversion ) as $url ) { + + // Get domain + $old_domain = parse_url( $url, PHP_URL_HOST ); + $new_domain = parse_url( home_url(), PHP_URL_HOST ); + + // Get path + $old_path = (string) parse_url( $url, PHP_URL_PATH ); + $new_path = (string) parse_url( home_url(), PHP_URL_PATH ); + + // Get scheme + $new_scheme = parse_url( home_url(), PHP_URL_SCHEME ); + + // Add domain and path + if ( ! in_array( sprintf( "'%s','%s'", $old_domain, trailingslashit( $old_path ) ), $old_replace_raw_values ) ) { + $old_replace_raw_values[] = sprintf( "'%s','%s'", $old_domain, trailingslashit( $old_path ) ); + $new_replace_raw_values[] = sprintf( "'%s','%s'", $new_domain, trailingslashit( $new_path ) ); + } + + // Add domain and path with single quote + if ( ! in_array( sprintf( "='%s%s", $old_domain, untrailingslashit( $old_path ) ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( "='%s%s", $old_domain, untrailingslashit( $old_path ) ); + $new_replace_values[] = sprintf( "='%s%s", $new_domain, untrailingslashit( $new_path ) ); + } + + // Add domain and path with double quote + if ( ! in_array( sprintf( '="%s%s', $old_domain, untrailingslashit( $old_path ) ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( '="%s%s', $old_domain, untrailingslashit( $old_path ) ); + $new_replace_values[] = sprintf( '="%s%s', $new_domain, untrailingslashit( $new_path ) ); + } + + // Add Home URL scheme + $old_schemes = array( 'http', 'https', '' ); + $new_schemes = array( $new_scheme, $new_scheme, '' ); + + // Replace Home URL scheme + for ( $i = 0; $i < count( $old_schemes ); $i++ ) { + + // Add plain Home URL + if ( ! in_array( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ); + $new_replace_values[] = ai1wm_url_scheme( untrailingslashit( home_url() ), $new_schemes[ $i ] ); + } + + // Add URL encoded Home URL + if ( ! in_array( urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ); + $new_replace_values[] = urlencode( ai1wm_url_scheme( untrailingslashit( home_url() ), $new_schemes[ $i ] ) ); + } + + // Add URL raw encoded Home URL + if ( ! in_array( rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ) ); + $new_replace_values[] = rawurlencode( ai1wm_url_scheme( untrailingslashit( home_url() ), $new_schemes[ $i ] ) ); + } + + // Add JSON escaped Home URL + if ( ! in_array( addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( $url ), $old_schemes[ $i ] ), '/' ); + $new_replace_values[] = addcslashes( ai1wm_url_scheme( untrailingslashit( home_url() ), $new_schemes[ $i ] ), '/' ); + } + } + + // Add email + if ( ! isset( $config['NoEmailReplace'] ) ) { + if ( ! in_array( sprintf( '@%s', $old_domain ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( '@%s', $old_domain ); + $new_replace_values[] = str_ireplace( '@www.', '@', sprintf( '@%s', $new_domain ) ); + } + } + } + } + + $uploads_urls = array(); + + // Add Uploads URL + if ( ! empty( $config['WordPress']['UploadsURL'] ) ) { + $uploads_urls[] = $config['WordPress']['UploadsURL']; + } + + // Get Uploads URL + foreach ( $uploads_urls as $uploads_url ) { + + // Get www URL + if ( stripos( $uploads_url, '//www.' ) !== false ) { + $uploads_url_www_inversion = str_ireplace( '//www.', '//', $uploads_url ); + } else { + $uploads_url_www_inversion = str_ireplace( '//', '//www.', $uploads_url ); + } + + // Replace Uploads URL + foreach ( array( $uploads_url, $uploads_url_www_inversion ) as $url ) { + + // Get path + $old_path = (string) parse_url( $url, PHP_URL_PATH ); + $new_path = (string) parse_url( ai1wm_get_uploads_url(), PHP_URL_PATH ); + + // Get scheme + $new_scheme = parse_url( ai1wm_get_uploads_url(), PHP_URL_SCHEME ); + + // Replace Uploads URL Path + if ( basename( $old_path ) ) { + + // Add path with single quote + if ( ! in_array( sprintf( "='%s", trailingslashit( $old_path ) ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( "='%s", trailingslashit( $old_path ) ); + $new_replace_values[] = sprintf( "='%s", trailingslashit( $new_path ) ); + } + + // Add path with double quote + if ( ! in_array( sprintf( '="%s', trailingslashit( $old_path ) ), $old_replace_values ) ) { + $old_replace_values[] = sprintf( '="%s', trailingslashit( $old_path ) ); + $new_replace_values[] = sprintf( '="%s', trailingslashit( $new_path ) ); + } + } + + // Add Uploads URL scheme + $old_schemes = array( 'http', 'https', '' ); + $new_schemes = array( $new_scheme, $new_scheme, '' ); + + // Replace Uploads URL scheme + for ( $i = 0; $i < count( $old_schemes ); $i++ ) { + + // Add plain Uploads URL + if ( ! in_array( ai1wm_url_scheme( $url, $old_schemes[ $i ] ), $old_replace_values ) ) { + $old_replace_values[] = ai1wm_url_scheme( $url, $old_schemes[ $i ] ); + $new_replace_values[] = ai1wm_url_scheme( ai1wm_get_uploads_url(), $new_schemes[ $i ] ); + } + + // Add URL encoded Uploads URL + if ( ! in_array( urlencode( ai1wm_url_scheme( $url, $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( ai1wm_url_scheme( $url, $old_schemes[ $i ] ) ); + $new_replace_values[] = urlencode( ai1wm_url_scheme( ai1wm_get_uploads_url(), $new_schemes[ $i ] ) ); + } + + // Add URL raw encoded Uploads URL + if ( ! in_array( rawurlencode( ai1wm_url_scheme( $url, $old_schemes[ $i ] ) ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( ai1wm_url_scheme( $url, $old_schemes[ $i ] ) ); + $new_replace_values[] = rawurlencode( ai1wm_url_scheme( ai1wm_get_uploads_url(), $new_schemes[ $i ] ) ); + } + + // Add JSON escaped Uploads URL + if ( ! in_array( addcslashes( ai1wm_url_scheme( $url, $old_schemes[ $i ] ), '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( ai1wm_url_scheme( $url, $old_schemes[ $i ] ), '/' ); + $new_replace_values[] = addcslashes( ai1wm_url_scheme( ai1wm_get_uploads_url(), $new_schemes[ $i ] ), '/' ); + } + } + } + } + + // Get WordPress Absolute Path + if ( isset( $config['WordPress']['Absolute'] ) && ( $absolute_path = $config['WordPress']['Absolute'] ) ) { + + // Add plain WordPress Absolute + if ( ! in_array( $absolute_path, $old_replace_values ) ) { + $old_replace_values[] = $absolute_path; + $new_replace_values[] = ABSPATH; + } + + // Add URL encoded WordPress Absolute + if ( ! in_array( urlencode( $absolute_path ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( $absolute_path ); + $new_replace_values[] = urlencode( ABSPATH ); + } + + // Add URL raw encoded WordPress Absolute + if ( ! in_array( rawurlencode( $absolute_path ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( $absolute_path ); + $new_replace_values[] = rawurlencode( ABSPATH ); + } + + // Add JSON escaped WordPress Absolute + if ( ! in_array( addcslashes( $absolute_path, '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( $absolute_path, '/' ); + $new_replace_values[] = addcslashes( ABSPATH, '/' ); + } + } + + // Get WordPress Content Dir + if ( isset( $config['WordPress']['Content'] ) && ( $content_dir = $config['WordPress']['Content'] ) ) { + + // Add plain WordPress Content + if ( ! in_array( $content_dir, $old_replace_values ) ) { + $old_replace_values[] = $content_dir; + $new_replace_values[] = WP_CONTENT_DIR; + } + + // Add URL encoded WordPress Content + if ( ! in_array( urlencode( $content_dir ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( $content_dir ); + $new_replace_values[] = urlencode( WP_CONTENT_DIR ); + } + + // Add URL raw encoded WordPress Content + if ( ! in_array( rawurlencode( $content_dir ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( $content_dir ); + $new_replace_values[] = rawurlencode( WP_CONTENT_DIR ); + } + + // Add JSON escaped WordPress Content + if ( ! in_array( addcslashes( $content_dir, '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( $content_dir, '/' ); + $new_replace_values[] = addcslashes( WP_CONTENT_DIR, '/' ); + } + } + + // Get replace old and new values + if ( isset( $config['Replace'] ) && ( $replace = $config['Replace'] ) ) { + for ( $i = 0; $i < count( $replace['OldValues'] ); $i++ ) { + if ( ! empty( $replace['OldValues'][ $i ] ) && ! empty( $replace['NewValues'][ $i ] ) ) { + + // Add plain replace values + if ( ! in_array( $replace['OldValues'][ $i ], $old_replace_values ) ) { + $old_replace_values[] = $replace['OldValues'][ $i ]; + $new_replace_values[] = $replace['NewValues'][ $i ]; + } + + // Add URL encoded replace values + if ( ! in_array( urlencode( $replace['OldValues'][ $i ] ), $old_replace_values ) ) { + $old_replace_values[] = urlencode( $replace['OldValues'][ $i ] ); + $new_replace_values[] = urlencode( $replace['NewValues'][ $i ] ); + } + + // Add URL raw encoded replace values + if ( ! in_array( rawurlencode( $replace['OldValues'][ $i ] ), $old_replace_values ) ) { + $old_replace_values[] = rawurlencode( $replace['OldValues'][ $i ] ); + $new_replace_values[] = rawurlencode( $replace['NewValues'][ $i ] ); + } + + // Add JSON Escaped replace values + if ( ! in_array( addcslashes( $replace['OldValues'][ $i ], '/' ), $old_replace_values ) ) { + $old_replace_values[] = addcslashes( $replace['OldValues'][ $i ], '/' ); + $new_replace_values[] = addcslashes( $replace['NewValues'][ $i ], '/' ); + } + } + } + } + + // Get site URL + $site_url = get_option( AI1WM_SITE_URL ); + + // Get home URL + $home_url = get_option( AI1WM_HOME_URL ); + + // Get secret key + $secret_key = get_option( AI1WM_SECRET_KEY ); + + // Get HTTP user + $auth_user = get_option( AI1WM_AUTH_USER ); + + // Get HTTP password + $auth_password = get_option( AI1WM_AUTH_PASSWORD ); + + // Get auth header + $auth_header = get_option( AI1WM_AUTH_HEADER ); + + // Get Uploads Path + $uploads_path = get_option( AI1WM_UPLOADS_PATH ); + + // Get Uploads URL Path + $uploads_url_path = get_option( AI1WM_UPLOADS_URL_PATH ); + + // Get backups labels + $backups_labels = get_option( AI1WM_BACKUPS_LABELS, array() ); + + // Get sites links + $sites_links = get_option( AI1WM_SITES_LINKS, array() ); + + $old_table_prefixes = array(); + $new_table_prefixes = array(); + + // Set site table prefixes + foreach ( $blogs as $blog ) { + if ( ai1wm_is_mainsite( $blog['Old']['BlogID'] ) === false ) { + $old_table_prefixes[] = ai1wm_servmask_prefix( $blog['Old']['BlogID'] ); + $new_table_prefixes[] = ai1wm_table_prefix( $blog['New']['BlogID'] ); + } + } + + // Set global table prefixes + foreach ( $wpdb->global_tables as $table_name ) { + $old_table_prefixes[] = ai1wm_servmask_prefix( 'mainsite' ) . $table_name; + $new_table_prefixes[] = ai1wm_table_prefix() . $table_name; + } + + // Set BuddyPress table prefixes + if ( ai1wm_validate_plugin_basename( 'buddyboss-platform/bp-loader.php' ) || ai1wm_validate_plugin_basename( 'buddypress/bp-loader.php' ) ) { + foreach ( array( 'signups', 'bp_activity', 'bp_activity_meta', 'bp_friends', 'bp_groups', 'bp_groups_groupmeta', 'bp_groups_members', 'bp_invitations', 'bp_messages_messages', 'bp_messages_meta', 'bp_messages_notices', 'bp_messages_recipients', 'bp_notifications', 'bp_notifications_meta', 'bp_optouts', 'bp_user_blogs', 'bp_user_blogs_blogmeta', 'bp_xprofile_data', 'bp_xprofile_fields', 'bp_xprofile_groups', 'bp_xprofile_meta' ) as $table_name ) { + $old_table_prefixes[] = ai1wm_servmask_prefix( 'mainsite' ) . $table_name; + $new_table_prefixes[] = ai1wm_table_prefix() . $table_name; + } + } + + // Set base table prefixes + foreach ( $blogs as $blog ) { + if ( ai1wm_is_mainsite( $blog['Old']['BlogID'] ) === true ) { + $old_table_prefixes[] = ai1wm_servmask_prefix( 'basesite' ); + $new_table_prefixes[] = ai1wm_table_prefix( $blog['New']['BlogID'] ); + } + } + + // Set main table prefixes + foreach ( $blogs as $blog ) { + if ( ai1wm_is_mainsite( $blog['Old']['BlogID'] ) === true ) { + $old_table_prefixes[] = ai1wm_servmask_prefix( $blog['Old']['BlogID'] ); + $new_table_prefixes[] = ai1wm_table_prefix( $blog['New']['BlogID'] ); + } + } + + // Set table prefixes + $old_table_prefixes[] = ai1wm_servmask_prefix(); + $new_table_prefixes[] = ai1wm_table_prefix(); + + // Get database client + $db_client = Ai1wm_Database_Utility::get_client(); + + // Set database options + $db_client->set_old_table_prefixes( $old_table_prefixes ) + ->set_new_table_prefixes( $new_table_prefixes ) + ->set_old_replace_values( $old_replace_values ) + ->set_new_replace_values( $new_replace_values ) + ->set_old_replace_raw_values( $old_replace_raw_values ) + ->set_new_replace_raw_values( $new_replace_raw_values ); + + // Set atomic tables (do not stop current request for all listed tables if timeout has been exceeded) + $db_client->set_atomic_tables( array( ai1wm_table_prefix() . 'options' ) ); + + // Set empty tables (do not populate current data for all listed tables) + $db_client->set_empty_tables( array( ai1wm_table_prefix() . 'eum_logs' ) ); + + // Set Visual Composer + $db_client->set_visual_composer( ai1wm_validate_plugin_basename( 'js_composer/js_composer.php' ) ); + + // Set Oxygen Builder + $db_client->set_oxygen_builder( ai1wm_validate_plugin_basename( 'oxygen/functions.php' ) ); + + // Set Optimize Press + $db_client->set_optimize_press( ai1wm_validate_plugin_basename( 'optimizePressPlugin/optimizepress.php' ) ); + + // Set Avada Fusion Builder + $db_client->set_avada_fusion_builder( ai1wm_validate_plugin_basename( 'fusion-builder/fusion-builder.php' ) ); + + // Set BeTheme Responsive + $db_client->set_betheme_responsive( ai1wm_validate_theme_basename( 'betheme/style.css' ) ); + + // Import database + if ( $db_client->import( ai1wm_database_path( $params ), $query_offset ) ) { + + // Set progress + Ai1wm_Status::info( __( 'Database restored.', 'all-in-one-wp-migration' ) ); + + // Unset query offset + unset( $params['query_offset'] ); + + // Unset total queries size + unset( $params['total_queries_size'] ); + + // Unset completed flag + unset( $params['completed'] ); + + } else { + + // Get total queries size + $total_queries_size = ai1wm_database_bytes( $params ); + + // What percent of queries have we processed? + $progress = (int) ( ( $query_offset / $total_queries_size ) * 100 ); + + // Set progress + /* translators: Progress. */ + Ai1wm_Status::info( sprintf( __( 'Restoring database...
%d%% complete', 'all-in-one-wp-migration' ), $progress ) ); + + // Set query offset + $params['query_offset'] = $query_offset; + + // Set total queries size + $params['total_queries_size'] = $total_queries_size; + + // Set completed flag + $params['completed'] = false; + } + + // Flush WP cache + ai1wm_cache_flush(); + + // Reset active plugins + update_option( AI1WM_ACTIVE_PLUGINS, array() ); + + // Activate plugins + ai1wm_activate_plugins( ai1wm_active_servmask_plugins() ); + + // Set the new site URL + update_option( AI1WM_SITE_URL, $site_url ); + + // Set the new home URL + update_option( AI1WM_HOME_URL, $home_url ); + + // Set the new secret key value + update_option( AI1WM_SECRET_KEY, $secret_key ); + + // Set the new HTTP user + update_option( AI1WM_AUTH_USER, $auth_user ); + + // Set the new HTTP password + update_option( AI1WM_AUTH_PASSWORD, $auth_password ); + + // Set the new auth header + update_option( AI1WM_AUTH_HEADER, $auth_header ); + + // Set the new Uploads Path + update_option( AI1WM_UPLOADS_PATH, $uploads_path ); + + // Set the new Uploads URL Path + update_option( AI1WM_UPLOADS_URL_PATH, $uploads_url_path ); + + // Set the new backups labels + update_option( AI1WM_BACKUPS_LABELS, $backups_labels ); + + // Set the new sites links + update_option( AI1WM_SITES_LINKS, $sites_links ); + + // Set new backups path + update_option( AI1WM_BACKUPS_PATH_OPTION, AI1WM_BACKUPS_PATH ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-done.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-done.php new file mode 100644 index 0000000..3e1eb74 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-done.php @@ -0,0 +1,376 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Done { + + public static function execute( $params ) { + global $wp_rewrite; + + // Check multisite.json file + if ( is_file( ai1wm_multisite_path( $params ) ) ) { + + // Read multisite.json file + $handle = ai1wm_open( ai1wm_multisite_path( $params ), 'r' ); + + // Parse multisite.json file + $multisite = ai1wm_read( $handle, filesize( ai1wm_multisite_path( $params ) ) ); + $multisite = json_decode( $multisite, true ); + + // Close handle + ai1wm_close( $handle ); + + // Activate WordPress plugins + if ( isset( $multisite['Plugins'] ) && ( $plugins = $multisite['Plugins'] ) ) { + ai1wm_activate_plugins( $plugins ); + } + + // Deactivate WordPress SSL plugins + if ( ! is_ssl() ) { + ai1wm_deactivate_plugins( + array( + ai1wm_discover_plugin_basename( 'really-simple-ssl/rlrsssl-really-simple-ssl.php' ), + ai1wm_discover_plugin_basename( 'wordpress-https/wordpress-https.php' ), + ai1wm_discover_plugin_basename( 'wp-force-ssl/wp-force-ssl.php' ), + ai1wm_discover_plugin_basename( 'force-https-littlebizzy/force-https.php' ), + ) + ); + + ai1wm_woocommerce_force_ssl( false ); + } + + // Deactivate WordPress plugins + ai1wm_deactivate_plugins( + array( + ai1wm_discover_plugin_basename( 'invisible-recaptcha/invisible-recaptcha.php' ), + ai1wm_discover_plugin_basename( 'wps-hide-login/wps-hide-login.php' ), + ai1wm_discover_plugin_basename( 'hide-my-wp/index.php' ), + ai1wm_discover_plugin_basename( 'hide-my-wordpress/index.php' ), + ai1wm_discover_plugin_basename( 'mycustomwidget/my_custom_widget.php' ), + ai1wm_discover_plugin_basename( 'lockdown-wp-admin/lockdown-wp-admin.php' ), + ai1wm_discover_plugin_basename( 'rename-wp-login/rename-wp-login.php' ), + ai1wm_discover_plugin_basename( 'wp-simple-firewall/icwp-wpsf.php' ), + ai1wm_discover_plugin_basename( 'join-my-multisite/joinmymultisite.php' ), + ai1wm_discover_plugin_basename( 'multisite-clone-duplicator/multisite-clone-duplicator.php' ), + ai1wm_discover_plugin_basename( 'wordpress-mu-domain-mapping/domain_mapping.php' ), + ai1wm_discover_plugin_basename( 'wordpress-starter/siteground-wizard.php' ), + ai1wm_discover_plugin_basename( 'pro-sites/pro-sites.php' ), + ai1wm_discover_plugin_basename( 'wpide/WPide.php' ), + ai1wm_discover_plugin_basename( 'page-optimize/page-optimize.php' ), + ai1wm_discover_plugin_basename( 'update-services/update-services.php' ), + ) + ); + + // Deactivate Swift Optimizer rules + ai1wm_deactivate_swift_optimizer_rules( + array( + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration/all-in-one-wp-migration.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-azure-storage-extension/all-in-one-wp-migration-azure-storage-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-b2-extension/all-in-one-wp-migration-b2-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-backup/all-in-one-wp-migration-backup.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-box-extension/all-in-one-wp-migration-box-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-digitalocean-extension/all-in-one-wp-migration-digitalocean-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-direct-extension/all-in-one-wp-migration-direct-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-dropbox-extension/all-in-one-wp-migration-dropbox-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-file-extension/all-in-one-wp-migration-file-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-ftp-extension/all-in-one-wp-migration-ftp-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-gcloud-storage-extension/all-in-one-wp-migration-gcloud-storage-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-gdrive-extension/all-in-one-wp-migration-gdrive-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-glacier-extension/all-in-one-wp-migration-glacier-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-mega-extension/all-in-one-wp-migration-mega-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-multisite-extension/all-in-one-wp-migration-multisite-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-onedrive-extension/all-in-one-wp-migration-onedrive-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-pcloud-extension/all-in-one-wp-migration-pcloud-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-pro/all-in-one-wp-migration-pro.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-s3-client-extension/all-in-one-wp-migration-s3-client-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-s3-extension/all-in-one-wp-migration-s3-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-unlimited-extension/all-in-one-wp-migration-unlimited-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-url-extension/all-in-one-wp-migration-url-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-webdav-extension/all-in-one-wp-migration-webdav-extension.php' ), + ) + ); + + // Deactivate Revolution Slider + ai1wm_deactivate_revolution_slider( ai1wm_discover_plugin_basename( 'revslider/revslider.php' ) ); + + // Deactivate Jetpack modules + ai1wm_deactivate_jetpack_modules( array( 'photon', 'sso' ) ); + + // Flush Elementor cache + ai1wm_elementor_cache_flush(); + + // Initial DB version + ai1wm_initial_db_version(); + + } else { + + // Check package.json file + if ( is_file( ai1wm_package_path( $params ) ) ) { + + // Read package.json file + $handle = ai1wm_open( ai1wm_package_path( $params ), 'r' ); + + // Parse package.json file + $package = ai1wm_read( $handle, filesize( ai1wm_package_path( $params ) ) ); + $package = json_decode( $package, true ); + + // Close handle + ai1wm_close( $handle ); + + // Activate WordPress plugins + if ( isset( $package['Plugins'] ) && ( $plugins = $package['Plugins'] ) ) { + ai1wm_activate_plugins( $plugins ); + } + + // Activate WordPress template + if ( isset( $package['Template'] ) && ( $template = $package['Template'] ) ) { + ai1wm_activate_template( $template ); + } + + // Activate WordPress stylesheet + if ( isset( $package['Stylesheet'] ) && ( $stylesheet = $package['Stylesheet'] ) ) { + ai1wm_activate_stylesheet( $stylesheet ); + } + + // Deactivate WordPress SSL plugins + if ( ! is_ssl() ) { + ai1wm_deactivate_plugins( + array( + ai1wm_discover_plugin_basename( 'really-simple-ssl/rlrsssl-really-simple-ssl.php' ), + ai1wm_discover_plugin_basename( 'wordpress-https/wordpress-https.php' ), + ai1wm_discover_plugin_basename( 'wp-force-ssl/wp-force-ssl.php' ), + ai1wm_discover_plugin_basename( 'force-https-littlebizzy/force-https.php' ), + ) + ); + + ai1wm_woocommerce_force_ssl( false ); + } + + // Deactivate WordPress plugins + ai1wm_deactivate_plugins( + array( + ai1wm_discover_plugin_basename( 'invisible-recaptcha/invisible-recaptcha.php' ), + ai1wm_discover_plugin_basename( 'wps-hide-login/wps-hide-login.php' ), + ai1wm_discover_plugin_basename( 'hide-my-wp/index.php' ), + ai1wm_discover_plugin_basename( 'hide-my-wordpress/index.php' ), + ai1wm_discover_plugin_basename( 'mycustomwidget/my_custom_widget.php' ), + ai1wm_discover_plugin_basename( 'lockdown-wp-admin/lockdown-wp-admin.php' ), + ai1wm_discover_plugin_basename( 'rename-wp-login/rename-wp-login.php' ), + ai1wm_discover_plugin_basename( 'wp-simple-firewall/icwp-wpsf.php' ), + ai1wm_discover_plugin_basename( 'join-my-multisite/joinmymultisite.php' ), + ai1wm_discover_plugin_basename( 'multisite-clone-duplicator/multisite-clone-duplicator.php' ), + ai1wm_discover_plugin_basename( 'wordpress-mu-domain-mapping/domain_mapping.php' ), + ai1wm_discover_plugin_basename( 'wordpress-starter/siteground-wizard.php' ), + ai1wm_discover_plugin_basename( 'pro-sites/pro-sites.php' ), + ai1wm_discover_plugin_basename( 'wpide/WPide.php' ), + ai1wm_discover_plugin_basename( 'page-optimize/page-optimize.php' ), + ai1wm_discover_plugin_basename( 'update-services/update-services.php' ), + ) + ); + + // Deactivate Swift Optimizer rules + ai1wm_deactivate_swift_optimizer_rules( + array( + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration/all-in-one-wp-migration.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-azure-storage-extension/all-in-one-wp-migration-azure-storage-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-b2-extension/all-in-one-wp-migration-b2-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-backup/all-in-one-wp-migration-backup.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-box-extension/all-in-one-wp-migration-box-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-digitalocean-extension/all-in-one-wp-migration-digitalocean-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-direct-extension/all-in-one-wp-migration-direct-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-dropbox-extension/all-in-one-wp-migration-dropbox-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-file-extension/all-in-one-wp-migration-file-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-ftp-extension/all-in-one-wp-migration-ftp-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-gcloud-storage-extension/all-in-one-wp-migration-gcloud-storage-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-gdrive-extension/all-in-one-wp-migration-gdrive-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-glacier-extension/all-in-one-wp-migration-glacier-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-mega-extension/all-in-one-wp-migration-mega-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-multisite-extension/all-in-one-wp-migration-multisite-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-onedrive-extension/all-in-one-wp-migration-onedrive-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-pcloud-extension/all-in-one-wp-migration-pcloud-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-pro/all-in-one-wp-migration-pro.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-s3-client-extension/all-in-one-wp-migration-s3-client-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-s3-extension/all-in-one-wp-migration-s3-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-unlimited-extension/all-in-one-wp-migration-unlimited-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-url-extension/all-in-one-wp-migration-url-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-webdav-extension/all-in-one-wp-migration-webdav-extension.php' ), + ) + ); + + // Deactivate Revolution Slider + ai1wm_deactivate_revolution_slider( ai1wm_discover_plugin_basename( 'revslider/revslider.php' ) ); + + // Deactivate Jetpack modules + ai1wm_deactivate_jetpack_modules( array( 'photon', 'sso' ) ); + + // Flush Elementor cache + ai1wm_elementor_cache_flush(); + + // Initial DB version + ai1wm_initial_db_version(); + } + } + + // Check blogs.json file + if ( is_file( ai1wm_blogs_path( $params ) ) ) { + + // Read blogs.json file + $handle = ai1wm_open( ai1wm_blogs_path( $params ), 'r' ); + + // Parse blogs.json file + $blogs = ai1wm_read( $handle, filesize( ai1wm_blogs_path( $params ) ) ); + $blogs = json_decode( $blogs, true ); + + // Close handle + ai1wm_close( $handle ); + + // Loop over blogs + foreach ( $blogs as $blog ) { + + // Activate WordPress plugins + if ( isset( $blog['New']['Plugins'] ) && ( $plugins = $blog['New']['Plugins'] ) ) { + ai1wm_activate_plugins( $plugins ); + } + + // Activate WordPress template + if ( isset( $blog['New']['Template'] ) && ( $template = $blog['New']['Template'] ) ) { + ai1wm_activate_template( $template ); + } + + // Activate WordPress stylesheet + if ( isset( $blog['New']['Stylesheet'] ) && ( $stylesheet = $blog['New']['Stylesheet'] ) ) { + ai1wm_activate_stylesheet( $stylesheet ); + } + + // Deactivate WordPress SSL plugins + if ( ! is_ssl() ) { + ai1wm_deactivate_plugins( + array( + ai1wm_discover_plugin_basename( 'really-simple-ssl/rlrsssl-really-simple-ssl.php' ), + ai1wm_discover_plugin_basename( 'wordpress-https/wordpress-https.php' ), + ai1wm_discover_plugin_basename( 'wp-force-ssl/wp-force-ssl.php' ), + ai1wm_discover_plugin_basename( 'force-https-littlebizzy/force-https.php' ), + ) + ); + + ai1wm_woocommerce_force_ssl( false ); + } + + // Deactivate WordPress plugins + ai1wm_deactivate_plugins( + array( + ai1wm_discover_plugin_basename( 'invisible-recaptcha/invisible-recaptcha.php' ), + ai1wm_discover_plugin_basename( 'wps-hide-login/wps-hide-login.php' ), + ai1wm_discover_plugin_basename( 'hide-my-wp/index.php' ), + ai1wm_discover_plugin_basename( 'hide-my-wordpress/index.php' ), + ai1wm_discover_plugin_basename( 'mycustomwidget/my_custom_widget.php' ), + ai1wm_discover_plugin_basename( 'lockdown-wp-admin/lockdown-wp-admin.php' ), + ai1wm_discover_plugin_basename( 'rename-wp-login/rename-wp-login.php' ), + ai1wm_discover_plugin_basename( 'wp-simple-firewall/icwp-wpsf.php' ), + ai1wm_discover_plugin_basename( 'join-my-multisite/joinmymultisite.php' ), + ai1wm_discover_plugin_basename( 'multisite-clone-duplicator/multisite-clone-duplicator.php' ), + ai1wm_discover_plugin_basename( 'wordpress-mu-domain-mapping/domain_mapping.php' ), + ai1wm_discover_plugin_basename( 'wordpress-starter/siteground-wizard.php' ), + ai1wm_discover_plugin_basename( 'pro-sites/pro-sites.php' ), + ai1wm_discover_plugin_basename( 'wpide/WPide.php' ), + ai1wm_discover_plugin_basename( 'page-optimize/page-optimize.php' ), + ai1wm_discover_plugin_basename( 'update-services/update-services.php' ), + ) + ); + + // Deactivate Swift Optimizer rules + ai1wm_deactivate_swift_optimizer_rules( + array( + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration/all-in-one-wp-migration.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-azure-storage-extension/all-in-one-wp-migration-azure-storage-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-b2-extension/all-in-one-wp-migration-b2-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-backup/all-in-one-wp-migration-backup.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-box-extension/all-in-one-wp-migration-box-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-digitalocean-extension/all-in-one-wp-migration-digitalocean-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-direct-extension/all-in-one-wp-migration-direct-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-dropbox-extension/all-in-one-wp-migration-dropbox-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-file-extension/all-in-one-wp-migration-file-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-ftp-extension/all-in-one-wp-migration-ftp-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-gcloud-storage-extension/all-in-one-wp-migration-gcloud-storage-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-gdrive-extension/all-in-one-wp-migration-gdrive-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-glacier-extension/all-in-one-wp-migration-glacier-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-mega-extension/all-in-one-wp-migration-mega-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-multisite-extension/all-in-one-wp-migration-multisite-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-onedrive-extension/all-in-one-wp-migration-onedrive-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-pcloud-extension/all-in-one-wp-migration-pcloud-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-pro/all-in-one-wp-migration-pro.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-s3-client-extension/all-in-one-wp-migration-s3-client-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-s3-extension/all-in-one-wp-migration-s3-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-unlimited-extension/all-in-one-wp-migration-unlimited-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-url-extension/all-in-one-wp-migration-url-extension.php' ), + ai1wm_discover_plugin_basename( 'all-in-one-wp-migration-webdav-extension/all-in-one-wp-migration-webdav-extension.php' ), + ) + ); + + // Deactivate Revolution Slider + ai1wm_deactivate_revolution_slider( ai1wm_discover_plugin_basename( 'revslider/revslider.php' ) ); + + // Deactivate Jetpack modules + ai1wm_deactivate_jetpack_modules( array( 'photon', 'sso' ) ); + + // Flush Elementor cache + ai1wm_elementor_cache_flush(); + + // Initial DB version + ai1wm_initial_db_version(); + } + } + + // Clear auth cookie (WP Cerber) + if ( ai1wm_validate_plugin_basename( 'wp-cerber/wp-cerber.php' ) ) { + wp_clear_auth_cookie(); + } + + $should_reset_permalinks = false; + + // Switch to default permalink structure + if ( ( $should_reset_permalinks = ai1wm_should_reset_permalinks( $params ) ) ) { + $wp_rewrite->set_permalink_structure( '' ); + } + + // Set progress + if ( ai1wm_validate_plugin_basename( 'fusion-builder/fusion-builder.php' ) ) { + Ai1wm_Status::done( __( 'Your site has been imported successfully!', 'all-in-one-wp-migration' ), Ai1wm_Template::get_content( 'import/avada', array( 'should_reset_permalinks' => $should_reset_permalinks ) ) ); + } elseif ( ai1wm_validate_plugin_basename( 'oxygen/functions.php' ) ) { + Ai1wm_Status::done( __( 'Your site has been imported successfully!', 'all-in-one-wp-migration' ), Ai1wm_Template::get_content( 'import/oxygen', array( 'should_reset_permalinks' => $should_reset_permalinks ) ) ); + } else { + Ai1wm_Status::done( __( 'Your site has been imported successfully!', 'all-in-one-wp-migration' ), Ai1wm_Template::get_content( 'import/done', array( 'should_reset_permalinks' => $should_reset_permalinks ) ) ); + } + + do_action( 'ai1wm_status_import_done', $params ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-enumerate.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-enumerate.php new file mode 100644 index 0000000..9637d33 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-enumerate.php @@ -0,0 +1,56 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Enumerate { + + public static function execute( $params ) { + + // Set progress + Ai1wm_Status::info( __( 'Gathering WordPress files...', 'all-in-one-wp-migration' ) ); + + // Open the archive file for reading + $archive = new Ai1wm_Extractor( ai1wm_archive_path( $params ) ); + + // Get total files count + $params['total_files_count'] = $archive->get_total_files_count(); + + // Get total files size + $params['total_files_size'] = $archive->get_total_files_size(); + + // Close the archive file + $archive->close(); + + // Set progress + Ai1wm_Status::info( __( 'WordPress files gathered.', 'all-in-one-wp-migration' ) ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-mu-plugins.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-mu-plugins.php new file mode 100644 index 0000000..d272f1d --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-mu-plugins.php @@ -0,0 +1,93 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Mu_Plugins { + + public static function execute( $params ) { + + // Set progress + Ai1wm_Status::info( __( 'Activating mu-plugins...', 'all-in-one-wp-migration' ) ); + + // Set decryption password + $decryption_password = null; + if ( isset( $params['decryption_password'] ) ) { + $decryption_password = $params['decryption_password']; + } + + // Read package.json file + $handle = ai1wm_open( ai1wm_package_path( $params ), 'r' ); + + // Parse package.json file + $config = ai1wm_read( $handle, filesize( ai1wm_package_path( $params ) ) ); + $config = json_decode( $config, true ); + + // Close handle + ai1wm_close( $handle ); + + // Get compression type + $compression_type = null; + if ( ! empty( $config['Compression']['Enabled'] ) ) { + $compression_type = $config['Compression']['Type']; + } + + // List of must-use plugins + $exclude_files = array( + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_ENDURANCE_PAGE_CACHE_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_ENDURANCE_PHP_EDGE_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_ENDURANCE_BROWSER_CACHE_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_GD_SYSTEM_PLUGIN_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_WP_STACK_CACHE_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_WP_COMSH_LOADER_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_WP_COMSH_HELPER_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_WP_ENGINE_SYSTEM_PLUGIN_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_WPE_SIGN_ON_PLUGIN_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_WP_ENGINE_SECURITY_AUDITOR_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_WP_CERBER_SECURITY_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_SQLITE_DATABASE_INTEGRATION_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_SQLITE_DATABASE_ZERO_NAME, + AI1WM_MUPLUGINS_NAME . DIRECTORY_SEPARATOR . AI1WM_EOS_DEACTIVATE_PLUGINS_NAME, + ); + + // Open the archive file for reading + $archive = new Ai1wm_Extractor( ai1wm_archive_path( $params ), $decryption_password, $compression_type ); + + // Unpack mu-plugins files + $archive->extract_by_files_array( WP_CONTENT_DIR, array( AI1WM_MUPLUGINS_NAME ), $exclude_files ); + + // Close the archive file + $archive->close(); + + // Set progress + Ai1wm_Status::info( __( 'Mu-plugins activated.', 'all-in-one-wp-migration' ) ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-options.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-options.php new file mode 100644 index 0000000..e00e319 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-options.php @@ -0,0 +1,79 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Options { + + public static function execute( $params ) { + // Set progress + Ai1wm_Status::info( __( 'Preparing WordPress options...', 'all-in-one-wp-migration' ) ); + + // Get database client + $db_client = Ai1wm_Database_Utility::get_client(); + + $tables = $db_client->get_tables(); + + // Get base prefix + $base_prefix = ai1wm_table_prefix(); + + // Get mainsite prefix + $mainsite_prefix = ai1wm_table_prefix( 'mainsite' ); + + // Check WP sitemeta table exists + if ( in_array( "{$mainsite_prefix}sitemeta", $tables ) ) { + + // Get fs_accounts option value (Freemius) + $result = $db_client->query( "SELECT meta_value FROM `{$mainsite_prefix}sitemeta` WHERE meta_key = 'fs_accounts'" ); + if ( ( $row = $db_client->fetch_assoc( $result ) ) ) { + $fs_accounts = get_option( 'fs_accounts', array() ); + $meta_value = maybe_unserialize( $row['meta_value'] ); + + // Update fs_accounts option value (Freemius) + if ( ( $fs_accounts = array_merge( $fs_accounts, $meta_value ) ) ) { + if ( isset( $fs_accounts['users'], $fs_accounts['sites'] ) ) { + update_option( 'fs_accounts', $fs_accounts ); + } else { + delete_option( 'fs_accounts' ); + delete_option( 'fs_dbg_accounts' ); + delete_option( 'fs_active_plugins' ); + delete_option( 'fs_api_cache' ); + delete_option( 'fs_dbg_api_cache' ); + delete_option( 'fs_debug_mode' ); + } + } + } + } + + // Set progress + Ai1wm_Status::info( __( 'WordPress options prepared.', 'all-in-one-wp-migration' ) ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-permalinks.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-permalinks.php new file mode 100644 index 0000000..6598281 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-permalinks.php @@ -0,0 +1,48 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Permalinks { + + public static function execute( $params ) { + global $wp_rewrite; + + // Set progress + Ai1wm_Status::info( __( 'Retrieving WordPress permalinks settings...', 'all-in-one-wp-migration' ) ); + + // Get using permalinks + $params['using_permalinks'] = (int) $wp_rewrite->using_permalinks(); + + // Set progress + Ai1wm_Status::info( __( 'WordPress permalinks settings retrieved.', 'all-in-one-wp-migration' ) ); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-upload.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-upload.php new file mode 100644 index 0000000..a98c421 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-upload.php @@ -0,0 +1,207 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Upload { + + public static function execute( $params ) { + + // Get upload tmp name + if ( isset( $_FILES['upload_file']['tmp_name'] ) ) { + $upload_tmp_name = $_FILES['upload_file']['tmp_name']; + } else { + throw new Ai1wm_Upload_Exception( + wp_kses( + __( + 'The uploaded file is missing a temporary path. The process cannot continue. + Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ), + 400 + ); + } + + // Get upload error + if ( isset( $_FILES['upload_file']['error'] ) ) { + $upload_error = $_FILES['upload_file']['error']; + } else { + throw new Ai1wm_Upload_Exception( + wp_kses( + __( + 'The uploaded file is missing an error code. The process cannot continue. + Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ), + 400 + ); + } + + // Verify file extension + if ( ! ai1wm_is_filename_supported( ai1wm_archive_path( $params ) ) ) { + throw new Ai1wm_Upload_Exception( + wp_kses( + __( + 'Invalid file type. Please ensure your file is a .wpress backup created with All-in-One WP Migration. + Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ), + 415 + ); + } + + // Verify file data + if ( ! ai1wm_is_filedata_supported( $upload_tmp_name ) ) { + throw new Ai1wm_Upload_Exception( + wp_kses( + __( + 'Invalid file data. Please ensure your file is a .wpress backup created with All-in-One WP Migration. + Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ), + 415 + ); + } + + // Upload file data + switch ( $upload_error ) { + case UPLOAD_ERR_OK: + try { + ai1wm_copy( $upload_tmp_name, ai1wm_archive_path( $params ) ); + ai1wm_unlink( $upload_tmp_name ); + } catch ( Exception $e ) { + /* translators: Error message. */ + throw new Ai1wm_Upload_Exception( + wp_kses( + sprintf( + __( + 'Could not upload the file because %s. The process cannot continue. + Technical details', + 'all-in-one-wp-migration' + ), + $e->getMessage() + ), + ai1wm_allowed_html_tags() + ), + 400 + ); + } + + break; + + case UPLOAD_ERR_INI_SIZE: + case UPLOAD_ERR_FORM_SIZE: + case UPLOAD_ERR_PARTIAL: + case UPLOAD_ERR_NO_FILE: + throw new Ai1wm_Upload_Exception( + wp_kses( + __( + 'The uploaded file is too large for this server. The process cannot continue. + Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ), + 413 + ); + + case UPLOAD_ERR_NO_TMP_DIR: + throw new Ai1wm_Upload_Exception( + wp_kses( + __( + 'No temporary folder is available on the server. The process cannot continue. + Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ), + 400 + ); + + case UPLOAD_ERR_CANT_WRITE: + throw new Ai1wm_Upload_Exception( + wp_kses( + __( + 'Could not save the uploaded file. Please check file permissions and try again. + Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ), + 400 + ); + + case UPLOAD_ERR_EXTENSION: + throw new Ai1wm_Upload_Exception( + wp_kses( + __( + 'A PHP extension blocked this file upload. The process cannot continue. + Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ), + 400 + ); + + default: + /* translators: Error code. */ + throw new Ai1wm_Upload_Exception( + wp_kses( + sprintf( + __( + 'An unknown error (code: %s) occurred during the file upload. The process cannot continue. + Technical details', + 'all-in-one-wp-migration' + ), + $upload_error + ), + ai1wm_allowed_html_tags() + ), + 400 + ); + } + + // REST API: return params instead of exit so the handler can build a response + if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { + return $params; + } + + ai1wm_json_response( array( 'errors' => array() ) ); + exit; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-users.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-users.php new file mode 100644 index 0000000..99ad3d4 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-users.php @@ -0,0 +1,71 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Users { + + public static function execute( $params ) { + + // Check multisite.json file + if ( is_file( ai1wm_multisite_path( $params ) ) ) { + + // Set progress + Ai1wm_Status::info( __( 'Preparing WordPress users...', 'all-in-one-wp-migration' ) ); + + // Read multisite.json file + $handle = ai1wm_open( ai1wm_multisite_path( $params ), 'r' ); + + // Parse multisite.json file + $multisite = ai1wm_read( $handle, filesize( ai1wm_multisite_path( $params ) ) ); + $multisite = json_decode( $multisite, true ); + + // Close handle + ai1wm_close( $handle ); + + ai1wm_populate_roles(); + + // Set WordPress super admins + if ( isset( $multisite['Admins'] ) && ( $admins = $multisite['Admins'] ) ) { + foreach ( $admins as $username ) { + if ( ( $user = get_user_by( 'login', $username ) ) ) { + if ( $user->exists() ) { + $user->set_role( 'administrator' ); + } + } + } + } + + // Set progress + Ai1wm_Status::info( __( 'WordPress users prepared.', 'all-in-one-wp-migration' ) ); + } + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-validate-crc.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-validate-crc.php new file mode 100644 index 0000000..34778ac --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-validate-crc.php @@ -0,0 +1,166 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Validate_Crc { + + public static function execute( $params ) { + $archive_bytes_read = 0; + + // Skip validation for v1 archives (no CRC available) + if ( empty( $params['archive_crc_value'] ) ) { + return $params; + } + + // Set progress + Ai1wm_Status::info( __( 'Validating archive checksum...', 'all-in-one-wp-migration' ) ); + + // Set archive bytes remaining + if ( isset( $params['archive_bytes_remaining'] ) ) { + $archive_bytes_remaining = (int) $params['archive_bytes_remaining']; + } elseif ( isset( $params['archive_crc_size'] ) ) { + $archive_bytes_remaining = (int) $params['archive_crc_size']; + } else { + $archive_bytes_remaining = 0; + } + + // Set archive bytes offset + if ( isset( $params['archive_bytes_offset'] ) ) { + $archive_bytes_offset = (int) $params['archive_bytes_offset']; + } else { + $archive_bytes_offset = 0; + } + + // Set file CRC + $file_crc = null; + if ( isset( $params['file_crc'] ) ) { + $file_crc = $params['file_crc']; + } + + // Flag to hold if file data has been processed + $completed = true; + + // Start time + $start = microtime( true ); + + // Initialize CRC context + $hash_ctx = Ai1wm_Crc::init_crc32(); + + // Open archive for reading + if ( ( $file_handle = ai1wm_open( ai1wm_archive_path( $params ), 'rb' ) ) ) { + if ( fseek( $file_handle, $archive_bytes_offset, SEEK_SET ) !== -1 ) { + + // Process file in chunks + while ( $archive_bytes_remaining > 0 ) { + if ( ( $file_content = ai1wm_read( $file_handle, min( Ai1wm_Archiver::READ_CHUNK_SIZE, $archive_bytes_remaining ) ) ) !== false ) { + + // Empty read indicates EOF + if ( strlen( $file_content ) === 0 ) { + break; + } + + // Add the amount of bytes we read + $archive_bytes_read += strlen( $file_content ); + + // Subtract the amount of bytes we read + $archive_bytes_remaining -= strlen( $file_content ); + + // Update CRC with original content + Ai1wm_Crc::update_crc32( $hash_ctx, $file_content ); + } + + // Time elapsed + if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { + if ( ( microtime( true ) - $start ) > $timeout ) { + $completed = false; + break; + } + } + } + + // Get archive bytes offset + $archive_bytes_offset += $archive_bytes_read; + } + + ai1wm_close( $file_handle ); + } + + // Combine and finalize CRC + if ( empty( $file_crc ) ) { + $params['file_crc'] = Ai1wm_Crc::finalize_crc32( $hash_ctx ); + } else { + $params['file_crc'] = Ai1wm_Crc::combine_crc32( $file_crc, Ai1wm_Crc::finalize_crc32( $hash_ctx ), $archive_bytes_read ); + } + + // End of the archive file? + if ( $completed ) { + + // Validate CRC value + if ( $params['archive_crc_value'] !== $params['file_crc'] ) { + throw new Ai1wm_CRC_Exception( + wp_kses( + __( + 'This backup file is damaged and can\'t be imported.
' . + 'Try downloading or transferring the file again.

' . + 'Reason: File integrity check failed (CRC mismatch). Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Unset file CRC + unset( $params['file_crc'] ); + + // Unset archive bytes remaining + unset( $params['archive_bytes_remaining'] ); + + // Unset archive bytes offset + unset( $params['archive_bytes_offset'] ); + + // Unset completed flag + unset( $params['completed'] ); + + } else { + + // St archive bytes remaining + $params['archive_bytes_remaining'] = $archive_bytes_remaining; + + // Set archive bytes offset + $params['archive_bytes_offset'] = $archive_bytes_offset; + + // Set completed flag + $params['completed'] = $completed; + } + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-validate.php b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-validate.php new file mode 100644 index 0000000..5db4fc1 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-validate.php @@ -0,0 +1,108 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Import_Validate { + + public static function execute( $params ) { + + // Verify file if size > 2GB and PHP = 32-bit + if ( ! ai1wm_is_filesize_supported( ai1wm_archive_path( $params ) ) ) { + throw new Ai1wm_Import_Exception( + wp_kses( + __( + 'Your server uses 32-bit PHP and cannot process files larger than 2GB. Please switch to 64-bit PHP and try again. + Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Verify file name extension + if ( ! ai1wm_is_filename_supported( ai1wm_archive_path( $params ) ) ) { + throw new Ai1wm_Import_Exception( + wp_kses( + __( + 'Invalid file type. Please ensure your file is a .wpress backup created with All-in-One WP Migration. + Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Set progress + Ai1wm_Status::info( __( 'Unpacking configuration...', 'all-in-one-wp-migration' ) ); + + // Open the archive file for reading + $archive = new Ai1wm_Extractor( ai1wm_archive_path( $params ) ); + + // Validate the archive file consistency + if ( ! $archive->is_valid() ) { + throw new Ai1wm_Import_Exception( + wp_kses( + __( 'The archive file appears to be corrupted. Follow this article for possible fixes.', 'all-in-one-wp-migration' ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Unpack package.json and multisite.json files + $archive->extract_by_files_array( ai1wm_storage_path( $params ), array( AI1WM_PACKAGE_NAME, AI1WM_MULTISITE_NAME ) ); + + // Check package.json file + if ( false === is_file( ai1wm_package_path( $params ) ) ) { + throw new Ai1wm_Import_Exception( + wp_kses( + __( + 'Please ensure your file was created with the All-in-One WP Migration plugin. + Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ) + ); + } + + // Set archive CRC value + $params['archive_crc_value'] = $archive->get_archive_crc_value(); + + // Set archive CRC size + $params['archive_crc_size'] = $archive->get_archive_crc_size(); + + // Close the archive file + $archive->close(); + + return $params; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/bandar/bandar/LICENSE b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/bandar/bandar/LICENSE new file mode 100644 index 0000000..9acc815 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/bandar/bandar/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2013 Yani Iliev + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/bandar/bandar/lib/Bandar.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/bandar/bandar/lib/Bandar.php new file mode 100644 index 0000000..67141f7 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/bandar/bandar/lib/Bandar.php @@ -0,0 +1,233 @@ + + * @copyright 2013 Yani Iliev + * @license https://raw.github.com/yani-/bandar/master/LICENSE The MIT License (MIT) + * @version GIT: 3.0.0 + * @link https://github.com/yani-/bandar/ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +/** + * Define EOL for CLI and Web + */ +if (!defined('BANDAR_EOL')) { + define('BANDAR_EOL', php_sapi_name() === 'cli' ? PHP_EOL : '
'); +} + +/** + * Include exceptions + */ +require_once + dirname(__FILE__) . + DIRECTORY_SEPARATOR . + 'Exceptions' . + DIRECTORY_SEPARATOR . + 'TemplateDoesNotExistException.php'; + +/** + * Bandar Main class + * + * @category Templates + * @package Bandar + * @author Yani Iliev + * @copyright 2013 Yani Iliev + * @license https://raw.github.com/yani-/bandar/master/LICENSE The MIT License (MIT) + * @version Release: 2.0.1 + * @link https://github.com/yani-/bandar/ + */ +class Bandar +{ + /** + * Path to template files + * + * @var string|null + */ + public static $templatesPath = null; + + /** + * Template file to output + * @var string|null + */ + public static $template = null; + + /** + * Outputs the passed string if Bandar is in debug mode + * + * @param string $str Debug string to output + * + * @return void + */ + public static function debug($str) + { + /** + * if debug flag is on, output the string + */ + if (defined('BANDAR_DEBUG') && BANDAR_DEBUG) { + echo $str; + } + } + + /** + * Retrieves templatesPath from BANDAR_TEMPLATES_PATH constant + * + * @throws TemplatesPathNotSetException If BANDAR_TEMPLATES_PATH is not defined + * + * @return string|null Templates path + */ + public static function getTemplatesPathFromConstant() + { + self::debug( + 'Calling getTemplatesPathFromConstant' . BANDAR_EOL + ); + if (defined('BANDAR_TEMPLATES_PATH')) { + return realpath(BANDAR_TEMPLATES_PATH) . DIRECTORY_SEPARATOR; + } + return null; + } + + /** + * Setter for template + * + * @param string $template Template file + * + * @throws TemplateDoesNotExistException If template file is not found + * + * @return null + */ + public static function setTemplate($template, $path = false) + { + self::debug( + 'Calling setTemplate with' . BANDAR_EOL . + '$template = ' . $template . BANDAR_EOL . + 'type of $template is ' . gettype($template) . BANDAR_EOL + ); + + if ($path) { + $template = realpath($path) . DIRECTORY_SEPARATOR . $template; + } else { + $template = self::getTemplatesPathFromConstant() . $template; + } + + $template = realpath($template . '.php'); + /** + * Check if passed template exist + */ + if (self::templateExists($template)) { + self::$template = $template; + } else { + throw new TemplateDoesNotExistException; + } + } + + /** + * Checks if template exists by using file_exists + * + * @param string $template Template file + * + * @return boolean + */ + public static function templateExists($template) + { + self::debug( + 'Calling templateExists with ' . BANDAR_EOL . + '$template = ' . $template . BANDAR_EOL . + 'type of $template is ' . gettype($template) . BANDAR_EOL + ); + return (!is_dir($template) && is_readable($template)); + } + + /** + * Renders a passed template + * + * @param string $template Template name + * @param array $args Variables to pass to the template file + * + * @return string Contents of the template + */ + public static function render($template, $args=array(), $path = false) + { + self::debug( + 'Calling render with' . + '$template = ' . $template . BANDAR_EOL . + 'type of $template is ' . gettype($template) . BANDAR_EOL . + '$args = ' . print_r($args, true) . BANDAR_EOL . + 'type of $args is ' . gettype($args) . BANDAR_EOL + ); + self::setTemplate($template, $path); + /** + * Extracting passed aguments + */ + extract($args); + ob_start(); + /** + * Including the view + */ + include self::$template; + + return ob_get_flush(); + } + + /** + * Returns the content of a passed template + * + * @param string $template Template name + * @param array $args Variables to pass to the template file + * + * @return string Contents of the template + */ + public static function getTemplateContent($template, $args=array(), $path = false) + { + self::debug( + 'Calling render with' . + '$template = ' . $template . BANDAR_EOL . + 'type of $template is ' . gettype($template) . BANDAR_EOL . + '$args = ' . print_r($args, true) . BANDAR_EOL . + 'type of $args is ' . gettype($args) . BANDAR_EOL + ); + self::setTemplate($template, $path); + /** + * Extracting passed aguments + */ + extract($args); + ob_start(); + /** + * Including the view + */ + include self::$template; + + $content = ob_get_contents(); + ob_end_clean(); + + return $content; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/bandar/bandar/lib/Exceptions/TemplateDoesNotExistException.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/bandar/bandar/lib/Exceptions/TemplateDoesNotExistException.php new file mode 100644 index 0000000..c7163f0 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/bandar/bandar/lib/Exceptions/TemplateDoesNotExistException.php @@ -0,0 +1,54 @@ + + * @copyright 2013 Yani Iliev + * @license https://raw.github.com/yani-/bandar/master/LICENSE The MIT License (MIT) + * @version GIT: 3.0.0 + * @link https://github.com/yani-/bandar/ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +/** + * TemplateDoesNotExistException + * + * @category Exceptions + * @package Bandar + * @author Yani Iliev + * @copyright 2013 Yani Iliev + * @license https://raw.github.com/yani-/bandar/master/LICENSE The MIT License (MIT) + * @version Release: 2.0.1 + * @link https://github.com/yani-/bandar/ + */ +class TemplateDoesNotExistException extends Exception +{ + +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/archiver/class-ai1wm-archiver.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/archiver/class-ai1wm-archiver.php new file mode 100644 index 0000000..87ac2a5 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/archiver/class-ai1wm-archiver.php @@ -0,0 +1,436 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +abstract class Ai1wm_Archiver { + + const HEADER_SIZE = 4377; + + const READ_CHUNK_SIZE = 512000; + + /** + * File name including path to the file + * + * @type string + */ + protected $file_name = null; + + /** + * File password string + * + * @type string + */ + protected $file_password = null; + + /** + * File compression type + * + * @type string + */ + protected $file_compression = null; + + /** + * Handle to the file + * + * @type resource + */ + protected $file_handle = null; + + /** + * Header block format of a file + * + * Field Name Offset Length Contents + * name 0 255 filename (no path, no slash) + * size 255 14 size of file contents + * mtime 269 12 last modification time + * prefix 281 4088 path name, no trailing slashes + * crc32 4369 8 CRC32 checksum (hex string, optional) + * + * @type array + */ + protected $block_format = array( + 'a255', // filename + 'a14', // size of file contents + 'a12', // last time modified + 'a4088', // path + 'a8', // crc32 + ); + + /** + * Archive CRC value from the v2 EOF block + * + * @type string + */ + protected $archive_crc_value = null; + + /** + * Archive CRC size from the v2 EOF block + * + * @type string + */ + protected $archive_crc_size = null; + + /** + * Default constructor + * + * Initializes filename and end of file block + * + * @param string $file_name File to use as archive + * @param string $file_password File password string + * @param string $file_compression File compression type + * @param bool $file_write File Read/write mode + * + * @throws Ai1wm_Not_Accessible_Exception + * @throws Ai1wm_Not_Seekable_Exception + */ + public function __construct( $file_name, $file_password = null, $file_compression = null, $file_write = false ) { + $this->file_name = $file_name; + $this->file_password = $file_password; + $this->file_compression = $file_compression; + + // Open archive file + if ( $file_write ) { + // Open archive file for writing + if ( ( $this->file_handle = @fopen( $file_name, 'cb' ) ) === false ) { + throw new Ai1wm_Not_Accessible_Exception( sprintf( __( 'Could not open file for writing. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + + // Seek to end of archive file + if ( @fseek( $this->file_handle, 0, SEEK_END ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to end of file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + } else { + // Open archive file for reading + if ( ( $this->file_handle = @fopen( $file_name, 'rb' ) ) === false ) { + throw new Ai1wm_Not_Accessible_Exception( sprintf( __( 'Could not open file for reading. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + } + } + + /** + * Set current file pointer + * + * @param int $offset Archive offset + * + * @throws \Ai1wm_Not_Seekable_Exception + * + * @return void + */ + public function set_file_pointer( $offset ) { + if ( @fseek( $this->file_handle, $offset, SEEK_SET ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to offset of file. File: %s Offset: %d', 'all-in-one-wp-migration' ), $this->file_name, $offset ) ); + } + } + + /** + * Get current file pointer + * + * @throws \Ai1wm_Not_Tellable_Exception + * + * @return int + */ + public function get_file_pointer() { + if ( ( $offset = @ftell( $this->file_handle ) ) === false ) { + throw new Ai1wm_Not_Tellable_Exception( sprintf( __( 'Could not tell offset of file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + + return $offset; + } + + /** + * Appends end of file block to the archive file + * + * @param string|null $archive_crc_value Pre-calculated archive CRC32 (optional) + * + * @throws \Ai1wm_Not_Seekable_Exception + * @throws \Ai1wm_Not_Writable_Exception + * @throws \Ai1wm_Quota_Exceeded_Exception + * + * @return void + */ + protected function append_eof( $archive_crc_value = null ) { + // Seek to end of archive file + if ( @fseek( $this->file_handle, 0, SEEK_END ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to end of file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + + // Use pre-calculated CRC if provided, otherwise calculate (fallback) + if ( is_null( $archive_crc_value ) ) { + $archive_crc_value = Ai1wm_Crc::calculate_file_crc32( $this->file_name ); + } + + $archive_crc_size = ''; + + // Get archive size (before EOF block) + if ( ! empty( $archive_crc_value ) ) { + if ( ( $archive_crc_size = @ftell( $this->file_handle ) ) === false ) { + throw new Ai1wm_Not_Tellable_Exception( sprintf( __( 'Could not tell offset of file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + } + + // Write end of file block + if ( ( $eof_block = $this->get_eof_block( $archive_crc_size, $archive_crc_value ) ) ) { + if ( ( $file_bytes = @fwrite( $this->file_handle, $eof_block ) ) !== false ) { + if ( strlen( $eof_block ) !== $file_bytes ) { + throw new Ai1wm_Quota_Exceeded_Exception( sprintf( __( 'Out of disk space. Could not write end of block to file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + } else { + throw new Ai1wm_Not_Writable_Exception( sprintf( __( 'Could not write end of block to file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + } + } + + /** + * Replace forward slash with current directory separator + * + * @param string $path Path + * + * @return string + */ + protected function replace_forward_slash_with_directory_separator( $path ) { + return str_replace( '/', DIRECTORY_SEPARATOR, $path ); + } + + /** + * Replace current directory separator with forward slash + * + * @param string $path Path + * + * @return string + */ + protected function replace_directory_separator_with_forward_slash( $path ) { + return str_replace( DIRECTORY_SEPARATOR, '/', $path ); + } + + /** + * Escape Windows directory separator + * + * @param string $path Path + * + * @return string + */ + protected function escape_windows_directory_separator( $path ) { + return preg_replace( '/[\\\\]+/', '\\\\\\\\', $path ); + } + + /** + * Validate archive file + * + * @return bool + */ + public function is_valid() { + // Failed detecting the current file pointer offset + if ( ( $offset = @ftell( $this->file_handle ) ) === false ) { + return false; + } + + // Failed seeking the beginning of EOL block + if ( @fseek( $this->file_handle, -static::HEADER_SIZE, SEEK_END ) === -1 ) { + return false; + } + + // Get end of file block + if ( ( $block = @fread( $this->file_handle, static::HEADER_SIZE ) ) === false ) { + return false; + } + + // Failed returning to original offset + if ( @fseek( $this->file_handle, $offset, SEEK_SET ) === -1 ) { + return false; + } + + // Trailing block does not match EOL + if ( $this->is_eof_block( $block ) === false ) { + return false; + } + + return true; + } + + /** + * Truncates the archive file + * + * @return void + */ + public function truncate() { + if ( ( $offset = @ftell( $this->file_handle ) ) === false ) { + throw new Ai1wm_Not_Tellable_Exception( sprintf( __( 'Could not tell offset of file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + + if ( @filesize( $this->file_name ) > $offset ) { + if ( @ftruncate( $this->file_handle, $offset ) === false ) { + throw new Ai1wm_Not_Truncatable_Exception( sprintf( __( 'Could not truncate file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + } + } + + /** + * Closes the archive file + * + * We either close the file or append the end of file block if complete argument is set to true + * + * @param bool $complete Flag to append end of file block + * @param string|null $archive_crc_value Pre-calculated archive CRC32 (optional) + * + * @return void + */ + public function close( $complete = false, $archive_crc_value = null ) { + // Are we done appending to the file? + if ( true === $complete ) { + $this->append_eof( $archive_crc_value ); + } + + if ( @fclose( $this->file_handle ) === false ) { + throw new Ai1wm_Not_Closable_Exception( sprintf( __( 'Could not close file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + } + + /** + * Generate end of file block + * + * @param string $archive_crc_value Archive CRC + * + * @return string + */ + protected function get_eof_block( $archive_crc_size = null, $archive_crc_value = null ) { + return pack( 'a255a14a4100a8', '', $archive_crc_size, '', $archive_crc_value ); + } + + /** + * Check if a block is an end of file block (v1 or v2) + * + * @param string $block The block to check + * + * @return bool + */ + protected function is_eof_block( $block ) { + return $this->is_v1_eof( $block ) || $this->is_v2_eof( $block ); + } + + /** + * Check if a block is a v1 end of file block (all null bytes) + * + * @param string $block The block to check + * + * @return bool + */ + protected function is_v1_eof( $block ) { + return $this->get_eof_block( '', '' ) === $block; + } + + /** + * Check if a block is a v2 end of file block + * + * @param string $block The block to check + * + * @return bool + */ + protected function is_v2_eof( $block ) { + // Unpack end of file data + if ( ( $data = unpack( 'a255/a14size/a4100/a8crc32', $block ) ) ) { + if ( isset( $data['size'], $data['crc32'] ) ) { + if ( preg_match( '/^[0-9a-f]{8}$/i', $data['crc32'] ) ) { + return $this->get_eof_block( $data['size'], $data['crc32'] ) === $block; + } + } + } + + return false; + } + + /** + * Get archive CRC from EOF block (v2 only) + * + * @return string|null CRC32 hex string or null if v1 archive + */ + public function get_archive_crc_value() { + if ( is_null( $this->archive_crc_value ) ) { + $this->set_archive_crc_data(); + } + + return $this->archive_crc_value; + } + + /** + * Get archive CRC size from EOF block (v2 only) + * + * @return int|null Size hex string or null if v1 archive + */ + public function get_archive_crc_size() { + if ( is_null( $this->archive_crc_size ) ) { + $this->set_archive_crc_data(); + } + + return $this->archive_crc_size; + } + + /** + * Set archive CRC value and size from the v2 EOF block + * + * @return void + */ + protected function set_archive_crc_data() { + // Failed detecting the current file pointer offset + if ( ( $offset = @ftell( $this->file_handle ) ) === false ) { + return; + } + + // Failed seeking the beginning of EOL block + if ( @fseek( $this->file_handle, -static::HEADER_SIZE, SEEK_END ) === -1 ) { + return; + } + + // Get end of file block + if ( ( $block = @fread( $this->file_handle, static::HEADER_SIZE ) ) === false ) { + return; + } + + // Failed returning to original offset + if ( @fseek( $this->file_handle, $offset, SEEK_SET ) === -1 ) { + return; + } + + // Check if v2 EOF + if ( $this->is_v2_eof( $block ) === false ) { + return; + } + + // Unpack end of file data + if ( ( $data = unpack( 'a255/a14size/a4100/a8crc32', $block ) ) ) { + if ( isset( $data['crc32'] ) ) { + $this->archive_crc_value = trim( $data['crc32'] ); + } + + if ( isset( $data['size'] ) ) { + $this->archive_crc_size = (int) trim( $data['size'] ); + } + } + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/archiver/class-ai1wm-compressor.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/archiver/class-ai1wm-compressor.php new file mode 100644 index 0000000..3dd487a --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/archiver/class-ai1wm-compressor.php @@ -0,0 +1,306 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Compressor extends Ai1wm_Archiver { + + /** + * Overloaded constructor that opens the passed file for writing + * + * @param string $file_name File to use as archive + * @param string $file_password File password string + * @param string $file_compression File compression type + */ + public function __construct( $file_name, $file_password = null, $file_compression = null ) { + // Call parent, to initialize variables + parent::__construct( $file_name, $file_password, $file_compression, true ); + } + + /** + * Add a file to the archive + * + * @param string $file_name File to add to the archive + * @param string $new_file_name Write the file with a different name + * @param int $file_bytes_read Amount of the bytes we read + * @param int $file_bytes_offset File bytes offset + * @param int $file_bytes_written Amount of the bytes we wrote + * @param string|null $file_crc File CRC32 checksum (passed by reference, optional) + * + * @throws \Ai1wm_Not_Seekable_Exception + * @throws \Ai1wm_Not_Writable_Exception + * @throws \Ai1wm_Quota_Exceeded_Exception + * + * @return bool + */ + public function add_file( $file_name, $new_file_name = '', &$file_bytes_read = 0, &$file_bytes_offset = 0, &$file_bytes_written = 0, &$file_crc = null ) { + // Replace forward slash with current directory separator in file name + $file_name = ai1wm_replace_forward_slash_with_directory_separator( $file_name ); + + // Escape Windows directory separator in file name + $file_name = ai1wm_escape_windows_directory_separator( $file_name ); + + // Flag to hold if file data has been processed + $completed = true; + + // Start time + $start = microtime( true ); + + // Open the file for reading in binary mode (fopen may return null for quarantined files) + if ( ( $file_handle = @fopen( $file_name, 'rb' ) ) ) { + + // Start native hash for current chunk + $hash_ctx = Ai1wm_Crc::init_crc32(); + + // Get header block with empty CRC placeholder + if ( ( $block = $this->get_file_block( $file_name, $new_file_name, '' ) ) ) { + + // Write header block + if ( $file_bytes_offset === 0 ) { + if ( ( $file_bytes = @fwrite( $this->file_handle, $block ) ) !== false ) { + if ( strlen( $block ) !== $file_bytes ) { + throw new Ai1wm_Quota_Exceeded_Exception( sprintf( __( 'Out of disk space. Could not write header to file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + } else { + throw new Ai1wm_Not_Writable_Exception( sprintf( __( 'Could not write header to file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + } + + // Set file offset + if ( @fseek( $file_handle, $file_bytes_offset, SEEK_SET ) !== -1 ) { + $file_bytes_read = 0; + + // Cache config file check outside the loop + $should_process_file = ! in_array( $new_file_name, ai1wm_config_filters() ); + + // Read the file in 512KB chunks + while ( false === @feof( $file_handle ) ) { + if ( ( $file_content = @fread( $file_handle, static::READ_CHUNK_SIZE ) ) !== false ) { + + // Empty read indicates EOF + if ( strlen( $file_content ) === 0 ) { + break; + } + + // Add the amount of bytes we read + $file_bytes_read += strlen( $file_content ); + + // Update CRC with original content (BEFORE compression/encryption) + Ai1wm_Crc::update_crc32( $hash_ctx, $file_content ); + + // Do not encrypt or compress config files + if ( $should_process_file === true ) { + + // Add chunk data compression + if ( ! empty( $this->file_compression ) ) { + switch ( $this->file_compression ) { + case 'gzip': + $file_content = gzcompress( $file_content, 9 ); + break; + + case 'bzip2': + $file_content = bzcompress( $file_content, 9 ); + break; + } + } + + // Add chunk data encryption + if ( ! empty( $this->file_password ) ) { + $file_content = ai1wm_encrypt_string( $file_content, $this->file_password ); + } + + // Add variable length chunk size before chunk data + if ( ! empty( $this->file_compression ) ) { + $file_content = pack( 'N', strlen( $file_content ) ) . $file_content; + } + } + + if ( ( $file_bytes = @fwrite( $this->file_handle, $file_content ) ) !== false ) { + if ( strlen( $file_content ) !== $file_bytes ) { + throw new Ai1wm_Quota_Exceeded_Exception( sprintf( __( 'Out of disk space. Could not write content to file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + } else { + throw new Ai1wm_Not_Writable_Exception( sprintf( __( 'Could not write content to file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + + // Add the amount of bytes we wrote + $file_bytes_written += $file_bytes; + } + + // Time elapsed + if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { + if ( ( microtime( true ) - $start ) > $timeout ) { + $completed = false; + break; + } + } + } + + // Add the amount of bytes we read + $file_bytes_offset += $file_bytes_read; + } + + // Combine and finalize CRC + if ( empty( $file_crc ) ) { + $file_crc = Ai1wm_Crc::finalize_crc32( $hash_ctx ); + } else { + $file_crc = Ai1wm_Crc::combine_crc32( $file_crc, Ai1wm_Crc::finalize_crc32( $hash_ctx ), $file_bytes_read ); + } + + // Write file size to file header + if ( ( $file_size_block = $this->get_file_size_block( $file_bytes_written ) ) ) { + + // Seek to beginning of file size (back over: content + crc32(8) + path(4088) + mtime(12) + size(14)) + if ( @fseek( $this->file_handle, - $file_bytes_written - 8 - 4088 - 12 - 14, SEEK_CUR ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( __( 'Your PHP is 32-bit. In order to export your file, please change your PHP version to 64-bit and try again. Technical details', 'all-in-one-wp-migration' ) ); + } + + // Write file size to file header + if ( ( $file_bytes = @fwrite( $this->file_handle, $file_size_block ) ) !== false ) { + if ( strlen( $file_size_block ) !== $file_bytes ) { + throw new Ai1wm_Quota_Exceeded_Exception( sprintf( __( 'Out of disk space. Could not write size to file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + } else { + throw new Ai1wm_Not_Writable_Exception( sprintf( __( 'Could not write size to file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + + // Seek to beginning of file CRC (forward over: mtime(12) + path(4088)) + if ( @fseek( $this->file_handle, + 12 + 4088, SEEK_CUR ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( __( 'Your PHP is 32-bit. In order to export your file, please change your PHP version to 64-bit and try again. Technical details', 'all-in-one-wp-migration' ) ); + } + + // Write file CRC to file header + if ( ( $file_crc_block = $this->get_file_crc_block( $file_crc ) ) ) { + if ( ( $file_bytes = @fwrite( $this->file_handle, $file_crc_block ) ) !== false ) { + if ( strlen( $file_crc_block ) !== $file_bytes ) { + throw new Ai1wm_Quota_Exceeded_Exception( sprintf( __( 'Out of disk space. Could not write CRC to file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + } + } + + // Seek to end of file content (forward over: content) + if ( @fseek( $this->file_handle, + $file_bytes_written, SEEK_CUR ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( __( 'Your PHP is 32-bit. In order to export your file, please change your PHP version to 64-bit and try again. Technical details', 'all-in-one-wp-migration' ) ); + } + } + } + + // Close the handle + @fclose( $file_handle ); + } + + return $completed; + } + + /** + * Generate binary block header for a file + * + * @param string $file_name Filename to generate block header for + * @param string $new_file_name Write the file with a different name + * @param string|null $crc32 CRC32 checksum (optional) + * + * @return string + */ + private function get_file_block( $file_name, $new_file_name = '', $crc32 = null ) { + $block = ''; + + // Get stats about the file + if ( ( $stat = @stat( $file_name ) ) !== false ) { + + // Filename of the file we are accessing + if ( empty( $new_file_name ) ) { + $name = ai1wm_basename( $file_name ); + } else { + $name = ai1wm_basename( $new_file_name ); + } + + // Size in bytes of the file + $size = $stat['size']; + + // Last time the file was modified + $date = $stat['mtime']; + + // Replace current directory separator with backward slash in file path + if ( empty( $new_file_name ) ) { + $path = ai1wm_replace_directory_separator_with_forward_slash( ai1wm_dirname( $file_name ) ); + } else { + $path = ai1wm_replace_directory_separator_with_forward_slash( ai1wm_dirname( $new_file_name ) ); + } + + // Only calculate CRC if not provided + if ( empty( $crc32 ) ) { + $crc32 = Ai1wm_Crc::calculate_file_crc32( $file_name ); + } + + // Concatenate block format parts + $format = implode( '', $this->block_format ); + + // Pack file data into binary string + $block = pack( $format, $name, $size, $date, $path, $crc32 ); + } + + return $block; + } + + /** + * Generate file size binary block header for a file + * + * @param int $file_size File size + * + * @return string + */ + public function get_file_size_block( $file_size ) { + $block = ''; + + // Pack file data into binary string + if ( isset( $this->block_format[1] ) ) { + $block = pack( $this->block_format[1], $file_size ); + } + + return $block; + } + + /** + * Generate file CRC binary block header for a file + * + * @param int $file_crc File CRC + * + * @return string + */ + public function get_file_crc_block( $file_crc ) { + $block = ''; + + // Pack file data into binary string + if ( isset( $this->block_format[4] ) ) { + $block = pack( $this->block_format[4], $file_crc ); + } + + return $block; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/archiver/class-ai1wm-extractor.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/archiver/class-ai1wm-extractor.php new file mode 100644 index 0000000..4714784 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/archiver/class-ai1wm-extractor.php @@ -0,0 +1,717 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Extractor extends Ai1wm_Archiver { + + /** + * Total files count + * + * @type int + */ + protected $total_files_count = null; + + /** + * Total files size + * + * @type int + */ + protected $total_files_size = null; + + /** + * Overloaded constructor that opens the passed file for reading + * + * @param string $file_name File to use as archive + * @param string $file_password File password string + * @param string $file_compression File compression type + */ + public function __construct( $file_name, $file_password = null, $file_compression = null ) { + // Call parent, to initialize variables + parent::__construct( $file_name, $file_password, $file_compression, false ); + } + + /** + * List all files in the archive + * + * @return array + */ + public function list_files() { + $files = array(); + + // Seek to beginning of archive file + if ( @fseek( $this->file_handle, 0, SEEK_SET ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to beginning of file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + + $offset = 0; + + // Loop over files + while ( ( $block = @fread( $this->file_handle, static::HEADER_SIZE ) ) ) { + + // End block has been reached + if ( $this->is_eof_block( $block ) ) { + continue; + } + + // Get file data from the block + if ( ( $data = $this->get_data_from_block( $block ) ) ) { + // Store the position where the file begins - used for downloading from archive directly + $data['offset'] = $offset; + + // Skip file content, so we can move forward to the next file + if ( @fseek( $this->file_handle, $data['size'], SEEK_CUR ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to offset of file. File: %s Offset: %d', 'all-in-one-wp-migration' ), $this->file_name, $data['size'] ) ); + } + + $files[] = $data; + } + + $offset = @ftell( $this->file_handle ); + } + + return $files; + } + + /** + * Get the total files count in an archive + * + * @return int + */ + public function get_total_files_count() { + if ( is_null( $this->total_files_count ) ) { + $this->set_files_totals(); + } + + return $this->total_files_count; + } + + /** + * Get the total files size in an archive + * + * @return int + */ + public function get_total_files_size() { + if ( is_null( $this->total_files_size ) ) { + $this->set_files_totals(); + } + + return $this->total_files_size; + } + + /** + * Set the total files count and size in the archive + * + * @return void + */ + protected function set_files_totals() { + // Total files count + $this->total_files_count = 0; + + // Total files size + $this->total_files_size = 0; + + // Seek to beginning of archive file + if ( @fseek( $this->file_handle, 0, SEEK_SET ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to beginning of file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + + // Loop over files + while ( ( $block = @fread( $this->file_handle, static::HEADER_SIZE ) ) ) { + + // End block has been reached + if ( $this->is_eof_block( $block ) ) { + continue; + } + + // Get file data from the block + if ( ( $data = $this->get_data_from_block( $block ) ) ) { + + // We have a file, increment the count + $this->total_files_count += 1; + + // We have a file, increment the size + $this->total_files_size += $data['size']; + + // Skip file content so we can move forward to the next file + if ( @fseek( $this->file_handle, $data['size'], SEEK_CUR ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to offset of file. File: %s Offset: %d', 'all-in-one-wp-migration' ), $this->file_name, $data['size'] ) ); + } + } + } + } + + /** + * Extract one file to location + * + * @param string $location Destination path + * @param array $exclude_files Exclude files by name + * @param array $exclude_extensions Exclude files by extension + * @param array $old_paths Old replace paths + * @param array $new_paths New replace paths + * @param int $file_bytes_read Amount of the bytes we read + * @param int $file_bytes_offset File bytes offset + * @param int $file_bytes_written Amount of the bytes we wrote + * + * @throws \Ai1wm_Not_Directory_Exception + * @throws \Ai1wm_Not_Seekable_Exception + * + * @return bool + */ + public function extract_one_file_to( $location, $exclude_files = array(), $exclude_extensions = array(), $old_paths = array(), $new_paths = array(), &$file_bytes_read = 0, &$file_bytes_offset = 0, &$file_bytes_written = 0 ) { + if ( false === is_dir( $location ) ) { + throw new Ai1wm_Not_Directory_Exception( sprintf( __( 'Location is not a directory: %s', 'all-in-one-wp-migration' ), $location ) ); + } + + // Replace forward slash with current directory separator in location + $location = ai1wm_replace_forward_slash_with_directory_separator( $location ); + + // Flag to hold if file data has been processed + $completed = true; + + // Seek to file offset to archive file + if ( $file_bytes_offset > 0 ) { + if ( @fseek( $this->file_handle, - $file_bytes_offset - static::HEADER_SIZE, SEEK_CUR ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to offset of file. File: %s Offset: %d', 'all-in-one-wp-migration' ), $this->file_name, - $file_bytes_offset - static::HEADER_SIZE ) ); + } + } + + // Read file header block + if ( ( $block = @fread( $this->file_handle, static::HEADER_SIZE ) ) ) { + + // We reached end of file, set the pointer to the end of the file so that feof returns true + if ( $this->is_eof_block( $block ) ) { + + // Seek to end of archive file minus 1 byte + @fseek( $this->file_handle, 1, SEEK_END ); + + // Read 1 character + @fgetc( $this->file_handle ); + + } else { + + // Get file header data from the block + if ( ( $data = $this->get_data_from_block( $block ) ) ) { + + // Set file name + $file_name = $data['filename']; + + // Set file size + $file_size = $data['size']; + + // Set file mtime + $file_mtime = $data['mtime']; + + // Set file path + $file_path = $data['path']; + + // Set file crc + $file_crc32 = $data['crc32']; + + // Should we skip this file by name? + $should_exclude_file = false; + for ( $i = 0; $i < count( $exclude_files ); $i++ ) { + if ( strpos( $file_name . DIRECTORY_SEPARATOR, ai1wm_replace_forward_slash_with_directory_separator( $exclude_files[ $i ] ) . DIRECTORY_SEPARATOR ) === 0 ) { + $should_exclude_file = true; + break; + } + } + + // Should we skip this file by extension? + for ( $i = 0; $i < count( $exclude_extensions ); $i++ ) { + if ( strrpos( $file_name, $exclude_extensions[ $i ] ) === strlen( $file_name ) - strlen( $exclude_extensions[ $i ] ) ) { + $should_exclude_file = true; + break; + } + } + + // Validate file name and file path for directory traversal + if ( path_is_absolute( $file_name ) || validate_file( $file_name ) !== 0 ) { + $should_exclude_file = true; + } + + // Do we have a match? + if ( $should_exclude_file === false ) { + + // Replace extract paths + for ( $i = 0; $i < count( $old_paths ); $i++ ) { + if ( strpos( $file_path . DIRECTORY_SEPARATOR, ai1wm_replace_forward_slash_with_directory_separator( $old_paths[ $i ] ) . DIRECTORY_SEPARATOR ) === 0 ) { + $file_name = substr_replace( $file_name, ai1wm_replace_forward_slash_with_directory_separator( $new_paths[ $i ] ), 0, strlen( ai1wm_replace_forward_slash_with_directory_separator( $old_paths[ $i ] ) ) ); + $file_path = substr_replace( $file_path, ai1wm_replace_forward_slash_with_directory_separator( $new_paths[ $i ] ), 0, strlen( ai1wm_replace_forward_slash_with_directory_separator( $old_paths[ $i ] ) ) ); + break; + } + } + + // Escape Windows directory separator in file path + if ( path_is_absolute( $file_path ) ) { + $location_file_path = ai1wm_escape_windows_directory_separator( $file_path ); + } else { + $location_file_path = ai1wm_escape_windows_directory_separator( $location . DIRECTORY_SEPARATOR . $file_path ); + } + + // Escape Windows directory separator in file name + if ( path_is_absolute( $file_name ) ) { + $location_file_name = ai1wm_escape_windows_directory_separator( $file_name ); + } else { + $location_file_name = ai1wm_escape_windows_directory_separator( $location . DIRECTORY_SEPARATOR . $file_name ); + } + + // Check if location doesn't exist, then create it + if ( false === is_dir( $location_file_path ) ) { + @mkdir( $location_file_path, $this->get_permissions_for_directory(), true ); + } + + $file_bytes_read = 0; + + // We have a match, let's extract the file + if ( ( $completed = $this->extract_to( $location_file_name, $file_name, $file_size, $file_mtime, $file_bytes_read, $file_bytes_offset, $file_bytes_written ) ) ) { + $file_bytes_offset = $file_bytes_written = 0; + + // Verify CRC32 if present (not empty means version 2 archive with CRC32) + if ( ! empty( $file_crc32 ) ) { + do_action( 'ai1wm_check_file_integrity', $file_name, $file_crc32 ); + } + } + } else { + + // We don't have a match, skip file content + if ( @fseek( $this->file_handle, $file_size, SEEK_CUR ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to offset of file. File: %s Offset: %d', 'all-in-one-wp-migration' ), $this->file_name, $file_size ) ); + } + } + } + } + } + + return $completed; + } + + /** + * Extract specific files from archive + * + * @param string $location Location where to extract files + * @param array $include_files Include files by name + * @param array $exclude_files Exclude files by name + * @param array $exclude_extensions Exclude files by extension + * @param int $file_bytes_read Amount of the bytes we read + * @param int $file_bytes_offset File bytes offset + * @param int $file_bytes_written Amount of the bytes we wrote + * + * @throws \Ai1wm_Not_Directory_Exception + * @throws \Ai1wm_Not_Seekable_Exception + * + * @return bool + */ + public function extract_by_files_array( $location, $include_files = array(), $exclude_files = array(), $exclude_extensions = array(), &$file_bytes_read = 0, &$file_bytes_offset = 0, &$file_bytes_written = 0 ) { + if ( false === is_dir( $location ) ) { + throw new Ai1wm_Not_Directory_Exception( sprintf( __( 'Location is not a directory: %s', 'all-in-one-wp-migration' ), $location ) ); + } + + // Replace forward slash with current directory separator in location + $location = ai1wm_replace_forward_slash_with_directory_separator( $location ); + + // Flag to hold if file data has been processed + $completed = true; + + // Start time + $start = microtime( true ); + + // Seek to file offset to archive file + if ( $file_bytes_offset > 0 ) { + if ( @fseek( $this->file_handle, - $file_bytes_offset - static::HEADER_SIZE, SEEK_CUR ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to offset of file. File: %s Offset: %d', 'all-in-one-wp-migration' ), $this->file_name, - $file_bytes_offset - static::HEADER_SIZE ) ); + } + } + + // We read until we reached the end of the file, or the files we were looking for were found + while ( ( $block = @fread( $this->file_handle, static::HEADER_SIZE ) ) ) { + + // We reached end of file, set the pointer to the end of the file so that feof returns true + if ( $this->is_eof_block( $block ) ) { + + // Seek to end of archive file minus 1 byte + @fseek( $this->file_handle, 1, SEEK_END ); + + // Read 1 character + @fgetc( $this->file_handle ); + + } else { + + // Get file header data from the block + if ( ( $data = $this->get_data_from_block( $block ) ) ) { + + // Set file name + $file_name = $data['filename']; + + // Set file size + $file_size = $data['size']; + + // Set file mtime + $file_mtime = $data['mtime']; + + // Set file path + $file_path = $data['path']; + + // Set file crc + $file_crc32 = $data['crc32']; + + // Should we extract this file by name? + $should_include_file = false; + for ( $i = 0; $i < count( $include_files ); $i++ ) { + if ( strpos( $file_name . DIRECTORY_SEPARATOR, ai1wm_replace_forward_slash_with_directory_separator( $include_files[ $i ] ) . DIRECTORY_SEPARATOR ) === 0 ) { + $should_include_file = true; + break; + } + } + + // Should we skip this file name? + for ( $i = 0; $i < count( $exclude_files ); $i++ ) { + if ( strpos( $file_name . DIRECTORY_SEPARATOR, ai1wm_replace_forward_slash_with_directory_separator( $exclude_files[ $i ] ) . DIRECTORY_SEPARATOR ) === 0 ) { + $should_include_file = false; + break; + } + } + + // Should we skip this file by extension? + for ( $i = 0; $i < count( $exclude_extensions ); $i++ ) { + if ( strrpos( $file_name, $exclude_extensions[ $i ] ) === strlen( $file_name ) - strlen( $exclude_extensions[ $i ] ) ) { + $should_include_file = false; + break; + } + } + + // Validate file name and file path for directory traversal + if ( path_is_absolute( $file_name ) || validate_file( $file_name ) !== 0 ) { + $should_include_file = false; + } + + // Do we have a match? + if ( $should_include_file === true ) { + + // Escape Windows directory separator in file path + $location_file_path = ai1wm_escape_windows_directory_separator( $location . DIRECTORY_SEPARATOR . $file_path ); + + // Escape Windows directory separator in file name + $location_file_name = ai1wm_escape_windows_directory_separator( $location . DIRECTORY_SEPARATOR . $file_name ); + + // Check if location doesn't exist, then create it + if ( false === is_dir( $location_file_path ) ) { + @mkdir( $location_file_path, $this->get_permissions_for_directory(), true ); + } + + $file_bytes_read = 0; + + // We have a match, let's extract the file + if ( ( $completed = $this->extract_to( $location_file_name, $file_name, $file_size, $file_mtime, $file_bytes_read, $file_bytes_offset, $file_bytes_written ) ) ) { + $file_bytes_offset = $file_bytes_written = 0; + + // Verify CRC32 if present (not empty means version 2 archive with CRC32) + if ( ! empty( $file_crc32 ) ) { + do_action( 'ai1wm_check_file_integrity', $file_name, $file_crc32 ); + } + } + } else { + + // We don't have a match, skip file content + if ( @fseek( $this->file_handle, $file_size, SEEK_CUR ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to offset of file. File: %s Offset: %d', 'all-in-one-wp-migration' ), $this->file_name, $file_size ) ); + } + } + + // Time elapsed + if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { + if ( ( microtime( true ) - $start ) > $timeout ) { + $completed = false; + break; + } + } + } + } + } + + return $completed; + } + + /** + * Extract file to + * + * @param string $location_file_name Location file name + * @param string $file_name File name + * @param array $file_size File size (in bytes) + * @param array $file_mtime File modified time (in seconds) + * @param int $file_bytes_read Amount of the bytes we read + * @param int $file_bytes_offset File bytes offset + * @param int $file_bytes_written Amount of the bytes we wrote + * + * @throws \Ai1wm_Not_Seekable_Exception + * @throws \Ai1wm_Not_Readable_Exception + * @throws \Ai1wm_Quota_Exceeded_Exception + * + * @return bool + */ + private function extract_to( $location_file_name, $file_name, $file_size, $file_mtime, &$file_bytes_read = 0, &$file_bytes_offset = 0, &$file_bytes_written = 0 ) { + // Flag to hold if file data has been processed + $completed = true; + + // Start time + $start = microtime( true ); + + // Seek to file offset to archive file + if ( $file_bytes_offset > 0 ) { + if ( @fseek( $this->file_handle, $file_bytes_offset, SEEK_CUR ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to offset of file. File: %s Offset: %d', 'all-in-one-wp-migration' ), $this->file_name, $file_size ) ); + } + } + + // Set file size + $file_size -= $file_bytes_offset; + + // Should the extract overwrite the file if it exists? (fopen may return null for quarantined files) + if ( ( $file_handle = @fopen( $location_file_name, ( $file_bytes_offset === 0 ? 'wb' : 'cb' ) ) ) ) { + + // Set file offset + if ( @fseek( $file_handle, $file_bytes_written, SEEK_SET ) !== -1 ) { + $file_bytes_read = 0; + + // Cache config file check outside the loop + $should_process_file = ! in_array( $file_name, ai1wm_config_filters() ); + + // Is the filesize more than 0 bytes? + while ( $file_size > 0 ) { + + // Read the file in chunks of 512KB + $chunk_size = min( $file_size, static::READ_CHUNK_SIZE ); + + // Do not decrypt or decompress config files + if ( $should_process_file === true ) { + + // Get decryption chunk size + if ( ! empty( $this->file_password ) ) { + if ( $file_size > static::READ_CHUNK_SIZE ) { + $chunk_size += ai1wm_crypt_iv_length() * 2; + $chunk_size = min( $chunk_size, $file_size ); + } + } + + // Read chunk header data + if ( ! empty( $this->file_compression ) ) { + $chunk_header_size = 4; + + // Get chunk header block + if ( ( $chunk_header_block = fread( $this->file_handle, $chunk_header_size ) ) === false ) { + throw new Ai1wm_Not_Readable_Exception( sprintf( __( 'Could not read content from file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + + // Get chunk header data + if ( ( $chunk_header_data = unpack( 'Nsize', $chunk_header_block ) ) ) { + if ( isset( $chunk_header_data['size'] ) ) { + $chunk_size = $chunk_header_data['size']; + } + } + + // Add the amount of bytes we read + $file_bytes_read += $chunk_header_size; + + // Remove the amout of bytes we read + $file_size -= $chunk_header_size; + } + } + + // Read data chunk by chunk from archive file + if ( $chunk_size > 0 ) { + + // Read the file in chunks of 512KB from archiver + if ( ( $file_content = @fread( $this->file_handle, $chunk_size ) ) === false ) { + throw new Ai1wm_Not_Readable_Exception( sprintf( __( 'Could not read content from file. File: %s', 'all-in-one-wp-migration' ), $this->file_name ) ); + } + + // Add the amount of bytes we read + $file_bytes_read += $chunk_size; + + // Remove the amout of bytes we read + $file_size -= $chunk_size; + + // Do not decrypt or decompress config files + if ( $should_process_file === true ) { + + // Add chunk data decryption + if ( ! empty( $this->file_password ) ) { + $file_content = ai1wm_decrypt_string( $file_content, $this->file_password ); + } + + // Add chunk data decompression + if ( ! empty( $this->file_compression ) ) { + switch ( $this->file_compression ) { + case 'gzip': + $file_content = gzuncompress( $file_content ); + break; + + case 'bzip2': + $file_content = bzdecompress( $file_content ); + break; + } + } + } + + // Write file contents + if ( ( $file_bytes = @fwrite( $file_handle, $file_content ) ) !== false ) { + if ( strlen( $file_content ) !== $file_bytes ) { + throw new Ai1wm_Quota_Exceeded_Exception( sprintf( __( 'Out of disk space. Could not write content to file. File: %s', 'all-in-one-wp-migration' ), $location_file_name ) ); + } + } + + // Add the amount of bytes we wrote + $file_bytes_written += $file_bytes; + } + + // Time elapsed + if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { + if ( ( microtime( true ) - $start ) > $timeout ) { + $completed = false; + break; + } + } + } + + // Add the amount of bytes we read + $file_bytes_offset += $file_bytes_read; + } + + // Close the handle + @fclose( $file_handle ); + + // Let's apply last modified date + @touch( $location_file_name, $file_mtime ); + + // All files should chmoded to 644 + @chmod( $location_file_name, $this->get_permissions_for_file() ); + + } else { + + // We don't have file permissions, skip file content + if ( @fseek( $this->file_handle, $file_size, SEEK_CUR ) === -1 ) { + throw new Ai1wm_Not_Seekable_Exception( sprintf( __( 'Could not seek to offset of file. File: %s Offset: %d', 'all-in-one-wp-migration' ), $this->file_name, $file_size ) ); + } + } + + return $completed; + } + + /** + * Get file header data from the block + * + * @param string $block Binary file header + * + * @return array + */ + private function get_data_from_block( $block ) { + $data = false; + + // Prepare our array keys to unpack + $format = array( + $this->block_format[0] . 'filename/', + $this->block_format[1] . 'size/', + $this->block_format[2] . 'mtime/', + $this->block_format[3] . 'path/', + $this->block_format[4] . 'crc32', + ); + $format = implode( '', $format ); + + // Unpack file header data + if ( ( $data = unpack( $format, $block ) ) ) { + + // Set file details + $data['filename'] = trim( $data['filename'] ); + $data['size'] = (int) trim( $data['size'] ); + $data['mtime'] = (int) trim( $data['mtime'] ); + $data['path'] = trim( $data['path'] ); + $data['crc32'] = trim( $data['crc32'] ); + + // Set file name + $data['filename'] = ( $data['path'] === '.' ? $data['filename'] : $data['path'] . DIRECTORY_SEPARATOR . $data['filename'] ); + + // Set file path + $data['path'] = ( $data['path'] === '.' ? '' : $data['path'] ); + + // Replace forward slash with current directory separator in file name + $data['filename'] = ai1wm_replace_forward_slash_with_directory_separator( $data['filename'] ); + + // Replace forward slash with current directory separator in file path + $data['path'] = ai1wm_replace_forward_slash_with_directory_separator( $data['path'] ); + } + + return $data; + } + + /** + * Check if file has reached end of file + * Returns true if file has reached eof, false otherwise + * + * @return bool + */ + public function has_reached_eof() { + return @feof( $this->file_handle ); + } + + /** + * Check if file has reached end of file + * Returns true if file has NOT reached eof, false otherwise + * + * @return bool + */ + public function has_not_reached_eof() { + return ! @feof( $this->file_handle ); + } + + /** + * Get directory permissions + * + * @return int + */ + public function get_permissions_for_directory() { + if ( defined( 'FS_CHMOD_DIR' ) ) { + return FS_CHMOD_DIR; + } + + return 0755; + } + + /** + * Get file permissions + * + * @return int + */ + public function get_permissions_for_file() { + if ( defined( 'FS_CHMOD_FILE' ) ) { + return FS_CHMOD_FILE; + } + + return 0644; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/checksum/class-ai1wm-crc.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/checksum/class-ai1wm-crc.php new file mode 100644 index 0000000..dc25cb3 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/checksum/class-ai1wm-crc.php @@ -0,0 +1,202 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Crc { + + /** + * Calculate CRC32 checksum for a file + * + * @param string $file_path Path to the file + * @return string|null CRC32 checksum as hexadecimal string or null on error + */ + public static function calculate_file_crc32( $file_path ) { + if ( ! file_exists( $file_path ) || ! is_readable( $file_path ) ) { + return null; + } + + // Use hash_file for CRC32b (CRC32 with reversed bit order, more standard) + $crc = hash_file( 'crc32b', $file_path ); + + return $crc; + } + + /** + * Verify file CRC32 checksum + * + * @param string $file_path Path to the file + * @param string $expected_crc Expected CRC32 checksum + * @return bool True if CRC matches, false otherwise + */ + public static function verify_file_crc32( $file_path, $expected_crc ) { + $calculated_crc = self::calculate_file_crc32( $file_path ); + + if ( $calculated_crc === null ) { + return false; + } + + return strcasecmp( $calculated_crc, $expected_crc ) === 0; + } + + /** + * Initialize CRC32 hash context for incremental calculation + * + * @return resource|\HashContext Hash context + */ + public static function init_crc32() { + return hash_init( 'crc32b' ); + } + + /** + * Update CRC32 hash with a data chunk + * + * @param resource|\HashContext $context Hash context + * @param string $data Data chunk to add + * @return void + */ + public static function update_crc32( $context, $data ) { + hash_update( $context, $data ); + } + + /** + * Finalize CRC32 calculation and return result + * + * @param resource|\HashContext $context Hash context + * @return string CRC32 checksum as hexadecimal string + */ + public static function finalize_crc32( $context ) { + return hash_final( $context ); + } + + /** + * Combine two CRC32 checksums + * + * This method mathematically combines two CRC32 values, allowing resumable + * CRC calculation across multiple processing cycles (e.g., handling timeouts). + * + * Based on zlib's crc32_combine algorithm using GF(2) polynomial arithmetic. + * + * @param string $crc1_hex CRC32 of first data block (hex string) + * @param string $crc2_hex CRC32 of second data block (hex string) + * @param int $len2 Length of second data block in bytes + * @return string Combined CRC32 checksum as hexadecimal string + */ + public static function combine_crc32( $crc1_hex, $crc2_hex, $len2 ) { + // CRC32 polynomial (reversed) + $poly = 0xEDB88320; + + // Convert hex strings to integers + $crc1 = hexdec( $crc1_hex ); + $crc2 = hexdec( $crc2_hex ); + + // If second block is empty, return first CRC unchanged + if ( $len2 === 0 ) { + return sprintf( '%08x', $crc1 ); + } + + // Build operator matrix for x^n where n = len2 * 8 + // This represents multiplication by x^(8*len2) mod poly + $even = array_fill( 0, 32, 0 ); + $even[0] = $poly; + $row = 1; + for ( $n = 1; $n < 32; $n++ ) { + $even[ $n ] = $row; + $row = $row << 1; + } + + // Square to get x^2, x^4, x^8, etc. + $odd = array_fill( 0, 32, 0 ); + self::gf2_matrix_square( $odd, $even ); + self::gf2_matrix_square( $even, $odd ); + + // Apply len2 zeros to crc1 by repeatedly squaring and applying + do { + // Apply zeros operator for this bit of len2 + self::gf2_matrix_square( $odd, $even ); + if ( $len2 & 1 ) { + $crc1 = self::gf2_matrix_times( $odd, $crc1 ); + } + $len2 >>= 1; + + // If no more bits, we're done + if ( $len2 === 0 ) { + break; + } + + // Square again for next bit + self::gf2_matrix_square( $even, $odd ); + if ( $len2 & 1 ) { + $crc1 = self::gf2_matrix_times( $even, $crc1 ); + } + $len2 >>= 1; + + } while ( $len2 !== 0 ); + + // Combine the two CRCs + $crc1 ^= $crc2; + + return sprintf( '%08x', $crc1 ); + } + + /** + * Matrix multiplication in GF(2) + * + * @param array $mat Matrix + * @param int $vec Vector + * @return int Result + */ + private static function gf2_matrix_times( $mat, $vec ) { + $sum = 0; + $mat_index = 0; + + while ( $vec ) { + if ( $vec & 1 ) { + $sum ^= $mat[ $mat_index ]; + } + $vec = ( $vec >> 1 ) & 0x7FFFFFFF; + $mat_index++; + } + + return $sum; + } + + /** + * Square a matrix in GF(2) + * + * @param array $square Result matrix (passed by reference) + * @param array $mat Input matrix + * @return void + */ + private static function gf2_matrix_square( &$square, $mat ) { + for ( $n = 0; $n < 32; $n++ ) { + $square[ $n ] = self::gf2_matrix_times( $mat, $mat[ $n ] ); + } + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/command/class-ai1wm-wp-cli-command.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/command/class-ai1wm-wp-cli-command.php new file mode 100644 index 0000000..23b8a5d --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/command/class-ai1wm-wp-cli-command.php @@ -0,0 +1,119 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +if ( defined( 'WP_CLI' ) ) { + class Ai1wm_WP_CLI_Command extends WP_CLI_Command { + + /** + * Creates a new backup. + * + * ## EXAMPLES + * + * $ wp ai1wm export + * + * @subcommand export + */ + public function export( $args = array(), $assoc_args = array() ) { + $this->info(); + } + + /** + * Creates a new backup. + * + * ## EXAMPLES + * + * $ wp ai1wm backup + * + * @subcommand backup + */ + public function backup( $args = array(), $assoc_args = array() ) { + $this->info(); + } + + /** + * Imports a backup. + * + * ## EXAMPLES + * + * $ wp ai1wm import + * + * @subcommand import + */ + public function import( $args = array(), $assoc_args = array() ) { + $this->info(); + } + + /** + * Restores a backup. + * + * ## EXAMPLES + * + * $ wp ai1wm restore + * + * @subcommand restore + */ + public function restore( $args = array(), $assoc_args = array() ) { + $this->info(); + } + + /** + * Resets site to default WordPress installation. + * + * ## EXAMPLES + * + * $ wp ai1wm reset + * + * @subcommand reset + */ + public function reset( $args = array(), $assoc_args = array() ) { + $this->info(); + } + + protected function info() { + if ( is_multisite() ) { + WP_CLI::error_multi_line( + array( + __( 'This feature is available in Multisite Extension.', 'all-in-one-wp-migration' ), + __( 'You can purchase it from this address: https://servmask.com/products/multisite-extension', 'all-in-one-wp-migration' ), + ) + ); + exit; + } + + WP_CLI::error_multi_line( + array( + __( 'This feature is available in Unlimited Extension.', 'all-in-one-wp-migration' ), + __( 'You can purchase it from this address: https://servmask.com/products/unlimited-extension', 'all-in-one-wp-migration' ), + ) + ); + } + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/cron/class-ai1wm-cron.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/cron/class-ai1wm-cron.php new file mode 100644 index 0000000..54a7024 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/cron/class-ai1wm-cron.php @@ -0,0 +1,142 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Cron { + + /** + * Schedules a hook which will be executed by the WordPress + * actions core on a specific interval + * + * @param string $hook Event hook + * @param string $recurrence How often the event should reoccur + * @param integer $timestamp Preferred timestamp (when the event shall be run) + * @param array $args Arguments to pass to the hook function(s) + * @return mixed + */ + public static function add( $hook, $recurrence, $timestamp, $args = array() ) { + $schedules = wp_get_schedules(); + + // Schedule event + if ( isset( $schedules[ $recurrence ] ) && ( $current = $schedules[ $recurrence ] ) ) { + if ( $timestamp <= ( $current_timestamp = time() ) ) { + while ( $timestamp <= $current_timestamp ) { + $timestamp += $current['interval']; + } + } + + return wp_schedule_event( $timestamp, $recurrence, $hook, $args ); + } + } + + /** + * Un-schedules all previously-scheduled cron jobs using a particular + * hook name or a specific combination of hook name and arguments. + * + * @param string $hook Event hook + * @return boolean + */ + public static function clear( $hook ) { + $cron = get_option( AI1WM_CRON, array() ); + if ( empty( $cron ) ) { + return false; + } + + foreach ( $cron as $timestamp => $hooks ) { + if ( isset( $hooks[ $hook ] ) ) { + unset( $cron[ $timestamp ][ $hook ] ); + + // Unset empty timestamps + if ( empty( $cron[ $timestamp ] ) ) { + unset( $cron[ $timestamp ] ); + } + } + } + + return update_option( AI1WM_CRON, $cron ); + } + + /** + * Checks whether cronjob already exists + * + * @param string $hook Event hook + * @param array $args Event callback arguments + * @return boolean + */ + public static function exists( $hook, $args = array() ) { + $cron = get_option( AI1WM_CRON, array() ); + if ( empty( $cron ) ) { + return false; + } + + foreach ( $cron as $timestamp => $hooks ) { + if ( empty( $args ) ) { + if ( isset( $hooks[ $hook ] ) ) { + return true; + } + } else { + if ( isset( $hooks[ $hook ][ md5( serialize( $args ) ) ] ) ) { + return true; + } + } + } + + return false; + } + + /** + * Deletes cron event(s) if it exists + * + * @param string $hook Event hook + * @param array $args Event callback arguments + * @return boolean + */ + public static function delete( $hook, $args = array() ) { + $cron = get_option( AI1WM_CRON, array() ); + if ( empty( $cron ) ) { + return false; + } + + $key = md5( serialize( $args ) ); + foreach ( $cron as $timestamp => $hooks ) { + if ( isset( $cron[ $timestamp ][ $hook ][ $key ] ) ) { + unset( $cron[ $timestamp ][ $hook ][ $key ] ); + } + if ( isset( $cron[ $timestamp ][ $hook ] ) && empty( $cron[ $timestamp ][ $hook ] ) ) { + unset( $cron[ $timestamp ][ $hook ] ); + } + if ( empty( $cron[ $timestamp ] ) ) { + unset( $cron[ $timestamp ] ); + } + } + + return update_option( AI1WM_CRON, $cron ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-mariadb.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-mariadb.php new file mode 100644 index 0000000..2301baa --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-mariadb.php @@ -0,0 +1,82 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Database_Mariadb extends Ai1wm_Database_Mysqli { + + /** + * Replace column types + * + * @param string $input Column value + * @return string + */ + protected function replace_column_types( $input ) { + static $search = null; + static $replace = null; + + // Cache column types on first call + if ( is_null( $search ) || is_null( $replace ) ) { + $search = array(); + $replace = array(); + + // Convert INET4 column type (10.10.0) + if ( version_compare( $this->server_version(), '10.10.0', '<' ) ) { + $search[] = '/(?server_version(), '10.5.0', '<' ) ) { + $search[] = '/(?server_version(), '10.7.0', '<' ) ) { + $search[] = '/(?server_version(), '12.3.0', '<' ) ) { + $search[] = '/(?server_version(), '11.7.1', '<' ) ) { + $search[] = '/(?. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Database_Mysql extends Ai1wm_Database { + + /** + * Check whether table has auto increment attribute + * + * @param string $table_name Table name + * @return boolean + */ + public function has_auto_increment( $table_name ) { + return stripos( $this->get_create_table( $table_name ), 'AUTO_INCREMENT' ) !== false; + } + + /** + * Run MySQL query + * + * @param string $input SQL query + * @return mixed + */ + public function query( $input ) { + if ( ! ( $result = mysql_query( $input, $this->wpdb->dbh ) ) ) { + $mysql_errno = 0; + + // Get MySQL error code + if ( ! empty( $this->wpdb->dbh ) ) { + if ( is_resource( $this->wpdb->dbh ) ) { + $mysql_errno = mysql_errno( $this->wpdb->dbh ); + } else { + $mysql_errno = 2006; + } + } + + // MySQL server has gone away, try to reconnect + if ( empty( $this->wpdb->dbh ) || 2006 === $mysql_errno ) { + if ( ! $this->wpdb->check_connection( false ) ) { + throw new Ai1wm_Database_Exception( __( 'Error reconnecting to the database. Technical details', 'all-in-one-wp-migration' ), 503 ); + } + + $result = mysql_query( $input, $this->wpdb->dbh ); + } + } + + return $result; + } + + /** + * Escape string input for MySQL query + * + * @param string $input String to escape + * @return string + */ + public function escape( $input ) { + return mysql_real_escape_string( $input, $this->wpdb->dbh ); + } + + /** + * Return the error code for the most recent function call + * + * @return integer + */ + public function errno() { + return mysql_errno( $this->wpdb->dbh ); + } + + /** + * Return a string description of the last error + * + * @return string + */ + public function error() { + return mysql_error( $this->wpdb->dbh ); + } + + /** + * Return server info + * + * @return string + */ + public function server_info() { + static $cached_result = null; + + // Cache server info on first call + if ( $cached_result === null ) { + $cached_result = mysql_get_server_info( $this->wpdb->dbh ); + } + + return $cached_result; + } + + /** + * Return the result from MySQL query as associative array + * + * @param mixed $result MySQL resource + * @return array + */ + public function fetch_assoc( &$result ) { + return mysql_fetch_assoc( $result ); + } + + /** + * Return the result from MySQL query as row + * + * @param mixed $result MySQL resource + * @return array + */ + public function fetch_row( &$result ) { + return mysql_fetch_row( $result ); + } + + /** + * Return the number for rows from MySQL results + * + * @param mixed $result MySQL resource + * @return integer + */ + public function num_rows( &$result ) { + return mysql_num_rows( $result ); + } + + /** + * Free MySQL result memory + * + * @param mixed $result MySQL resource + * @return boolean + */ + public function free_result( &$result ) { + return mysql_free_result( $result ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-mysqli.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-mysqli.php new file mode 100644 index 0000000..daddea8 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-mysqli.php @@ -0,0 +1,181 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Database_Mysqli extends Ai1wm_Database { + + /** + * Check whether table has auto increment attribute + * + * @param string $table_name Table name + * @return boolean + */ + public function has_auto_increment( $table_name ) { + return stripos( $this->get_create_table( $table_name ), 'AUTO_INCREMENT' ) !== false; + } + + /** + * Run MySQL query + * + * @param string $input SQL query + * @return mixed + */ + public function query( $input ) { + if ( ! mysqli_real_query( $this->wpdb->dbh, $input ) ) { + $mysqli_errno = 0; + + // Get MySQL error code + if ( ! empty( $this->wpdb->dbh ) ) { + if ( $this->wpdb->dbh instanceof mysqli ) { + $mysqli_errno = mysqli_errno( $this->wpdb->dbh ); + } else { + $mysqli_errno = 2006; + } + } + + // MySQL server has gone away, try to reconnect + if ( empty( $this->wpdb->dbh ) || 2006 === $mysqli_errno ) { + if ( ! $this->wpdb->check_connection( false ) ) { + throw new Ai1wm_Database_Exception( __( 'Error reconnecting to the database. Technical details', 'all-in-one-wp-migration' ), 503 ); + } + + mysqli_real_query( $this->wpdb->dbh, $input ); + } + } + + // The parameter $mode has had no effect as of PHP 8.1.0. + if ( ( PHP_MAJOR_VERSION >= 8 && PHP_MINOR_VERSION >= 1 ) || ! defined( 'MYSQLI_STORE_RESULT_COPY_DATA' ) ) { + return mysqli_store_result( $this->wpdb->dbh ); + } + + // Copy results from the internal mysqlnd buffer into the PHP variables fetched + return mysqli_store_result( $this->wpdb->dbh, MYSQLI_STORE_RESULT_COPY_DATA ); + } + + /** + * Escape string input for MySQL query + * + * @param string $input String to escape + * @return string + */ + public function escape( $input ) { + return mysqli_real_escape_string( $this->wpdb->dbh, $input ); + } + + /** + * Return the error code for the most recent function call + * + * @return integer + */ + public function errno() { + return mysqli_errno( $this->wpdb->dbh ); + } + + /** + * Return a string description of the last error + * + * @return string + */ + public function error() { + return mysqli_error( $this->wpdb->dbh ); + } + + /** + * Return server info + * + * @return string + */ + public function server_info() { + static $cached_result = null; + + // Cache server info on first call + if ( $cached_result === null ) { + $cached_result = mysqli_get_server_info( $this->wpdb->dbh ); + } + + return $cached_result; + } + + /** + * Return the result from MySQL query as associative array + * + * @param mixed $result MySQL resource + * @return array + */ + public function fetch_assoc( &$result ) { + if ( $result === false ) { + return false; + } + + return mysqli_fetch_assoc( $result ); + } + + /** + * Return the result from MySQL query as row + * + * @param mixed $result MySQL resource + * @return array + */ + public function fetch_row( &$result ) { + if ( $result === false ) { + return false; + } + + return mysqli_fetch_row( $result ); + } + + /** + * Return the number for rows from MySQL results + * + * @param mixed $result MySQL resource + * @return integer + */ + public function num_rows( &$result ) { + if ( $result === false ) { + return 0; + } + + return mysqli_num_rows( $result ); + } + + /** + * Free MySQL result memory + * + * @param mixed $result MySQL resource + * @return boolean + */ + public function free_result( &$result ) { + if ( $result === false ) { + return true; + } + + return mysqli_free_result( $result ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-sqlite.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-sqlite.php new file mode 100644 index 0000000..380daf8 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-sqlite.php @@ -0,0 +1,377 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Database_Sqlite extends Ai1wm_Database { + + /** + * Check whether table has auto increment attribute + * + * @param string $table_name Table name + * @return boolean + */ + public function has_auto_increment( $table_name ) { + return stripos( $this->get_create_table( $table_name ), 'AUTOINCREMENT' ) !== false; + } + + /** + * Get views + * + * @return array + */ + protected function get_views() { + if ( is_null( $this->views ) ) { + $where_query = array(); + + // Loop over table prefixes + if ( $this->get_table_prefix_filters() ) { + foreach ( $this->get_table_prefix_filters() as $prefix_filter ) { + if ( isset( $prefix_filter[0], $prefix_filter[1] ) ) { + $where_query[] = sprintf( "(`name` REGEXP '^%s' AND `name` NOT REGEXP '^%s')", $prefix_filter[0], $prefix_filter[1] ); + } else { + $where_query[] = sprintf( "`name` REGEXP '^%s'", $prefix_filter[0] ); + } + } + } else { + $where_query[] = 1; + } + + $this->views = array(); + + // Loop over views + $result = $this->query( sprintf( "SELECT `name` FROM `sqlite_master` WHERE `type`='view' AND (%s)", implode( ' OR ', $where_query ) ) ); + while ( $row = $this->fetch_row( $result ) ) { + if ( isset( $row[0] ) ) { + $this->views[] = $row[0]; + } + } + + $this->free_result( $result ); + } + + return $this->views; + } + + /** + * Get base tables + * + * @return array + */ + protected function get_base_tables() { + if ( is_null( $this->base_tables ) ) { + $where_query = array(); + + // Loop over table prefixes + if ( $this->get_table_prefix_filters() ) { + foreach ( $this->get_table_prefix_filters() as $prefix_filter ) { + if ( isset( $prefix_filter[0], $prefix_filter[1] ) ) { + $where_query[] = sprintf( "(`name` REGEXP '^%s' AND `name` NOT REGEXP '^%s')", $prefix_filter[0], $prefix_filter[1] ); + } else { + $where_query[] = sprintf( "`name` REGEXP '^%s'", $prefix_filter[0] ); + } + } + } else { + $where_query[] = 1; + } + + $this->base_tables = array(); + + // Loop over base tables + $result = $this->query( sprintf( "SELECT `name` FROM `sqlite_master` WHERE `type`='table' AND (%s)", implode( ' OR ', $where_query ) ) ); + while ( $row = $this->fetch_row( $result ) ) { + if ( isset( $row[0] ) ) { + $this->base_tables[] = $row[0]; + } + } + + $this->free_result( $result ); + } + + return $this->base_tables; + } + + /** + * Run SQLite query + * + * @param string $input SQL query + * @return mixed + */ + public function query( $input ) { + return $this->wpdb->get_results( $input, ARRAY_A ); + } + + /** + * Escape string input for SQLite query + * + * @param string $input String to escape + * @return string + */ + public function escape( $input ) { + return $this->wpdb->_real_escape( $input ); + } + + /** + * Return the error code for the most recent function call + * + * @return integer + */ + public function errno() { + return 0; + } + + /** + * Return a string description of the last error + * + * @return string + */ + public function error() { + } + + /** + * Return server info + * + * @return string + */ + public function server_info() { + return $this->wpdb->db_server_info(); + } + + /** + * Return result as associative array + * + * @param mixed $result SQLite resource + * @return array + */ + public function fetch_assoc( &$result ) { + if ( key( $result ) === null ) { + return false; + } + + $current = current( $result ); + next( $result ); + + return $current; + } + + /** + * Return the result from SQLite query as row + * + * @param mixed $result SQLite resource + * @return array + */ + public function fetch_row( &$result ) { + $current = $this->fetch_assoc( $result ); + if ( $current === false ) { + return false; + } + + return array_values( $current ); + } + + /** + * Return the number for rows from SQLite results + * + * @param mixed $result SQLite resource + * @return integer + */ + public function num_rows( &$result ) { + return count( $result ); + } + + /** + * Stub for free SQLite result memory + * + * @param mixed $result SQLite resource + * @return void + */ + public function free_result( &$result ) { + unset( $result ); + } + + /** + * Get SQLite create view + * + * @param string $table_name View name + * @return string + */ + protected function get_create_view( $table_name ) { + $result = $this->query( "SELECT `sql` FROM `sqlite_master` WHERE `name` = '{$table_name}'" ); + $row = $this->fetch_assoc( $result ); + + // Close result cursor + $this->free_result( $result ); + + // Get create table + if ( isset( $row['sql'] ) ) { + return $row['sql']; + } + } + + /** + * Get SQLite create table + * + * @param string $table_name Table name + * @return string + */ + protected function get_create_table( $table_name ) { + $result = $this->query( "SELECT `sql` FROM `sqlite_master` WHERE `name` = '{$table_name}'" ); + $row = $this->fetch_assoc( $result ); + + // Close result cursor + $this->free_result( $result ); + + // Get create table + if ( isset( $row['sql'] ) ) { + return $row['sql']; + } + } + + /** + * Replace table defaults + * + * @param string $input SQL statement + * @return string + */ + protected function replace_table_defaults( $input ) { + $pattern = array( + '/DEFAULT(\s+)(\d+)/i', + "/DEFAULT(\s+)'(.*?)'/i", + ); + + return preg_replace( $pattern, '', $input ); + } + + /** + * Replace view quotes + * + * @param string $input View value + * @return string + */ + protected function replace_view_quotes( $input ) { + return str_replace( '"', '`', $input ); + } + + /** + * Replace table quotes + * + * @param string $input Table value + * @return string + */ + protected function replace_table_quotes( $input ) { + return str_replace( '"', '`', $input ); + } + + /** + * Get SQLite primary keys + * + * @param string $table_name Table name + * @return array + */ + protected function get_primary_keys( $table_name ) { + $primary_keys = array(); + + // Get primary keys + $result = $this->query( "SELECT `table_info`.`name` FROM PRAGMA_TABLE_INFO('{$table_name}') AS table_info WHERE `table_info`.`pk` != 0" ); + while ( $row = $this->fetch_assoc( $result ) ) { + if ( isset( $row['name'] ) ) { + $primary_keys[] = $row['name']; + } + } + + // Close result cursor + $this->free_result( $result ); + + return $primary_keys; + } + + /** + * Get SQLite column types + * + * @param string $table_name Table name + * @return array + */ + protected function get_column_types( $table_name ) { + $column_types = array(); + + // Get column types + $result = $this->query( "SELECT `name`, `type` FROM PRAGMA_TABLE_INFO('{$table_name}')" ); + while ( $row = $this->fetch_assoc( $result ) ) { + if ( isset( $row['name'] ) ) { + $column_types[ strtolower( $row['name'] ) ] = $row['type']; + } + } + + // Close result cursor + $this->free_result( $result ); + + return $column_types; + } + + /** + * Get SQLite column names + * + * @param string $table_name Table name + * @return array + */ + public function get_column_names( $table_name ) { + $column_names = array(); + + // Get column names + $result = $this->query( "SELECT `name` FROM PRAGMA_TABLE_INFO('{$table_name}')" ); + while ( $row = $this->fetch_assoc( $result ) ) { + if ( isset( $row['name'] ) ) { + $column_names[ strtolower( $row['name'] ) ] = $row['name']; + } + } + + // Close result cursor + $this->free_result( $result ); + + return $column_names; + } + + /** + * Get SQLite max allowed packet + * + * @return integer + */ + protected function get_max_allowed_packet() { + return PHP_INT_MAX; + } + + /** + * Use SQLite transactions + * + * @return boolean + */ + protected function use_transactions() { + return false; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-utility.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-utility.php new file mode 100644 index 0000000..9a242c2 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-utility.php @@ -0,0 +1,457 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Database_Utility { + + protected static $db_client = null; + + /** + * Set the database client instance for injection + * + * @param Ai1wm_Database $db_client Database client instance. + * @return void + */ + public static function set_client( $db_client ) { + self::$db_client = $db_client; + } + + /** + * Get the database client instance, creating it if not set + * + * @return Ai1wm_Database + */ + public static function get_client() { + if ( self::$db_client === null ) { + return self::create_client(); + } + + return self::$db_client; + } + + /** + * Create DB client to be used for DB manipulation + * + * @return Ai1wm_Database + */ + private static function create_client() { + global $wpdb; + + // SQLite + if ( $wpdb instanceof WP_SQLite_DB || $wpdb instanceof WP_SQLite_DB\wpsqlitedb ) { + return new Ai1wm_Database_Sqlite( $wpdb ); + } + + // MariaDB + if ( ( $server_version = $wpdb->get_var( 'SELECT VERSION()' ) ) ) { + if ( stripos( $server_version, 'MariaDB' ) !== false ) { + return new Ai1wm_Database_Mariadb( $wpdb ); + } + } + + // MySQLi + if ( PHP_MAJOR_VERSION >= 7 ) { + return new Ai1wm_Database_Mysqli( $wpdb ); + } + + // MySQL + if ( empty( $wpdb->use_mysqli ) ) { + return new Ai1wm_Database_Mysql( $wpdb ); + } + + return new Ai1wm_Database_Mysqli( $wpdb ); + } + + /** + * Replace all occurrences of the search string with the replacement string. + * This function is case-sensitive. + * + * @param string $data Data to replace + * @param array $search List of string we're looking to replace + * @param array $replace What we want it to be replaced with + * @return string The original string with all elements replaced as needed + */ + public static function replace_values( $data, $search = array(), $replace = array() ) { + return strtr( $data, array_combine( $search, $replace ) ); + } + + /** + * Replace serialized occurrences of the search string with the replacement string. + * This function is case-sensitive. + * + * @param string $data Data to replace + * @param array $search List of string we're looking to replace + * @param array $replace What we want it to be replaced with + * @return string The original array with all elements replaced as needed + */ + public static function replace_serialized_values( $data, $search = array(), $replace = array() ) { + $pos = 0; + + $result = self::parse_serialized_values( $data, $pos, $search, $replace ); + if ( $pos !== strlen( $data ) ) { + // Failed to parse entire data + return strtr( $data, array_combine( $search, $replace ) ); + } + + return $result; + } + + /** + * Parse serialized string and replace needed substitutions. + * This function is case-sensitive. + * + * @param string $data Serialized data + * @param integer $pos Character position + * @param array $search List of string we're looking to replace + * @param array $replace What we want it to be replaced with + * @return string The original string with all elements replaced as needed + */ + public static function parse_serialized_values( $data, &$pos, $search = array(), $replace = array() ) { + $length = strlen( $data ); + if ( $pos >= $length ) { + return ''; + } + + $type = $data[ $pos ]; + $pos++; + + switch ( $type ) { + case 's': + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== ':' ) { + $pos--; + return ''; + } + + $pos++; + $len_end = strpos( $data, ':', $pos ); + if ( $len_end === false ) { + $pos--; + return ''; + } + + $str_length = (int) substr( $data, $pos, $len_end - $pos ); + + $pos = $len_end + 1; + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== '"' ) { + $pos--; + return ''; + } + + $pos++; + $str = substr( $data, $pos, $str_length ); + + $pos += $str_length; + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== '"' ) { + $pos--; + return ''; + } + + $pos++; + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== ';' ) { + $pos--; + return ''; + } + + $pos++; + + // If the string is a single letter, skip any parsing or replacement. + if ( $str_length === 1 ) { + return 's:' . $str_length . ':"' . $str . '";'; + } + + // Attempt to parse the string as serialized data + $pos_inner = 0; + $parsed_str = self::parse_serialized_values( $str, $pos_inner, $search, $replace ); + if ( $pos_inner === strlen( $str ) ) { + // The string is serialized data, use the parsed string + $new_str = $parsed_str; + } else { + // Regular string, perform replacement + $new_str = strtr( $str, array_combine( $search, $replace ) ); + } + + return 's:' . strlen( $new_str ) . ':"' . $new_str . '";'; + + case 'i': + case 'd': + case 'b': + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== ':' ) { + $pos--; + return ''; + } + + $pos++; + $end = strpos( $data, ';', $pos ); + if ( $end === false ) { + $pos--; + return ''; + } + + $value = substr( $data, $pos, $end - $pos ); + $pos = $end + 1; + + return $type . ':' . $value . ';'; + + case 'N': + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== ';' ) { + $pos--; + return ''; + } + + $pos++; + + return 'N;'; + + case 'a': + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== ':' ) { + $pos--; + return ''; + } + + $pos++; + $len_end = strpos( $data, ':', $pos ); + if ( $len_end === false ) { + $pos--; + return ''; + } + + $array_length = (int) substr( $data, $pos, $len_end - $pos ); + + $pos = $len_end + 1; + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== '{' ) { + $pos--; + return ''; + } + + $pos++; + $result = 'a:' . $array_length . ':{'; + for ( $i = 0; $i < $array_length * 2; $i++ ) { + $element = self::parse_serialized_values( $data, $pos, $search, $replace ); + if ( $element === '' ) { + $pos--; + return ''; + } + + $result .= $element; + } + + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== '}' ) { + $pos--; + return ''; + } + + $pos++; + $result .= '}'; + + return $result; + + case 'O': + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== ':' ) { + $pos--; + return ''; + } + + $pos++; + $class_len_end = strpos( $data, ':', $pos ); + if ( $class_len_end === false ) { + $pos--; + return ''; + } + + $class_length = (int) substr( $data, $pos, $class_len_end - $pos ); + + $pos = $class_len_end + 1; + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== '"' ) { + $pos--; + return ''; + } + + $pos++; + $class_name = substr( $data, $pos, $class_length ); + + $pos += $class_length; + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== '"' ) { + $pos--; + return ''; + } + + $pos++; + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== ':' ) { + $pos--; + return ''; + } + + $pos++; + $prop_len_end = strpos( $data, ':', $pos ); + if ( $prop_len_end === false ) { + $pos--; + return ''; + } + + $prop_count = (int) substr( $data, $pos, $prop_len_end - $pos ); + + $pos = $prop_len_end + 1; + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== '{' ) { + $pos--; + return ''; + } + + $pos++; + $result = 'O:' . strlen( $class_name ) . ':"' . $class_name . '":' . $prop_count . ':{'; + for ( $i = 0; $i < $prop_count * 2; $i++ ) { + $element = self::parse_serialized_values( $data, $pos, $search, $replace ); + if ( $element === '' ) { + $pos--; + return ''; + } + + $result .= $element; + } + + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== '}' ) { + $pos--; + return ''; + } + + $pos++; + $result .= '}'; + + return $result; + + case 'R': + case 'r': + if ( ! isset( $data[ $pos ] ) || $data[ $pos ] !== ':' ) { + $pos--; + return ''; + } + + $pos++; + $end = strpos( $data, ';', $pos ); + if ( $end === false ) { + $pos--; + return ''; + } + + $ref = substr( $data, $pos, $end - $pos ); + $pos = $end + 1; + + return $type . ':' . $ref . ';'; + + default: + $pos--; + return ''; + } + } + + /** + * Parse MySQL server version + * + * @param string $info Server info + * @return string + */ + public static function parse_server_version( $info ) { + $matches = array(); + if ( preg_match( '/(\d+\.\d+\.\d+)-(\d+\.\d+\.\d+)/i', $info, $matches ) ) { + if ( isset( $matches[2] ) ) { + return $matches[2]; + } + } + + if ( preg_match( '/(\d+\.\d+\.\d+)/i', $info, $matches ) ) { + if ( isset( $matches[1] ) ) { + return $matches[1]; + } + } + + return '0.0.0'; + } + + /** + * Escape MySQL special characters + * + * @param string $data Data to escape + * @return string + */ + public static function escape_mysql( $data ) { + return strtr( + $data, + array_combine( + array( "\x00", "\n", "\r", '\\', "'", '"', "\x1a" ), + array( '\\0', '\\n', '\\r', '\\\\', "\\'", '\\"', '\\Z' ) + ) + ); + } + + /** + * Unescape MySQL special characters + * + * @param string $data Data to unescape + * @return string + */ + public static function unescape_mysql( $data ) { + return strtr( + $data, + array_combine( + array( '\\0', '\\n', '\\r', '\\\\', "\\'", '\\"', '\\Z' ), + array( "\x00", "\n", "\r", '\\', "'", '"', "\x1a" ) + ) + ); + } + + /** + * Encode base64 characters + * + * @param string $data Data to encode + * @return string + */ + public static function base64_encode( $data ) { + return base64_encode( $data ); + } + + /** + * Encode base64 characters + * + * @param string $data Data to decode + * @return string + */ + public static function base64_decode( $data ) { + return base64_decode( $data ); + } + + /** + * Validate base64 data + * + * @param string $data Data to validate + * @return boolean + */ + public static function base64_validate( $data ) { + return base64_encode( base64_decode( $data ) ) === $data; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database.php new file mode 100644 index 0000000..7f924a9 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database.php @@ -0,0 +1,2312 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +abstract class Ai1wm_Database { + + /** + * WordPress database handler + * + * @var object + */ + protected $wpdb = null; + + /** + * WordPress database base tables + * + * @var array + */ + protected $base_tables = null; + + /** + * WordPress database views + * + * @var array + */ + protected $views = null; + + /** + * WordPress database tables + * + * @var array + */ + protected $tables = null; + + /** + * Old table prefixes + * + * @var array + */ + protected $old_table_prefixes = array(); + + /** + * New table prefixes + * + * @var array + */ + protected $new_table_prefixes = array(); + + /** + * Old column prefixes + * + * @var array + */ + protected $old_column_prefixes = array(); + + /** + * New column prefixes + * + * @var array + */ + protected $new_column_prefixes = array(); + + /** + * Reserved column prefixes + * + * @var array + */ + protected $reserved_column_prefixes = array(); + + /** + * Old replace values + * + * @var array + */ + protected $old_replace_values = array(); + + /** + * New replace values + * + * @var array + */ + protected $new_replace_values = array(); + + /** + * Old raw replace values + * + * @var array + */ + protected $old_replace_raw_values = array(); + + /** + * New raw replace values + * + * @var array + */ + protected $new_replace_raw_values = array(); + + /** + * Table where query + * + * @var array + */ + protected $table_where_query = array(); + + /** + * Table select columns + * + * @var array + */ + protected $table_select_columns = array(); + + /** + * Table prefix columns + * + * @var array + */ + protected $table_prefix_columns = array(); + + /** + * Table prefix filters + * + * @var array + */ + protected $table_prefix_filters = array(); + + /** + * List all tables that should not be affected by the timeout of the current request + * + * @var array + */ + protected $atomic_tables = array(); + + /** + * List all tables that should not be populated on import + * + * @var array + */ + protected $empty_tables = array(); + + /** + * Visual Composer + * + * @var boolean + */ + protected $visual_composer = false; + + /** + * Oxygen Builder + * + * @var boolean + */ + protected $oxygen_builder = false; + + /** + * BeTheme Responsive + * + * @var boolean + */ + protected $betheme_responsive = false; + + /** + * Optimize Press + * + * @var boolean + */ + protected $optimize_press = false; + + /** + * Avada Fusion Builder + * + * @var boolean + */ + protected $avada_fusion_builder = false; + + /** + * Constructor + * + * @param object $wpdb WPDB instance + */ + public function __construct( $wpdb ) { + $this->wpdb = $wpdb; + + // Check Microsoft SQL Server support + if ( is_resource( $this->wpdb->dbh ) ) { + if ( get_resource_type( $this->wpdb->dbh ) === 'SQL Server Connection' ) { + throw new Ai1wm_Database_Exception( + __( + 'Your WordPress installation uses Microsoft SQL Server. ' . + 'To use All-in-One WP Migration, please change your installation to MySQL and try again. ' . + 'Technical details', + 'all-in-one-wp-migration' + ), + 501 + ); + } + } + + // Set database host (HyberDB) + if ( empty( $this->wpdb->dbhost ) ) { + if ( isset( $this->wpdb->last_used_server['host'] ) ) { + $this->wpdb->dbhost = $this->wpdb->last_used_server['host']; + } + } + + // Set database name (HyperDB) + if ( empty( $this->wpdb->dbname ) ) { + if ( isset( $this->wpdb->last_used_server['name'] ) ) { + $this->wpdb->dbname = $this->wpdb->last_used_server['name']; + } + } + } + + /** + * Set old table prefixes + * + * @param array $prefixes List of table prefixes + * @return object + */ + public function set_old_table_prefixes( $prefixes ) { + $this->old_table_prefixes = $prefixes; + + return $this; + } + + /** + * Get old table prefixes + * + * @return array + */ + public function get_old_table_prefixes() { + return $this->old_table_prefixes; + } + + /** + * Set new table prefixes + * + * @param array $prefixes List of table prefixes + * @return object + */ + public function set_new_table_prefixes( $prefixes ) { + $this->new_table_prefixes = $prefixes; + + return $this; + } + + /** + * Get new table prefixes + * + * @return array + */ + public function get_new_table_prefixes() { + return $this->new_table_prefixes; + } + + /** + * Set old column prefixes + * + * @param array $prefixes List of column prefixes + * @return object + */ + public function set_old_column_prefixes( $prefixes ) { + $this->old_column_prefixes = $prefixes; + + return $this; + } + + /** + * Get old column prefixes + * + * @return array + */ + public function get_old_column_prefixes() { + return $this->old_column_prefixes; + } + + /** + * Set new column prefixes + * + * @param array $prefixes List of column prefixes + * @return object + */ + public function set_new_column_prefixes( $prefixes ) { + $this->new_column_prefixes = $prefixes; + + return $this; + } + + /** + * Get new column prefixes + * + * @return array + */ + public function get_new_column_prefixes() { + return $this->new_column_prefixes; + } + + /** + * Set reserved column prefixes + * + * @param array $prefixes List of column prefixes + * @return object + */ + public function set_reserved_column_prefixes( $prefixes ) { + $this->reserved_column_prefixes = $prefixes; + + return $this; + } + + /** + * Get reserved column prefixes + * + * @return array + */ + public function get_reserved_column_prefixes() { + return $this->reserved_column_prefixes; + } + + /** + * Set old replace values + * + * @param array $values List of values + * @return object + */ + public function set_old_replace_values( $values ) { + $this->old_replace_values = $values; + + return $this; + } + + /** + * Get old replace values + * + * @return array + */ + public function get_old_replace_values() { + return $this->old_replace_values; + } + + /** + * Get old replace values min length + * + * @return integer + */ + protected function get_old_replace_values_min_length() { + static $cached_result = null; + + // Cache old replace values minimum length on first call + if ( $cached_result === null ) { + $cached_result = min( array_map( 'strlen', $this->get_old_replace_values() ) ); + } + + return $cached_result; + } + + /** + * Set new replace values + * + * @param array $values List of values + * @return object + */ + public function set_new_replace_values( $values ) { + $this->new_replace_values = $values; + + return $this; + } + + /** + * Get new replace values + * + * @return array + */ + public function get_new_replace_values() { + return $this->new_replace_values; + } + + /** + * Set old replace raw values + * + * @param array $values List of values + * @return object + */ + public function set_old_replace_raw_values( $values ) { + $this->old_replace_raw_values = $values; + + return $this; + } + + /** + * Get old replace raw values + * + * @return array + */ + public function get_old_replace_raw_values() { + return $this->old_replace_raw_values; + } + + /** + * Set new replace raw values + * + * @param array $values List of values + * @return object + */ + public function set_new_replace_raw_values( $values ) { + $this->new_replace_raw_values = $values; + + return $this; + } + + /** + * Get new replace raw values + * + * @return array + */ + public function get_new_replace_raw_values() { + return $this->new_replace_raw_values; + } + + /** + * Set table where query + * + * @param string $table_name Table name + * @param array $where_$query Table query + * @return object + */ + public function set_table_where_query( $table_name, $where_query ) { + $this->table_where_query[ strtolower( $table_name ) ] = $where_query; + + return $this; + } + + /** + * Get table where query + * + * @param string $table_name Table name + * @return string + */ + public function get_table_where_query( $table_name ) { + if ( isset( $this->table_where_query[ strtolower( $table_name ) ] ) ) { + return $this->table_where_query[ strtolower( $table_name ) ]; + } + } + + /** + * Set table select columns + * + * @param string $table_name Table name + * @param array $column_names Column names + * @return object + */ + public function set_table_select_columns( $table_name, $column_names ) { + foreach ( $column_names as $column_name => $column_expression ) { + $this->table_select_columns[ strtolower( $table_name ) ][ strtolower( $column_name ) ] = $column_expression; + } + + return $this; + } + + /** + * Get table select columns + * + * @param string $table_name Table name + * @return array + */ + public function get_table_select_columns( $table_name ) { + if ( isset( $this->table_select_columns[ strtolower( $table_name ) ] ) ) { + return $this->table_select_columns[ strtolower( $table_name ) ]; + } + } + + /** + * Set table prefix columns + * + * @param string $table_name Table name + * @param array $column_names Column names + * @return object + */ + public function set_table_prefix_columns( $table_name, $column_names ) { + foreach ( $column_names as $column_name ) { + $this->table_prefix_columns[ strtolower( $table_name ) ][ strtolower( $column_name ) ] = true; + } + + return $this; + } + + /** + * Get table prefix columns + * + * @param string $table_name Table name + * @return array + */ + public function get_table_prefix_columns( $table_name ) { + if ( isset( $this->table_prefix_columns[ strtolower( $table_name ) ] ) ) { + return $this->table_prefix_columns[ strtolower( $table_name ) ]; + } + } + + /** + * Add table prefix filter + * + * @param string $table_prefix Table prefix + * @param string $exclude_prefix Exclude prefix + * @return object + */ + + public function add_table_prefix_filter( $table_prefix, $exclude_prefix = null ) { + $this->table_prefix_filters[] = array( $table_prefix, $exclude_prefix ); + + return $this; + } + + /** + * Get table prefix filter + * + * @return array + */ + public function get_table_prefix_filters() { + return $this->table_prefix_filters; + } + + /** + * Set atomic tables + * + * @param array $tables List of tables + * @return object + */ + public function set_atomic_tables( $tables ) { + $this->atomic_tables = $tables; + + return $this; + } + + /** + * Get atomic tables + * + * @return array + */ + public function get_atomic_tables() { + return $this->atomic_tables; + } + + /** + * Set empty tables + * + * @param array $tables List of tables + * @return object + */ + public function set_empty_tables( $tables ) { + $this->empty_tables = $tables; + + return $this; + } + + /** + * Get empty tables + * + * @return array + */ + public function get_empty_tables() { + return $this->empty_tables; + } + + /** + * Set Visual Composer + * + * @param boolean $active Is Visual Composer Active? + * @return object + */ + public function set_visual_composer( $active ) { + $this->visual_composer = $active; + + return $this; + } + + /** + * Get Visual Composer + * + * @return boolean + */ + public function get_visual_composer() { + return $this->visual_composer; + } + + /** + * Set Oxygen Builder + * + * @param boolean $active Is Oxygen Builder Active? + * @return object + */ + public function set_oxygen_builder( $active ) { + $this->oxygen_builder = $active; + + return $this; + } + + /** + * Get Oxygen Builder + * + * @return boolean + */ + public function get_oxygen_builder() { + return $this->oxygen_builder; + } + + /** + * Set BeTheme Responsive + * + * @param boolean $active Is BeTheme Responsive Active? + * @return object + */ + public function set_betheme_responsive( $active ) { + $this->betheme_responsive = $active; + + return $this; + } + + /** + * Get BeTheme Responsive + * + * @return boolean + */ + public function get_betheme_responsive() { + return $this->betheme_responsive; + } + + /** + * Set Optimize Press + * + * @param boolean $active Is Optimize Press Active? + * @return object + */ + public function set_optimize_press( $active ) { + $this->optimize_press = $active; + + return $this; + } + + /** + * Get Optimize Press + * + * @return boolean + */ + public function get_optimize_press() { + return $this->optimize_press; + } + + /** + * Set Avada Fusion Builder + * + * @param boolean $active Is Avada Fusion Builder Active? + * @return object + */ + public function set_avada_fusion_builder( $active ) { + $this->avada_fusion_builder = $active; + + return $this; + } + + /** + * Get Avada Fusion Builder + * + * @return boolean + */ + public function get_avada_fusion_builder() { + return $this->avada_fusion_builder; + } + + /** + * Get views + * + * @return array + */ + protected function get_views() { + if ( is_null( $this->views ) ) { + $where_query = array(); + + // Get lower case table names + $lower_case_table_names = $this->get_lower_case_table_names(); + + // Loop over table prefixes + if ( $this->get_table_prefix_filters() ) { + foreach ( $this->get_table_prefix_filters() as $prefix_filter ) { + if ( isset( $prefix_filter[0], $prefix_filter[1] ) ) { + if ( $lower_case_table_names ) { + $where_query[] = sprintf( "(`Tables_in_%s` REGEXP '^%s' AND `Tables_in_%s` NOT REGEXP '^%s')", $this->wpdb->dbname, $prefix_filter[0], $this->wpdb->dbname, $prefix_filter[1] ); + } else { + $where_query[] = sprintf( "(CAST(`Tables_in_%s` AS BINARY) REGEXP BINARY '^%s' AND CAST(`Tables_in_%s` AS BINARY) NOT REGEXP BINARY '^%s')", $this->wpdb->dbname, $prefix_filter[0], $this->wpdb->dbname, $prefix_filter[1] ); + } + } else { + if ( $lower_case_table_names ) { + $where_query[] = sprintf( "`Tables_in_%s` REGEXP '^%s'", $this->wpdb->dbname, $prefix_filter[0] ); + } else { + $where_query[] = sprintf( "CAST(`Tables_in_%s` AS BINARY) REGEXP BINARY '^%s'", $this->wpdb->dbname, $prefix_filter[0] ); + } + } + } + } else { + $where_query[] = 1; + } + + $this->views = array(); + + // Loop over views + $result = $this->query( sprintf( "SHOW FULL TABLES FROM `%s` WHERE `Table_type` = 'VIEW' AND (%s)", $this->wpdb->dbname, implode( ' OR ', $where_query ) ) ); + while ( $row = $this->fetch_row( $result ) ) { + if ( isset( $row[0] ) ) { + $this->views[] = $row[0]; + } + } + + $this->free_result( $result ); + } + + return $this->views; + } + + /** + * Get base tables + * + * @return array + */ + protected function get_base_tables() { + if ( is_null( $this->base_tables ) ) { + $where_query = array(); + + // Get lower case table names + $lower_case_table_names = $this->get_lower_case_table_names(); + + // Loop over table prefixes + if ( $this->get_table_prefix_filters() ) { + foreach ( $this->get_table_prefix_filters() as $prefix_filter ) { + if ( isset( $prefix_filter[0], $prefix_filter[1] ) ) { + if ( $lower_case_table_names ) { + $where_query[] = sprintf( "(`Tables_in_%s` REGEXP '^%s' AND `Tables_in_%s` NOT REGEXP '^%s')", $this->wpdb->dbname, $prefix_filter[0], $this->wpdb->dbname, $prefix_filter[1] ); + } else { + $where_query[] = sprintf( "(CAST(`Tables_in_%s` AS BINARY) REGEXP BINARY '^%s' AND CAST(`Tables_in_%s` AS BINARY) NOT REGEXP BINARY '^%s')", $this->wpdb->dbname, $prefix_filter[0], $this->wpdb->dbname, $prefix_filter[1] ); + } + } else { + if ( $lower_case_table_names ) { + $where_query[] = sprintf( "`Tables_in_%s` REGEXP '^%s'", $this->wpdb->dbname, $prefix_filter[0] ); + } else { + $where_query[] = sprintf( "CAST(`Tables_in_%s` AS BINARY) REGEXP BINARY '^%s'", $this->wpdb->dbname, $prefix_filter[0] ); + } + } + } + } else { + $where_query[] = 1; + } + + $this->base_tables = array(); + + // Loop over base tables + $result = $this->query( sprintf( "SHOW FULL TABLES FROM `%s` WHERE `Table_type` = 'BASE TABLE' AND (%s)", $this->wpdb->dbname, implode( ' OR ', $where_query ) ) ); + while ( $row = $this->fetch_row( $result ) ) { + if ( isset( $row[0] ) ) { + $this->base_tables[] = $row[0]; + } + } + + $this->free_result( $result ); + } + + return $this->base_tables; + } + + /** + * Set tables + * + * @param array $tables List of tables + * @return object + */ + public function set_tables( $tables ) { + $this->tables = $tables; + + return $this; + } + + /** + * Get tables + * + * @return array + */ + public function get_tables() { + if ( is_null( $this->tables ) ) { + return array_merge( $this->get_base_tables(), $this->get_views() ); + } + + return $this->tables; + } + + /** + * Export database into a file + * + * @param string $file_name File name + * @param integer $query_offset Query offset + * @param integer $table_index Table index + * @param integer $table_offset Table offset + * @param integer $table_rows Table rows + * @return boolean + */ + public function export( $file_name, &$query_offset = 0, &$table_index = 0, &$table_offset = 0, &$table_rows = 0 ) { + // Set file handler + $file_handler = ai1wm_open( $file_name, 'cb' ); + + // Start time + $start = microtime( true ); + + // Flag to hold if all tables have been processed + $completed = true; + + // Set SQL mode + $this->query( "SET SESSION sql_mode = ''" ); + + // Get tables + $tables = $this->get_tables(); + + // Get views + $views = $this->get_views(); + + // Set file pointer at the query offset + if ( fseek( $file_handler, $query_offset ) !== -1 ) { + + // Write headers + if ( $query_offset === 0 ) { + ai1wm_write( $file_handler, $this->get_header() ); + } + + // Export tables + for ( ; $table_index < count( $tables ); ) { + + // Get table name + $table_name = $tables[ $table_index ]; + + // Replace table name prefixes + $new_table_name = $this->replace_table_prefixes( $table_name, 0 ); + + // Loop over tables and views + if ( in_array( $table_name, $views ) ) { + + // Get create view statement + if ( $table_offset === 0 ) { + + // Write view drop statement + $drop_view = "\nDROP VIEW IF EXISTS `{$new_table_name}`;\n"; + + // Write drop view statement + ai1wm_write( $file_handler, $drop_view ); + + // Get create view statement + $create_view = $this->get_create_view( $table_name ); + + // Replace create view name + $create_view = $this->replace_view_name( $create_view, $table_name, $new_table_name ); + + // Replace create view identifiers + $create_view = $this->replace_view_identifiers( $create_view ); + + // Replace create view attributes + $create_view = $this->replace_view_attributes( $create_view ); + + // Write create view statement + ai1wm_write( $file_handler, $create_view ); + + // Write end of statement + ai1wm_write( $file_handler, ";\n\n" ); + } + + // Set curent table index + $table_index++; + + // Set current table offset + $table_offset = 0; + + } else { + + // Get create table statement + if ( $table_offset === 0 ) { + + // Write table drop statement + $drop_table = "\nDROP TABLE IF EXISTS `{$new_table_name}`;\n"; + + // Write table statement + ai1wm_write( $file_handler, $drop_table ); + + // Get create table statement + $create_table = $this->get_create_table( $table_name ); + + // Replace create table name + $create_table = $this->replace_table_name( $create_table, $table_name, $new_table_name ); + + // Write create table statement + ai1wm_write( $file_handler, $create_table ); + + // Write end of statement + ai1wm_write( $file_handler, ";\n\n" ); + } + + // Get primary keys + $primary_keys = $this->get_primary_keys( $table_name ); + + // Get column types + $column_types = $this->get_column_types( $table_name ); + + // Get prefix columns + $prefix_columns = $this->get_table_prefix_columns( $table_name ); + + do { + + // Set query + if ( $primary_keys ) { + + // Set table keys + $table_keys = array(); + foreach ( $primary_keys as $key ) { + $table_keys[] = sprintf( '`%s`', $key ); + } + + $table_keys = implode( ', ', $table_keys ); + + // Set table where query + if ( ! ( $table_where = $this->get_table_where_query( $table_name ) ) ) { + $table_where = 1; + } + + // Set table select columns + if ( ! ( $select_columns = $this->get_table_select_columns( $table_name ) ) ) { + $select_columns = array( 't1.*' ); + } + + $select_columns = implode( ', ', $select_columns ); + + // Set query with offset and rows count + if ( defined( 'AI1WM_DISABLE_LATE_ROW_LOOKUPS' ) ) { + $query = sprintf( 'SELECT %s FROM `%s` AS t1 WHERE %s ORDER BY %s LIMIT %d, %d', $select_columns, $table_name, $table_where, $table_keys, $table_offset, AI1WM_MAX_SELECT_RECORDS ); + } else { + $query = sprintf( 'SELECT %s FROM `%s` AS t1 JOIN (SELECT %s FROM `%s` WHERE %s ORDER BY %s LIMIT %d, %d) AS t2 USING (%s)', $select_columns, $table_name, $table_keys, $table_name, $table_where, $table_keys, $table_offset, AI1WM_MAX_SELECT_RECORDS, $table_keys ); + } + } else { + + $table_keys = 1; + + // Set table where query + if ( ! ( $table_where = $this->get_table_where_query( $table_name ) ) ) { + $table_where = 1; + } + + // Set table select columns + if ( ! ( $select_columns = $this->get_table_select_columns( $table_name ) ) ) { + $select_columns = array( '*' ); + } + + $select_columns = implode( ', ', $select_columns ); + + // Set query with offset and rows count + $query = sprintf( 'SELECT %s FROM `%s` WHERE %s ORDER BY %s LIMIT %d, %d', $select_columns, $table_name, $table_where, $table_keys, $table_offset, AI1WM_MAX_SELECT_RECORDS ); + } + + // Run SQL query + $result = $this->query( $query ); + + // Repair table data + if ( $this->errno() === 1194 ) { + + // Current table is marked as crashed and should be repaired + $this->repair_table( $table_name ); + + // Run SQL query + $result = $this->query( $query ); + } + + // Generate insert statements + if ( $num_rows = $this->num_rows( $result ) ) { + + // Loop over table rows + while ( $row = $this->fetch_assoc( $result ) ) { + + // Write start transaction + if ( $table_offset % AI1WM_MAX_TRANSACTION_QUERIES === 0 ) { + ai1wm_write( $file_handler, "START TRANSACTION;\n" ); + } + + $items = array(); + foreach ( $row as $key => $value ) { + // Replace table prefix columns + if ( isset( $prefix_columns[ strtolower( $key ) ] ) ) { + $value = $this->replace_column_prefixes( $value, 0 ); + } + + $items[] = $this->prepare_table_values( $value, $column_types[ strtolower( $key ) ] ); + } + + // Set table values + $table_values = implode( ',', $items ); + + // Set insert statement + $table_insert = "INSERT INTO `{$new_table_name}` VALUES ({$table_values});\n"; + + // Write insert statement + ai1wm_write( $file_handler, $table_insert ); + + // Set current table offset + $table_offset++; + + // Set current table rows + $table_rows++; + + // Write end of transaction + if ( $table_offset % AI1WM_MAX_TRANSACTION_QUERIES === 0 ) { + ai1wm_write( $file_handler, "COMMIT;\n" ); + } + } + } else { + + // Write end of transaction + if ( $table_offset % AI1WM_MAX_TRANSACTION_QUERIES !== 0 ) { + ai1wm_write( $file_handler, "COMMIT;\n" ); + } + + // Set curent table index + $table_index++; + + // Set current table offset + $table_offset = 0; + } + + // Close result cursor + $this->free_result( $result ); + + // Time elapsed + if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { + if ( ( microtime( true ) - $start ) > $timeout ) { + $completed = false; + break 2; + } + } + } while ( $num_rows > 0 ); + } + } + } + + // Set query offset + $query_offset = ftell( $file_handler ); + + // Close file handler + ai1wm_close( $file_handler ); + + return $completed; + } + + /** + * Import database from a file + * + * @param string $file_name File name + * @param integer $query_offset Query offset + * @return boolean + */ + public function import( $file_name, &$query_offset = 0 ) { + // Set max allowed packet + $max_allowed_packet = $this->get_max_allowed_packet(); + + // Set file handler + $file_handler = ai1wm_open( $file_name, 'rb' ); + + // Start time + $start = microtime( true ); + + // Flag to hold if all tables have been processed + $completed = true; + + // Set SQL Mode + $this->query( "SET SESSION sql_mode = ''" ); + + // Set file pointer at the query offset + if ( fseek( $file_handler, $query_offset ) !== -1 ) { + $query = null; + + // Start transaction + if ( $this->use_transactions() ) { + $this->query( 'START TRANSACTION' ); + } + + // Read database file line by line + while ( ( $line = fgets( $file_handler ) ) !== false ) { + $query .= $line; + + // End of query + if ( preg_match( '/;\s*$/S', $query ) ) { + $query = trim( $query ); + + // Check max allowed packet + if ( strlen( $query ) <= $max_allowed_packet ) { + + // Replace table prefixes + $query = $this->replace_table_prefixes( $query ); + + // Skip table query + if ( $this->should_ignore_query( $query ) === false ) { + + // Replace table parameters + if ( $this->is_create_table_query( $query ) ) { + + // Replace create column types + $query = $this->replace_column_types( $query ); + + // Replace create column options + $query = $this->replace_column_options( $query ); + + // Replace create table comments + $query = $this->replace_table_comments( $query ); + + // Replace create table options + $query = $this->replace_table_options( $query ); + + // Replace create table constraints + $query = $this->replace_table_constraints( $query ); + + // Replace table collations + $query = $this->replace_table_collations( $query ); + + } else { + + // Replace table values + $query = $this->replace_table_values( $query ); + + // Replace raw values + $query = $this->replace_raw_values( $query ); + } + + // Run SQL query + $this->query( $query ); + + // Replace table engines (Azure) + if ( $this->errno() === 1030 ) { + + // Replace table engines + $query = $this->replace_table_engines( $query ); + + // Run SQL query + $this->query( $query ); + } + + // Replace table row format (MyISAM and InnoDB) + if ( $this->errno() === 1071 || $this->errno() === 1709 ) { + + // Replace table row format + $query = $this->replace_table_row_format( $query ); + + // Run SQL query + $this->query( $query ); + } + + // Replace table full-text indexes (MySQL <= 5.5) + if ( $this->errno() === 1214 ) { + + // Full-text searches are supported for MyISAM tables only. + // In MySQL 5.6 and up, they can also be used with InnoDB tables + $query = $this->replace_table_fulltext_indexes( $query ); + + // Run SQL query + $this->query( $query ); + } + + // Replace table default values (MySQL <= 8.0.12) + if ( $this->errno() === 1101 ) { + + // TEXT and BLOB columns can't have a default value + $query = $this->replace_column_defaults( $query ); + + // Run SQL query + $this->query( $query ); + } + + // Check tablespace exists + if ( $this->errno() === 1813 ) { + throw new Ai1wm_Database_Exception( __( 'Error importing database table. Technical details', 'all-in-one-wp-migration' ), 503 ); + } + + // Check max queries per hour + if ( $this->errno() === 1226 ) { + if ( stripos( $this->error(), 'max_queries_per_hour' ) !== false ) { + throw new Ai1wm_Database_Exception( + __( + 'Your WordPress installation has reached the maximum allowed queries per hour set by your server admin or hosting provider. ' . + 'To use All-in-One WP Migration, please increase MySQL max_queries_per_hour limit. ' . + 'Technical details', + 'all-in-one-wp-migration' + ), + 503 + ); + } elseif ( stripos( $this->error(), 'max_updates_per_hour' ) !== false ) { + throw new Ai1wm_Database_Exception( + __( + 'Your WordPress installation has reached the maximum allowed updates per hour set by your server admin or hosting provider. ' . + 'To use All-in-One WP Migration, please increase MySQL max_updates_per_hour limit. ' . + 'Technical details', + 'all-in-one-wp-migration' + ), + 503 + ); + } elseif ( stripos( $this->error(), 'max_connections_per_hour' ) !== false ) { + throw new Ai1wm_Database_Exception( + __( + 'Your WordPress installation has reached the maximum allowed connections per hour set by your server admin or hosting provider. ' . + 'To use All-in-One WP Migration, please increase MySQL max_connections_per_hour limit. ' . + 'Technical details', + 'all-in-one-wp-migration' + ), + 503 + ); + } elseif ( stripos( $this->error(), 'max_user_connections' ) !== false ) { + throw new Ai1wm_Database_Exception( + __( + 'Your WordPress installation has reached the maximum allowed user connections set by your server admin or hosting provider. ' . + 'To use All-in-One WP Migration, please increase MySQL max_user_connections limit. ' . + 'Technical details', + 'all-in-one-wp-migration' + ), + 503 + ); + } + } + } + + // Time elapsed + if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { + if ( ! $this->is_atomic_query( $query ) ) { + if ( ( microtime( true ) - $start ) > $timeout ) { + $completed = false; + break; + } + } + } + } + + $query = null; + } + } + + // End transaction + if ( $this->use_transactions() ) { + $this->query( 'COMMIT' ); + } + } + + // Set query offset + $query_offset = ftell( $file_handler ); + + // Close file handler + ai1wm_close( $file_handler ); + + return $completed; + } + + /** + * Flush database + * + * @return void + */ + public function flush() { + $views = $this->get_views(); + foreach ( $this->get_tables() as $table_name ) { + if ( in_array( $table_name, $views ) ) { + $this->query( "DROP VIEW IF EXISTS `{$table_name}`" ); + } else { + $this->query( "DROP TABLE IF EXISTS `{$table_name}`" ); + } + } + } + + /** + * Get MySQL max allowed packet + * + * @return integer + */ + protected function get_max_allowed_packet() { + $result = $this->query( "SHOW VARIABLES LIKE 'max_allowed_packet'" ); + $row = $this->fetch_assoc( $result ); + + // Close result cursor + $this->free_result( $result ); + + // Get max allowed packet + if ( isset( $row['Value'] ) ) { + return $row['Value']; + } + } + + /** + * Get MySQL lower case table names + * + * @return integer + */ + protected function get_lower_case_table_names() { + $result = $this->query( "SHOW VARIABLES LIKE 'lower_case_table_names'" ); + $row = $this->fetch_assoc( $result ); + + // Close result cursor + $this->free_result( $result ); + + // Get lower case table names + if ( isset( $row['Value'] ) ) { + return $row['Value']; + } + } + + /** + * Get MySQL collation name + * + * @param string $collation_name Collation name + * @return string + */ + protected function get_collation( $collation_name ) { + $result = $this->query( "SHOW COLLATION LIKE '{$collation_name}'" ); + $row = $this->fetch_assoc( $result ); + + // Close result cursor + $this->free_result( $result ); + + // Get collation name + if ( isset( $row['Collation'] ) ) { + return $row['Collation']; + } + } + + /** + * Get MySQL create view + * + * @param string $view_name View name + * @return string + */ + protected function get_create_view( $view_name ) { + $result = $this->query( "SHOW CREATE VIEW `{$view_name}`" ); + $row = $this->fetch_assoc( $result ); + + // Close result cursor + $this->free_result( $result ); + + // Get create view + if ( isset( $row['Create View'] ) ) { + return $row['Create View']; + } + } + + /** + * Get MySQL create table + * + * @param string $table_name Table name + * @return string + */ + protected function get_create_table( $table_name ) { + $result = $this->query( "SHOW CREATE TABLE `{$table_name}`" ); + $row = $this->fetch_assoc( $result ); + + // Close result cursor + $this->free_result( $result ); + + // Get create table + if ( isset( $row['Create Table'] ) ) { + return $row['Create Table']; + } + } + + /** + * Repair MySQL table + * + * @param string $table_name Table name + * @return void + */ + protected function repair_table( $table_name ) { + $this->query( "REPAIR TABLE `{$table_name}`" ); + } + + /** + * Get MySQL primary keys + * + * @param string $table_name Table name + * @return array + */ + protected function get_primary_keys( $table_name ) { + $primary_keys = array(); + + // Get primary keys + $result = $this->query( "SHOW KEYS FROM `{$table_name}` WHERE `Key_name` = 'PRIMARY'" ); + while ( $row = $this->fetch_assoc( $result ) ) { + if ( isset( $row['Column_name'] ) ) { + $primary_keys[] = $row['Column_name']; + } + } + + // Close result cursor + $this->free_result( $result ); + + return $primary_keys; + } + + /** + * Get MySQL unique keys + * + * @param string $table_name Table name + * @return array + */ + protected function get_unique_keys( $table_name ) { + $unique_keys = array(); + + // Get unique keys + $result = $this->query( "SHOW KEYS FROM `{$table_name}` WHERE `Non_unique` = 0" ); + while ( $row = $this->fetch_assoc( $result ) ) { + if ( isset( $row['Column_name'] ) ) { + $unique_keys[] = $row['Column_name']; + } + } + + // Close result cursor + $this->free_result( $result ); + + return $unique_keys; + } + + /** + * Get MySQL column types + * + * @param string $table_name Table name + * @return array + */ + protected function get_column_types( $table_name ) { + $column_types = array(); + + // Get column types + $result = $this->query( "SHOW COLUMNS FROM `{$table_name}`" ); + while ( $row = $this->fetch_assoc( $result ) ) { + if ( isset( $row['Field'] ) ) { + $column_types[ strtolower( $row['Field'] ) ] = $row['Type']; + } + } + + // Close result cursor + $this->free_result( $result ); + + return $column_types; + } + + /** + * Get MySQL column names + * + * @param string $table_name Table name + * @return array + */ + public function get_column_names( $table_name ) { + $column_names = array(); + + // Get column names + $result = $this->query( "SHOW COLUMNS FROM `{$table_name}`" ); + while ( $row = $this->fetch_assoc( $result ) ) { + if ( isset( $row['Field'] ) ) { + $column_names[ strtolower( $row['Field'] ) ] = $row['Field']; + } + } + + // Close result cursor + $this->free_result( $result ); + + return $column_names; + } + + /** + * Replace table name + * + * @param string $input Table value + * @param string $old_table_name Old table name + * @param string $new_table_name New table name + * @return string + */ + protected function replace_table_name( $input, $old_table_name, $new_table_name ) { + $position = stripos( $input, "`$old_table_name`" ); + if ( $position !== false ) { + $input = substr_replace( $input, "`$new_table_name`", $position, strlen( "`$old_table_name`" ) ); + } + + return $input; + } + + /** + * Replace view name + * + * @param string $input View value + * @param string $old_view_name Old view name + * @param string $new_view_name New view name + * @return string + */ + protected function replace_view_name( $input, $old_view_name, $new_view_name ) { + $position = stripos( $input, "`$old_view_name`" ); + if ( $position !== false ) { + $input = substr_replace( $input, "`$new_view_name`", $position, strlen( "`$old_view_name`" ) ); + } + + return $input; + } + + /** + * Replace view identifiers + * + * @param string $input Table value + * @return string + */ + protected function replace_view_identifiers( $input ) { + $base_tables = $this->get_base_tables(); + foreach ( $base_tables as $table_name ) { + if ( ( $new_table_name = $this->replace_table_prefixes( $table_name, 0 ) ) ) { + $input = str_ireplace( "`$table_name`", "`$new_table_name`", $input ); + } + } + + return $input; + } + + /** + * Replace view attributes + * + * @param string $input Table value + * @return string + */ + protected function replace_view_attributes( $input ) { + return preg_replace( '/CREATE(.+?)VIEW/i', 'CREATE VIEW', $input ); + } + + /** + * Replace table prefixes + * + * @param string $input Table value + * @param mixed $position Replace first occurrence at a specified position + * @return string + */ + protected function replace_table_prefixes( $input, $position = false ) { + $search = $this->get_old_table_prefixes(); + $replace = $this->get_new_table_prefixes(); + + // Replace first occurrence at a specified position + if ( $position !== false ) { + for ( $i = 0; $i < count( $search ); $i++ ) { + $current = stripos( $input, $search[ $i ], $position ); + if ( $current === $position ) { + $input = substr_replace( $input, $replace[ $i ], $current, strlen( $search[ $i ] ) ); + } + } + + return $input; + } + + return str_ireplace( $search, $replace, $input ); + } + + /** + * Replace column prefixes + * + * @param string $input Column value + * @param mixed $position Replace first occurrence at a specified position + * @return string + */ + protected function replace_column_prefixes( $input, $position = false ) { + $search = $this->get_old_column_prefixes(); + $replace = $this->get_new_column_prefixes(); + $reserved = $this->get_reserved_column_prefixes(); + + // Replace first occurrence at a specified position + if ( $position !== false ) { + for ( $i = 0; $i < count( $reserved ); $i++ ) { + $current = stripos( $input, $reserved[ $i ], $position ); + if ( $current === $position ) { + return $input; + } + } + + for ( $i = 0; $i < count( $search ); $i++ ) { + $current = stripos( $input, $search[ $i ], $position ); + if ( $current === $position ) { + $input = substr_replace( $input, $replace[ $i ], $current, strlen( $search[ $i ] ) ); + } + } + + return $input; + } + + return str_ireplace( $search, $replace, $input ); + } + + /** + * Replace table values + * + * @param string $input Table value + * @return string + */ + protected function replace_table_values( $input ) { + // Replace base64 encoded values (Visual Composer) + if ( $this->get_visual_composer() ) { + $input = preg_replace_callback( '/\[vc_raw_html\]([a-zA-Z0-9\/+]+={0,2})\[\/vc_raw_html\]/S', array( $this, 'replace_visual_composer_values_callback' ), $input ); + } + + // Replace base64 encoded values (Oxygen Builder) + if ( $this->get_oxygen_builder() ) { + $input = preg_replace_callback( '/\\\\"(code-php|code-css|code-js)\\\\":\\\\"([a-zA-Z0-9\/+]+={0,2})\\\\"/S', array( $this, 'replace_oxygen_builder_values_callback' ), $input ); + } + + // Replace base64 encoded values (BeTheme Responsive, Optimize Press and Avada Fusion Builder) + if ( $this->get_betheme_responsive() || $this->get_optimize_press() || $this->get_avada_fusion_builder() ) { + $input = preg_replace_callback( "/'([a-zA-Z0-9\/+]+={0,2})'/S", array( $this, 'replace_base64_values_callback' ), $input ); + } + + // Replace serialized values + foreach ( $this->get_old_replace_values() as $old_value ) { + if ( strpos( $input, $this->escape( $old_value ) ) !== false ) { + $input = preg_replace_callback( "/'((?:[^'\\\\]++|\\\\.)*+)'/sS", array( $this, 'replace_table_values_callback' ), $input ); + break; + } + } + + return $input; + } + + /** + * Replace base64 values callback (Visual Composer) + * + * @param array $matches List of matches + * @return string + */ + protected function replace_visual_composer_values_callback( $matches ) { + // Validate base64 data + if ( Ai1wm_Database_Utility::base64_validate( $matches[1] ) ) { + + // Decode base64 characters + $matches[1] = Ai1wm_Database_Utility::base64_decode( $matches[1] ); + + // Replace values + if ( strlen( $matches[1] ) >= $this->get_old_replace_values_min_length() ) { + $matches[1] = Ai1wm_Database_Utility::replace_values( $matches[1], $this->get_old_replace_values(), $this->get_new_replace_values() ); + } + + // Encode base64 characters + $matches[1] = Ai1wm_Database_Utility::base64_encode( $matches[1] ); + } + + return '[vc_raw_html]' . $matches[1] . '[/vc_raw_html]'; + } + + /** + * Replace base64 values callback (Oxygen Builder) + * + * @param array $matches List of matches + * @return string + */ + protected function replace_oxygen_builder_values_callback( $matches ) { + // Validate base64 data + if ( Ai1wm_Database_Utility::base64_validate( $matches[2] ) ) { + + // Decode base64 characters + $matches[2] = Ai1wm_Database_Utility::base64_decode( $matches[2] ); + + // Replace values + if ( strlen( $matches[2] ) >= $this->get_old_replace_values_min_length() ) { + $matches[2] = Ai1wm_Database_Utility::replace_values( $matches[2], $this->get_old_replace_values(), $this->get_new_replace_values() ); + } + + // Encode base64 characters + $matches[2] = Ai1wm_Database_Utility::base64_encode( $matches[2] ); + } + + return '\"' . $matches[1] . '\":\"' . $matches[2] . '\"'; + } + + /** + * Replace base64 values callback (BeTheme Responsive and Optimize Press) + * + * @param array $matches List of matches + * @return string + */ + protected function replace_base64_values_callback( $matches ) { + // Validate base64 data + if ( Ai1wm_Database_Utility::base64_validate( $matches[1] ) ) { + + // Decode base64 characters + $matches[1] = Ai1wm_Database_Utility::base64_decode( $matches[1] ); + + // Replace serialized values + if ( strlen( $matches[1] ) >= $this->get_old_replace_values_min_length() ) { + $matches[1] = Ai1wm_Database_Utility::replace_serialized_values( $matches[1], $this->get_old_replace_values(), $this->get_new_replace_values() ); + } + + // Encode base64 characters + $matches[1] = Ai1wm_Database_Utility::base64_encode( $matches[1] ); + } + + return "'" . $matches[1] . "'"; + } + + /** + * Replace table values callback + * + * @param array $matches List of matches + * @return string + */ + protected function replace_table_values_callback( $matches ) { + // Unescape MySQL special characters + $matches[1] = Ai1wm_Database_Utility::unescape_mysql( $matches[1] ); + + // Replace serialized values + if ( strlen( $matches[1] ) >= $this->get_old_replace_values_min_length() ) { + $matches[1] = Ai1wm_Database_Utility::replace_serialized_values( $matches[1], $this->get_old_replace_values(), $this->get_new_replace_values() ); + } + + // Escape MySQL special characters + $matches[1] = Ai1wm_Database_Utility::escape_mysql( $matches[1] ); + + return "'" . $matches[1] . "'"; + } + + /** + * Replace raw values + * + * @param string $input SQL statement + * @return string + */ + protected function replace_raw_values( $input ) { + return Ai1wm_Database_Utility::replace_values( $input, $this->get_old_replace_raw_values(), $this->get_new_replace_raw_values() ); + } + + /** + * Get server version + * + * @return string + */ + protected function server_version() { + return Ai1wm_Database_Utility::parse_server_version( $this->server_info() ); + } + + /** + * Check whether input is transient query + * + * @param string $input SQL statement + * @return boolean + */ + protected function is_transient_query( $input ) { + return strpos( $input, "'_transient_" ) !== false; + } + + /** + * Check whether input is site transient query + * + * @param string $input SQL statement + * @return boolean + */ + protected function is_site_transient_query( $input ) { + return strpos( $input, "'_site_transient_" ) !== false; + } + + /** + * Check whether input is WooCommerce session query + * + * @param string $input SQL statement + * @return boolean + */ + protected function is_wc_session_query( $input ) { + return strpos( $input, "'_wc_session_" ) !== false; + } + + /** + * Check whether input is WP All Import session query + * + * @param string $input SQL statement + * @return boolean + */ + protected function is_wpallimport_session_query( $input ) { + return strpos( $input, "'_wpallimport_session_" ) !== false; + } + + /** + * Check whether input is START TRANSACTION query + * + * @param string $input SQL statement + * @return boolean + */ + protected function is_start_transaction_query( $input ) { + return strpos( $input, 'START TRANSACTION' ) === 0; + } + + /** + * Check whether input is COMMIT query + * + * @param string $input SQL statement + * @return boolean + */ + protected function is_commit_query( $input ) { + return strpos( $input, 'COMMIT' ) === 0; + } + + /** + * Check whether input is DROP TABLE query + * + * @param string $input SQL statement + * @return boolean + */ + protected function is_drop_table_query( $input ) { + return strpos( $input, 'DROP TABLE' ) === 0; + } + + /** + * Check whether input is CREATE TABLE query + * + * @param string $input SQL statement + * @return boolean + */ + protected function is_create_table_query( $input ) { + return strpos( $input, 'CREATE TABLE' ) === 0; + } + + /** + * Check whether input is INSERT INTO query + * + * @param string $input SQL statement + * @param string $table_name Table name (case insensitive) + * @return boolean + */ + protected function is_insert_into_query( $input, $table_name ) { + return stripos( $input, sprintf( 'INSERT INTO `%s`', $table_name ) ) === 0; + } + + /** + * Should ignore query on import? + * + * @param string $input SQL statement + * @return boolean + */ + public function should_ignore_query( $input ) { + $ignore = false; + + // Ignore query based on table query + switch ( true ) { + case $this->is_transient_query( $input ): + case $this->is_site_transient_query( $input ): + case $this->is_wc_session_query( $input ): + case $this->is_wpallimport_session_query( $input ): + $ignore = true; + break; + + default: + foreach ( $this->get_empty_tables() as $table_name ) { + if ( $this->is_insert_into_query( $input, $table_name ) ) { + $ignore = true; + break; + } + } + } + + return $ignore; + } + + /** + * Check whether input is atomic query + * + * @param string $input SQL statement + * @return boolean + */ + protected function is_atomic_query( $input ) { + $atomic = false; + + // Skip timeout based on table query + switch ( true ) { + case $this->is_drop_table_query( $input ): + case $this->is_create_table_query( $input ): + case $this->is_start_transaction_query( $input ): + case $this->is_commit_query( $input ): + $atomic = true; + break; + + default: + // Skip timeout based on table query and table name + foreach ( $this->get_atomic_tables() as $table_name ) { + if ( $this->is_insert_into_query( $input, $table_name ) ) { + $atomic = true; + break; + } + } + } + + return $atomic; + } + + /** + * Replace column types + * + * @param string $input Column value + * @return string + */ + protected function replace_column_types( $input ) { + $search = array( + '/(?server_version(), '8.0', '>=' ) ) { + $search[] = 'utf8mb4_0900_ai_ci'; + $replace[] = 'utf8mb4_unicode_520_ci'; + + $search[] = 'utf8mb4_0900_as_ci'; + $replace[] = 'utf8mb4_unicode_520_ci'; + + $search[] = 'utf8mb4_0900_as_cs'; + $replace[] = 'utf8mb4_unicode_520_ci'; + + $search[] = 'utf8mb3_unicode_ci'; + $replace[] = 'utf8_unicode_ci'; + + $search[] = 'utf8mb3_general_ci'; + $replace[] = 'utf8_general_ci'; + + $search[] = 'utf8mb3_bin'; + $replace[] = 'utf8_bin'; + + $search[] = 'utf8mb3'; + $replace[] = 'utf8'; + } + + // Downgrade MySQL 5.6+ collations + if ( ! $this->wpdb->has_cap( 'utf8mb4_520' ) ) { + $search[] = 'utf8mb4_unicode_520_ci'; + $replace[] = 'utf8mb4_unicode_ci'; + } + + // Downgrade MySQL 5.5.3+ charsets + if ( ! $this->wpdb->has_cap( 'utf8mb4' ) ) { + $search[] = 'utf8mb4_unicode_ci'; + $replace[] = 'utf8_unicode_ci'; + + $search[] = 'utf8mb4_general_ci'; + $replace[] = 'utf8_general_ci'; + + $search[] = 'utf8mb4_bin'; + $replace[] = 'utf8_bin'; + + $search[] = 'utf8mb4'; + $replace[] = 'utf8'; + } + } + + return str_ireplace( $search, $replace, $input ); + } + + /** + * Replace table engines + * + * @param string $input SQL statement + * @return string + */ + protected function replace_table_engines( $input ) { + $search = array( + 'ENGINE=MyISAM', + 'ENGINE=Aria', + 'ENGINE=S3', + 'ENGINE=ColumnStore', + 'ENGINE=Spider', + 'ENGINE=CONNECT', + 'ENGINE=Mroonga', + ); + $replace = array( + 'ENGINE=InnoDB', + 'ENGINE=InnoDB', + 'ENGINE=InnoDB', + 'ENGINE=InnoDB', + 'ENGINE=InnoDB', + 'ENGINE=InnoDB', + 'ENGINE=InnoDB', + ); + + return str_ireplace( $search, $replace, $input ); + } + + /** + * Replace table row format + * + * @param string $input SQL statement + * @return string + */ + protected function replace_table_row_format( $input ) { + $search = array( + 'ENGINE=InnoDB', + 'ENGINE=MyISAM', + ); + $replace = array( + 'ENGINE=InnoDB ROW_FORMAT=DYNAMIC', + 'ENGINE=MyISAM ROW_FORMAT=DYNAMIC', + ); + + return str_ireplace( $search, $replace, $input ); + } + + /** + * Replace table full-text indexes (MySQL <= 5.5) + * + * @param string $input SQL statement + * @return string + */ + protected function replace_table_fulltext_indexes( $input ) { + $pattern = array( + '/\s+FULLTEXT KEY(.+),/i', + '/,\s+FULLTEXT KEY(.+)/i', + ); + + return preg_replace( $pattern, '', $input ); + } + + /** + * Returns header for dump file + * + * @return string + */ + protected function get_header() { + // Some info about software, source and time + $header = sprintf( + "-- All-in-One WP Migration SQL Dump\n" . + "-- https://servmask.com/\n" . + "--\n" . + "-- Host: %s\n" . + "-- Database: %s\n" . + "-- Class: %s\n" . + "--\n", + $this->wpdb->dbhost, + $this->wpdb->dbname, + get_class( $this ) + ); + + return $header; + } + + /** + * Prepare table values + * + * @param string $input Table value + * @param integer $column_type Column type + * @return string + */ + protected function prepare_table_values( $input, $column_type ) { + switch ( true ) { + case is_null( $input ): + return 'NULL'; + + case stripos( $column_type, 'tinyint' ) === 0: + case stripos( $column_type, 'smallint' ) === 0: + case stripos( $column_type, 'mediumint' ) === 0: + case stripos( $column_type, 'int' ) === 0: + case stripos( $column_type, 'bigint' ) === 0: + case stripos( $column_type, 'float' ) === 0: + case stripos( $column_type, 'double' ) === 0: + case stripos( $column_type, 'decimal' ) === 0: + case stripos( $column_type, 'bit' ) === 0: + return $input; + + case stripos( $column_type, 'binary' ) === 0: + case stripos( $column_type, 'varbinary' ) === 0: + case stripos( $column_type, 'tinyblob' ) === 0: + case stripos( $column_type, 'mediumblob' ) === 0: + case stripos( $column_type, 'longblob' ) === 0: + case stripos( $column_type, 'blob' ) === 0: + return '0x' . bin2hex( $input ); + + default: + return "'" . $this->escape( $input ) . "'"; + } + } + + /** + * Use MySQL transactions + * + * @return boolean + */ + protected function use_transactions() { + return true; + } + + /** + * Check whether table has auto increment attribute + * + * @param string $table_name Table name + * @return boolean + */ + abstract public function has_auto_increment( $table_name ); + + /** + * Run MySQL query + * + * @param string $input SQL query + * @return resource + */ + abstract public function query( $input ); + + /** + * Escape string input for MySQL query + * + * @param string $input String to escape + * @return string + */ + abstract public function escape( $input ); + + /** + * Return the error code for the most recent function call + * + * @return integer + */ + abstract public function errno(); + + /** + * Return a string description of the last error + * + * @return string + */ + abstract public function error(); + + /** + * Return server info + * + * @return string + */ + abstract public function server_info(); + + /** + * Return the result from MySQL query as associative array + * + * @param mixed $result MySQL resource + * @return array + */ + abstract public function fetch_assoc( &$result ); + + /** + * Return the result from MySQL query as row + * + * @param mixed $result MySQL resource + * @return array + */ + abstract public function fetch_row( &$result ); + + /** + * Return the number for rows from MySQL results + * + * @param mixed $result MySQL resource + * @return integer + */ + abstract public function num_rows( &$result ); + + /** + * Free MySQL result memory + * + * @param mixed $result MySQL resource + * @return boolean + */ + abstract public function free_result( &$result ); +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-directory.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-directory.php new file mode 100644 index 0000000..626b06c --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-directory.php @@ -0,0 +1,79 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Directory { + + /** + * Create directory (recursively) + * + * @param string $path Path to the directory + * @return boolean + */ + public static function create( $path ) { + if ( @is_dir( $path ) ) { + return true; + } + + return @mkdir( $path, 0777, true ); + } + + /** + * Delete directory (recursively) + * + * @param string $path Path to the directory + * @return boolean + */ + public static function delete( $path ) { + if ( @is_dir( $path ) ) { + try { + // Iterate over directory + $iterator = new Ai1wm_Recursive_Directory_Iterator( $path ); + + // Recursively iterate over directory + $iterator = new Ai1wm_Recursive_Iterator_Iterator( $iterator, RecursiveIteratorIterator::CHILD_FIRST, RecursiveIteratorIterator::CATCH_GET_CHILD ); + + // Remove files and directories + foreach ( $iterator as $item ) { + if ( $item->isDir() ) { + @rmdir( $item->getPathname() ); + } else { + @unlink( $item->getPathname() ); + } + } + } catch ( Exception $e ) { + } + + return @rmdir( $path ); + } + + return false; + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-htaccess.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-htaccess.php new file mode 100644 index 0000000..23026f3 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-htaccess.php @@ -0,0 +1,119 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_File_Htaccess { + + /** + * Create backups .htaccess file + * + * @param string $path Path to file + * @return boolean + */ + public static function backups( $path ) { + return Ai1wm_File::create( + $path, + implode( + PHP_EOL, + array( + '', + ' AddType application/octet-stream .wpress', + '', + '', + ' DirectoryIndex index.php', + '', + '', + ' Options -Indexes', + '', + ) + ) + ); + } + + /** + * Create storage .htaccess file + * + * @param string $path Path to file + * @return boolean + */ + public static function storage( $path ) { + return Ai1wm_File::create( + $path, + implode( + PHP_EOL, + array( + '', + ' ', + ' Require all denied', + ' ', + ' ', + ' Require all granted', + ' ', + '', + '', + ' Order allow,deny', + ' Deny from all', + ' ', + ' Order allow,deny', + ' Allow from all', + ' ', + '', + '', + ' AddType text/plain .log', + '', + '', + ' DirectoryIndex index.php', + '', + '', + ' Options -Indexes', + '', + ) + ) + ); + } + + /** + * Create LiteSpeed .htaccess file + * + * @param string $path Path to file + * @return boolean + */ + public static function litespeed( $path ) { + return Ai1wm_File::insert_with_markers( + $path, + 'LiteSpeed', + array( + '', + ' SetEnv noabort 1', + '', + ) + ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-index.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-index.php new file mode 100644 index 0000000..a6b0ef5 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-index.php @@ -0,0 +1,43 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_File_Index { + + /** + * Create index file + * + * @param string $path Path to file + * @return boolean + */ + public static function create( $path ) { + return Ai1wm_File::create( $path, 'Kangaroos cannot jump here' ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-robots.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-robots.php new file mode 100644 index 0000000..10989d3 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-robots.php @@ -0,0 +1,53 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_File_Robots { + + /** + * Create robots.txt file + * + * @param string $path Path to file + * @return boolean + */ + public static function create( $path ) { + return Ai1wm_File::create( + $path, + implode( + PHP_EOL, + array( + 'User-agent: *', + 'Disallow: /ai1wm-backups/', + 'Disallow: /wp-content/ai1wm-backups/', + ) + ) + ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-webconfig.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-webconfig.php new file mode 100644 index 0000000..0563bd4 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-webconfig.php @@ -0,0 +1,105 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_File_Webconfig { + + /** + * Create backups web.config file + * + * @param string $path Path to file + * @return boolean + */ + public static function backups( $path ) { + return Ai1wm_File::create( + $path, + implode( + PHP_EOL, + array( + '', + '', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + '', + ) + ) + ); + } + + /** + * Create storage web.config file + * + * @param string $path Path to file + * @return boolean + */ + public static function storage( $path ) { + return Ai1wm_File::create( + $path, + implode( + PHP_EOL, + array( + '', + '', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + '', + ) + ) + ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file.php new file mode 100644 index 0000000..618fc74 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file.php @@ -0,0 +1,98 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_File { + + /** + * Create a file with content + * + * @param string $path Path to the file + * @param string $content Content of the file + * @return boolean + */ + public static function create( $path, $content ) { + if ( ! @file_exists( $path ) ) { + if ( ! @is_writable( dirname( $path ) ) ) { + return false; + } + + if ( ! @touch( $path ) ) { + return false; + } + } elseif ( ! @is_writable( $path ) ) { + return false; + } + + // No changes were added + if ( function_exists( 'md5_file' ) ) { + if ( @md5_file( $path ) === md5( $content ) ) { + return true; + } + } + + $is_written = false; + if ( ( $handle = @fopen( $path, 'w' ) ) !== false ) { + if ( @fwrite( $handle, $content ) !== false ) { + $is_written = true; + } + + @fclose( $handle ); + } + + return $is_written; + } + + /** + * Create a file with marker and content + * + * @param string $path Path to the file + * @param string $marker Name of the marker + * @param string $content Content of the file + * @return boolean + */ + public static function insert_with_markers( $path, $marker, $content ) { + return @insert_with_markers( $path, $marker, $content ); + } + + /** + * Delete a file by path + * + * @param string $path Path to the file + * @return boolean + */ + public static function delete( $path ) { + if ( ! @file_exists( $path ) ) { + return false; + } + + return @unlink( $path ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filter/class-ai1wm-recursive-exclude-filter.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filter/class-ai1wm-recursive-exclude-filter.php new file mode 100644 index 0000000..aab63de --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filter/class-ai1wm-recursive-exclude-filter.php @@ -0,0 +1,77 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +/** + * @method RecursiveIterator getInnerIterator() + */ +class Ai1wm_Recursive_Exclude_Filter extends RecursiveFilterIterator { + + protected $exclude = array(); + + public function __construct( RecursiveIterator $iterator, $exclude = array() ) { + parent::__construct( $iterator ); + if ( is_array( $exclude ) ) { + foreach ( $exclude as $path ) { + $this->exclude[] = ai1wm_replace_forward_slash_with_directory_separator( $path ); + } + } + } + + #[\ReturnTypeWillChange] + public function accept() { + if ( in_array( ai1wm_replace_forward_slash_with_directory_separator( $this->getInnerIterator()->getSubPathname() ), $this->exclude ) ) { + return false; + } + + if ( in_array( ai1wm_replace_forward_slash_with_directory_separator( $this->getInnerIterator()->getPathname() ), $this->exclude ) ) { + return false; + } + + if ( in_array( ai1wm_replace_forward_slash_with_directory_separator( $this->getInnerIterator()->getPath() ), $this->exclude ) ) { + return false; + } + + if ( strpos( $this->getInnerIterator()->getSubPathname(), "\n" ) !== false ) { + return false; + } + + if ( strpos( $this->getInnerIterator()->getSubPathname(), "\r" ) !== false ) { + return false; + } + + return true; + } + + #[\ReturnTypeWillChange] + public function getChildren() { + return new self( $this->getInnerIterator()->getChildren(), $this->exclude ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filter/class-ai1wm-recursive-extension-filter.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filter/class-ai1wm-recursive-extension-filter.php new file mode 100644 index 0000000..4739687 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filter/class-ai1wm-recursive-extension-filter.php @@ -0,0 +1,61 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +/** + * @method RecursiveIterator getInnerIterator() + */ +class Ai1wm_Recursive_Extension_Filter extends RecursiveFilterIterator { + + protected $include = array(); + + public function __construct( RecursiveIterator $iterator, $include = array() ) { + parent::__construct( $iterator ); + if ( is_array( $include ) ) { + $this->include = $include; + } + } + + #[\ReturnTypeWillChange] + public function accept() { + if ( $this->getInnerIterator()->isFile() ) { + if ( ! in_array( pathinfo( $this->getInnerIterator()->getFilename(), PATHINFO_EXTENSION ), $this->include ) ) { + return false; + } + } + + return true; + } + + #[\ReturnTypeWillChange] + public function getChildren() { + return new self( $this->getInnerIterator()->getChildren(), $this->include ); + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/iterator/class-ai1wm-recursive-directory-iterator.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/iterator/class-ai1wm-recursive-directory-iterator.php new file mode 100644 index 0000000..1cdfad1 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/iterator/class-ai1wm-recursive-directory-iterator.php @@ -0,0 +1,75 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +class Ai1wm_Recursive_Directory_Iterator extends RecursiveDirectoryIterator { + + public function __construct( $path ) { + parent::__construct( $path ); + + // Skip current and parent directory + $this->skipdots(); + } + + #[\ReturnTypeWillChange] + public function rewind() { + parent::rewind(); + + // Skip current and parent directory + $this->skipdots(); + } + + #[\ReturnTypeWillChange] + public function next() { + parent::next(); + + // Skip current and parent directory + $this->skipdots(); + } + + /** + * Returns whether current entry is a directory and not '.' or '..' + * + * Explicitly set allow links flag, because RecursiveDirectoryIterator::FOLLOW_SYMLINKS + * is not supported by <= PHP 5.3.0 + * + * @return bool + */ + #[\ReturnTypeWillChange] + public function hasChildren( $allow_links = true ) { + return parent::hasChildren( $allow_links ); + } + + protected function skipdots() { + while ( $this->isDot() ) { + parent::next(); + } + } +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/iterator/class-ai1wm-recursive-iterator-iterator.php b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/iterator/class-ai1wm-recursive-iterator-iterator.php new file mode 100644 index 0000000..c8ede3a --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/iterator/class-ai1wm-recursive-iterator-iterator.php @@ -0,0 +1,41 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +/** + * @method string getSubPathname() + * @method string getPathname() + * @method string getSubPath() + * @method int getSize() + * @method int getMTime() + */ +class Ai1wm_Recursive_Iterator_Iterator extends RecursiveIteratorIterator { + +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/backups.min.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/backups.min.css new file mode 100644 index 0000000..2d7f54b --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/backups.min.css @@ -0,0 +1 @@ +@keyframes ai1wm-rotate{0%{transform:rotateZ(0)}25%{transform:rotateZ(-90deg)}50%{transform:rotateZ(-180deg)}75%{transform:rotateZ(-270deg)}100%{transform:rotateZ(-360deg)}}@keyframes ai1wm-emphasize{0%{transform:scale(1)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes ai1wm-fadein{0%{transform:scale(0)}50%{transform:scale(1.5)}100%{transform:scale(1)}}.ai1wm-button-group{border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;text-transform:uppercase;font-weight:600;transition:background-color .2s ease-out;display:inline-block;text-align:left}.ai1wm-button-group.ai1wm-button-export{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-export.ai1wm-open>.ai1wm-dropdown-menu{height:456px;border-top:1px solid #27ae60}.ai1wm-button-group.ai1wm-button-import{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-import.ai1wm-open>.ai1wm-dropdown-menu{height:484px;border-top:1px solid #27ae60}.ai1wm-button-group .ai1wm-button-main{position:relative;padding:6px 50px 6px 25px;box-sizing:content-box}.ai1wm-button-group .ai1wm-dropdown-menu{height:0;overflow:hidden;transition:height .2s cubic-bezier(0.19, 1, 0.22, 1);border-top:none}.ai1wm-dropdown-menu{margin:0 !important;padding:0;list-style:none}.ai1wm-dropdown-menu li{margin:0 !important;padding:0}.ai1wm-dropdown-menu li a,.ai1wm-dropdown-menu li a:visited{display:block;padding:5px 26px;text-decoration:none;color:#27ae60;text-align:left;box-sizing:content-box}.ai1wm-dropdown-menu li a:hover,.ai1wm-dropdown-menu li a:visited:hover{text-decoration:none;color:#111}.ai1mw-lines{position:absolute;width:12px;height:10px;top:9px;right:20px}.ai1wm-line{position:absolute;width:100%;height:2px;margin:auto;background:#27ae60;transition:all .2s ease-in-out}.ai1wm-line-first{top:0;left:0}div.ai1wm-open .ai1wm-line-first,div.ai1wm-open .ai1wm-line-third{top:50%}.ai1wm-line-second{top:50%;left:0}.ai1wm-line-third{top:100%;left:0}.ai1wm-button-gray{display:inline-block;border:2px solid #95a5a6;background-color:rgba(0,0,0,0);color:#95a5a6;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-gray:hover{background-color:#95a5a6;color:#fff}.ai1wm-button-green{display:inline-block;border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green:hover{background-color:#27ae60;color:#fff}.ai1wm-button-green-small{display:inline-block;border:2px solid #6eb649;background-color:rgba(0,0,0,0);color:#6eb649;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green-small:hover{background-color:#6eb649;color:#fff}.ai1wm-button-blue{display:inline-block;border:2px solid #00aff0;background-color:rgba(0,0,0,0);color:#00aff0;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-blue:hover{background-color:#00aff0;color:#fff}.ai1wm-button-red{display:inline-block;border:2px solid #e74c3c;background-color:rgba(0,0,0,0);color:#e74c3c;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-red:hover{background-color:#e74c3c;color:#fff}.ai1wm-button-blue[disabled=disabled],.ai1wm-button-green[disabled=disabled],.ai1wm-button-red[disabled=disabled],.ai1wm-button-green-small[disabled=disabled]{opacity:.6;cursor:default}.ai1wm-button-blue[disabled=disabled]:hover{color:#00aff0}.ai1wm-button-red[disabled=disabled]:hover{color:#e74c3c}.ai1wm-button-green[disabled=disabled]:hover{color:#27ae60}.ai1wm-button-blue[disabled=disabled]:hover,.ai1wm-button-green[disabled=disabled]:hover,.ai1wm-button-red[disabled=disabled]:hover,.ai1wm-button-green-small[disabled=disabled]:hover{background:none}.ai1wm-message-close-button{position:absolute;right:10px;top:6px;text-decoration:none;font-size:10px}input[type=radio].ai1wm-flat-radio-button{display:none}input[type=radio].ai1wm-flat-radio-button+a i,input[type=radio].ai1wm-flat-radio-button+label i{vertical-align:middle;float:left;width:25px;height:25px;border-radius:50%;background:rgba(0,0,0,0);border:2px solid #ccc;content:" ";cursor:pointer;position:relative;box-sizing:content-box}input[type=radio].ai1wm-flat-radio-button:checked+a i,input[type=radio].ai1wm-flat-radio-button:checked+label i{background-color:#d9d9d9;border-color:#6f6f6f}.ai1wm-clear{*zoom:1;clear:both}.ai1wm-clear:after,.ai1wm-clear:before{content:" ";display:table}.ai1wm-clear:after{clear:both}.ai1wm-container .ai1wm-row label{position:relative;top:-1px}.ai1wm-container .ai1wm-row label:after{content:"‎"}.ai1wm-share-button-container{text-align:center}.ai1wm-share-button-container .ai1wm-share-button{text-decoration:none;margin:10px;font-size:30px}.ai1wm-feedback-cancel:link,.ai1wm-feedback-cancel:visited,.ai1wm-feedback-cancel:active{float:left;line-height:34px;outline:0;text-decoration:none;color:#e74c3c}.ai1wm-form-submit{float:right}.ai1wm-no-underline{text-decoration:none}.ai1wm-top-positive-four{position:relative;top:4px}.ai1wm-top-positive-two{position:relative;top:2px}.ai1wm-feedback-form{display:none}.ai1wm-feedback-types{margin:0;padding:0;list-style:none}.ai1wm-feedback-types li{margin:14px 0;padding:0}.ai1wm-feedback-types>li>label>span{display:inline-block;padding:5px 0px 6px 8px}.ai1wm-feedback-types>li>a{height:29px;outline:none;color:#333;text-decoration:none}.ai1wm-feedback-types>li>a>span{display:inline-block;padding:5px 0px 6px 8px}.ai1wm-loader{display:inline-block;width:128px;height:128px;position:relative;animation:ai1wm-rotate 1.5s infinite linear;background:url("../img/logo-128x128.png");background-repeat:no-repeat;background-position:center center}.ai1wm-hide{display:none}.ai1wm-label{border:1px solid #5cb85c;background-color:rgba(0,0,0,0);color:#5cb85c;cursor:pointer;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;padding:.2em .6em;font-size:.8em;border-radius:5px}.ai1wm-label:hover{background-color:#5cb85c;color:#fff}.ai1wm-dialog-message{text-align:left;line-height:1.5em}.ai1wm-import-info{display:inline-block;font-size:12px;font-weight:bold;margin-top:16px}.ai1wm-import-info a{text-decoration:none}.ai1wm-import-title{display:inline-block;font-size:12px;font-weight:bold}.ai1wm-button-download,.ai1wm-direct-download{top:.5em !important}.ai1wm-button-download span,.ai1wm-direct-download span{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai1wm-mt-20{margin-top:20px}.ai1wm-left-aligned{text-align:left}[class^=ai1wm-icon-],[class*=" ai1wm-icon-"]{font-family:"servmask";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ai1wm-icon-file-zip:before{content:""}.ai1wm-icon-folder:before{content:""}.ai1wm-icon-file:before{content:""}.ai1wm-icon-file-content:before{content:""}.ai1wm-icon-cloud-upload:before{content:""}.ai1wm-icon-history:before{content:""}.ai1wm-icon-notification:before{content:""}.ai1wm-icon-arrow-down:before{content:""}.ai1wm-icon-close:before{content:""}.ai1wm-icon-wordpress2:before{content:""}.ai1wm-icon-arrow-right:before{content:""}.ai1wm-icon-plus2:before{content:""}.ai1wm-icon-edit-pencil:before{content:""}.ai1wm-icon-export:before{content:""}.ai1wm-icon-publish:before{content:""}.ai1wm-icon-paperplane:before{content:""}.ai1wm-icon-help:before{content:""}.ai1wm-icon-chevron-right:before{content:""}.ai1wm-icon-chevron-right2:before{content:""}.ai1wm-icon-chevron-left2:before{content:""}.ai1wm-icon-dropbox:before{content:""}.ai1wm-icon-gear:before{content:""}.ai1wm-icon-database:before{content:""}.ai1wm-icon-upload2:before{content:""}.ai1wm-icon-checkmark:before{content:""}.ai1wm-icon-checkmark2:before{content:""}.ai1wm-icon-enter:before{content:""}.ai1wm-icon-exit:before{content:""}.ai1wm-icon-amazon:before{content:""}.ai1wm-icon-onedrive:before{content:""}.ai1wm-icon-folder-secondary:before{content:""}.ai1wm-icon-folder-secondary-open:before{content:""}.ai1wm-icon-dots-horizontal-triple:before{content:""}.ai1wm-icon-bullhorn:before{content:""}.ai1wm-icon-eye:before{content:""}.ai1wm-icon-eye-blocked:before{content:""}.ai1wm-icon-power-cord:before{content:""}.ai1wm-icon-image:before{content:""}.ai1wm-icon-file-video:before{content:""}.ai1wm-icon-stack:before{content:""}.ai1wm-icon-table:before{content:""}.ai1wm-icon-calendar:before{content:""}.ai1wm-icon-play:before{content:""}.ai1wm-icon-broom:before{content:""}.ai1wm-icon-facebook:before{content:""}.ai1wm-icon-x:before{content:""}.ai1wm-icon-youtube:before{content:""}@media(min-width: 855px){.ai1wm-row{margin-right:399px}.ai1wm-row:before,.ai1wm-row:after{content:" ";display:table}.ai1wm-row:after{clear:both}.ai1wm-left{float:left;width:100%}.ai1wm-right{float:right;width:377px;margin-right:-399px}.ai1wm-right .ai1wm-sidebar{width:100%}.ai1wm-right .ai1wm-segment{width:333px;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;color:#333;background-color:#f9f9f9;padding:20px;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box}.ai1wm-right .ai1wm-segment h2{margin:22px 0 0 0;padding:0;font-weight:bold;font-size:14px;text-transform:uppercase;text-align:center}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-holder{position:relative;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-holder h1{margin:0;padding:0;float:left;font-weight:300;font-size:22px;text-transform:uppercase}.ai1wm-holder h1 i{position:relative;top:2px}@media(max-width: 854px){.ai1wm-container{margin-left:10px !important}.ai1wm-row{margin-right:0px !important}.ai1wm-right{float:left !important;width:100% !important;margin-top:18px;margin-right:0 !important}.ai1wm-right .ai1wm-sidebar{width:auto !important;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0;border-radius:3px}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-container{margin:20px 20px 0px 2px}.ai1wm-container:before,.ai1wm-container:after{content:" ";display:table}.ai1wm-container:after{clear:both}.ai1wm-replace-row{width:100%;box-shadow:outset 0 1px 0 0 #fff;border-radius:3px;color:#333;font-size:11px;font-weight:bold;background-color:#f9f9f9;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box;margin-bottom:10px}.ai1wm-field{margin-bottom:4px}.ai1wm-field input[type=text],.ai1wm-field textarea{width:100%;font-weight:normal}.ai1wm-field-set{margin-top:18px}.ai1wm-message{-moz-box-sizing:border-box;background-color:#efefef;border-radius:4px;color:rgba(0,0,0,.6);height:auto;margin:10px 0;min-height:18px;padding:6px 10px;position:relative;border:1px solid;transition:opacity .1s ease 0s,color .1s ease 0s,background .1s ease 0s,box-shadow .1s ease 0s}.ai1wm-message.ai1wm-success-message{background-color:#f2f8f0;color:#119000;font-size:12px}.ai1wm-message.ai1wm-info-message{background-color:#d9edf7;color:#31708f;font-size:11px}.ai1wm-message.ai1wm-error-message{background-color:#f1d7d7;color:#a95252;font-size:12px}.ai1wm-message.ai1wm-red-message{color:#d95c5c;border:2px solid #d95c5c;background-color:rgba(0,0,0,0)}.ai1wm-message.ai1wm-red-message h3{margin:.4em 0;color:#d95c5c}.ai1wm-message p{margin:4px 0;font-size:12px}.ai1wm-message-warning{display:block;font-size:14px;line-height:18px;padding:12px 20px;margin:0 0 22px 0;background-color:#f9f9f9;border:1px solid #d6d6d6;border-radius:3px;box-shadow:0 1px 0 0 #fff inset;border-left:4px solid #ffba00}.ai1wm-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);z-index:100001}.ai1wm-modal-container{position:fixed;display:none;top:50%;left:50%;z-index:100002;width:480px;height:auto;padding:16px;transform:translate(-240px, -94px);border:1px solid #fff;box-shadow:0px 2px 6px #292929;border-radius:6px;background:#f6f6f6;box-sizing:border-box;text-align:center}.ai1wm-modal-container.ai1wm-modal-container-v2{display:block;transform:translate(-50%, -50%);max-height:400px;overflow-y:auto;text-align:left;padding:0;border:0;border-radius:0}.ai1wm-modal-container.ai1wm-modal-container-v2.ai1wm-modal-loading{width:auto;overflow:hidden;border-radius:1em}.ai1wm-modal-container.ai1wm-modal-container-v2 h1{text-transform:none}.ai1wm-modal-container section{display:block;min-height:102px}.ai1wm-modal-container section h1{margin:0;padding:0}.ai1wm-modal-container section h1 .ai1wm-title-green{color:#27ae60;font-size:.7em}.ai1wm-modal-container section h1 .ai1wm-title-red{color:#e74c3c;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-title-grey{color:gray;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-loader{width:32px;height:32px;background:url("../img/logo-32x32.png")}.ai1wm-modal-container section h1 .ai1wm-icon-notification{font-size:1.2em;color:#e74c3c}.ai1wm-modal-container section p{margin:0;padding:12px 0}.ai1wm-modal-container section p .ai1wm-modal-sites p{padding:4px 10px;text-align:left}.ai1wm-modal-container section p .ai1wm-modal-sites input,.ai1wm-modal-container section p .ai1wm-modal-sites select{padding:0 6px;width:100%;max-width:100%;border-radius:3px;height:30px;line-height:30px}.ai1wm-modal-container section p .ai1wm-modal-subtitle-green{color:#27ae60}.ai1wm-modal-container section p .ai1wm-modal-subtitle-red{color:#e74c3c}.ai1wm-modal-container section p .ai1wm-modal-subdescription{display:block;text-align:left}.ai1wm-modal-container section p a.ai1wm-button-green{display:inline-block;position:relative;top:26px}.ai1wm-modal-container section p a.ai1wm-emphasize{animation:ai1wm-emphasize 1s infinite}.ai1wm-modal-container section p em{display:block;color:#34495e;font-style:normal}.ai1wm-modal-container section p.ai1wm-import-modal-content{text-align:left}.ai1wm-modal-container section p.ai1wm-import-modal-content-done{text-align:left;padding:1.62em .5em}.ai1wm-modal-container .ai1wm-import-modal-actions{border-top:1px solid #ccc;padding-top:1em;text-align:right}.ai1wm-modal-container .ai1wm-import-modal-actions .ai1wm-button-gray{margin-right:1em}.ai1wm-modal-container .ai1wm-import-modal-notice{border-top:1px solid #ccc}.ai1wm-modal-container .ai1wm-import-modal-notice p{font-weight:bold;margin:0;padding-top:16px;text-align:center}.ai1wm-progress-bar-v2{background-color:#63637e;display:block;height:60px;padding:3em}.ai1wm-progress-bar-v2 h1{text-transform:none;color:#fff;margin:0 0 1.4em}.ai1wm-progress-bar-v2-container{position:relative;width:100%;overflow:visible}.ai1wm-progress-bar-v2 .ai1wm-progress-bar-v2-meter{position:absolute;left:0;top:0;height:5px;background-color:#3d3d4e;width:100%}.ai1wm-progress-bar-v2 .ai1wm-progress-bar-v2-meter .ai1wm-progress-bar-v2-percent{position:absolute;background-color:#fff;padding:0 .5em;border-radius:3px;font-size:10px;line-height:24px;transform:translate(-1.1em, -3em)}.ai1wm-progress-bar-v2 .ai1wm-progress-bar-v2-meter .ai1wm-progress-bar-v2-percent::after{content:" ";position:absolute;top:100%;left:50%;margin-left:-3px;border-width:3px;border-style:solid;border-color:#fff rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.ai1wm-progress-bar-v2 .ai1wm-progress-bar-v2-meter .ai1wm-progress-bar-v2-slider{display:inline-block;background-color:#fff;position:absolute;height:5px;max-width:100%}.ai1wm-spin-container{height:50px;width:50px;position:relative;display:block;padding:1.5em}.ai1wm-spinner{display:flex;position:absolute;width:50px;height:50px;animation-iteration-count:infinite;animation-timing-function:linear}.ai1wm-spinner.ai1wm-spin-left{animation-duration:2000ms;animation-name:ai1wm-spin-left}.ai1wm-spinner.ai1wm-spin-right{animation-duration:4000ms;animation-name:ai1wm-spin-right}@keyframes ai1wm-spin-left{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes ai1wm-spin-right{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.ai1wm-folder-container{display:flex;flex-direction:column;padding:2em 3em}.ai1wm-folder-container>h1{display:flex;color:#3c434a;font-weight:bold;align-items:center;justify-content:space-between}.ai1wm-folder-container>h1 a{text-decoration:none;color:inherit;font-size:.5em}.ai1wm-folder-container ul li{margin:0}.ai1wm-folder-container ul li a{padding:5px;text-decoration:none;color:#3c434a;display:flex;align-items:center;justify-content:flex-start;font-size:1rem}.ai1wm-folder-container ul li a>i{margin:0 5px}.ai1wm-folder-container ul li a>i.ai1wm-icon-arrow-down{margin-left:10px;display:none}.ai1wm-folder-container ul li a:hover{background-color:rgba(0,0,0,.1)}.ai1wm-folder-container ul li a:hover i.ai1wm-icon-arrow-down{display:block}.ai1wm-folder-container ul li .ai1wm-archive-browser-filename{margin-right:10px}.ai1wm-folder-container ul li .ai1wm-archive-browser-filesize{color:#718096;font-size:.75rem;white-space:nowrap}.ai1wm-social-share-wrapper{display:flex;justify-content:center;gap:20px;margin-bottom:15px;padding:10px 0}.ai1wm-social-icon{text-decoration:none !important;font-size:20px;color:#444;display:inline-block;transition:color .2s ease}.ai1wm-social-icon.icon-x:hover{color:#000}.ai1wm-social-icon.icon-facebook:hover{color:#1877f2}.ai1wm-social-icon.icon-youtube:hover{color:red}.ai1wm-social-icon i{display:block;line-height:1}section.ai1wm-decrypt-backup-section{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:16px;box-sizing:border-box;padding:16px}section.ai1wm-decrypt-backup-section h1{font-size:20px;align-self:center}section.ai1wm-decrypt-backup-section p{align-self:center;padding:0;margin:0}section.ai1wm-decrypt-backup-section form{align-self:center;display:flex;flex-direction:column;align-items:flex-start;padding:0px;gap:8px;width:75%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container input{width:100%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container .ai1wm-toggle-password-visibility{font-size:16px;text-decoration:none;color:#3c434a;position:absolute;right:10px;top:8px;outline:none;box-shadow:none}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container .ai1wm-error-message{display:none}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container.ai1wm-has-error input{border-color:#e74c3c}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container.ai1wm-has-error .ai1wm-error-message{color:#e74c3c;display:block;font-weight:normal;text-align:left;width:100%}section.ai1wm-decrypt-backup-section .ai1wm-backup-decrypt-button-container{display:flex;flex-direction:row;gap:16px;justify-content:flex-end;width:75%;align-self:center}#ai1wm-backups-list{width:100%;margin-top:1.95rem;overflow-x:auto}div#ai1wm-backups-list::-webkit-scrollbar{-webkit-appearance:none;height:4px}div#ai1wm-backups-list::-webkit-scrollbar-thumb{border-radius:4px;background-color:rgba(77,77,77,.5);-webkit-box-shadow:0 0 1px hsla(0,0%,100%,.5)}#ai1wm-export-form,.ai1wm-backup-bulk-delete-holder{display:inline-block;vertical-align:top}.ai1wm-backup-bulk-delete-holder{margin-left:20px}#ai1wm-backup-bulk-delete{padding:7px 0;display:inline-block;color:#e74c3c;font-weight:600;text-decoration:none;box-shadow:none;cursor:pointer}#ai1wm-backup-bulk-delete.ai1wm-hide{display:none}#ai1wm-backup-bulk-delete:hover,#ai1wm-backup-bulk-delete:focus{color:#c0392b;box-shadow:none}#ai1wm-backup-bulk-delete .ai1wm-icon-close{font-size:.8em;margin-right:4px}.ai1wm-backups{width:100%;margin:1em 0;padding:0;border-collapse:collapse}.ai1wm-backups .ai1wm-column-checkbox{width:24px;text-align:center;white-space:nowrap}.ai1wm-backups .ai1wm-column-checkbox input[type=checkbox]{margin:0;vertical-align:middle}.ai1wm-backups .ai1wm-column-name{text-align:left;white-space:nowrap}.ai1wm-backups .ai1wm-column-date{text-align:center;white-space:nowrap}.ai1wm-backups .ai1wm-column-size{text-align:center;white-space:nowrap}.ai1wm-backups .ai1wm-column-actions{text-align:right;white-space:nowrap}.ai1wm-backups thead th{padding:4px 6px;text-align:left;font-size:1.2em}.ai1wm-backups tbody tr{border-top:1px solid #ccc;border-bottom:1px solid #ccc}.ai1wm-backups tbody tr:hover{background:rgba(0,0,0,.1)}.ai1wm-backups tbody tr:hover .ai1wm-backup-label-description:not(.ai1wm-backup-label-selected){display:inline}.ai1wm-backups tbody td{padding:4px 6px;box-sizing:border-box;line-height:24px}.ai1wm-backups tbody td.ai1wm-backup-actions{text-align:right;width:50px}.ai1wm-backups tbody td.ai1wm-backup-actions a:focus{outline-style:none;box-shadow:none;border-color:rgba(0,0,0,0)}.ai1wm-backups tbody td.ai1wm-backup-actions>div{display:flex;justify-content:flex-end}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots{border-radius:100%;margin:0;padding:10px;color:gray;font-size:1.5em;text-decoration:none;display:flex;justify-content:center;align-content:center}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots:hover,.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots:focus{background-color:#f0f0f1}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu{position:absolute;background:rgba(0,0,0,0);display:none;transform:translate(-35px, 30px);right:0}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul{position:relative;z-index:10;margin:0;background:#f9f9f9;border-radius:5px;box-shadow:rgba(0,0,0,.16) 0px 3px 6px,rgba(0,0,0,.23) 0px 3px 6px}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li{display:block;padding:0;margin:0}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li.divider{border-top:1px solid rgba(0,0,0,.1)}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li:first-child>a{border-top-left-radius:5px;border-top-right-radius:5px}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li:last-child>a{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li.ai1wm-disabled{opacity:.5}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li.ai1wm-disabled>a{cursor:not-allowed}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li>a{text-decoration:none;color:#23282d;display:flex;align-items:center;padding:.5em 2em}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li>a:hover,.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li>a:focus{background-color:rgba(0,0,0,.1)}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li>a>i{margin-right:10px}.ai1wm-backups .spinner{visibility:visible;margin:0}.ai1wm-backups .ai1wm-backups-list-spinner{text-align:center;line-height:37px}.ai1wm-backups .ai1wm-backups-list-spinner .spinner{float:none;visibility:visible;margin:0 6px 0 0;position:relative;top:-2px}.ai1wm-backups .ai1wm-backup-label-text{cursor:pointer}.ai1wm-backups .ai1wm-backup-label-text .ai1wm-backup-label-colored{display:inline-block;padding:.25em .4em;font-size:85%;font-weight:normal;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;color:#000;background-color:#fad390;cursor:pointer;word-wrap:break-word;word-break:break-all;white-space:normal}.ai1wm-backups .ai1wm-backup-label-text:hover .ai1wm-icon-edit-pencil{display:inline}.ai1wm-backups .ai1wm-backup-label-description{font-size:12px;cursor:pointer;font-style:italic}.ai1wm-backups .ai1wm-backup-label-description:hover .ai1wm-icon-edit-pencil{display:inline}.ai1wm-backups .ai1wm-backup-label-holder .spinner{float:none}.ai1wm-backups .ai1wm-backup-label-holder .ai1wm-backup-label-field{border-radius:5px;border:1px solid #ccc}.ai1wm-backups-empty{line-height:2em}.ai1wm-backups-empty-spinner-holder{line-height:2em}.ai1wm-backups-empty-spinner-holder .spinner{float:none;visibility:visible;margin:0 6px 0 0;position:relative;top:-2px} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/backups.min.rtl.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/backups.min.rtl.css new file mode 100644 index 0000000..b6f1bde --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/backups.min.rtl.css @@ -0,0 +1 @@ +@keyframes ai1wm-rotate{0%{transform:rotateZ(0)}25%{transform:rotateZ(90deg)}50%{transform:rotateZ(180deg)}75%{transform:rotateZ(270deg)}100%{transform:rotateZ(360deg)}}@keyframes ai1wm-emphasize{0%{transform:scale(1)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes ai1wm-fadein{0%{transform:scale(0)}50%{transform:scale(1.5)}100%{transform:scale(1)}}.ai1wm-button-group{border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;text-transform:uppercase;font-weight:600;transition:background-color .2s ease-out;display:inline-block;text-align:right}.ai1wm-button-group.ai1wm-button-export{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-export.ai1wm-open>.ai1wm-dropdown-menu{height:456px;border-top:1px solid #27ae60}.ai1wm-button-group.ai1wm-button-import{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-import.ai1wm-open>.ai1wm-dropdown-menu{height:484px;border-top:1px solid #27ae60}.ai1wm-button-group .ai1wm-button-main{position:relative;padding:6px 25px 6px 50px;box-sizing:content-box}.ai1wm-button-group .ai1wm-dropdown-menu{height:0;overflow:hidden;transition:height .2s cubic-bezier(0.19, 1, 0.22, 1);border-top:none}.ai1wm-dropdown-menu{margin:0 !important;padding:0;list-style:none}.ai1wm-dropdown-menu li{margin:0 !important;padding:0}.ai1wm-dropdown-menu li a,.ai1wm-dropdown-menu li a:visited{display:block;padding:5px 26px;text-decoration:none;color:#27ae60;text-align:right;box-sizing:content-box}.ai1wm-dropdown-menu li a:hover,.ai1wm-dropdown-menu li a:visited:hover{text-decoration:none;color:#111}.ai1mw-lines{position:absolute;width:12px;height:10px;top:9px;left:20px}.ai1wm-line{position:absolute;width:100%;height:2px;margin:auto;background:#27ae60;transition:all .2s ease-in-out}.ai1wm-line-first{top:0;right:0}div.ai1wm-open .ai1wm-line-first,div.ai1wm-open .ai1wm-line-third{top:50%}.ai1wm-line-second{top:50%;right:0}.ai1wm-line-third{top:100%;right:0}.ai1wm-button-gray{display:inline-block;border:2px solid #95a5a6;background-color:rgba(0,0,0,0);color:#95a5a6;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-gray:hover{background-color:#95a5a6;color:#fff}.ai1wm-button-green{display:inline-block;border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green:hover{background-color:#27ae60;color:#fff}.ai1wm-button-green-small{display:inline-block;border:2px solid #6eb649;background-color:rgba(0,0,0,0);color:#6eb649;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green-small:hover{background-color:#6eb649;color:#fff}.ai1wm-button-blue{display:inline-block;border:2px solid #00aff0;background-color:rgba(0,0,0,0);color:#00aff0;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-blue:hover{background-color:#00aff0;color:#fff}.ai1wm-button-red{display:inline-block;border:2px solid #e74c3c;background-color:rgba(0,0,0,0);color:#e74c3c;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-red:hover{background-color:#e74c3c;color:#fff}.ai1wm-button-blue[disabled=disabled],.ai1wm-button-green[disabled=disabled],.ai1wm-button-red[disabled=disabled],.ai1wm-button-green-small[disabled=disabled]{opacity:.6;cursor:default}.ai1wm-button-blue[disabled=disabled]:hover{color:#00aff0}.ai1wm-button-red[disabled=disabled]:hover{color:#e74c3c}.ai1wm-button-green[disabled=disabled]:hover{color:#27ae60}.ai1wm-button-blue[disabled=disabled]:hover,.ai1wm-button-green[disabled=disabled]:hover,.ai1wm-button-red[disabled=disabled]:hover,.ai1wm-button-green-small[disabled=disabled]:hover{background:none}.ai1wm-message-close-button{position:absolute;left:10px;top:6px;text-decoration:none;font-size:10px}input[type=radio].ai1wm-flat-radio-button{display:none}input[type=radio].ai1wm-flat-radio-button+a i,input[type=radio].ai1wm-flat-radio-button+label i{vertical-align:middle;float:right;width:25px;height:25px;border-radius:50%;background:rgba(0,0,0,0);border:2px solid #ccc;content:" ";cursor:pointer;position:relative;box-sizing:content-box}input[type=radio].ai1wm-flat-radio-button:checked+a i,input[type=radio].ai1wm-flat-radio-button:checked+label i{background-color:#d9d9d9;border-color:#6f6f6f}.ai1wm-clear{*zoom:1;clear:both}.ai1wm-clear:after,.ai1wm-clear:before{content:" ";display:table}.ai1wm-clear:after{clear:both}.ai1wm-container .ai1wm-row label{position:relative;top:-1px}.ai1wm-container .ai1wm-row label:after{content:"‎"}.ai1wm-share-button-container{text-align:center}.ai1wm-share-button-container .ai1wm-share-button{text-decoration:none;margin:10px;font-size:30px}.ai1wm-feedback-cancel:link,.ai1wm-feedback-cancel:visited,.ai1wm-feedback-cancel:active{float:right;line-height:34px;outline:0;text-decoration:none;color:#e74c3c}.ai1wm-form-submit{float:left}.ai1wm-no-underline{text-decoration:none}.ai1wm-top-positive-four{position:relative;top:4px}.ai1wm-top-positive-two{position:relative;top:2px}.ai1wm-feedback-form{display:none}.ai1wm-feedback-types{margin:0;padding:0;list-style:none}.ai1wm-feedback-types li{margin:14px 0;padding:0}.ai1wm-feedback-types>li>label>span{display:inline-block;padding:5px 8px 6px 0px}.ai1wm-feedback-types>li>a{height:29px;outline:none;color:#333;text-decoration:none}.ai1wm-feedback-types>li>a>span{display:inline-block;padding:5px 8px 6px 0px}.ai1wm-loader{display:inline-block;width:128px;height:128px;position:relative;animation:ai1wm-rotate 1.5s infinite linear;background:url("../img/logo-128x128.png");background-repeat:no-repeat;background-position:center center}.ai1wm-hide{display:none}.ai1wm-label{border:1px solid #5cb85c;background-color:rgba(0,0,0,0);color:#5cb85c;cursor:pointer;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;padding:.2em .6em;font-size:.8em;border-radius:5px}.ai1wm-label:hover{background-color:#5cb85c;color:#fff}.ai1wm-dialog-message{text-align:right;line-height:1.5em}.ai1wm-import-info{display:inline-block;font-size:12px;font-weight:bold;margin-top:16px}.ai1wm-import-info a{text-decoration:none}.ai1wm-import-title{display:inline-block;font-size:12px;font-weight:bold}.ai1wm-button-download,.ai1wm-direct-download{top:.5em !important}.ai1wm-button-download span,.ai1wm-direct-download span{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai1wm-mt-20{margin-top:20px}.ai1wm-left-aligned{text-align:right}[class^=ai1wm-icon-],[class*=" ai1wm-icon-"]{font-family:"servmask";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ai1wm-icon-file-zip:before{content:""}.ai1wm-icon-folder:before{content:""}.ai1wm-icon-file:before{content:""}.ai1wm-icon-file-content:before{content:""}.ai1wm-icon-cloud-upload:before{content:""}.ai1wm-icon-history:before{content:""}.ai1wm-icon-notification:before{content:""}.ai1wm-icon-arrow-down:before{content:""}.ai1wm-icon-close:before{content:""}.ai1wm-icon-wordpress2:before{content:""}.ai1wm-icon-arrow-right:before{content:""}.ai1wm-icon-plus2:before{content:""}.ai1wm-icon-edit-pencil:before{content:""}.ai1wm-icon-export:before{content:""}.ai1wm-icon-publish:before{content:""}.ai1wm-icon-paperplane:before{content:""}.ai1wm-icon-help:before{content:""}.ai1wm-icon-chevron-right:before{content:""}.ai1wm-icon-chevron-right2:before{content:""}.ai1wm-icon-chevron-left2:before{content:""}.ai1wm-icon-dropbox:before{content:""}.ai1wm-icon-gear:before{content:""}.ai1wm-icon-database:before{content:""}.ai1wm-icon-upload2:before{content:""}.ai1wm-icon-checkmark:before{content:""}.ai1wm-icon-checkmark2:before{content:""}.ai1wm-icon-enter:before{content:""}.ai1wm-icon-exit:before{content:""}.ai1wm-icon-amazon:before{content:""}.ai1wm-icon-onedrive:before{content:""}.ai1wm-icon-folder-secondary:before{content:""}.ai1wm-icon-folder-secondary-open:before{content:""}.ai1wm-icon-dots-horizontal-triple:before{content:""}.ai1wm-icon-bullhorn:before{content:""}.ai1wm-icon-eye:before{content:""}.ai1wm-icon-eye-blocked:before{content:""}.ai1wm-icon-power-cord:before{content:""}.ai1wm-icon-image:before{content:""}.ai1wm-icon-file-video:before{content:""}.ai1wm-icon-stack:before{content:""}.ai1wm-icon-table:before{content:""}.ai1wm-icon-calendar:before{content:""}.ai1wm-icon-play:before{content:""}.ai1wm-icon-broom:before{content:""}.ai1wm-icon-facebook:before{content:""}.ai1wm-icon-x:before{content:""}.ai1wm-icon-youtube:before{content:""}@media(min-width: 855px){.ai1wm-row{margin-left:399px}.ai1wm-row:before,.ai1wm-row:after{content:" ";display:table}.ai1wm-row:after{clear:both}.ai1wm-left{float:right;width:100%}.ai1wm-right{float:left;width:377px;margin-left:-399px}.ai1wm-right .ai1wm-sidebar{width:100%}.ai1wm-right .ai1wm-segment{width:333px;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;color:#333;background-color:#f9f9f9;padding:20px;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box}.ai1wm-right .ai1wm-segment h2{margin:22px 0 0 0;padding:0;font-weight:bold;font-size:14px;text-transform:uppercase;text-align:center}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-holder{position:relative;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-holder h1{margin:0;padding:0;float:right;font-weight:300;font-size:22px;text-transform:uppercase}.ai1wm-holder h1 i{position:relative;top:2px}@media(max-width: 854px){.ai1wm-container{margin-right:10px !important}.ai1wm-row{margin-left:0px !important}.ai1wm-right{float:right !important;width:100% !important;margin-top:18px;margin-left:0 !important}.ai1wm-right .ai1wm-sidebar{width:auto !important;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0;border-radius:3px}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-container{margin:20px 2px 0px 20px}.ai1wm-container:before,.ai1wm-container:after{content:" ";display:table}.ai1wm-container:after{clear:both}.ai1wm-replace-row{width:100%;box-shadow:outset 0 1px 0 0 #fff;border-radius:3px;color:#333;font-size:11px;font-weight:bold;background-color:#f9f9f9;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box;margin-bottom:10px}.ai1wm-field{margin-bottom:4px}.ai1wm-field input[type=text],.ai1wm-field textarea{width:100%;font-weight:normal}.ai1wm-field-set{margin-top:18px}.ai1wm-message{-moz-box-sizing:border-box;background-color:#efefef;border-radius:4px;color:rgba(0,0,0,.6);height:auto;margin:10px 0;min-height:18px;padding:6px 10px;position:relative;border:1px solid;transition:opacity .1s ease 0s,color .1s ease 0s,background .1s ease 0s,box-shadow .1s ease 0s}.ai1wm-message.ai1wm-success-message{background-color:#f2f8f0;color:#119000;font-size:12px}.ai1wm-message.ai1wm-info-message{background-color:#d9edf7;color:#31708f;font-size:11px}.ai1wm-message.ai1wm-error-message{background-color:#f1d7d7;color:#a95252;font-size:12px}.ai1wm-message.ai1wm-red-message{color:#d95c5c;border:2px solid #d95c5c;background-color:rgba(0,0,0,0)}.ai1wm-message.ai1wm-red-message h3{margin:.4em 0;color:#d95c5c}.ai1wm-message p{margin:4px 0;font-size:12px}.ai1wm-message-warning{display:block;font-size:14px;line-height:18px;padding:12px 20px;margin:0 0 22px 0;background-color:#f9f9f9;border:1px solid #d6d6d6;border-radius:3px;box-shadow:0 1px 0 0 #fff inset;border-right:4px solid #ffba00}.ai1wm-overlay{display:none;position:fixed;top:0;right:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);z-index:100001}.ai1wm-modal-container{position:fixed;display:none;top:50%;right:50%;z-index:100002;width:480px;height:auto;padding:16px;transform:translate(240px, -94px);border:1px solid #fff;box-shadow:0px 2px 6px #292929;border-radius:6px;background:#f6f6f6;box-sizing:border-box;text-align:center}.ai1wm-modal-container.ai1wm-modal-container-v2{display:block;transform:translate(50%, -50%);max-height:400px;overflow-y:auto;text-align:right;padding:0;border:0;border-radius:0}.ai1wm-modal-container.ai1wm-modal-container-v2.ai1wm-modal-loading{width:auto;overflow:hidden;border-radius:1em}.ai1wm-modal-container.ai1wm-modal-container-v2 h1{text-transform:none}.ai1wm-modal-container section{display:block;min-height:102px}.ai1wm-modal-container section h1{margin:0;padding:0}.ai1wm-modal-container section h1 .ai1wm-title-green{color:#27ae60;font-size:.7em}.ai1wm-modal-container section h1 .ai1wm-title-red{color:#e74c3c;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-title-grey{color:gray;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-loader{width:32px;height:32px;background:url("../img/logo-32x32.png")}.ai1wm-modal-container section h1 .ai1wm-icon-notification{font-size:1.2em;color:#e74c3c}.ai1wm-modal-container section p{margin:0;padding:12px 0}.ai1wm-modal-container section p .ai1wm-modal-sites p{padding:4px 10px;text-align:right}.ai1wm-modal-container section p .ai1wm-modal-sites input,.ai1wm-modal-container section p .ai1wm-modal-sites select{padding:0 6px;width:100%;max-width:100%;border-radius:3px;height:30px;line-height:30px}.ai1wm-modal-container section p .ai1wm-modal-subtitle-green{color:#27ae60}.ai1wm-modal-container section p .ai1wm-modal-subtitle-red{color:#e74c3c}.ai1wm-modal-container section p .ai1wm-modal-subdescription{display:block;text-align:right}.ai1wm-modal-container section p a.ai1wm-button-green{display:inline-block;position:relative;top:26px}.ai1wm-modal-container section p a.ai1wm-emphasize{animation:ai1wm-emphasize 1s infinite}.ai1wm-modal-container section p em{display:block;color:#34495e;font-style:normal}.ai1wm-modal-container section p.ai1wm-import-modal-content{text-align:right}.ai1wm-modal-container section p.ai1wm-import-modal-content-done{text-align:right;padding:1.62em .5em}.ai1wm-modal-container .ai1wm-import-modal-actions{border-top:1px solid #ccc;padding-top:1em;text-align:left}.ai1wm-modal-container .ai1wm-import-modal-actions .ai1wm-button-gray{margin-left:1em}.ai1wm-modal-container .ai1wm-import-modal-notice{border-top:1px solid #ccc}.ai1wm-modal-container .ai1wm-import-modal-notice p{font-weight:bold;margin:0;padding-top:16px;text-align:center}.ai1wm-progress-bar-v2{background-color:#63637e;display:block;height:60px;padding:3em}.ai1wm-progress-bar-v2 h1{text-transform:none;color:#fff;margin:0 0 1.4em}.ai1wm-progress-bar-v2-container{position:relative;width:100%;overflow:visible}.ai1wm-progress-bar-v2 .ai1wm-progress-bar-v2-meter{position:absolute;right:0;top:0;height:5px;background-color:#3d3d4e;width:100%}.ai1wm-progress-bar-v2 .ai1wm-progress-bar-v2-meter .ai1wm-progress-bar-v2-percent{position:absolute;background-color:#fff;padding:0 .5em;border-radius:3px;font-size:10px;line-height:24px;transform:translate(1.1em, -3em)}.ai1wm-progress-bar-v2 .ai1wm-progress-bar-v2-meter .ai1wm-progress-bar-v2-percent::after{content:" ";position:absolute;top:100%;right:50%;margin-right:-3px;border-width:3px;border-style:solid;border-color:#fff rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.ai1wm-progress-bar-v2 .ai1wm-progress-bar-v2-meter .ai1wm-progress-bar-v2-slider{display:inline-block;background-color:#fff;position:absolute;height:5px;max-width:100%}.ai1wm-spin-container{height:50px;width:50px;position:relative;display:block;padding:1.5em}.ai1wm-spinner{display:flex;position:absolute;width:50px;height:50px;animation-iteration-count:infinite;animation-timing-function:linear}.ai1wm-spinner.ai1wm-spin-left{animation-duration:2000ms;animation-name:ai1wm-spin-left}.ai1wm-spinner.ai1wm-spin-right{animation-duration:4000ms;animation-name:ai1wm-spin-right}@keyframes ai1wm-spin-left{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}@keyframes ai1wm-spin-right{from{transform:rotate(-360deg)}to{transform:rotate(0deg)}}.ai1wm-folder-container{display:flex;flex-direction:column;padding:2em 3em}.ai1wm-folder-container>h1{display:flex;color:#3c434a;font-weight:bold;align-items:center;justify-content:space-between}.ai1wm-folder-container>h1 a{text-decoration:none;color:inherit;font-size:.5em}.ai1wm-folder-container ul li{margin:0}.ai1wm-folder-container ul li a{padding:5px;text-decoration:none;color:#3c434a;display:flex;align-items:center;justify-content:flex-start;font-size:1rem}.ai1wm-folder-container ul li a>i{margin:0 5px}.ai1wm-folder-container ul li a>i.ai1wm-icon-arrow-down{margin-right:10px;display:none}.ai1wm-folder-container ul li a:hover{background-color:rgba(0,0,0,.1)}.ai1wm-folder-container ul li a:hover i.ai1wm-icon-arrow-down{display:block}.ai1wm-folder-container ul li .ai1wm-archive-browser-filename{margin-left:10px}.ai1wm-folder-container ul li .ai1wm-archive-browser-filesize{color:#718096;font-size:.75rem;white-space:nowrap}.ai1wm-social-share-wrapper{display:flex;justify-content:center;gap:20px;margin-bottom:15px;padding:10px 0}.ai1wm-social-icon{text-decoration:none !important;font-size:20px;color:#444;display:inline-block;transition:color .2s ease}.ai1wm-social-icon.icon-x:hover{color:#000}.ai1wm-social-icon.icon-facebook:hover{color:#1877f2}.ai1wm-social-icon.icon-youtube:hover{color:red}.ai1wm-social-icon i{display:block;line-height:1}section.ai1wm-decrypt-backup-section{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:16px;box-sizing:border-box;padding:16px}section.ai1wm-decrypt-backup-section h1{font-size:20px;align-self:center}section.ai1wm-decrypt-backup-section p{align-self:center;padding:0;margin:0}section.ai1wm-decrypt-backup-section form{align-self:center;display:flex;flex-direction:column;align-items:flex-start;padding:0px;gap:8px;width:75%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container input{width:100%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container .ai1wm-toggle-password-visibility{font-size:16px;text-decoration:none;color:#3c434a;position:absolute;left:10px;top:8px;outline:none;box-shadow:none}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container .ai1wm-error-message{display:none}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container.ai1wm-has-error input{border-color:#e74c3c}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container.ai1wm-has-error .ai1wm-error-message{color:#e74c3c;display:block;font-weight:normal;text-align:right;width:100%}section.ai1wm-decrypt-backup-section .ai1wm-backup-decrypt-button-container{display:flex;flex-direction:row;gap:16px;justify-content:flex-end;width:75%;align-self:center}#ai1wm-backups-list{width:100%;margin-top:1.95rem;overflow-x:auto}div#ai1wm-backups-list::-webkit-scrollbar{-webkit-appearance:none;height:4px}div#ai1wm-backups-list::-webkit-scrollbar-thumb{border-radius:4px;background-color:rgba(77,77,77,.5);-webkit-box-shadow:0 0 1px hsla(0,0%,100%,.5)}#ai1wm-export-form,.ai1wm-backup-bulk-delete-holder{display:inline-block;vertical-align:top}.ai1wm-backup-bulk-delete-holder{margin-right:20px}#ai1wm-backup-bulk-delete{padding:7px 0;display:inline-block;color:#e74c3c;font-weight:600;text-decoration:none;box-shadow:none;cursor:pointer}#ai1wm-backup-bulk-delete.ai1wm-hide{display:none}#ai1wm-backup-bulk-delete:hover,#ai1wm-backup-bulk-delete:focus{color:#c0392b;box-shadow:none}#ai1wm-backup-bulk-delete .ai1wm-icon-close{font-size:.8em;margin-left:4px}.ai1wm-backups{width:100%;margin:1em 0;padding:0;border-collapse:collapse}.ai1wm-backups .ai1wm-column-checkbox{width:24px;text-align:center;white-space:nowrap}.ai1wm-backups .ai1wm-column-checkbox input[type=checkbox]{margin:0;vertical-align:middle}.ai1wm-backups .ai1wm-column-name{text-align:right;white-space:nowrap}.ai1wm-backups .ai1wm-column-date{text-align:center;white-space:nowrap}.ai1wm-backups .ai1wm-column-size{text-align:center;white-space:nowrap}.ai1wm-backups .ai1wm-column-actions{text-align:left;white-space:nowrap}.ai1wm-backups thead th{padding:4px 6px;text-align:right;font-size:1.2em}.ai1wm-backups tbody tr{border-top:1px solid #ccc;border-bottom:1px solid #ccc}.ai1wm-backups tbody tr:hover{background:rgba(0,0,0,.1)}.ai1wm-backups tbody tr:hover .ai1wm-backup-label-description:not(.ai1wm-backup-label-selected){display:inline}.ai1wm-backups tbody td{padding:4px 6px;box-sizing:border-box;line-height:24px}.ai1wm-backups tbody td.ai1wm-backup-actions{text-align:left;width:50px}.ai1wm-backups tbody td.ai1wm-backup-actions a:focus{outline-style:none;box-shadow:none;border-color:rgba(0,0,0,0)}.ai1wm-backups tbody td.ai1wm-backup-actions>div{display:flex;justify-content:flex-end}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots{border-radius:100%;margin:0;padding:10px;color:gray;font-size:1.5em;text-decoration:none;display:flex;justify-content:center;align-content:center}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots:hover,.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots:focus{background-color:#f0f0f1}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu{position:absolute;background:rgba(0,0,0,0);display:none;transform:translate(35px, 30px);left:0}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul{position:relative;z-index:10;margin:0;background:#f9f9f9;border-radius:5px;box-shadow:rgba(0,0,0,.16) 0px 3px 6px,rgba(0,0,0,.23) 0px 3px 6px}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li{display:block;padding:0;margin:0}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li.divider{border-top:1px solid rgba(0,0,0,.1)}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li:first-child>a{border-top-right-radius:5px;border-top-left-radius:5px}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li:last-child>a{border-bottom-right-radius:5px;border-bottom-left-radius:5px}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li.ai1wm-disabled{opacity:.5}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li.ai1wm-disabled>a{cursor:not-allowed}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li>a{text-decoration:none;color:#23282d;display:flex;align-items:center;padding:.5em 2em}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li>a:hover,.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li>a:focus{background-color:rgba(0,0,0,.1)}.ai1wm-backups tbody td.ai1wm-backup-actions>div .ai1wm-backup-dots-menu>ul>li>a>i{margin-left:10px}.ai1wm-backups .spinner{visibility:visible;margin:0}.ai1wm-backups .ai1wm-backups-list-spinner{text-align:center;line-height:37px}.ai1wm-backups .ai1wm-backups-list-spinner .spinner{float:none;visibility:visible;margin:0 0 0 6px;position:relative;top:-2px}.ai1wm-backups .ai1wm-backup-label-text{cursor:pointer}.ai1wm-backups .ai1wm-backup-label-text .ai1wm-backup-label-colored{display:inline-block;padding:.25em .4em;font-size:85%;font-weight:normal;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;color:#000;background-color:#fad390;cursor:pointer;word-wrap:break-word;word-break:break-all;white-space:normal}.ai1wm-backups .ai1wm-backup-label-text:hover .ai1wm-icon-edit-pencil{display:inline}.ai1wm-backups .ai1wm-backup-label-description{font-size:12px;cursor:pointer;font-style:italic}.ai1wm-backups .ai1wm-backup-label-description:hover .ai1wm-icon-edit-pencil{display:inline}.ai1wm-backups .ai1wm-backup-label-holder .spinner{float:none}.ai1wm-backups .ai1wm-backup-label-holder .ai1wm-backup-label-field{border-radius:5px;border:1px solid #ccc}.ai1wm-backups-empty{line-height:2em}.ai1wm-backups-empty-spinner-holder{line-height:2em}.ai1wm-backups-empty-spinner-holder .spinner{float:none;visibility:visible;margin:0 0 0 6px;position:relative;top:-2px} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/encrypt.min.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/encrypt.min.css new file mode 100644 index 0000000..a43775b --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/encrypt.min.css @@ -0,0 +1 @@ +section.ai1wm-decrypt-backup-section{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:16px;box-sizing:border-box;padding:16px}section.ai1wm-decrypt-backup-section h1{font-size:20px;align-self:center}section.ai1wm-decrypt-backup-section p{align-self:center;padding:0;margin:0}section.ai1wm-decrypt-backup-section form{align-self:center;display:flex;flex-direction:column;align-items:flex-start;padding:0px;gap:8px;width:75%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container input{width:100%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container .ai1wm-toggle-password-visibility{font-size:16px;text-decoration:none;color:#3c434a;position:absolute;right:10px;top:8px;outline:none;box-shadow:none}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container .ai1wm-error-message{display:none}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container.ai1wm-has-error input{border-color:#e74c3c}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container.ai1wm-has-error .ai1wm-error-message{color:#e74c3c;display:block;font-weight:normal;text-align:left;width:100%}section.ai1wm-decrypt-backup-section .ai1wm-backup-decrypt-button-container{display:flex;flex-direction:row;gap:16px;justify-content:flex-end;width:75%;align-self:center} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/encrypt.min.rtl.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/encrypt.min.rtl.css new file mode 100644 index 0000000..5311bba --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/encrypt.min.rtl.css @@ -0,0 +1 @@ +section.ai1wm-decrypt-backup-section{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:16px;box-sizing:border-box;padding:16px}section.ai1wm-decrypt-backup-section h1{font-size:20px;align-self:center}section.ai1wm-decrypt-backup-section p{align-self:center;padding:0;margin:0}section.ai1wm-decrypt-backup-section form{align-self:center;display:flex;flex-direction:column;align-items:flex-start;padding:0px;gap:8px;width:75%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container input{width:100%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container .ai1wm-toggle-password-visibility{font-size:16px;text-decoration:none;color:#3c434a;position:absolute;left:10px;top:8px;outline:none;box-shadow:none}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container .ai1wm-error-message{display:none}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container.ai1wm-has-error input{border-color:#e74c3c}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container.ai1wm-has-error .ai1wm-error-message{color:#e74c3c;display:block;font-weight:normal;text-align:right;width:100%}section.ai1wm-decrypt-backup-section .ai1wm-backup-decrypt-button-container{display:flex;flex-direction:row;gap:16px;justify-content:flex-end;width:75%;align-self:center} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/export.min.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/export.min.css new file mode 100644 index 0000000..a892298 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/export.min.css @@ -0,0 +1 @@ +.ai1wm-accordion{margin:1em 0;display:block}.ai1wm-accordion h4{cursor:pointer;color:rgba(0,116,162,.8);margin:0}.ai1wm-accordion h4 small{color:#444;font-weight:normal;display:inline;float:none;width:auto}.ai1wm-accordion h4 small:after{content:"‎"}.ai1wm-accordion .ai1wm-icon-arrow-right{transition:transform .1s ease-out;display:inline-block}.ai1wm-accordion ul{margin:0;padding:0;list-style:none;visibility:hidden;height:0;transition:height .2s cubic-bezier(0.19, 1, 0.22, 1)}.ai1wm-accordion ul li small{display:inline;float:none;width:auto}.ai1wm-accordion.ai1wm-open h4 .ai1wm-icon-arrow-right{transform:rotate(90deg)}.ai1wm-accordion.ai1wm-open ul{height:auto;margin:.6em 0 0 2em;visibility:visible}@keyframes ai1wm-rotate{0%{transform:rotateZ(0)}25%{transform:rotateZ(-90deg)}50%{transform:rotateZ(-180deg)}75%{transform:rotateZ(-270deg)}100%{transform:rotateZ(-360deg)}}@keyframes ai1wm-emphasize{0%{transform:scale(1)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes ai1wm-fadein{0%{transform:scale(0)}50%{transform:scale(1.5)}100%{transform:scale(1)}}.ai1wm-button-group{border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;text-transform:uppercase;font-weight:600;transition:background-color .2s ease-out;display:inline-block;text-align:left}.ai1wm-button-group.ai1wm-button-export{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-export.ai1wm-open>.ai1wm-dropdown-menu{height:456px;border-top:1px solid #27ae60}.ai1wm-button-group.ai1wm-button-import{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-import.ai1wm-open>.ai1wm-dropdown-menu{height:484px;border-top:1px solid #27ae60}.ai1wm-button-group .ai1wm-button-main{position:relative;padding:6px 50px 6px 25px;box-sizing:content-box}.ai1wm-button-group .ai1wm-dropdown-menu{height:0;overflow:hidden;transition:height .2s cubic-bezier(0.19, 1, 0.22, 1);border-top:none}.ai1wm-dropdown-menu{margin:0 !important;padding:0;list-style:none}.ai1wm-dropdown-menu li{margin:0 !important;padding:0}.ai1wm-dropdown-menu li a,.ai1wm-dropdown-menu li a:visited{display:block;padding:5px 26px;text-decoration:none;color:#27ae60;text-align:left;box-sizing:content-box}.ai1wm-dropdown-menu li a:hover,.ai1wm-dropdown-menu li a:visited:hover{text-decoration:none;color:#111}.ai1mw-lines{position:absolute;width:12px;height:10px;top:9px;right:20px}.ai1wm-line{position:absolute;width:100%;height:2px;margin:auto;background:#27ae60;transition:all .2s ease-in-out}.ai1wm-line-first{top:0;left:0}div.ai1wm-open .ai1wm-line-first,div.ai1wm-open .ai1wm-line-third{top:50%}.ai1wm-line-second{top:50%;left:0}.ai1wm-line-third{top:100%;left:0}.ai1wm-button-gray{display:inline-block;border:2px solid #95a5a6;background-color:rgba(0,0,0,0);color:#95a5a6;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-gray:hover{background-color:#95a5a6;color:#fff}.ai1wm-button-green{display:inline-block;border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green:hover{background-color:#27ae60;color:#fff}.ai1wm-button-green-small{display:inline-block;border:2px solid #6eb649;background-color:rgba(0,0,0,0);color:#6eb649;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green-small:hover{background-color:#6eb649;color:#fff}.ai1wm-button-blue{display:inline-block;border:2px solid #00aff0;background-color:rgba(0,0,0,0);color:#00aff0;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-blue:hover{background-color:#00aff0;color:#fff}.ai1wm-button-red{display:inline-block;border:2px solid #e74c3c;background-color:rgba(0,0,0,0);color:#e74c3c;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-red:hover{background-color:#e74c3c;color:#fff}.ai1wm-button-blue[disabled=disabled],.ai1wm-button-green[disabled=disabled],.ai1wm-button-red[disabled=disabled],.ai1wm-button-green-small[disabled=disabled]{opacity:.6;cursor:default}.ai1wm-button-blue[disabled=disabled]:hover{color:#00aff0}.ai1wm-button-red[disabled=disabled]:hover{color:#e74c3c}.ai1wm-button-green[disabled=disabled]:hover{color:#27ae60}.ai1wm-button-blue[disabled=disabled]:hover,.ai1wm-button-green[disabled=disabled]:hover,.ai1wm-button-red[disabled=disabled]:hover,.ai1wm-button-green-small[disabled=disabled]:hover{background:none}.ai1wm-message-close-button{position:absolute;right:10px;top:6px;text-decoration:none;font-size:10px}input[type=radio].ai1wm-flat-radio-button{display:none}input[type=radio].ai1wm-flat-radio-button+a i,input[type=radio].ai1wm-flat-radio-button+label i{vertical-align:middle;float:left;width:25px;height:25px;border-radius:50%;background:rgba(0,0,0,0);border:2px solid #ccc;content:" ";cursor:pointer;position:relative;box-sizing:content-box}input[type=radio].ai1wm-flat-radio-button:checked+a i,input[type=radio].ai1wm-flat-radio-button:checked+label i{background-color:#d9d9d9;border-color:#6f6f6f}.ai1wm-clear{*zoom:1;clear:both}.ai1wm-clear:after,.ai1wm-clear:before{content:" ";display:table}.ai1wm-clear:after{clear:both}.ai1wm-container .ai1wm-row label{position:relative;top:-1px}.ai1wm-container .ai1wm-row label:after{content:"‎"}.ai1wm-share-button-container{text-align:center}.ai1wm-share-button-container .ai1wm-share-button{text-decoration:none;margin:10px;font-size:30px}.ai1wm-feedback-cancel:link,.ai1wm-feedback-cancel:visited,.ai1wm-feedback-cancel:active{float:left;line-height:34px;outline:0;text-decoration:none;color:#e74c3c}.ai1wm-form-submit{float:right}.ai1wm-no-underline{text-decoration:none}.ai1wm-top-positive-four{position:relative;top:4px}.ai1wm-top-positive-two{position:relative;top:2px}.ai1wm-feedback-form{display:none}.ai1wm-feedback-types{margin:0;padding:0;list-style:none}.ai1wm-feedback-types li{margin:14px 0;padding:0}.ai1wm-feedback-types>li>label>span{display:inline-block;padding:5px 0px 6px 8px}.ai1wm-feedback-types>li>a{height:29px;outline:none;color:#333;text-decoration:none}.ai1wm-feedback-types>li>a>span{display:inline-block;padding:5px 0px 6px 8px}.ai1wm-loader{display:inline-block;width:128px;height:128px;position:relative;animation:ai1wm-rotate 1.5s infinite linear;background:url("../img/logo-128x128.png");background-repeat:no-repeat;background-position:center center}.ai1wm-hide{display:none}.ai1wm-label{border:1px solid #5cb85c;background-color:rgba(0,0,0,0);color:#5cb85c;cursor:pointer;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;padding:.2em .6em;font-size:.8em;border-radius:5px}.ai1wm-label:hover{background-color:#5cb85c;color:#fff}.ai1wm-dialog-message{text-align:left;line-height:1.5em}.ai1wm-import-info{display:inline-block;font-size:12px;font-weight:bold;margin-top:16px}.ai1wm-import-info a{text-decoration:none}.ai1wm-import-title{display:inline-block;font-size:12px;font-weight:bold}.ai1wm-button-download,.ai1wm-direct-download{top:.5em !important}.ai1wm-button-download span,.ai1wm-direct-download span{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai1wm-mt-20{margin-top:20px}.ai1wm-left-aligned{text-align:left}[class^=ai1wm-icon-],[class*=" ai1wm-icon-"]{font-family:"servmask";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ai1wm-icon-file-zip:before{content:""}.ai1wm-icon-folder:before{content:""}.ai1wm-icon-file:before{content:""}.ai1wm-icon-file-content:before{content:""}.ai1wm-icon-cloud-upload:before{content:""}.ai1wm-icon-history:before{content:""}.ai1wm-icon-notification:before{content:""}.ai1wm-icon-arrow-down:before{content:""}.ai1wm-icon-close:before{content:""}.ai1wm-icon-wordpress2:before{content:""}.ai1wm-icon-arrow-right:before{content:""}.ai1wm-icon-plus2:before{content:""}.ai1wm-icon-edit-pencil:before{content:""}.ai1wm-icon-export:before{content:""}.ai1wm-icon-publish:before{content:""}.ai1wm-icon-paperplane:before{content:""}.ai1wm-icon-help:before{content:""}.ai1wm-icon-chevron-right:before{content:""}.ai1wm-icon-chevron-right2:before{content:""}.ai1wm-icon-chevron-left2:before{content:""}.ai1wm-icon-dropbox:before{content:""}.ai1wm-icon-gear:before{content:""}.ai1wm-icon-database:before{content:""}.ai1wm-icon-upload2:before{content:""}.ai1wm-icon-checkmark:before{content:""}.ai1wm-icon-checkmark2:before{content:""}.ai1wm-icon-enter:before{content:""}.ai1wm-icon-exit:before{content:""}.ai1wm-icon-amazon:before{content:""}.ai1wm-icon-onedrive:before{content:""}.ai1wm-icon-folder-secondary:before{content:""}.ai1wm-icon-folder-secondary-open:before{content:""}.ai1wm-icon-dots-horizontal-triple:before{content:""}.ai1wm-icon-bullhorn:before{content:""}.ai1wm-icon-eye:before{content:""}.ai1wm-icon-eye-blocked:before{content:""}.ai1wm-icon-power-cord:before{content:""}.ai1wm-icon-image:before{content:""}.ai1wm-icon-file-video:before{content:""}.ai1wm-icon-stack:before{content:""}.ai1wm-icon-table:before{content:""}.ai1wm-icon-calendar:before{content:""}.ai1wm-icon-play:before{content:""}.ai1wm-icon-broom:before{content:""}.ai1wm-icon-facebook:before{content:""}.ai1wm-icon-x:before{content:""}.ai1wm-icon-youtube:before{content:""}@media(min-width: 855px){.ai1wm-row{margin-right:399px}.ai1wm-row:before,.ai1wm-row:after{content:" ";display:table}.ai1wm-row:after{clear:both}.ai1wm-left{float:left;width:100%}.ai1wm-right{float:right;width:377px;margin-right:-399px}.ai1wm-right .ai1wm-sidebar{width:100%}.ai1wm-right .ai1wm-segment{width:333px;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;color:#333;background-color:#f9f9f9;padding:20px;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box}.ai1wm-right .ai1wm-segment h2{margin:22px 0 0 0;padding:0;font-weight:bold;font-size:14px;text-transform:uppercase;text-align:center}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-holder{position:relative;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-holder h1{margin:0;padding:0;float:left;font-weight:300;font-size:22px;text-transform:uppercase}.ai1wm-holder h1 i{position:relative;top:2px}@media(max-width: 854px){.ai1wm-container{margin-left:10px !important}.ai1wm-row{margin-right:0px !important}.ai1wm-right{float:left !important;width:100% !important;margin-top:18px;margin-right:0 !important}.ai1wm-right .ai1wm-sidebar{width:auto !important;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0;border-radius:3px}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-container{margin:20px 20px 0px 2px}.ai1wm-container:before,.ai1wm-container:after{content:" ";display:table}.ai1wm-container:after{clear:both}.ai1wm-replace-row{width:100%;box-shadow:outset 0 1px 0 0 #fff;border-radius:3px;color:#333;font-size:11px;font-weight:bold;background-color:#f9f9f9;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box;margin-bottom:10px}.ai1wm-field{margin-bottom:4px}.ai1wm-field input[type=text],.ai1wm-field textarea{width:100%;font-weight:normal}.ai1wm-field-set{margin-top:18px}.ai1wm-message{-moz-box-sizing:border-box;background-color:#efefef;border-radius:4px;color:rgba(0,0,0,.6);height:auto;margin:10px 0;min-height:18px;padding:6px 10px;position:relative;border:1px solid;transition:opacity .1s ease 0s,color .1s ease 0s,background .1s ease 0s,box-shadow .1s ease 0s}.ai1wm-message.ai1wm-success-message{background-color:#f2f8f0;color:#119000;font-size:12px}.ai1wm-message.ai1wm-info-message{background-color:#d9edf7;color:#31708f;font-size:11px}.ai1wm-message.ai1wm-error-message{background-color:#f1d7d7;color:#a95252;font-size:12px}.ai1wm-message.ai1wm-red-message{color:#d95c5c;border:2px solid #d95c5c;background-color:rgba(0,0,0,0)}.ai1wm-message.ai1wm-red-message h3{margin:.4em 0;color:#d95c5c}.ai1wm-message p{margin:4px 0;font-size:12px}.ai1wm-message-warning{display:block;font-size:14px;line-height:18px;padding:12px 20px;margin:0 0 22px 0;background-color:#f9f9f9;border:1px solid #d6d6d6;border-radius:3px;box-shadow:0 1px 0 0 #fff inset;border-left:4px solid #ffba00}.ai1wm-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);z-index:100001}.ai1wm-modal-container{position:fixed;display:none;top:50%;left:50%;z-index:100002;width:480px;height:auto;padding:16px;transform:translate(-240px, -94px);border:1px solid #fff;box-shadow:0px 2px 6px #292929;border-radius:6px;background:#f6f6f6;box-sizing:border-box;text-align:center}.ai1wm-modal-container.ai1wm-modal-container-v2{display:block;transform:translate(-50%, -50%);max-height:400px;overflow-y:auto;text-align:left;padding:0;border:0;border-radius:0}.ai1wm-modal-container.ai1wm-modal-container-v2.ai1wm-modal-loading{width:auto;overflow:hidden;border-radius:1em}.ai1wm-modal-container.ai1wm-modal-container-v2 h1{text-transform:none}.ai1wm-modal-container section{display:block;min-height:102px}.ai1wm-modal-container section h1{margin:0;padding:0}.ai1wm-modal-container section h1 .ai1wm-title-green{color:#27ae60;font-size:.7em}.ai1wm-modal-container section h1 .ai1wm-title-red{color:#e74c3c;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-title-grey{color:gray;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-loader{width:32px;height:32px;background:url("../img/logo-32x32.png")}.ai1wm-modal-container section h1 .ai1wm-icon-notification{font-size:1.2em;color:#e74c3c}.ai1wm-modal-container section p{margin:0;padding:12px 0}.ai1wm-modal-container section p .ai1wm-modal-sites p{padding:4px 10px;text-align:left}.ai1wm-modal-container section p .ai1wm-modal-sites input,.ai1wm-modal-container section p .ai1wm-modal-sites select{padding:0 6px;width:100%;max-width:100%;border-radius:3px;height:30px;line-height:30px}.ai1wm-modal-container section p .ai1wm-modal-subtitle-green{color:#27ae60}.ai1wm-modal-container section p .ai1wm-modal-subtitle-red{color:#e74c3c}.ai1wm-modal-container section p .ai1wm-modal-subdescription{display:block;text-align:left}.ai1wm-modal-container section p a.ai1wm-button-green{display:inline-block;position:relative;top:26px}.ai1wm-modal-container section p a.ai1wm-emphasize{animation:ai1wm-emphasize 1s infinite}.ai1wm-modal-container section p em{display:block;color:#34495e;font-style:normal}.ai1wm-modal-container section p.ai1wm-import-modal-content{text-align:left}.ai1wm-modal-container section p.ai1wm-import-modal-content-done{text-align:left;padding:1.62em .5em}.ai1wm-modal-container .ai1wm-import-modal-actions{border-top:1px solid #ccc;padding-top:1em;text-align:right}.ai1wm-modal-container .ai1wm-import-modal-actions .ai1wm-button-gray{margin-right:1em}.ai1wm-modal-container .ai1wm-import-modal-notice{border-top:1px solid #ccc}.ai1wm-modal-container .ai1wm-import-modal-notice p{font-weight:bold;margin:0;padding-top:16px;text-align:center}.ai1wm-social-share-wrapper{display:flex;justify-content:center;gap:20px;margin-bottom:15px;padding:10px 0}.ai1wm-social-icon{text-decoration:none !important;font-size:20px;color:#444;display:inline-block;transition:color .2s ease}.ai1wm-social-icon.icon-x:hover{color:#000}.ai1wm-social-icon.icon-facebook:hover{color:#1877f2}.ai1wm-social-icon.icon-youtube:hover{color:red}.ai1wm-social-icon i{display:block;line-height:1}#ai1wm-export-form{margin-top:1.95rem}.ai1wm-query-arrow{position:relative;top:4px;float:right}.ai1wm-query.ai1wm-open{background:#ebebeb !important}.ai1wm-query.ai1wm-open p small{border-bottom:1px dashed #000}.ai1wm-query.ai1wm-open div{visibility:visible !important;height:5rem !important;margin-top:8px}.ai1wm-query.ai1wm-open .ai1wm-query-arrow{transform:rotate(90deg)}.ai1wm-query{width:100%;margin:0 0 10px 0;list-style:none;background:rgba(0,0,0,0);border:1px solid #d8d8d8;padding:10px;border-radius:5px;box-sizing:border-box}.ai1wm-query div{transition:height .2s cubic-bezier(0.19, 1, 0.22, 1);visibility:hidden;height:0}.ai1wm-query div input{width:100%;font-weight:normal;font-size:.8rem;padding:0 10px;height:2.3rem;line-height:2.3rem;margin-bottom:4px;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.07);background-color:#fff;color:#333;transition:.05s border-color ease-in-out;border-radius:5px}.ai1wm-query div input:focus{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.ai1wm-query p{margin:0;cursor:pointer}.ai1wm-query p small{display:inline;width:auto;float:none}.ai1wm-query-arrow{transition:transform .1s ease-out}#ai1wm-queries{padding:0}.ai1wm-encrypt-backups-container-disabled{color:#aaa}.ai1wm-encrypt-backups-container-disabled a{text-decoration:none}.ai1wm-encrypt-backups-container-disabled a span{margin-left:8px;color:#00aff0}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle{display:none}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container{display:flex;flex-direction:row;align-items:flex-start;gap:12px;width:100%;flex-wrap:wrap;margin:8px 0}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container .ai1wm-input-password-container{display:flex;flex-direction:column;align-items:center;position:relative}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container .ai1wm-input-password-container input{padding:8px 12px;line-height:normal;width:216px;height:32px}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container .ai1wm-input-password-container .ai1wm-error-message{display:none}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container .ai1wm-input-password-container .ai1wm-toggle-password-visibility{font-size:16px;text-decoration:none;color:#3c434a;position:absolute;right:10px;top:8px;outline:none;box-shadow:none}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container .ai1wm-input-password-container.ai1wm-has-error input{border-color:#e74c3c}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container .ai1wm-input-password-container.ai1wm-has-error .ai1wm-error-message{color:#e74c3c;display:block;font-weight:normal} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/export.min.rtl.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/export.min.rtl.css new file mode 100644 index 0000000..b3da34b --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/export.min.rtl.css @@ -0,0 +1 @@ +.ai1wm-accordion{margin:1em 0;display:block}.ai1wm-accordion h4{cursor:pointer;color:rgba(0,116,162,.8);margin:0}.ai1wm-accordion h4 small{color:#444;font-weight:normal;display:inline;float:none;width:auto}.ai1wm-accordion h4 small:after{content:"‎"}.ai1wm-accordion .ai1wm-icon-arrow-right{transition:transform .1s ease-out;display:inline-block}.ai1wm-accordion ul{margin:0;padding:0;list-style:none;visibility:hidden;height:0;transition:height .2s cubic-bezier(0.19, 1, 0.22, 1)}.ai1wm-accordion ul li small{display:inline;float:none;width:auto}.ai1wm-accordion.ai1wm-open h4 .ai1wm-icon-arrow-right{transform:rotate(-90deg)}.ai1wm-accordion.ai1wm-open ul{height:auto;margin:.6em 2em 0 0;visibility:visible}@keyframes ai1wm-rotate{0%{transform:rotateZ(0)}25%{transform:rotateZ(90deg)}50%{transform:rotateZ(180deg)}75%{transform:rotateZ(270deg)}100%{transform:rotateZ(360deg)}}@keyframes ai1wm-emphasize{0%{transform:scale(1)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes ai1wm-fadein{0%{transform:scale(0)}50%{transform:scale(1.5)}100%{transform:scale(1)}}.ai1wm-button-group{border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;text-transform:uppercase;font-weight:600;transition:background-color .2s ease-out;display:inline-block;text-align:right}.ai1wm-button-group.ai1wm-button-export{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-export.ai1wm-open>.ai1wm-dropdown-menu{height:456px;border-top:1px solid #27ae60}.ai1wm-button-group.ai1wm-button-import{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-import.ai1wm-open>.ai1wm-dropdown-menu{height:484px;border-top:1px solid #27ae60}.ai1wm-button-group .ai1wm-button-main{position:relative;padding:6px 25px 6px 50px;box-sizing:content-box}.ai1wm-button-group .ai1wm-dropdown-menu{height:0;overflow:hidden;transition:height .2s cubic-bezier(0.19, 1, 0.22, 1);border-top:none}.ai1wm-dropdown-menu{margin:0 !important;padding:0;list-style:none}.ai1wm-dropdown-menu li{margin:0 !important;padding:0}.ai1wm-dropdown-menu li a,.ai1wm-dropdown-menu li a:visited{display:block;padding:5px 26px;text-decoration:none;color:#27ae60;text-align:right;box-sizing:content-box}.ai1wm-dropdown-menu li a:hover,.ai1wm-dropdown-menu li a:visited:hover{text-decoration:none;color:#111}.ai1mw-lines{position:absolute;width:12px;height:10px;top:9px;left:20px}.ai1wm-line{position:absolute;width:100%;height:2px;margin:auto;background:#27ae60;transition:all .2s ease-in-out}.ai1wm-line-first{top:0;right:0}div.ai1wm-open .ai1wm-line-first,div.ai1wm-open .ai1wm-line-third{top:50%}.ai1wm-line-second{top:50%;right:0}.ai1wm-line-third{top:100%;right:0}.ai1wm-button-gray{display:inline-block;border:2px solid #95a5a6;background-color:rgba(0,0,0,0);color:#95a5a6;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-gray:hover{background-color:#95a5a6;color:#fff}.ai1wm-button-green{display:inline-block;border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green:hover{background-color:#27ae60;color:#fff}.ai1wm-button-green-small{display:inline-block;border:2px solid #6eb649;background-color:rgba(0,0,0,0);color:#6eb649;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green-small:hover{background-color:#6eb649;color:#fff}.ai1wm-button-blue{display:inline-block;border:2px solid #00aff0;background-color:rgba(0,0,0,0);color:#00aff0;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-blue:hover{background-color:#00aff0;color:#fff}.ai1wm-button-red{display:inline-block;border:2px solid #e74c3c;background-color:rgba(0,0,0,0);color:#e74c3c;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-red:hover{background-color:#e74c3c;color:#fff}.ai1wm-button-blue[disabled=disabled],.ai1wm-button-green[disabled=disabled],.ai1wm-button-red[disabled=disabled],.ai1wm-button-green-small[disabled=disabled]{opacity:.6;cursor:default}.ai1wm-button-blue[disabled=disabled]:hover{color:#00aff0}.ai1wm-button-red[disabled=disabled]:hover{color:#e74c3c}.ai1wm-button-green[disabled=disabled]:hover{color:#27ae60}.ai1wm-button-blue[disabled=disabled]:hover,.ai1wm-button-green[disabled=disabled]:hover,.ai1wm-button-red[disabled=disabled]:hover,.ai1wm-button-green-small[disabled=disabled]:hover{background:none}.ai1wm-message-close-button{position:absolute;left:10px;top:6px;text-decoration:none;font-size:10px}input[type=radio].ai1wm-flat-radio-button{display:none}input[type=radio].ai1wm-flat-radio-button+a i,input[type=radio].ai1wm-flat-radio-button+label i{vertical-align:middle;float:right;width:25px;height:25px;border-radius:50%;background:rgba(0,0,0,0);border:2px solid #ccc;content:" ";cursor:pointer;position:relative;box-sizing:content-box}input[type=radio].ai1wm-flat-radio-button:checked+a i,input[type=radio].ai1wm-flat-radio-button:checked+label i{background-color:#d9d9d9;border-color:#6f6f6f}.ai1wm-clear{*zoom:1;clear:both}.ai1wm-clear:after,.ai1wm-clear:before{content:" ";display:table}.ai1wm-clear:after{clear:both}.ai1wm-container .ai1wm-row label{position:relative;top:-1px}.ai1wm-container .ai1wm-row label:after{content:"‎"}.ai1wm-share-button-container{text-align:center}.ai1wm-share-button-container .ai1wm-share-button{text-decoration:none;margin:10px;font-size:30px}.ai1wm-feedback-cancel:link,.ai1wm-feedback-cancel:visited,.ai1wm-feedback-cancel:active{float:right;line-height:34px;outline:0;text-decoration:none;color:#e74c3c}.ai1wm-form-submit{float:left}.ai1wm-no-underline{text-decoration:none}.ai1wm-top-positive-four{position:relative;top:4px}.ai1wm-top-positive-two{position:relative;top:2px}.ai1wm-feedback-form{display:none}.ai1wm-feedback-types{margin:0;padding:0;list-style:none}.ai1wm-feedback-types li{margin:14px 0;padding:0}.ai1wm-feedback-types>li>label>span{display:inline-block;padding:5px 8px 6px 0px}.ai1wm-feedback-types>li>a{height:29px;outline:none;color:#333;text-decoration:none}.ai1wm-feedback-types>li>a>span{display:inline-block;padding:5px 8px 6px 0px}.ai1wm-loader{display:inline-block;width:128px;height:128px;position:relative;animation:ai1wm-rotate 1.5s infinite linear;background:url("../img/logo-128x128.png");background-repeat:no-repeat;background-position:center center}.ai1wm-hide{display:none}.ai1wm-label{border:1px solid #5cb85c;background-color:rgba(0,0,0,0);color:#5cb85c;cursor:pointer;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;padding:.2em .6em;font-size:.8em;border-radius:5px}.ai1wm-label:hover{background-color:#5cb85c;color:#fff}.ai1wm-dialog-message{text-align:right;line-height:1.5em}.ai1wm-import-info{display:inline-block;font-size:12px;font-weight:bold;margin-top:16px}.ai1wm-import-info a{text-decoration:none}.ai1wm-import-title{display:inline-block;font-size:12px;font-weight:bold}.ai1wm-button-download,.ai1wm-direct-download{top:.5em !important}.ai1wm-button-download span,.ai1wm-direct-download span{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai1wm-mt-20{margin-top:20px}.ai1wm-left-aligned{text-align:right}[class^=ai1wm-icon-],[class*=" ai1wm-icon-"]{font-family:"servmask";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ai1wm-icon-file-zip:before{content:""}.ai1wm-icon-folder:before{content:""}.ai1wm-icon-file:before{content:""}.ai1wm-icon-file-content:before{content:""}.ai1wm-icon-cloud-upload:before{content:""}.ai1wm-icon-history:before{content:""}.ai1wm-icon-notification:before{content:""}.ai1wm-icon-arrow-down:before{content:""}.ai1wm-icon-close:before{content:""}.ai1wm-icon-wordpress2:before{content:""}.ai1wm-icon-arrow-right:before{content:""}.ai1wm-icon-plus2:before{content:""}.ai1wm-icon-edit-pencil:before{content:""}.ai1wm-icon-export:before{content:""}.ai1wm-icon-publish:before{content:""}.ai1wm-icon-paperplane:before{content:""}.ai1wm-icon-help:before{content:""}.ai1wm-icon-chevron-right:before{content:""}.ai1wm-icon-chevron-right2:before{content:""}.ai1wm-icon-chevron-left2:before{content:""}.ai1wm-icon-dropbox:before{content:""}.ai1wm-icon-gear:before{content:""}.ai1wm-icon-database:before{content:""}.ai1wm-icon-upload2:before{content:""}.ai1wm-icon-checkmark:before{content:""}.ai1wm-icon-checkmark2:before{content:""}.ai1wm-icon-enter:before{content:""}.ai1wm-icon-exit:before{content:""}.ai1wm-icon-amazon:before{content:""}.ai1wm-icon-onedrive:before{content:""}.ai1wm-icon-folder-secondary:before{content:""}.ai1wm-icon-folder-secondary-open:before{content:""}.ai1wm-icon-dots-horizontal-triple:before{content:""}.ai1wm-icon-bullhorn:before{content:""}.ai1wm-icon-eye:before{content:""}.ai1wm-icon-eye-blocked:before{content:""}.ai1wm-icon-power-cord:before{content:""}.ai1wm-icon-image:before{content:""}.ai1wm-icon-file-video:before{content:""}.ai1wm-icon-stack:before{content:""}.ai1wm-icon-table:before{content:""}.ai1wm-icon-calendar:before{content:""}.ai1wm-icon-play:before{content:""}.ai1wm-icon-broom:before{content:""}.ai1wm-icon-facebook:before{content:""}.ai1wm-icon-x:before{content:""}.ai1wm-icon-youtube:before{content:""}@media(min-width: 855px){.ai1wm-row{margin-left:399px}.ai1wm-row:before,.ai1wm-row:after{content:" ";display:table}.ai1wm-row:after{clear:both}.ai1wm-left{float:right;width:100%}.ai1wm-right{float:left;width:377px;margin-left:-399px}.ai1wm-right .ai1wm-sidebar{width:100%}.ai1wm-right .ai1wm-segment{width:333px;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;color:#333;background-color:#f9f9f9;padding:20px;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box}.ai1wm-right .ai1wm-segment h2{margin:22px 0 0 0;padding:0;font-weight:bold;font-size:14px;text-transform:uppercase;text-align:center}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-holder{position:relative;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-holder h1{margin:0;padding:0;float:right;font-weight:300;font-size:22px;text-transform:uppercase}.ai1wm-holder h1 i{position:relative;top:2px}@media(max-width: 854px){.ai1wm-container{margin-right:10px !important}.ai1wm-row{margin-left:0px !important}.ai1wm-right{float:right !important;width:100% !important;margin-top:18px;margin-left:0 !important}.ai1wm-right .ai1wm-sidebar{width:auto !important;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0;border-radius:3px}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-container{margin:20px 2px 0px 20px}.ai1wm-container:before,.ai1wm-container:after{content:" ";display:table}.ai1wm-container:after{clear:both}.ai1wm-replace-row{width:100%;box-shadow:outset 0 1px 0 0 #fff;border-radius:3px;color:#333;font-size:11px;font-weight:bold;background-color:#f9f9f9;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box;margin-bottom:10px}.ai1wm-field{margin-bottom:4px}.ai1wm-field input[type=text],.ai1wm-field textarea{width:100%;font-weight:normal}.ai1wm-field-set{margin-top:18px}.ai1wm-message{-moz-box-sizing:border-box;background-color:#efefef;border-radius:4px;color:rgba(0,0,0,.6);height:auto;margin:10px 0;min-height:18px;padding:6px 10px;position:relative;border:1px solid;transition:opacity .1s ease 0s,color .1s ease 0s,background .1s ease 0s,box-shadow .1s ease 0s}.ai1wm-message.ai1wm-success-message{background-color:#f2f8f0;color:#119000;font-size:12px}.ai1wm-message.ai1wm-info-message{background-color:#d9edf7;color:#31708f;font-size:11px}.ai1wm-message.ai1wm-error-message{background-color:#f1d7d7;color:#a95252;font-size:12px}.ai1wm-message.ai1wm-red-message{color:#d95c5c;border:2px solid #d95c5c;background-color:rgba(0,0,0,0)}.ai1wm-message.ai1wm-red-message h3{margin:.4em 0;color:#d95c5c}.ai1wm-message p{margin:4px 0;font-size:12px}.ai1wm-message-warning{display:block;font-size:14px;line-height:18px;padding:12px 20px;margin:0 0 22px 0;background-color:#f9f9f9;border:1px solid #d6d6d6;border-radius:3px;box-shadow:0 1px 0 0 #fff inset;border-right:4px solid #ffba00}.ai1wm-overlay{display:none;position:fixed;top:0;right:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);z-index:100001}.ai1wm-modal-container{position:fixed;display:none;top:50%;right:50%;z-index:100002;width:480px;height:auto;padding:16px;transform:translate(240px, -94px);border:1px solid #fff;box-shadow:0px 2px 6px #292929;border-radius:6px;background:#f6f6f6;box-sizing:border-box;text-align:center}.ai1wm-modal-container.ai1wm-modal-container-v2{display:block;transform:translate(50%, -50%);max-height:400px;overflow-y:auto;text-align:right;padding:0;border:0;border-radius:0}.ai1wm-modal-container.ai1wm-modal-container-v2.ai1wm-modal-loading{width:auto;overflow:hidden;border-radius:1em}.ai1wm-modal-container.ai1wm-modal-container-v2 h1{text-transform:none}.ai1wm-modal-container section{display:block;min-height:102px}.ai1wm-modal-container section h1{margin:0;padding:0}.ai1wm-modal-container section h1 .ai1wm-title-green{color:#27ae60;font-size:.7em}.ai1wm-modal-container section h1 .ai1wm-title-red{color:#e74c3c;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-title-grey{color:gray;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-loader{width:32px;height:32px;background:url("../img/logo-32x32.png")}.ai1wm-modal-container section h1 .ai1wm-icon-notification{font-size:1.2em;color:#e74c3c}.ai1wm-modal-container section p{margin:0;padding:12px 0}.ai1wm-modal-container section p .ai1wm-modal-sites p{padding:4px 10px;text-align:right}.ai1wm-modal-container section p .ai1wm-modal-sites input,.ai1wm-modal-container section p .ai1wm-modal-sites select{padding:0 6px;width:100%;max-width:100%;border-radius:3px;height:30px;line-height:30px}.ai1wm-modal-container section p .ai1wm-modal-subtitle-green{color:#27ae60}.ai1wm-modal-container section p .ai1wm-modal-subtitle-red{color:#e74c3c}.ai1wm-modal-container section p .ai1wm-modal-subdescription{display:block;text-align:right}.ai1wm-modal-container section p a.ai1wm-button-green{display:inline-block;position:relative;top:26px}.ai1wm-modal-container section p a.ai1wm-emphasize{animation:ai1wm-emphasize 1s infinite}.ai1wm-modal-container section p em{display:block;color:#34495e;font-style:normal}.ai1wm-modal-container section p.ai1wm-import-modal-content{text-align:right}.ai1wm-modal-container section p.ai1wm-import-modal-content-done{text-align:right;padding:1.62em .5em}.ai1wm-modal-container .ai1wm-import-modal-actions{border-top:1px solid #ccc;padding-top:1em;text-align:left}.ai1wm-modal-container .ai1wm-import-modal-actions .ai1wm-button-gray{margin-left:1em}.ai1wm-modal-container .ai1wm-import-modal-notice{border-top:1px solid #ccc}.ai1wm-modal-container .ai1wm-import-modal-notice p{font-weight:bold;margin:0;padding-top:16px;text-align:center}.ai1wm-social-share-wrapper{display:flex;justify-content:center;gap:20px;margin-bottom:15px;padding:10px 0}.ai1wm-social-icon{text-decoration:none !important;font-size:20px;color:#444;display:inline-block;transition:color .2s ease}.ai1wm-social-icon.icon-x:hover{color:#000}.ai1wm-social-icon.icon-facebook:hover{color:#1877f2}.ai1wm-social-icon.icon-youtube:hover{color:red}.ai1wm-social-icon i{display:block;line-height:1}#ai1wm-export-form{margin-top:1.95rem}.ai1wm-query-arrow{position:relative;top:4px;float:left}.ai1wm-query.ai1wm-open{background:#ebebeb !important}.ai1wm-query.ai1wm-open p small{border-bottom:1px dashed #000}.ai1wm-query.ai1wm-open div{visibility:visible !important;height:5rem !important;margin-top:8px}.ai1wm-query.ai1wm-open .ai1wm-query-arrow{transform:rotate(-90deg)}.ai1wm-query{width:100%;margin:0 0 10px 0;list-style:none;background:rgba(0,0,0,0);border:1px solid #d8d8d8;padding:10px;border-radius:5px;box-sizing:border-box}.ai1wm-query div{transition:height .2s cubic-bezier(0.19, 1, 0.22, 1);visibility:hidden;height:0}.ai1wm-query div input{width:100%;font-weight:normal;font-size:.8rem;padding:0 10px;height:2.3rem;line-height:2.3rem;margin-bottom:4px;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.07);background-color:#fff;color:#333;transition:.05s border-color ease-in-out;border-radius:5px}.ai1wm-query div input:focus{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.ai1wm-query p{margin:0;cursor:pointer}.ai1wm-query p small{display:inline;width:auto;float:none}.ai1wm-query-arrow{transition:transform .1s ease-out}#ai1wm-queries{padding:0}.ai1wm-encrypt-backups-container-disabled{color:#aaa}.ai1wm-encrypt-backups-container-disabled a{text-decoration:none}.ai1wm-encrypt-backups-container-disabled a span{margin-right:8px;color:#00aff0}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle{display:none}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container{display:flex;flex-direction:row;align-items:flex-start;gap:12px;width:100%;flex-wrap:wrap;margin:8px 0}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container .ai1wm-input-password-container{display:flex;flex-direction:column;align-items:center;position:relative}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container .ai1wm-input-password-container input{padding:8px 12px;line-height:normal;width:216px;height:32px}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container .ai1wm-input-password-container .ai1wm-error-message{display:none}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container .ai1wm-input-password-container .ai1wm-toggle-password-visibility{font-size:16px;text-decoration:none;color:#3c434a;position:absolute;left:10px;top:8px;outline:none;box-shadow:none}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container .ai1wm-input-password-container.ai1wm-has-error input{border-color:#e74c3c}.ai1wm-encrypt-backups-container .ai1wm-encrypt-backups-passwords-toggle .ai1wm-encrypt-backups-passwords-container .ai1wm-input-password-container.ai1wm-has-error .ai1wm-error-message{color:#e74c3c;display:block;font-weight:normal} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/import.min.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/import.min.css new file mode 100644 index 0000000..254903c --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/import.min.css @@ -0,0 +1 @@ +@keyframes ai1wm-rotate{0%{transform:rotateZ(0)}25%{transform:rotateZ(-90deg)}50%{transform:rotateZ(-180deg)}75%{transform:rotateZ(-270deg)}100%{transform:rotateZ(-360deg)}}@keyframes ai1wm-emphasize{0%{transform:scale(1)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes ai1wm-fadein{0%{transform:scale(0)}50%{transform:scale(1.5)}100%{transform:scale(1)}}.ai1wm-button-group{border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;text-transform:uppercase;font-weight:600;transition:background-color .2s ease-out;display:inline-block;text-align:left}.ai1wm-button-group.ai1wm-button-export{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-export.ai1wm-open>.ai1wm-dropdown-menu{height:456px;border-top:1px solid #27ae60}.ai1wm-button-group.ai1wm-button-import{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-import.ai1wm-open>.ai1wm-dropdown-menu{height:484px;border-top:1px solid #27ae60}.ai1wm-button-group .ai1wm-button-main{position:relative;padding:6px 50px 6px 25px;box-sizing:content-box}.ai1wm-button-group .ai1wm-dropdown-menu{height:0;overflow:hidden;transition:height .2s cubic-bezier(0.19, 1, 0.22, 1);border-top:none}.ai1wm-dropdown-menu{margin:0 !important;padding:0;list-style:none}.ai1wm-dropdown-menu li{margin:0 !important;padding:0}.ai1wm-dropdown-menu li a,.ai1wm-dropdown-menu li a:visited{display:block;padding:5px 26px;text-decoration:none;color:#27ae60;text-align:left;box-sizing:content-box}.ai1wm-dropdown-menu li a:hover,.ai1wm-dropdown-menu li a:visited:hover{text-decoration:none;color:#111}.ai1mw-lines{position:absolute;width:12px;height:10px;top:9px;right:20px}.ai1wm-line{position:absolute;width:100%;height:2px;margin:auto;background:#27ae60;transition:all .2s ease-in-out}.ai1wm-line-first{top:0;left:0}div.ai1wm-open .ai1wm-line-first,div.ai1wm-open .ai1wm-line-third{top:50%}.ai1wm-line-second{top:50%;left:0}.ai1wm-line-third{top:100%;left:0}.ai1wm-button-gray{display:inline-block;border:2px solid #95a5a6;background-color:rgba(0,0,0,0);color:#95a5a6;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-gray:hover{background-color:#95a5a6;color:#fff}.ai1wm-button-green{display:inline-block;border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green:hover{background-color:#27ae60;color:#fff}.ai1wm-button-green-small{display:inline-block;border:2px solid #6eb649;background-color:rgba(0,0,0,0);color:#6eb649;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green-small:hover{background-color:#6eb649;color:#fff}.ai1wm-button-blue{display:inline-block;border:2px solid #00aff0;background-color:rgba(0,0,0,0);color:#00aff0;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-blue:hover{background-color:#00aff0;color:#fff}.ai1wm-button-red{display:inline-block;border:2px solid #e74c3c;background-color:rgba(0,0,0,0);color:#e74c3c;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-red:hover{background-color:#e74c3c;color:#fff}.ai1wm-button-blue[disabled=disabled],.ai1wm-button-green[disabled=disabled],.ai1wm-button-red[disabled=disabled],.ai1wm-button-green-small[disabled=disabled]{opacity:.6;cursor:default}.ai1wm-button-blue[disabled=disabled]:hover{color:#00aff0}.ai1wm-button-red[disabled=disabled]:hover{color:#e74c3c}.ai1wm-button-green[disabled=disabled]:hover{color:#27ae60}.ai1wm-button-blue[disabled=disabled]:hover,.ai1wm-button-green[disabled=disabled]:hover,.ai1wm-button-red[disabled=disabled]:hover,.ai1wm-button-green-small[disabled=disabled]:hover{background:none}.ai1wm-message-close-button{position:absolute;right:10px;top:6px;text-decoration:none;font-size:10px}input[type=radio].ai1wm-flat-radio-button{display:none}input[type=radio].ai1wm-flat-radio-button+a i,input[type=radio].ai1wm-flat-radio-button+label i{vertical-align:middle;float:left;width:25px;height:25px;border-radius:50%;background:rgba(0,0,0,0);border:2px solid #ccc;content:" ";cursor:pointer;position:relative;box-sizing:content-box}input[type=radio].ai1wm-flat-radio-button:checked+a i,input[type=radio].ai1wm-flat-radio-button:checked+label i{background-color:#d9d9d9;border-color:#6f6f6f}.ai1wm-clear{*zoom:1;clear:both}.ai1wm-clear:after,.ai1wm-clear:before{content:" ";display:table}.ai1wm-clear:after{clear:both}.ai1wm-container .ai1wm-row label{position:relative;top:-1px}.ai1wm-container .ai1wm-row label:after{content:"‎"}.ai1wm-share-button-container{text-align:center}.ai1wm-share-button-container .ai1wm-share-button{text-decoration:none;margin:10px;font-size:30px}.ai1wm-feedback-cancel:link,.ai1wm-feedback-cancel:visited,.ai1wm-feedback-cancel:active{float:left;line-height:34px;outline:0;text-decoration:none;color:#e74c3c}.ai1wm-form-submit{float:right}.ai1wm-no-underline{text-decoration:none}.ai1wm-top-positive-four{position:relative;top:4px}.ai1wm-top-positive-two{position:relative;top:2px}.ai1wm-feedback-form{display:none}.ai1wm-feedback-types{margin:0;padding:0;list-style:none}.ai1wm-feedback-types li{margin:14px 0;padding:0}.ai1wm-feedback-types>li>label>span{display:inline-block;padding:5px 0px 6px 8px}.ai1wm-feedback-types>li>a{height:29px;outline:none;color:#333;text-decoration:none}.ai1wm-feedback-types>li>a>span{display:inline-block;padding:5px 0px 6px 8px}.ai1wm-loader{display:inline-block;width:128px;height:128px;position:relative;animation:ai1wm-rotate 1.5s infinite linear;background:url("../img/logo-128x128.png");background-repeat:no-repeat;background-position:center center}.ai1wm-hide{display:none}.ai1wm-label{border:1px solid #5cb85c;background-color:rgba(0,0,0,0);color:#5cb85c;cursor:pointer;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;padding:.2em .6em;font-size:.8em;border-radius:5px}.ai1wm-label:hover{background-color:#5cb85c;color:#fff}.ai1wm-dialog-message{text-align:left;line-height:1.5em}.ai1wm-import-info{display:inline-block;font-size:12px;font-weight:bold;margin-top:16px}.ai1wm-import-info a{text-decoration:none}.ai1wm-import-title{display:inline-block;font-size:12px;font-weight:bold}.ai1wm-button-download,.ai1wm-direct-download{top:.5em !important}.ai1wm-button-download span,.ai1wm-direct-download span{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai1wm-mt-20{margin-top:20px}.ai1wm-left-aligned{text-align:left}[class^=ai1wm-icon-],[class*=" ai1wm-icon-"]{font-family:"servmask";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ai1wm-icon-file-zip:before{content:""}.ai1wm-icon-folder:before{content:""}.ai1wm-icon-file:before{content:""}.ai1wm-icon-file-content:before{content:""}.ai1wm-icon-cloud-upload:before{content:""}.ai1wm-icon-history:before{content:""}.ai1wm-icon-notification:before{content:""}.ai1wm-icon-arrow-down:before{content:""}.ai1wm-icon-close:before{content:""}.ai1wm-icon-wordpress2:before{content:""}.ai1wm-icon-arrow-right:before{content:""}.ai1wm-icon-plus2:before{content:""}.ai1wm-icon-edit-pencil:before{content:""}.ai1wm-icon-export:before{content:""}.ai1wm-icon-publish:before{content:""}.ai1wm-icon-paperplane:before{content:""}.ai1wm-icon-help:before{content:""}.ai1wm-icon-chevron-right:before{content:""}.ai1wm-icon-chevron-right2:before{content:""}.ai1wm-icon-chevron-left2:before{content:""}.ai1wm-icon-dropbox:before{content:""}.ai1wm-icon-gear:before{content:""}.ai1wm-icon-database:before{content:""}.ai1wm-icon-upload2:before{content:""}.ai1wm-icon-checkmark:before{content:""}.ai1wm-icon-checkmark2:before{content:""}.ai1wm-icon-enter:before{content:""}.ai1wm-icon-exit:before{content:""}.ai1wm-icon-amazon:before{content:""}.ai1wm-icon-onedrive:before{content:""}.ai1wm-icon-folder-secondary:before{content:""}.ai1wm-icon-folder-secondary-open:before{content:""}.ai1wm-icon-dots-horizontal-triple:before{content:""}.ai1wm-icon-bullhorn:before{content:""}.ai1wm-icon-eye:before{content:""}.ai1wm-icon-eye-blocked:before{content:""}.ai1wm-icon-power-cord:before{content:""}.ai1wm-icon-image:before{content:""}.ai1wm-icon-file-video:before{content:""}.ai1wm-icon-stack:before{content:""}.ai1wm-icon-table:before{content:""}.ai1wm-icon-calendar:before{content:""}.ai1wm-icon-play:before{content:""}.ai1wm-icon-broom:before{content:""}.ai1wm-icon-facebook:before{content:""}.ai1wm-icon-x:before{content:""}.ai1wm-icon-youtube:before{content:""}@media(min-width: 855px){.ai1wm-row{margin-right:399px}.ai1wm-row:before,.ai1wm-row:after{content:" ";display:table}.ai1wm-row:after{clear:both}.ai1wm-left{float:left;width:100%}.ai1wm-right{float:right;width:377px;margin-right:-399px}.ai1wm-right .ai1wm-sidebar{width:100%}.ai1wm-right .ai1wm-segment{width:333px;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;color:#333;background-color:#f9f9f9;padding:20px;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box}.ai1wm-right .ai1wm-segment h2{margin:22px 0 0 0;padding:0;font-weight:bold;font-size:14px;text-transform:uppercase;text-align:center}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-holder{position:relative;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-holder h1{margin:0;padding:0;float:left;font-weight:300;font-size:22px;text-transform:uppercase}.ai1wm-holder h1 i{position:relative;top:2px}@media(max-width: 854px){.ai1wm-container{margin-left:10px !important}.ai1wm-row{margin-right:0px !important}.ai1wm-right{float:left !important;width:100% !important;margin-top:18px;margin-right:0 !important}.ai1wm-right .ai1wm-sidebar{width:auto !important;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0;border-radius:3px}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-container{margin:20px 20px 0px 2px}.ai1wm-container:before,.ai1wm-container:after{content:" ";display:table}.ai1wm-container:after{clear:both}.ai1wm-replace-row{width:100%;box-shadow:outset 0 1px 0 0 #fff;border-radius:3px;color:#333;font-size:11px;font-weight:bold;background-color:#f9f9f9;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box;margin-bottom:10px}.ai1wm-field{margin-bottom:4px}.ai1wm-field input[type=text],.ai1wm-field textarea{width:100%;font-weight:normal}.ai1wm-field-set{margin-top:18px}.ai1wm-message{-moz-box-sizing:border-box;background-color:#efefef;border-radius:4px;color:rgba(0,0,0,.6);height:auto;margin:10px 0;min-height:18px;padding:6px 10px;position:relative;border:1px solid;transition:opacity .1s ease 0s,color .1s ease 0s,background .1s ease 0s,box-shadow .1s ease 0s}.ai1wm-message.ai1wm-success-message{background-color:#f2f8f0;color:#119000;font-size:12px}.ai1wm-message.ai1wm-info-message{background-color:#d9edf7;color:#31708f;font-size:11px}.ai1wm-message.ai1wm-error-message{background-color:#f1d7d7;color:#a95252;font-size:12px}.ai1wm-message.ai1wm-red-message{color:#d95c5c;border:2px solid #d95c5c;background-color:rgba(0,0,0,0)}.ai1wm-message.ai1wm-red-message h3{margin:.4em 0;color:#d95c5c}.ai1wm-message p{margin:4px 0;font-size:12px}.ai1wm-message-warning{display:block;font-size:14px;line-height:18px;padding:12px 20px;margin:0 0 22px 0;background-color:#f9f9f9;border:1px solid #d6d6d6;border-radius:3px;box-shadow:0 1px 0 0 #fff inset;border-left:4px solid #ffba00}.ai1wm-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);z-index:100001}.ai1wm-modal-container{position:fixed;display:none;top:50%;left:50%;z-index:100002;width:480px;height:auto;padding:16px;transform:translate(-240px, -94px);border:1px solid #fff;box-shadow:0px 2px 6px #292929;border-radius:6px;background:#f6f6f6;box-sizing:border-box;text-align:center}.ai1wm-modal-container.ai1wm-modal-container-v2{display:block;transform:translate(-50%, -50%);max-height:400px;overflow-y:auto;text-align:left;padding:0;border:0;border-radius:0}.ai1wm-modal-container.ai1wm-modal-container-v2.ai1wm-modal-loading{width:auto;overflow:hidden;border-radius:1em}.ai1wm-modal-container.ai1wm-modal-container-v2 h1{text-transform:none}.ai1wm-modal-container section{display:block;min-height:102px}.ai1wm-modal-container section h1{margin:0;padding:0}.ai1wm-modal-container section h1 .ai1wm-title-green{color:#27ae60;font-size:.7em}.ai1wm-modal-container section h1 .ai1wm-title-red{color:#e74c3c;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-title-grey{color:gray;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-loader{width:32px;height:32px;background:url("../img/logo-32x32.png")}.ai1wm-modal-container section h1 .ai1wm-icon-notification{font-size:1.2em;color:#e74c3c}.ai1wm-modal-container section p{margin:0;padding:12px 0}.ai1wm-modal-container section p .ai1wm-modal-sites p{padding:4px 10px;text-align:left}.ai1wm-modal-container section p .ai1wm-modal-sites input,.ai1wm-modal-container section p .ai1wm-modal-sites select{padding:0 6px;width:100%;max-width:100%;border-radius:3px;height:30px;line-height:30px}.ai1wm-modal-container section p .ai1wm-modal-subtitle-green{color:#27ae60}.ai1wm-modal-container section p .ai1wm-modal-subtitle-red{color:#e74c3c}.ai1wm-modal-container section p .ai1wm-modal-subdescription{display:block;text-align:left}.ai1wm-modal-container section p a.ai1wm-button-green{display:inline-block;position:relative;top:26px}.ai1wm-modal-container section p a.ai1wm-emphasize{animation:ai1wm-emphasize 1s infinite}.ai1wm-modal-container section p em{display:block;color:#34495e;font-style:normal}.ai1wm-modal-container section p.ai1wm-import-modal-content{text-align:left}.ai1wm-modal-container section p.ai1wm-import-modal-content-done{text-align:left;padding:1.62em .5em}.ai1wm-modal-container .ai1wm-import-modal-actions{border-top:1px solid #ccc;padding-top:1em;text-align:right}.ai1wm-modal-container .ai1wm-import-modal-actions .ai1wm-button-gray{margin-right:1em}.ai1wm-modal-container .ai1wm-import-modal-notice{border-top:1px solid #ccc}.ai1wm-modal-container .ai1wm-import-modal-notice p{font-weight:bold;margin:0;padding-top:16px;text-align:center}.ai1wm-social-share-wrapper{display:flex;justify-content:center;gap:20px;margin-bottom:15px;padding:10px 0}.ai1wm-social-icon{text-decoration:none !important;font-size:20px;color:#444;display:inline-block;transition:color .2s ease}.ai1wm-social-icon.icon-x:hover{color:#000}.ai1wm-social-icon.icon-facebook:hover{color:#1877f2}.ai1wm-social-icon.icon-youtube:hover{color:red}.ai1wm-social-icon i{display:block;line-height:1}section.ai1wm-decrypt-backup-section{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:16px;box-sizing:border-box;padding:16px}section.ai1wm-decrypt-backup-section h1{font-size:20px;align-self:center}section.ai1wm-decrypt-backup-section p{align-self:center;padding:0;margin:0}section.ai1wm-decrypt-backup-section form{align-self:center;display:flex;flex-direction:column;align-items:flex-start;padding:0px;gap:8px;width:75%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container input{width:100%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container .ai1wm-toggle-password-visibility{font-size:16px;text-decoration:none;color:#3c434a;position:absolute;right:10px;top:8px;outline:none;box-shadow:none}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container .ai1wm-error-message{display:none}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container.ai1wm-has-error input{border-color:#e74c3c}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container.ai1wm-has-error .ai1wm-error-message{color:#e74c3c;display:block;font-weight:normal;text-align:left;width:100%}section.ai1wm-decrypt-backup-section .ai1wm-backup-decrypt-button-container{display:flex;flex-direction:row;gap:16px;justify-content:flex-end;width:75%;align-self:center}.ai1wm-drag-drop-area{border:3px dashed #ddd;height:200px;margin:1em 0;background:#fff;text-align:center;border-radius:30px}.ai1wm-drag-drop-area>*{pointer-events:none}div.ai1wm-expandable input{display:none}div.ai1wm-expandable.ai1wm-open input{display:inline-block}#ai1wm-import-file{position:relative}#ai1wm-import-file input[type=file]{position:absolute;width:100%;height:21px;cursor:pointer;opacity:0;z-index:9999;padding:0;margin:0;top:0;left:0}#ai1wm-import-file input[type=file]::-webkit-file-upload-button{cursor:pointer}.ai1wm-drag-drop-area.dragover{background:hsla(0,0%,100%,.4);border-color:green}.ai1wm-drag-over.ai1wm-drag-drop-area{border-color:#83b4d8}#ai1wm-import-form{margin-top:1.95rem}.ai1wm-import-form{position:relative}#ai1wm-import-init{position:absolute;top:10px;left:10%;width:80%;text-align:center;z-index:1}#ai1wm-import-init p{font-size:18px;color:#9e9e9e}#ai1wm-import-init p i{font-size:46px}#ai1wm-import-init div.ai1wm-button-import{pointer-events:all;background:#fff}.ai1wm-unlimited-import a{text-decoration:none}.ai1wm-max-upload-size{border-bottom:1px solid #000}.ai1wm-progress-bar{position:relative;display:inline-block;background-color:#bdc3c7;height:32px;width:100%;border-radius:15px;top:35px}.ai1wm-progress-bar-meter{display:inline-block;float:left;background-color:#2ecc71;height:32px;line-height:32px;border-radius:15px;color:#fff;width:0;text-align:center}.ai1wm-progress-bar-percent{display:inline-block;position:absolute;float:left;width:50px;height:32px;line-height:32px;color:#fff;left:50%;transform:translate(-24px, 0);font-size:.5em;background:rgba(0,0,0,0)} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/import.min.rtl.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/import.min.rtl.css new file mode 100644 index 0000000..7e2e8c9 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/import.min.rtl.css @@ -0,0 +1 @@ +@keyframes ai1wm-rotate{0%{transform:rotateZ(0)}25%{transform:rotateZ(90deg)}50%{transform:rotateZ(180deg)}75%{transform:rotateZ(270deg)}100%{transform:rotateZ(360deg)}}@keyframes ai1wm-emphasize{0%{transform:scale(1)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes ai1wm-fadein{0%{transform:scale(0)}50%{transform:scale(1.5)}100%{transform:scale(1)}}.ai1wm-button-group{border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;text-transform:uppercase;font-weight:600;transition:background-color .2s ease-out;display:inline-block;text-align:right}.ai1wm-button-group.ai1wm-button-export{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-export.ai1wm-open>.ai1wm-dropdown-menu{height:456px;border-top:1px solid #27ae60}.ai1wm-button-group.ai1wm-button-import{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-import.ai1wm-open>.ai1wm-dropdown-menu{height:484px;border-top:1px solid #27ae60}.ai1wm-button-group .ai1wm-button-main{position:relative;padding:6px 25px 6px 50px;box-sizing:content-box}.ai1wm-button-group .ai1wm-dropdown-menu{height:0;overflow:hidden;transition:height .2s cubic-bezier(0.19, 1, 0.22, 1);border-top:none}.ai1wm-dropdown-menu{margin:0 !important;padding:0;list-style:none}.ai1wm-dropdown-menu li{margin:0 !important;padding:0}.ai1wm-dropdown-menu li a,.ai1wm-dropdown-menu li a:visited{display:block;padding:5px 26px;text-decoration:none;color:#27ae60;text-align:right;box-sizing:content-box}.ai1wm-dropdown-menu li a:hover,.ai1wm-dropdown-menu li a:visited:hover{text-decoration:none;color:#111}.ai1mw-lines{position:absolute;width:12px;height:10px;top:9px;left:20px}.ai1wm-line{position:absolute;width:100%;height:2px;margin:auto;background:#27ae60;transition:all .2s ease-in-out}.ai1wm-line-first{top:0;right:0}div.ai1wm-open .ai1wm-line-first,div.ai1wm-open .ai1wm-line-third{top:50%}.ai1wm-line-second{top:50%;right:0}.ai1wm-line-third{top:100%;right:0}.ai1wm-button-gray{display:inline-block;border:2px solid #95a5a6;background-color:rgba(0,0,0,0);color:#95a5a6;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-gray:hover{background-color:#95a5a6;color:#fff}.ai1wm-button-green{display:inline-block;border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green:hover{background-color:#27ae60;color:#fff}.ai1wm-button-green-small{display:inline-block;border:2px solid #6eb649;background-color:rgba(0,0,0,0);color:#6eb649;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green-small:hover{background-color:#6eb649;color:#fff}.ai1wm-button-blue{display:inline-block;border:2px solid #00aff0;background-color:rgba(0,0,0,0);color:#00aff0;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-blue:hover{background-color:#00aff0;color:#fff}.ai1wm-button-red{display:inline-block;border:2px solid #e74c3c;background-color:rgba(0,0,0,0);color:#e74c3c;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-red:hover{background-color:#e74c3c;color:#fff}.ai1wm-button-blue[disabled=disabled],.ai1wm-button-green[disabled=disabled],.ai1wm-button-red[disabled=disabled],.ai1wm-button-green-small[disabled=disabled]{opacity:.6;cursor:default}.ai1wm-button-blue[disabled=disabled]:hover{color:#00aff0}.ai1wm-button-red[disabled=disabled]:hover{color:#e74c3c}.ai1wm-button-green[disabled=disabled]:hover{color:#27ae60}.ai1wm-button-blue[disabled=disabled]:hover,.ai1wm-button-green[disabled=disabled]:hover,.ai1wm-button-red[disabled=disabled]:hover,.ai1wm-button-green-small[disabled=disabled]:hover{background:none}.ai1wm-message-close-button{position:absolute;left:10px;top:6px;text-decoration:none;font-size:10px}input[type=radio].ai1wm-flat-radio-button{display:none}input[type=radio].ai1wm-flat-radio-button+a i,input[type=radio].ai1wm-flat-radio-button+label i{vertical-align:middle;float:right;width:25px;height:25px;border-radius:50%;background:rgba(0,0,0,0);border:2px solid #ccc;content:" ";cursor:pointer;position:relative;box-sizing:content-box}input[type=radio].ai1wm-flat-radio-button:checked+a i,input[type=radio].ai1wm-flat-radio-button:checked+label i{background-color:#d9d9d9;border-color:#6f6f6f}.ai1wm-clear{*zoom:1;clear:both}.ai1wm-clear:after,.ai1wm-clear:before{content:" ";display:table}.ai1wm-clear:after{clear:both}.ai1wm-container .ai1wm-row label{position:relative;top:-1px}.ai1wm-container .ai1wm-row label:after{content:"‎"}.ai1wm-share-button-container{text-align:center}.ai1wm-share-button-container .ai1wm-share-button{text-decoration:none;margin:10px;font-size:30px}.ai1wm-feedback-cancel:link,.ai1wm-feedback-cancel:visited,.ai1wm-feedback-cancel:active{float:right;line-height:34px;outline:0;text-decoration:none;color:#e74c3c}.ai1wm-form-submit{float:left}.ai1wm-no-underline{text-decoration:none}.ai1wm-top-positive-four{position:relative;top:4px}.ai1wm-top-positive-two{position:relative;top:2px}.ai1wm-feedback-form{display:none}.ai1wm-feedback-types{margin:0;padding:0;list-style:none}.ai1wm-feedback-types li{margin:14px 0;padding:0}.ai1wm-feedback-types>li>label>span{display:inline-block;padding:5px 8px 6px 0px}.ai1wm-feedback-types>li>a{height:29px;outline:none;color:#333;text-decoration:none}.ai1wm-feedback-types>li>a>span{display:inline-block;padding:5px 8px 6px 0px}.ai1wm-loader{display:inline-block;width:128px;height:128px;position:relative;animation:ai1wm-rotate 1.5s infinite linear;background:url("../img/logo-128x128.png");background-repeat:no-repeat;background-position:center center}.ai1wm-hide{display:none}.ai1wm-label{border:1px solid #5cb85c;background-color:rgba(0,0,0,0);color:#5cb85c;cursor:pointer;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;padding:.2em .6em;font-size:.8em;border-radius:5px}.ai1wm-label:hover{background-color:#5cb85c;color:#fff}.ai1wm-dialog-message{text-align:right;line-height:1.5em}.ai1wm-import-info{display:inline-block;font-size:12px;font-weight:bold;margin-top:16px}.ai1wm-import-info a{text-decoration:none}.ai1wm-import-title{display:inline-block;font-size:12px;font-weight:bold}.ai1wm-button-download,.ai1wm-direct-download{top:.5em !important}.ai1wm-button-download span,.ai1wm-direct-download span{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai1wm-mt-20{margin-top:20px}.ai1wm-left-aligned{text-align:right}[class^=ai1wm-icon-],[class*=" ai1wm-icon-"]{font-family:"servmask";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ai1wm-icon-file-zip:before{content:""}.ai1wm-icon-folder:before{content:""}.ai1wm-icon-file:before{content:""}.ai1wm-icon-file-content:before{content:""}.ai1wm-icon-cloud-upload:before{content:""}.ai1wm-icon-history:before{content:""}.ai1wm-icon-notification:before{content:""}.ai1wm-icon-arrow-down:before{content:""}.ai1wm-icon-close:before{content:""}.ai1wm-icon-wordpress2:before{content:""}.ai1wm-icon-arrow-right:before{content:""}.ai1wm-icon-plus2:before{content:""}.ai1wm-icon-edit-pencil:before{content:""}.ai1wm-icon-export:before{content:""}.ai1wm-icon-publish:before{content:""}.ai1wm-icon-paperplane:before{content:""}.ai1wm-icon-help:before{content:""}.ai1wm-icon-chevron-right:before{content:""}.ai1wm-icon-chevron-right2:before{content:""}.ai1wm-icon-chevron-left2:before{content:""}.ai1wm-icon-dropbox:before{content:""}.ai1wm-icon-gear:before{content:""}.ai1wm-icon-database:before{content:""}.ai1wm-icon-upload2:before{content:""}.ai1wm-icon-checkmark:before{content:""}.ai1wm-icon-checkmark2:before{content:""}.ai1wm-icon-enter:before{content:""}.ai1wm-icon-exit:before{content:""}.ai1wm-icon-amazon:before{content:""}.ai1wm-icon-onedrive:before{content:""}.ai1wm-icon-folder-secondary:before{content:""}.ai1wm-icon-folder-secondary-open:before{content:""}.ai1wm-icon-dots-horizontal-triple:before{content:""}.ai1wm-icon-bullhorn:before{content:""}.ai1wm-icon-eye:before{content:""}.ai1wm-icon-eye-blocked:before{content:""}.ai1wm-icon-power-cord:before{content:""}.ai1wm-icon-image:before{content:""}.ai1wm-icon-file-video:before{content:""}.ai1wm-icon-stack:before{content:""}.ai1wm-icon-table:before{content:""}.ai1wm-icon-calendar:before{content:""}.ai1wm-icon-play:before{content:""}.ai1wm-icon-broom:before{content:""}.ai1wm-icon-facebook:before{content:""}.ai1wm-icon-x:before{content:""}.ai1wm-icon-youtube:before{content:""}@media(min-width: 855px){.ai1wm-row{margin-left:399px}.ai1wm-row:before,.ai1wm-row:after{content:" ";display:table}.ai1wm-row:after{clear:both}.ai1wm-left{float:right;width:100%}.ai1wm-right{float:left;width:377px;margin-left:-399px}.ai1wm-right .ai1wm-sidebar{width:100%}.ai1wm-right .ai1wm-segment{width:333px;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;color:#333;background-color:#f9f9f9;padding:20px;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box}.ai1wm-right .ai1wm-segment h2{margin:22px 0 0 0;padding:0;font-weight:bold;font-size:14px;text-transform:uppercase;text-align:center}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-holder{position:relative;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-holder h1{margin:0;padding:0;float:right;font-weight:300;font-size:22px;text-transform:uppercase}.ai1wm-holder h1 i{position:relative;top:2px}@media(max-width: 854px){.ai1wm-container{margin-right:10px !important}.ai1wm-row{margin-left:0px !important}.ai1wm-right{float:right !important;width:100% !important;margin-top:18px;margin-left:0 !important}.ai1wm-right .ai1wm-sidebar{width:auto !important;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0;border-radius:3px}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-container{margin:20px 2px 0px 20px}.ai1wm-container:before,.ai1wm-container:after{content:" ";display:table}.ai1wm-container:after{clear:both}.ai1wm-replace-row{width:100%;box-shadow:outset 0 1px 0 0 #fff;border-radius:3px;color:#333;font-size:11px;font-weight:bold;background-color:#f9f9f9;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box;margin-bottom:10px}.ai1wm-field{margin-bottom:4px}.ai1wm-field input[type=text],.ai1wm-field textarea{width:100%;font-weight:normal}.ai1wm-field-set{margin-top:18px}.ai1wm-message{-moz-box-sizing:border-box;background-color:#efefef;border-radius:4px;color:rgba(0,0,0,.6);height:auto;margin:10px 0;min-height:18px;padding:6px 10px;position:relative;border:1px solid;transition:opacity .1s ease 0s,color .1s ease 0s,background .1s ease 0s,box-shadow .1s ease 0s}.ai1wm-message.ai1wm-success-message{background-color:#f2f8f0;color:#119000;font-size:12px}.ai1wm-message.ai1wm-info-message{background-color:#d9edf7;color:#31708f;font-size:11px}.ai1wm-message.ai1wm-error-message{background-color:#f1d7d7;color:#a95252;font-size:12px}.ai1wm-message.ai1wm-red-message{color:#d95c5c;border:2px solid #d95c5c;background-color:rgba(0,0,0,0)}.ai1wm-message.ai1wm-red-message h3{margin:.4em 0;color:#d95c5c}.ai1wm-message p{margin:4px 0;font-size:12px}.ai1wm-message-warning{display:block;font-size:14px;line-height:18px;padding:12px 20px;margin:0 0 22px 0;background-color:#f9f9f9;border:1px solid #d6d6d6;border-radius:3px;box-shadow:0 1px 0 0 #fff inset;border-right:4px solid #ffba00}.ai1wm-overlay{display:none;position:fixed;top:0;right:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);z-index:100001}.ai1wm-modal-container{position:fixed;display:none;top:50%;right:50%;z-index:100002;width:480px;height:auto;padding:16px;transform:translate(240px, -94px);border:1px solid #fff;box-shadow:0px 2px 6px #292929;border-radius:6px;background:#f6f6f6;box-sizing:border-box;text-align:center}.ai1wm-modal-container.ai1wm-modal-container-v2{display:block;transform:translate(50%, -50%);max-height:400px;overflow-y:auto;text-align:right;padding:0;border:0;border-radius:0}.ai1wm-modal-container.ai1wm-modal-container-v2.ai1wm-modal-loading{width:auto;overflow:hidden;border-radius:1em}.ai1wm-modal-container.ai1wm-modal-container-v2 h1{text-transform:none}.ai1wm-modal-container section{display:block;min-height:102px}.ai1wm-modal-container section h1{margin:0;padding:0}.ai1wm-modal-container section h1 .ai1wm-title-green{color:#27ae60;font-size:.7em}.ai1wm-modal-container section h1 .ai1wm-title-red{color:#e74c3c;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-title-grey{color:gray;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-loader{width:32px;height:32px;background:url("../img/logo-32x32.png")}.ai1wm-modal-container section h1 .ai1wm-icon-notification{font-size:1.2em;color:#e74c3c}.ai1wm-modal-container section p{margin:0;padding:12px 0}.ai1wm-modal-container section p .ai1wm-modal-sites p{padding:4px 10px;text-align:right}.ai1wm-modal-container section p .ai1wm-modal-sites input,.ai1wm-modal-container section p .ai1wm-modal-sites select{padding:0 6px;width:100%;max-width:100%;border-radius:3px;height:30px;line-height:30px}.ai1wm-modal-container section p .ai1wm-modal-subtitle-green{color:#27ae60}.ai1wm-modal-container section p .ai1wm-modal-subtitle-red{color:#e74c3c}.ai1wm-modal-container section p .ai1wm-modal-subdescription{display:block;text-align:right}.ai1wm-modal-container section p a.ai1wm-button-green{display:inline-block;position:relative;top:26px}.ai1wm-modal-container section p a.ai1wm-emphasize{animation:ai1wm-emphasize 1s infinite}.ai1wm-modal-container section p em{display:block;color:#34495e;font-style:normal}.ai1wm-modal-container section p.ai1wm-import-modal-content{text-align:right}.ai1wm-modal-container section p.ai1wm-import-modal-content-done{text-align:right;padding:1.62em .5em}.ai1wm-modal-container .ai1wm-import-modal-actions{border-top:1px solid #ccc;padding-top:1em;text-align:left}.ai1wm-modal-container .ai1wm-import-modal-actions .ai1wm-button-gray{margin-left:1em}.ai1wm-modal-container .ai1wm-import-modal-notice{border-top:1px solid #ccc}.ai1wm-modal-container .ai1wm-import-modal-notice p{font-weight:bold;margin:0;padding-top:16px;text-align:center}.ai1wm-social-share-wrapper{display:flex;justify-content:center;gap:20px;margin-bottom:15px;padding:10px 0}.ai1wm-social-icon{text-decoration:none !important;font-size:20px;color:#444;display:inline-block;transition:color .2s ease}.ai1wm-social-icon.icon-x:hover{color:#000}.ai1wm-social-icon.icon-facebook:hover{color:#1877f2}.ai1wm-social-icon.icon-youtube:hover{color:red}.ai1wm-social-icon i{display:block;line-height:1}section.ai1wm-decrypt-backup-section{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:16px;box-sizing:border-box;padding:16px}section.ai1wm-decrypt-backup-section h1{font-size:20px;align-self:center}section.ai1wm-decrypt-backup-section p{align-self:center;padding:0;margin:0}section.ai1wm-decrypt-backup-section form{align-self:center;display:flex;flex-direction:column;align-items:flex-start;padding:0px;gap:8px;width:75%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container input{width:100%}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container .ai1wm-toggle-password-visibility{font-size:16px;text-decoration:none;color:#3c434a;position:absolute;left:10px;top:8px;outline:none;box-shadow:none}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container .ai1wm-error-message{display:none}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container.ai1wm-has-error input{border-color:#e74c3c}section.ai1wm-decrypt-backup-section .ai1wm-input-password-container.ai1wm-has-error .ai1wm-error-message{color:#e74c3c;display:block;font-weight:normal;text-align:right;width:100%}section.ai1wm-decrypt-backup-section .ai1wm-backup-decrypt-button-container{display:flex;flex-direction:row;gap:16px;justify-content:flex-end;width:75%;align-self:center}.ai1wm-drag-drop-area{border:3px dashed #ddd;height:200px;margin:1em 0;background:#fff;text-align:center;border-radius:30px}.ai1wm-drag-drop-area>*{pointer-events:none}div.ai1wm-expandable input{display:none}div.ai1wm-expandable.ai1wm-open input{display:inline-block}#ai1wm-import-file{position:relative}#ai1wm-import-file input[type=file]{position:absolute;width:100%;height:21px;cursor:pointer;opacity:0;z-index:9999;padding:0;margin:0;top:0;right:0}#ai1wm-import-file input[type=file]::-webkit-file-upload-button{cursor:pointer}.ai1wm-drag-drop-area.dragover{background:hsla(0,0%,100%,.4);border-color:green}.ai1wm-drag-over.ai1wm-drag-drop-area{border-color:#83b4d8}#ai1wm-import-form{margin-top:1.95rem}.ai1wm-import-form{position:relative}#ai1wm-import-init{position:absolute;top:10px;right:10%;width:80%;text-align:center;z-index:1}#ai1wm-import-init p{font-size:18px;color:#9e9e9e}#ai1wm-import-init p i{font-size:46px}#ai1wm-import-init div.ai1wm-button-import{pointer-events:all;background:#fff}.ai1wm-unlimited-import a{text-decoration:none}.ai1wm-max-upload-size{border-bottom:1px solid #000}.ai1wm-progress-bar{position:relative;display:inline-block;background-color:#bdc3c7;height:32px;width:100%;border-radius:15px;top:35px}.ai1wm-progress-bar-meter{display:inline-block;float:right;background-color:#2ecc71;height:32px;line-height:32px;border-radius:15px;color:#fff;width:0;text-align:center}.ai1wm-progress-bar-percent{display:inline-block;position:absolute;float:right;width:50px;height:32px;line-height:32px;color:#fff;right:50%;transform:translate(24px, 0);font-size:.5em;background:rgba(0,0,0,0)} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/reset.min.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/reset.min.css new file mode 100644 index 0000000..d0a8859 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/reset.min.css @@ -0,0 +1 @@ +.ai1wm-reset-container{display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:20px 20px 20px 0;background:rgba(0,0,0,0)}.ai1wm-reset-container .ai1wm-reset-content{display:flex;flex-direction:column;padding:20px;gap:20px;max-width:762px}.ai1wm-reset-container .ai1wm-reset-content h1{display:flex;gap:8px;align-items:center;line-height:1.2;margin:0}.ai1wm-reset-container .ai1wm-reset-content h1>img{max-height:22px;width:auto}.ai1wm-reset-container .ai1wm-reset-content p{margin:0}.ai1wm-reset-container .ai1wm-reset-content img{max-width:100%;margin:0}@media(max-width: 767px){.ai1wm-reset-container{margin-right:10px}.ai1wm-reset-container .ai1wm-reset-content{padding:0}} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/reset.min.rtl.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/reset.min.rtl.css new file mode 100644 index 0000000..e3c14c4 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/reset.min.rtl.css @@ -0,0 +1 @@ +.ai1wm-reset-container{display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:20px 0 20px 20px;background:rgba(0,0,0,0)}.ai1wm-reset-container .ai1wm-reset-content{display:flex;flex-direction:column;padding:20px;gap:20px;max-width:762px}.ai1wm-reset-container .ai1wm-reset-content h1{display:flex;gap:8px;align-items:center;line-height:1.2;margin:0}.ai1wm-reset-container .ai1wm-reset-content h1>img{max-height:22px;width:auto}.ai1wm-reset-container .ai1wm-reset-content p{margin:0}.ai1wm-reset-container .ai1wm-reset-content img{max-width:100%;margin:0}@media(max-width: 767px){.ai1wm-reset-container{margin-left:10px}.ai1wm-reset-container .ai1wm-reset-content{padding:0}} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/schedules.min.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/schedules.min.css new file mode 100644 index 0000000..1ecfb63 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/schedules.min.css @@ -0,0 +1 @@ +@keyframes ai1wmFadeIn{0%{opacity:0}100%{opacity:1}}.ai1wm-schedules-container{display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:20px 20px 20px 0;background:rgba(0,0,0,0)}.ai1wm-schedules-container header{background:#f8ebff;border:solid 2px #fff;border-radius:5px;display:flex;width:100%;margin-bottom:20px;justify-content:space-between;align-items:center}.ai1wm-schedules-container header .ai1wm-schedules-subtitle{color:#a06ab4}.ai1wm-schedules-container header>div{padding:10px 20px}.ai1wm-schedules-container header>div a{text-decoration:none;color:#fff;background:linear-gradient(to bottom, #ED5EAA, #6060EF);padding:2px;display:flex;align-items:center;justify-content:center}.ai1wm-schedules-container header>div a>span{padding:10px;background-color:#121217;width:100%;text-align:center}.ai1wm-schedules-container .ai1wm-schedules-content{background:#fff;display:flex;flex-direction:row;border:2px solid #fff;border-radius:5px;padding:20px}.ai1wm-schedules-container .ai1wm-schedules-content aside{width:200px}.ai1wm-schedules-container .ai1wm-schedules-content aside nav{display:flex;flex-direction:column;gap:10px;margin-top:1rem;margin-right:20px}.ai1wm-schedules-container .ai1wm-schedules-content aside nav a{text-decoration:none;color:#121217;border:2px solid rgba(0,0,0,0);padding:5px 10px;box-shadow:none}.ai1wm-schedules-container .ai1wm-schedules-content aside nav a.active,.ai1wm-schedules-container .ai1wm-schedules-content aside nav a:hover{background:#f8ebff;border-color:#f8ebff;border-left-color:#a06ab4;cursor:pointer}.ai1wm-schedules-container .ai1wm-schedules-content section{display:flex;flex-direction:column;flex:1;border-left:1px solid #efeff5;padding:0 20px}.ai1wm-schedules-container .ai1wm-schedules-content section article>a,.ai1wm-schedules-container .ai1wm-schedules-content section article>div{display:none;opacity:0}.ai1wm-schedules-container .ai1wm-schedules-content section article>div.active{display:block;animation:ai1wmFadeIn .25s linear forwards}.ai1wm-schedules-container .ai1wm-schedules-content section article>div.active h2{font-weight:bold;font-size:1.2em}.ai1wm-schedules-container .ai1wm-schedules-content section article>div.active h2 a{font-size:.8em;padding:5px 5px 5px 10px;margin-left:10px;display:inline-block;border-left:1px solid #121217}.ai1wm-schedules-container .ai1wm-schedules-content section article>div.active img{width:621px;max-width:100%}@media(max-width: 767px){.ai1wm-schedules-container{margin-right:10px}.ai1wm-schedules-container header{flex-direction:column}.ai1wm-schedules-container header h1{line-height:1.2}.ai1wm-schedules-container header>div.ai1wm-button-link{width:100%;margin-top:0}.ai1wm-schedules-container header>div.ai1wm-button-link a{margin:0 20px}.ai1wm-schedules-container .ai1wm-schedules-content{flex-direction:column;background:rgba(0,0,0,0);border:none;padding:0}.ai1wm-schedules-container .ai1wm-schedules-content aside{display:none}.ai1wm-schedules-container .ai1wm-schedules-content section{background:rgba(0,0,0,0);padding:0}.ai1wm-schedules-container .ai1wm-schedules-content section article{border:2px solid #fff;border-radius:5px;background:#fff;margin-bottom:30px}.ai1wm-schedules-container .ai1wm-schedules-content section article:last-of-type{margin-bottom:0}.ai1wm-schedules-container .ai1wm-schedules-content section article>a{position:relative;color:#121217;text-decoration:none;display:block;font-weight:bold;padding:10px 40px 10px 20px;opacity:1}.ai1wm-schedules-container .ai1wm-schedules-content section article>a:focus{box-shadow:none}.ai1wm-schedules-container .ai1wm-schedules-content section article>a>span{position:absolute;width:18px;height:18px;right:0;margin-right:20px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAdpJREFUWEft1ruKFUEQgOFvE2+7iZj7ABooCEYKigbe8AkMTcx0QdfEu4kXVAwMBDMT8cbKYqKhL2Bm7HMoSsERxnHO9HRPr3BgOpyprv7nr+ruWbIgY2lBOE2gtSs1GZ2M1jZQO9/Uo//L6C48xV48w/PaC7fybcU9HMN73MLPZkxX6XfiEw40Am/g9ibBbsFrnG3kf4Vz+PHnWRt0BV+wrwPqGu5Whg2Tb3G6I+8LnJ8HehGPe2Cu404l2IB8h1M9+fbja7xvG70w68k+lhptsG0GebJnoV/Yg29doPGVn3EoYe3mrOFL5AZkbJgTickPcGVe6eP5MjZwJJEodunVTNIQ8QZnEvOe4FJq128WbDFkV+mbHzHU7H2sJQz17e7m1H9M9pW+BPavfmpBb8cHHM8t95DS14KtApkqfQnsQ1yeTdyB9bEmh5a+FDbO2ih33N19Y25Ptifl/ubFFfsRhxMA37E7ERM34OrQ4y0XNPJGSeOcPTp0kY64wSZLSt9cbwxsNmTOZuqSVwJbBDkWNLcNiiFrgA6FHQVZCzQFOxqyJug82CqQtUEjX5yzj3AQLxE3VZVRco5WWTg3yQSaaywVPxlNGcp9PxnNNZaKn4ymDOW+XxijvwFnZkorasbgRwAAAABJRU5ErkJggg==") center center no-repeat;background-size:contain}.ai1wm-schedules-container .ai1wm-schedules-content section article>a.active{border-bottom:1px solid #efeff5;cursor:default}.ai1wm-schedules-container .ai1wm-schedules-content section article>a.active>span{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAclJREFUWEft2LtKxEAUxvH/Nl7QRux9AC0sxE5BxMIb+AR2Nlaihdp4t/AGaqOF2FmIeEdstPQJbOx9DkU5kECI2cxJ5iwYmLQ5M/ubLzMnS2pU5KpVxEmAWj+pkGhI1DoB6/nCHv3vibYDR0A/cAHsW4EtH30b8AQMJXCCnrfAWkGzkLHPBGsBzUOaYX2hGqQJ1gdaBOmNLQstg/TCloH6IEtji0KlTz4Dg46W8wl0OWoOgQVt6yoC1SZ5AKwBD8CIAyKtS7A/LrAWqkXKm2gx+tFW4NEKq4GWQcYBmWFdUC1yD1iq8/iagRtgwmcb5EEtkLHNG1sPqkXuAsuugxDdF+w1MFkm2SxoI5CxrSnaBoWxaais+hUYcKx6HdhQJpkuawHugFHH+GQH+fMBYhY4cUwgPXKzJDIeJthbYCxnHumtPcCH1KQTnYv+odcbvwpseSKTB0yw4znz9QLvWVB5Rb4BUpC+VoBtI6SmG5wDM3Fh1mHqAF6AvgTKMsn0WuWAXQFTiRuXwDTwlQeVe53AMdANnAJnxkmmp5NDvAMMA/fRGfhOFrneTA326acPUH1WusqQqC4nfVVIVJ+VrjIkqstJX1WZRH8Bl6RRK7iiYaMAAAAASUVORK5CYII=")}.ai1wm-schedules-container .ai1wm-schedules-content section article>div.active{padding:20px}.ai1wm-schedules-container .ai1wm-schedules-content section article>div.active h2{font-size:1.1em}} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/schedules.min.rtl.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/schedules.min.rtl.css new file mode 100644 index 0000000..148288f --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/schedules.min.rtl.css @@ -0,0 +1 @@ +@keyframes ai1wmFadeIn{0%{opacity:0}100%{opacity:1}}.ai1wm-schedules-container{display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:20px 0 20px 20px;background:rgba(0,0,0,0)}.ai1wm-schedules-container header{background:#f8ebff;border:solid 2px #fff;border-radius:5px;display:flex;width:100%;margin-bottom:20px;justify-content:space-between;align-items:center}.ai1wm-schedules-container header .ai1wm-schedules-subtitle{color:#a06ab4}.ai1wm-schedules-container header>div{padding:10px 20px}.ai1wm-schedules-container header>div a{text-decoration:none;color:#fff;background:linear-gradient(to bottom, #ED5EAA, #6060EF);padding:2px;display:flex;align-items:center;justify-content:center}.ai1wm-schedules-container header>div a>span{padding:10px;background-color:#121217;width:100%;text-align:center}.ai1wm-schedules-container .ai1wm-schedules-content{background:#fff;display:flex;flex-direction:row;border:2px solid #fff;border-radius:5px;padding:20px}.ai1wm-schedules-container .ai1wm-schedules-content aside{width:200px}.ai1wm-schedules-container .ai1wm-schedules-content aside nav{display:flex;flex-direction:column;gap:10px;margin-top:1rem;margin-left:20px}.ai1wm-schedules-container .ai1wm-schedules-content aside nav a{text-decoration:none;color:#121217;border:2px solid rgba(0,0,0,0);padding:5px 10px;box-shadow:none}.ai1wm-schedules-container .ai1wm-schedules-content aside nav a.active,.ai1wm-schedules-container .ai1wm-schedules-content aside nav a:hover{background:#f8ebff;border-color:#f8ebff;border-right-color:#a06ab4;cursor:pointer}.ai1wm-schedules-container .ai1wm-schedules-content section{display:flex;flex-direction:column;flex:1;border-right:1px solid #efeff5;padding:0 20px}.ai1wm-schedules-container .ai1wm-schedules-content section article>a,.ai1wm-schedules-container .ai1wm-schedules-content section article>div{display:none;opacity:0}.ai1wm-schedules-container .ai1wm-schedules-content section article>div.active{display:block;animation:ai1wmFadeIn .25s linear forwards}.ai1wm-schedules-container .ai1wm-schedules-content section article>div.active h2{font-weight:bold;font-size:1.2em}.ai1wm-schedules-container .ai1wm-schedules-content section article>div.active h2 a{font-size:.8em;padding:5px 10px 5px 5px;margin-right:10px;display:inline-block;border-right:1px solid #121217}.ai1wm-schedules-container .ai1wm-schedules-content section article>div.active img{width:621px;max-width:100%}@media(max-width: 767px){.ai1wm-schedules-container{margin-left:10px}.ai1wm-schedules-container header{flex-direction:column}.ai1wm-schedules-container header h1{line-height:1.2}.ai1wm-schedules-container header>div.ai1wm-button-link{width:100%;margin-top:0}.ai1wm-schedules-container header>div.ai1wm-button-link a{margin:0 20px}.ai1wm-schedules-container .ai1wm-schedules-content{flex-direction:column;background:rgba(0,0,0,0);border:none;padding:0}.ai1wm-schedules-container .ai1wm-schedules-content aside{display:none}.ai1wm-schedules-container .ai1wm-schedules-content section{background:rgba(0,0,0,0);padding:0}.ai1wm-schedules-container .ai1wm-schedules-content section article{border:2px solid #fff;border-radius:5px;background:#fff;margin-bottom:30px}.ai1wm-schedules-container .ai1wm-schedules-content section article:last-of-type{margin-bottom:0}.ai1wm-schedules-container .ai1wm-schedules-content section article>a{position:relative;color:#121217;text-decoration:none;display:block;font-weight:bold;padding:10px 20px 10px 40px;opacity:1}.ai1wm-schedules-container .ai1wm-schedules-content section article>a:focus{box-shadow:none}.ai1wm-schedules-container .ai1wm-schedules-content section article>a>span{position:absolute;width:18px;height:18px;left:0;margin-left:20px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAdpJREFUWEft1ruKFUEQgOFvE2+7iZj7ABooCEYKigbe8AkMTcx0QdfEu4kXVAwMBDMT8cbKYqKhL2Bm7HMoSsERxnHO9HRPr3BgOpyprv7nr+ruWbIgY2lBOE2gtSs1GZ2M1jZQO9/Uo//L6C48xV48w/PaC7fybcU9HMN73MLPZkxX6XfiEw40Am/g9ibBbsFrnG3kf4Vz+PHnWRt0BV+wrwPqGu5Whg2Tb3G6I+8LnJ8HehGPe2Cu404l2IB8h1M9+fbja7xvG70w68k+lhptsG0GebJnoV/Yg29doPGVn3EoYe3mrOFL5AZkbJgTickPcGVe6eP5MjZwJJEodunVTNIQ8QZnEvOe4FJq128WbDFkV+mbHzHU7H2sJQz17e7m1H9M9pW+BPavfmpBb8cHHM8t95DS14KtApkqfQnsQ1yeTdyB9bEmh5a+FDbO2ih33N19Y25Ptifl/ubFFfsRhxMA37E7ERM34OrQ4y0XNPJGSeOcPTp0kY64wSZLSt9cbwxsNmTOZuqSVwJbBDkWNLcNiiFrgA6FHQVZCzQFOxqyJug82CqQtUEjX5yzj3AQLxE3VZVRco5WWTg3yQSaaywVPxlNGcp9PxnNNZaKn4ymDOW+XxijvwFnZkorasbgRwAAAABJRU5ErkJggg==") center center no-repeat;background-size:contain}.ai1wm-schedules-container .ai1wm-schedules-content section article>a.active{border-bottom:1px solid #efeff5;cursor:default}.ai1wm-schedules-container .ai1wm-schedules-content section article>a.active>span{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAclJREFUWEft2LtKxEAUxvH/Nl7QRux9AC0sxE5BxMIb+AR2Nlaihdp4t/AGaqOF2FmIeEdstPQJbOx9DkU5kECI2cxJ5iwYmLQ5M/ubLzMnS2pU5KpVxEmAWj+pkGhI1DoB6/nCHv3vibYDR0A/cAHsW4EtH30b8AQMJXCCnrfAWkGzkLHPBGsBzUOaYX2hGqQJ1gdaBOmNLQstg/TCloH6IEtji0KlTz4Dg46W8wl0OWoOgQVt6yoC1SZ5AKwBD8CIAyKtS7A/LrAWqkXKm2gx+tFW4NEKq4GWQcYBmWFdUC1yD1iq8/iagRtgwmcb5EEtkLHNG1sPqkXuAsuugxDdF+w1MFkm2SxoI5CxrSnaBoWxaais+hUYcKx6HdhQJpkuawHugFHH+GQH+fMBYhY4cUwgPXKzJDIeJthbYCxnHumtPcCH1KQTnYv+odcbvwpseSKTB0yw4znz9QLvWVB5Rb4BUpC+VoBtI6SmG5wDM3Fh1mHqAF6AvgTKMsn0WuWAXQFTiRuXwDTwlQeVe53AMdANnAJnxkmmp5NDvAMMA/fRGfhOFrneTA326acPUH1WusqQqC4nfVVIVJ+VrjIkqstJX1WZRH8Bl6RRK7iiYaMAAAAASUVORK5CYII=")}.ai1wm-schedules-container .ai1wm-schedules-content section article>div.active{padding:20px}.ai1wm-schedules-container .ai1wm-schedules-content section article>div.active h2{font-size:1.1em}} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/servmask.min.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/servmask.min.css new file mode 100644 index 0000000..cb7578d --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/servmask.min.css @@ -0,0 +1 @@ +.ai1wm-accordion{margin:1em 0;display:block}.ai1wm-accordion h4{cursor:pointer;color:rgba(0,116,162,.8);margin:0}.ai1wm-accordion h4 small{color:#444;font-weight:normal;display:inline;float:none;width:auto}.ai1wm-accordion h4 small:after{content:"‎"}.ai1wm-accordion .ai1wm-icon-arrow-right{transition:transform .1s ease-out;display:inline-block}.ai1wm-accordion ul{margin:0;padding:0;list-style:none;visibility:hidden;height:0;transition:height .2s cubic-bezier(0.19, 1, 0.22, 1)}.ai1wm-accordion ul li small{display:inline;float:none;width:auto}.ai1wm-accordion.ai1wm-open h4 .ai1wm-icon-arrow-right{transform:rotate(90deg)}.ai1wm-accordion.ai1wm-open ul{height:auto;margin:.6em 0 0 2em;visibility:visible}@keyframes ai1wm-rotate{0%{transform:rotateZ(0)}25%{transform:rotateZ(-90deg)}50%{transform:rotateZ(-180deg)}75%{transform:rotateZ(-270deg)}100%{transform:rotateZ(-360deg)}}@keyframes ai1wm-emphasize{0%{transform:scale(1)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes ai1wm-fadein{0%{transform:scale(0)}50%{transform:scale(1.5)}100%{transform:scale(1)}}.ai1wm-button-group{border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;text-transform:uppercase;font-weight:600;transition:background-color .2s ease-out;display:inline-block;text-align:left}.ai1wm-button-group.ai1wm-button-export{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-export.ai1wm-open>.ai1wm-dropdown-menu{height:456px;border-top:1px solid #27ae60}.ai1wm-button-group.ai1wm-button-import{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-import.ai1wm-open>.ai1wm-dropdown-menu{height:484px;border-top:1px solid #27ae60}.ai1wm-button-group .ai1wm-button-main{position:relative;padding:6px 50px 6px 25px;box-sizing:content-box}.ai1wm-button-group .ai1wm-dropdown-menu{height:0;overflow:hidden;transition:height .2s cubic-bezier(0.19, 1, 0.22, 1);border-top:none}.ai1wm-dropdown-menu{margin:0 !important;padding:0;list-style:none}.ai1wm-dropdown-menu li{margin:0 !important;padding:0}.ai1wm-dropdown-menu li a,.ai1wm-dropdown-menu li a:visited{display:block;padding:5px 26px;text-decoration:none;color:#27ae60;text-align:left;box-sizing:content-box}.ai1wm-dropdown-menu li a:hover,.ai1wm-dropdown-menu li a:visited:hover{text-decoration:none;color:#111}.ai1mw-lines{position:absolute;width:12px;height:10px;top:9px;right:20px}.ai1wm-line{position:absolute;width:100%;height:2px;margin:auto;background:#27ae60;transition:all .2s ease-in-out}.ai1wm-line-first{top:0;left:0}div.ai1wm-open .ai1wm-line-first,div.ai1wm-open .ai1wm-line-third{top:50%}.ai1wm-line-second{top:50%;left:0}.ai1wm-line-third{top:100%;left:0}.ai1wm-button-gray{display:inline-block;border:2px solid #95a5a6;background-color:rgba(0,0,0,0);color:#95a5a6;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-gray:hover{background-color:#95a5a6;color:#fff}.ai1wm-button-green{display:inline-block;border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green:hover{background-color:#27ae60;color:#fff}.ai1wm-button-green-small{display:inline-block;border:2px solid #6eb649;background-color:rgba(0,0,0,0);color:#6eb649;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green-small:hover{background-color:#6eb649;color:#fff}.ai1wm-button-blue{display:inline-block;border:2px solid #00aff0;background-color:rgba(0,0,0,0);color:#00aff0;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-blue:hover{background-color:#00aff0;color:#fff}.ai1wm-button-red{display:inline-block;border:2px solid #e74c3c;background-color:rgba(0,0,0,0);color:#e74c3c;border-radius:5px;cursor:pointer;padding:5px 25px 5px 26px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-red:hover{background-color:#e74c3c;color:#fff}.ai1wm-button-blue[disabled=disabled],.ai1wm-button-green[disabled=disabled],.ai1wm-button-red[disabled=disabled],.ai1wm-button-green-small[disabled=disabled]{opacity:.6;cursor:default}.ai1wm-button-blue[disabled=disabled]:hover{color:#00aff0}.ai1wm-button-red[disabled=disabled]:hover{color:#e74c3c}.ai1wm-button-green[disabled=disabled]:hover{color:#27ae60}.ai1wm-button-blue[disabled=disabled]:hover,.ai1wm-button-green[disabled=disabled]:hover,.ai1wm-button-red[disabled=disabled]:hover,.ai1wm-button-green-small[disabled=disabled]:hover{background:none}.ai1wm-message-close-button{position:absolute;right:10px;top:6px;text-decoration:none;font-size:10px}input[type=radio].ai1wm-flat-radio-button{display:none}input[type=radio].ai1wm-flat-radio-button+a i,input[type=radio].ai1wm-flat-radio-button+label i{vertical-align:middle;float:left;width:25px;height:25px;border-radius:50%;background:rgba(0,0,0,0);border:2px solid #ccc;content:" ";cursor:pointer;position:relative;box-sizing:content-box}input[type=radio].ai1wm-flat-radio-button:checked+a i,input[type=radio].ai1wm-flat-radio-button:checked+label i{background-color:#d9d9d9;border-color:#6f6f6f}.ai1wm-clear{*zoom:1;clear:both}.ai1wm-clear:after,.ai1wm-clear:before{content:" ";display:table}.ai1wm-clear:after{clear:both}.ai1wm-container .ai1wm-row label{position:relative;top:-1px}.ai1wm-container .ai1wm-row label:after{content:"‎"}.ai1wm-share-button-container{text-align:center}.ai1wm-share-button-container .ai1wm-share-button{text-decoration:none;margin:10px;font-size:30px}.ai1wm-feedback-cancel:link,.ai1wm-feedback-cancel:visited,.ai1wm-feedback-cancel:active{float:left;line-height:34px;outline:0;text-decoration:none;color:#e74c3c}.ai1wm-form-submit{float:right}.ai1wm-no-underline{text-decoration:none}.ai1wm-top-positive-four{position:relative;top:4px}.ai1wm-top-positive-two{position:relative;top:2px}.ai1wm-feedback-form{display:none}.ai1wm-feedback-types{margin:0;padding:0;list-style:none}.ai1wm-feedback-types li{margin:14px 0;padding:0}.ai1wm-feedback-types>li>label>span{display:inline-block;padding:5px 0px 6px 8px}.ai1wm-feedback-types>li>a{height:29px;outline:none;color:#333;text-decoration:none}.ai1wm-feedback-types>li>a>span{display:inline-block;padding:5px 0px 6px 8px}.ai1wm-loader{display:inline-block;width:128px;height:128px;position:relative;animation:ai1wm-rotate 1.5s infinite linear;background:url("../img/logo-128x128.png");background-repeat:no-repeat;background-position:center center}.ai1wm-hide{display:none}.ai1wm-label{border:1px solid #5cb85c;background-color:rgba(0,0,0,0);color:#5cb85c;cursor:pointer;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;padding:.2em .6em;font-size:.8em;border-radius:5px}.ai1wm-label:hover{background-color:#5cb85c;color:#fff}.ai1wm-dialog-message{text-align:left;line-height:1.5em}.ai1wm-import-info{display:inline-block;font-size:12px;font-weight:bold;margin-top:16px}.ai1wm-import-info a{text-decoration:none}.ai1wm-import-title{display:inline-block;font-size:12px;font-weight:bold}.ai1wm-button-download,.ai1wm-direct-download{top:.5em !important}.ai1wm-button-download span,.ai1wm-direct-download span{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai1wm-mt-20{margin-top:20px}.ai1wm-left-aligned{text-align:left}[class^=ai1wm-icon-],[class*=" ai1wm-icon-"]{font-family:"servmask";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ai1wm-icon-file-zip:before{content:""}.ai1wm-icon-folder:before{content:""}.ai1wm-icon-file:before{content:""}.ai1wm-icon-file-content:before{content:""}.ai1wm-icon-cloud-upload:before{content:""}.ai1wm-icon-history:before{content:""}.ai1wm-icon-notification:before{content:""}.ai1wm-icon-arrow-down:before{content:""}.ai1wm-icon-close:before{content:""}.ai1wm-icon-wordpress2:before{content:""}.ai1wm-icon-arrow-right:before{content:""}.ai1wm-icon-plus2:before{content:""}.ai1wm-icon-edit-pencil:before{content:""}.ai1wm-icon-export:before{content:""}.ai1wm-icon-publish:before{content:""}.ai1wm-icon-paperplane:before{content:""}.ai1wm-icon-help:before{content:""}.ai1wm-icon-chevron-right:before{content:""}.ai1wm-icon-chevron-right2:before{content:""}.ai1wm-icon-chevron-left2:before{content:""}.ai1wm-icon-dropbox:before{content:""}.ai1wm-icon-gear:before{content:""}.ai1wm-icon-database:before{content:""}.ai1wm-icon-upload2:before{content:""}.ai1wm-icon-checkmark:before{content:""}.ai1wm-icon-checkmark2:before{content:""}.ai1wm-icon-enter:before{content:""}.ai1wm-icon-exit:before{content:""}.ai1wm-icon-amazon:before{content:""}.ai1wm-icon-onedrive:before{content:""}.ai1wm-icon-folder-secondary:before{content:""}.ai1wm-icon-folder-secondary-open:before{content:""}.ai1wm-icon-dots-horizontal-triple:before{content:""}.ai1wm-icon-bullhorn:before{content:""}.ai1wm-icon-eye:before{content:""}.ai1wm-icon-eye-blocked:before{content:""}.ai1wm-icon-power-cord:before{content:""}.ai1wm-icon-image:before{content:""}.ai1wm-icon-file-video:before{content:""}.ai1wm-icon-stack:before{content:""}.ai1wm-icon-table:before{content:""}.ai1wm-icon-calendar:before{content:""}.ai1wm-icon-play:before{content:""}.ai1wm-icon-broom:before{content:""}.ai1wm-icon-facebook:before{content:""}.ai1wm-icon-x:before{content:""}.ai1wm-icon-youtube:before{content:""}@media(min-width: 855px){.ai1wm-row{margin-right:399px}.ai1wm-row:before,.ai1wm-row:after{content:" ";display:table}.ai1wm-row:after{clear:both}.ai1wm-left{float:left;width:100%}.ai1wm-right{float:right;width:377px;margin-right:-399px}.ai1wm-right .ai1wm-sidebar{width:100%}.ai1wm-right .ai1wm-segment{width:333px;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;color:#333;background-color:#f9f9f9;padding:20px;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box}.ai1wm-right .ai1wm-segment h2{margin:22px 0 0 0;padding:0;font-weight:bold;font-size:14px;text-transform:uppercase;text-align:center}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-holder{position:relative;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-holder h1{margin:0;padding:0;float:left;font-weight:300;font-size:22px;text-transform:uppercase}.ai1wm-holder h1 i{position:relative;top:2px}@media(max-width: 854px){.ai1wm-container{margin-left:10px !important}.ai1wm-row{margin-right:0px !important}.ai1wm-right{float:left !important;width:100% !important;margin-top:18px;margin-right:0 !important}.ai1wm-right .ai1wm-sidebar{width:auto !important;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0;border-radius:3px}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-container{margin:20px 20px 0px 2px}.ai1wm-container:before,.ai1wm-container:after{content:" ";display:table}.ai1wm-container:after{clear:both}.ai1wm-replace-row{width:100%;box-shadow:outset 0 1px 0 0 #fff;border-radius:3px;color:#333;font-size:11px;font-weight:bold;background-color:#f9f9f9;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box;margin-bottom:10px}.ai1wm-field{margin-bottom:4px}.ai1wm-field input[type=text],.ai1wm-field textarea{width:100%;font-weight:normal}.ai1wm-field-set{margin-top:18px}.ai1wm-message{-moz-box-sizing:border-box;background-color:#efefef;border-radius:4px;color:rgba(0,0,0,.6);height:auto;margin:10px 0;min-height:18px;padding:6px 10px;position:relative;border:1px solid;transition:opacity .1s ease 0s,color .1s ease 0s,background .1s ease 0s,box-shadow .1s ease 0s}.ai1wm-message.ai1wm-success-message{background-color:#f2f8f0;color:#119000;font-size:12px}.ai1wm-message.ai1wm-info-message{background-color:#d9edf7;color:#31708f;font-size:11px}.ai1wm-message.ai1wm-error-message{background-color:#f1d7d7;color:#a95252;font-size:12px}.ai1wm-message.ai1wm-red-message{color:#d95c5c;border:2px solid #d95c5c;background-color:rgba(0,0,0,0)}.ai1wm-message.ai1wm-red-message h3{margin:.4em 0;color:#d95c5c}.ai1wm-message p{margin:4px 0;font-size:12px}.ai1wm-message-warning{display:block;font-size:14px;line-height:18px;padding:12px 20px;margin:0 0 22px 0;background-color:#f9f9f9;border:1px solid #d6d6d6;border-radius:3px;box-shadow:0 1px 0 0 #fff inset;border-left:4px solid #ffba00}.ai1wm-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);z-index:100001}.ai1wm-modal-container{position:fixed;display:none;top:50%;left:50%;z-index:100002;width:480px;height:auto;padding:16px;transform:translate(-240px, -94px);border:1px solid #fff;box-shadow:0px 2px 6px #292929;border-radius:6px;background:#f6f6f6;box-sizing:border-box;text-align:center}.ai1wm-modal-container.ai1wm-modal-container-v2{display:block;transform:translate(-50%, -50%);max-height:400px;overflow-y:auto;text-align:left;padding:0;border:0;border-radius:0}.ai1wm-modal-container.ai1wm-modal-container-v2.ai1wm-modal-loading{width:auto;overflow:hidden;border-radius:1em}.ai1wm-modal-container.ai1wm-modal-container-v2 h1{text-transform:none}.ai1wm-modal-container section{display:block;min-height:102px}.ai1wm-modal-container section h1{margin:0;padding:0}.ai1wm-modal-container section h1 .ai1wm-title-green{color:#27ae60;font-size:.7em}.ai1wm-modal-container section h1 .ai1wm-title-red{color:#e74c3c;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-title-grey{color:gray;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-loader{width:32px;height:32px;background:url("../img/logo-32x32.png")}.ai1wm-modal-container section h1 .ai1wm-icon-notification{font-size:1.2em;color:#e74c3c}.ai1wm-modal-container section p{margin:0;padding:12px 0}.ai1wm-modal-container section p .ai1wm-modal-sites p{padding:4px 10px;text-align:left}.ai1wm-modal-container section p .ai1wm-modal-sites input,.ai1wm-modal-container section p .ai1wm-modal-sites select{padding:0 6px;width:100%;max-width:100%;border-radius:3px;height:30px;line-height:30px}.ai1wm-modal-container section p .ai1wm-modal-subtitle-green{color:#27ae60}.ai1wm-modal-container section p .ai1wm-modal-subtitle-red{color:#e74c3c}.ai1wm-modal-container section p .ai1wm-modal-subdescription{display:block;text-align:left}.ai1wm-modal-container section p a.ai1wm-button-green{display:inline-block;position:relative;top:26px}.ai1wm-modal-container section p a.ai1wm-emphasize{animation:ai1wm-emphasize 1s infinite}.ai1wm-modal-container section p em{display:block;color:#34495e;font-style:normal}.ai1wm-modal-container section p.ai1wm-import-modal-content{text-align:left}.ai1wm-modal-container section p.ai1wm-import-modal-content-done{text-align:left;padding:1.62em .5em}.ai1wm-modal-container .ai1wm-import-modal-actions{border-top:1px solid #ccc;padding-top:1em;text-align:right}.ai1wm-modal-container .ai1wm-import-modal-actions .ai1wm-button-gray{margin-right:1em}.ai1wm-modal-container .ai1wm-import-modal-notice{border-top:1px solid #ccc}.ai1wm-modal-container .ai1wm-import-modal-notice p{font-weight:bold;margin:0;padding-top:16px;text-align:center}.ai1wm-spin-container{height:50px;width:50px;position:relative;display:block;padding:1.5em}.ai1wm-spinner{display:flex;position:absolute;width:50px;height:50px;animation-iteration-count:infinite;animation-timing-function:linear}.ai1wm-spinner.ai1wm-spin-left{animation-duration:2000ms;animation-name:ai1wm-spin-left}.ai1wm-spinner.ai1wm-spin-right{animation-duration:4000ms;animation-name:ai1wm-spin-right}@keyframes ai1wm-spin-left{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes ai1wm-spin-right{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.ai1wm-social-share-wrapper{display:flex;justify-content:center;gap:20px;margin-bottom:15px;padding:10px 0}.ai1wm-social-icon{text-decoration:none !important;font-size:20px;color:#444;display:inline-block;transition:color .2s ease}.ai1wm-social-icon.icon-x:hover{color:#000}.ai1wm-social-icon.icon-facebook:hover{color:#1877f2}.ai1wm-social-icon.icon-youtube:hover{color:red}.ai1wm-social-icon i{display:block;line-height:1} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/servmask.min.rtl.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/servmask.min.rtl.css new file mode 100644 index 0000000..98a4d3b --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/servmask.min.rtl.css @@ -0,0 +1 @@ +.ai1wm-accordion{margin:1em 0;display:block}.ai1wm-accordion h4{cursor:pointer;color:rgba(0,116,162,.8);margin:0}.ai1wm-accordion h4 small{color:#444;font-weight:normal;display:inline;float:none;width:auto}.ai1wm-accordion h4 small:after{content:"‎"}.ai1wm-accordion .ai1wm-icon-arrow-right{transition:transform .1s ease-out;display:inline-block}.ai1wm-accordion ul{margin:0;padding:0;list-style:none;visibility:hidden;height:0;transition:height .2s cubic-bezier(0.19, 1, 0.22, 1)}.ai1wm-accordion ul li small{display:inline;float:none;width:auto}.ai1wm-accordion.ai1wm-open h4 .ai1wm-icon-arrow-right{transform:rotate(-90deg)}.ai1wm-accordion.ai1wm-open ul{height:auto;margin:.6em 2em 0 0;visibility:visible}@keyframes ai1wm-rotate{0%{transform:rotateZ(0)}25%{transform:rotateZ(90deg)}50%{transform:rotateZ(180deg)}75%{transform:rotateZ(270deg)}100%{transform:rotateZ(360deg)}}@keyframes ai1wm-emphasize{0%{transform:scale(1)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes ai1wm-fadein{0%{transform:scale(0)}50%{transform:scale(1.5)}100%{transform:scale(1)}}.ai1wm-button-group{border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;text-transform:uppercase;font-weight:600;transition:background-color .2s ease-out;display:inline-block;text-align:right}.ai1wm-button-group.ai1wm-button-export{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-export.ai1wm-open>.ai1wm-dropdown-menu{height:456px;border-top:1px solid #27ae60}.ai1wm-button-group.ai1wm-button-import{box-sizing:content-box}.ai1wm-button-group.ai1wm-button-import.ai1wm-open>.ai1wm-dropdown-menu{height:484px;border-top:1px solid #27ae60}.ai1wm-button-group .ai1wm-button-main{position:relative;padding:6px 25px 6px 50px;box-sizing:content-box}.ai1wm-button-group .ai1wm-dropdown-menu{height:0;overflow:hidden;transition:height .2s cubic-bezier(0.19, 1, 0.22, 1);border-top:none}.ai1wm-dropdown-menu{margin:0 !important;padding:0;list-style:none}.ai1wm-dropdown-menu li{margin:0 !important;padding:0}.ai1wm-dropdown-menu li a,.ai1wm-dropdown-menu li a:visited{display:block;padding:5px 26px;text-decoration:none;color:#27ae60;text-align:right;box-sizing:content-box}.ai1wm-dropdown-menu li a:hover,.ai1wm-dropdown-menu li a:visited:hover{text-decoration:none;color:#111}.ai1mw-lines{position:absolute;width:12px;height:10px;top:9px;left:20px}.ai1wm-line{position:absolute;width:100%;height:2px;margin:auto;background:#27ae60;transition:all .2s ease-in-out}.ai1wm-line-first{top:0;right:0}div.ai1wm-open .ai1wm-line-first,div.ai1wm-open .ai1wm-line-third{top:50%}.ai1wm-line-second{top:50%;right:0}.ai1wm-line-third{top:100%;right:0}.ai1wm-button-gray{display:inline-block;border:2px solid #95a5a6;background-color:rgba(0,0,0,0);color:#95a5a6;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-gray:hover{background-color:#95a5a6;color:#fff}.ai1wm-button-green{display:inline-block;border:2px solid #27ae60;background-color:rgba(0,0,0,0);color:#27ae60;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green:hover{background-color:#27ae60;color:#fff}.ai1wm-button-green-small{display:inline-block;border:2px solid #6eb649;background-color:rgba(0,0,0,0);color:#6eb649;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-green-small:hover{background-color:#6eb649;color:#fff}.ai1wm-button-blue{display:inline-block;border:2px solid #00aff0;background-color:rgba(0,0,0,0);color:#00aff0;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-blue:hover{background-color:#00aff0;color:#fff}.ai1wm-button-red{display:inline-block;border:2px solid #e74c3c;background-color:rgba(0,0,0,0);color:#e74c3c;border-radius:5px;cursor:pointer;padding:5px 26px 5px 25px;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;text-decoration:none}.ai1wm-button-red:hover{background-color:#e74c3c;color:#fff}.ai1wm-button-blue[disabled=disabled],.ai1wm-button-green[disabled=disabled],.ai1wm-button-red[disabled=disabled],.ai1wm-button-green-small[disabled=disabled]{opacity:.6;cursor:default}.ai1wm-button-blue[disabled=disabled]:hover{color:#00aff0}.ai1wm-button-red[disabled=disabled]:hover{color:#e74c3c}.ai1wm-button-green[disabled=disabled]:hover{color:#27ae60}.ai1wm-button-blue[disabled=disabled]:hover,.ai1wm-button-green[disabled=disabled]:hover,.ai1wm-button-red[disabled=disabled]:hover,.ai1wm-button-green-small[disabled=disabled]:hover{background:none}.ai1wm-message-close-button{position:absolute;left:10px;top:6px;text-decoration:none;font-size:10px}input[type=radio].ai1wm-flat-radio-button{display:none}input[type=radio].ai1wm-flat-radio-button+a i,input[type=radio].ai1wm-flat-radio-button+label i{vertical-align:middle;float:right;width:25px;height:25px;border-radius:50%;background:rgba(0,0,0,0);border:2px solid #ccc;content:" ";cursor:pointer;position:relative;box-sizing:content-box}input[type=radio].ai1wm-flat-radio-button:checked+a i,input[type=radio].ai1wm-flat-radio-button:checked+label i{background-color:#d9d9d9;border-color:#6f6f6f}.ai1wm-clear{*zoom:1;clear:both}.ai1wm-clear:after,.ai1wm-clear:before{content:" ";display:table}.ai1wm-clear:after{clear:both}.ai1wm-container .ai1wm-row label{position:relative;top:-1px}.ai1wm-container .ai1wm-row label:after{content:"‎"}.ai1wm-share-button-container{text-align:center}.ai1wm-share-button-container .ai1wm-share-button{text-decoration:none;margin:10px;font-size:30px}.ai1wm-feedback-cancel:link,.ai1wm-feedback-cancel:visited,.ai1wm-feedback-cancel:active{float:right;line-height:34px;outline:0;text-decoration:none;color:#e74c3c}.ai1wm-form-submit{float:left}.ai1wm-no-underline{text-decoration:none}.ai1wm-top-positive-four{position:relative;top:4px}.ai1wm-top-positive-two{position:relative;top:2px}.ai1wm-feedback-form{display:none}.ai1wm-feedback-types{margin:0;padding:0;list-style:none}.ai1wm-feedback-types li{margin:14px 0;padding:0}.ai1wm-feedback-types>li>label>span{display:inline-block;padding:5px 8px 6px 0px}.ai1wm-feedback-types>li>a{height:29px;outline:none;color:#333;text-decoration:none}.ai1wm-feedback-types>li>a>span{display:inline-block;padding:5px 8px 6px 0px}.ai1wm-loader{display:inline-block;width:128px;height:128px;position:relative;animation:ai1wm-rotate 1.5s infinite linear;background:url("../img/logo-128x128.png");background-repeat:no-repeat;background-position:center center}.ai1wm-hide{display:none}.ai1wm-label{border:1px solid #5cb85c;background-color:rgba(0,0,0,0);color:#5cb85c;cursor:pointer;text-transform:uppercase;font-weight:600;outline:none;transition:background-color .2s ease-out;padding:.2em .6em;font-size:.8em;border-radius:5px}.ai1wm-label:hover{background-color:#5cb85c;color:#fff}.ai1wm-dialog-message{text-align:right;line-height:1.5em}.ai1wm-import-info{display:inline-block;font-size:12px;font-weight:bold;margin-top:16px}.ai1wm-import-info a{text-decoration:none}.ai1wm-import-title{display:inline-block;font-size:12px;font-weight:bold}.ai1wm-button-download,.ai1wm-direct-download{top:.5em !important}.ai1wm-button-download span,.ai1wm-direct-download span{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai1wm-mt-20{margin-top:20px}.ai1wm-left-aligned{text-align:right}[class^=ai1wm-icon-],[class*=" ai1wm-icon-"]{font-family:"servmask";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ai1wm-icon-file-zip:before{content:""}.ai1wm-icon-folder:before{content:""}.ai1wm-icon-file:before{content:""}.ai1wm-icon-file-content:before{content:""}.ai1wm-icon-cloud-upload:before{content:""}.ai1wm-icon-history:before{content:""}.ai1wm-icon-notification:before{content:""}.ai1wm-icon-arrow-down:before{content:""}.ai1wm-icon-close:before{content:""}.ai1wm-icon-wordpress2:before{content:""}.ai1wm-icon-arrow-right:before{content:""}.ai1wm-icon-plus2:before{content:""}.ai1wm-icon-edit-pencil:before{content:""}.ai1wm-icon-export:before{content:""}.ai1wm-icon-publish:before{content:""}.ai1wm-icon-paperplane:before{content:""}.ai1wm-icon-help:before{content:""}.ai1wm-icon-chevron-right:before{content:""}.ai1wm-icon-chevron-right2:before{content:""}.ai1wm-icon-chevron-left2:before{content:""}.ai1wm-icon-dropbox:before{content:""}.ai1wm-icon-gear:before{content:""}.ai1wm-icon-database:before{content:""}.ai1wm-icon-upload2:before{content:""}.ai1wm-icon-checkmark:before{content:""}.ai1wm-icon-checkmark2:before{content:""}.ai1wm-icon-enter:before{content:""}.ai1wm-icon-exit:before{content:""}.ai1wm-icon-amazon:before{content:""}.ai1wm-icon-onedrive:before{content:""}.ai1wm-icon-folder-secondary:before{content:""}.ai1wm-icon-folder-secondary-open:before{content:""}.ai1wm-icon-dots-horizontal-triple:before{content:""}.ai1wm-icon-bullhorn:before{content:""}.ai1wm-icon-eye:before{content:""}.ai1wm-icon-eye-blocked:before{content:""}.ai1wm-icon-power-cord:before{content:""}.ai1wm-icon-image:before{content:""}.ai1wm-icon-file-video:before{content:""}.ai1wm-icon-stack:before{content:""}.ai1wm-icon-table:before{content:""}.ai1wm-icon-calendar:before{content:""}.ai1wm-icon-play:before{content:""}.ai1wm-icon-broom:before{content:""}.ai1wm-icon-facebook:before{content:""}.ai1wm-icon-x:before{content:""}.ai1wm-icon-youtube:before{content:""}@media(min-width: 855px){.ai1wm-row{margin-left:399px}.ai1wm-row:before,.ai1wm-row:after{content:" ";display:table}.ai1wm-row:after{clear:both}.ai1wm-left{float:right;width:100%}.ai1wm-right{float:left;width:377px;margin-left:-399px}.ai1wm-right .ai1wm-sidebar{width:100%}.ai1wm-right .ai1wm-segment{width:333px;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;color:#333;background-color:#f9f9f9;padding:20px;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box}.ai1wm-right .ai1wm-segment h2{margin:22px 0 0 0;padding:0;font-weight:bold;font-size:14px;text-transform:uppercase;text-align:center}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-holder{position:relative;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-holder h1{margin:0;padding:0;float:right;font-weight:300;font-size:22px;text-transform:uppercase}.ai1wm-holder h1 i{position:relative;top:2px}@media(max-width: 854px){.ai1wm-container{margin-right:10px !important}.ai1wm-row{margin-left:0px !important}.ai1wm-right{float:right !important;width:100% !important;margin-top:18px;margin-left:0 !important}.ai1wm-right .ai1wm-sidebar{width:auto !important;border:1px solid #d6d6d6;border-radius:3px;box-shadow:inset 0 1px 0 0 #fff;padding:20px;background:#f9f9f9}.ai1wm-right .ai1wm-feedback-email{width:100%;font-weight:normal;font-size:.8rem;height:2.3rem;line-height:2.3rem;border-radius:5px;margin-bottom:4px;padding:0 10px}.ai1wm-right .ai1wm-feedback-message{width:100%;border-radius:3px;font-size:.8rem;padding:6px 10px;resize:none}.ai1wm-right .ai1wm-feedback-terms-segment{font-size:.7rem;line-height:1rem;margin:4px 0 8px 0;border-radius:3px}.ai1wm-right .ai1wm-feedback-terms-segment>.ai1wm-feedback-terms{border-radius:3px}}.ai1wm-container{margin:20px 2px 0px 20px}.ai1wm-container:before,.ai1wm-container:after{content:" ";display:table}.ai1wm-container:after{clear:both}.ai1wm-replace-row{width:100%;box-shadow:outset 0 1px 0 0 #fff;border-radius:3px;color:#333;font-size:11px;font-weight:bold;background-color:#f9f9f9;text-decoration:none;text-shadow:0 1px 0 #fff;background-clip:padding-box;margin-bottom:10px}.ai1wm-field{margin-bottom:4px}.ai1wm-field input[type=text],.ai1wm-field textarea{width:100%;font-weight:normal}.ai1wm-field-set{margin-top:18px}.ai1wm-message{-moz-box-sizing:border-box;background-color:#efefef;border-radius:4px;color:rgba(0,0,0,.6);height:auto;margin:10px 0;min-height:18px;padding:6px 10px;position:relative;border:1px solid;transition:opacity .1s ease 0s,color .1s ease 0s,background .1s ease 0s,box-shadow .1s ease 0s}.ai1wm-message.ai1wm-success-message{background-color:#f2f8f0;color:#119000;font-size:12px}.ai1wm-message.ai1wm-info-message{background-color:#d9edf7;color:#31708f;font-size:11px}.ai1wm-message.ai1wm-error-message{background-color:#f1d7d7;color:#a95252;font-size:12px}.ai1wm-message.ai1wm-red-message{color:#d95c5c;border:2px solid #d95c5c;background-color:rgba(0,0,0,0)}.ai1wm-message.ai1wm-red-message h3{margin:.4em 0;color:#d95c5c}.ai1wm-message p{margin:4px 0;font-size:12px}.ai1wm-message-warning{display:block;font-size:14px;line-height:18px;padding:12px 20px;margin:0 0 22px 0;background-color:#f9f9f9;border:1px solid #d6d6d6;border-radius:3px;box-shadow:0 1px 0 0 #fff inset;border-right:4px solid #ffba00}.ai1wm-overlay{display:none;position:fixed;top:0;right:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);z-index:100001}.ai1wm-modal-container{position:fixed;display:none;top:50%;right:50%;z-index:100002;width:480px;height:auto;padding:16px;transform:translate(240px, -94px);border:1px solid #fff;box-shadow:0px 2px 6px #292929;border-radius:6px;background:#f6f6f6;box-sizing:border-box;text-align:center}.ai1wm-modal-container.ai1wm-modal-container-v2{display:block;transform:translate(50%, -50%);max-height:400px;overflow-y:auto;text-align:right;padding:0;border:0;border-radius:0}.ai1wm-modal-container.ai1wm-modal-container-v2.ai1wm-modal-loading{width:auto;overflow:hidden;border-radius:1em}.ai1wm-modal-container.ai1wm-modal-container-v2 h1{text-transform:none}.ai1wm-modal-container section{display:block;min-height:102px}.ai1wm-modal-container section h1{margin:0;padding:0}.ai1wm-modal-container section h1 .ai1wm-title-green{color:#27ae60;font-size:.7em}.ai1wm-modal-container section h1 .ai1wm-title-red{color:#e74c3c;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-title-grey{color:gray;font-size:20px}.ai1wm-modal-container section h1 .ai1wm-loader{width:32px;height:32px;background:url("../img/logo-32x32.png")}.ai1wm-modal-container section h1 .ai1wm-icon-notification{font-size:1.2em;color:#e74c3c}.ai1wm-modal-container section p{margin:0;padding:12px 0}.ai1wm-modal-container section p .ai1wm-modal-sites p{padding:4px 10px;text-align:right}.ai1wm-modal-container section p .ai1wm-modal-sites input,.ai1wm-modal-container section p .ai1wm-modal-sites select{padding:0 6px;width:100%;max-width:100%;border-radius:3px;height:30px;line-height:30px}.ai1wm-modal-container section p .ai1wm-modal-subtitle-green{color:#27ae60}.ai1wm-modal-container section p .ai1wm-modal-subtitle-red{color:#e74c3c}.ai1wm-modal-container section p .ai1wm-modal-subdescription{display:block;text-align:right}.ai1wm-modal-container section p a.ai1wm-button-green{display:inline-block;position:relative;top:26px}.ai1wm-modal-container section p a.ai1wm-emphasize{animation:ai1wm-emphasize 1s infinite}.ai1wm-modal-container section p em{display:block;color:#34495e;font-style:normal}.ai1wm-modal-container section p.ai1wm-import-modal-content{text-align:right}.ai1wm-modal-container section p.ai1wm-import-modal-content-done{text-align:right;padding:1.62em .5em}.ai1wm-modal-container .ai1wm-import-modal-actions{border-top:1px solid #ccc;padding-top:1em;text-align:left}.ai1wm-modal-container .ai1wm-import-modal-actions .ai1wm-button-gray{margin-left:1em}.ai1wm-modal-container .ai1wm-import-modal-notice{border-top:1px solid #ccc}.ai1wm-modal-container .ai1wm-import-modal-notice p{font-weight:bold;margin:0;padding-top:16px;text-align:center}.ai1wm-spin-container{height:50px;width:50px;position:relative;display:block;padding:1.5em}.ai1wm-spinner{display:flex;position:absolute;width:50px;height:50px;animation-iteration-count:infinite;animation-timing-function:linear}.ai1wm-spinner.ai1wm-spin-left{animation-duration:2000ms;animation-name:ai1wm-spin-left}.ai1wm-spinner.ai1wm-spin-right{animation-duration:4000ms;animation-name:ai1wm-spin-right}@keyframes ai1wm-spin-left{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}@keyframes ai1wm-spin-right{from{transform:rotate(-360deg)}to{transform:rotate(0deg)}}.ai1wm-social-share-wrapper{display:flex;justify-content:center;gap:20px;margin-bottom:15px;padding:10px 0}.ai1wm-social-icon{text-decoration:none !important;font-size:20px;color:#444;display:inline-block;transition:color .2s ease}.ai1wm-social-icon.icon-x:hover{color:#000}.ai1wm-social-icon.icon-facebook:hover{color:#1877f2}.ai1wm-social-icon.icon-youtube:hover{color:red}.ai1wm-social-icon i{display:block;line-height:1} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/updater.min.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/updater.min.css new file mode 100644 index 0000000..baf5c18 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/updater.min.css @@ -0,0 +1 @@ +.ai1wm-update-message,.ai1wm-error-message{padding:0;margin:0;color:red} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/updater.min.rtl.css b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/updater.min.rtl.css new file mode 100644 index 0000000..baf5c18 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/updater.min.rtl.css @@ -0,0 +1 @@ +.ai1wm-update-message,.ai1wm-error-message{padding:0;margin:0;color:red} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/font/servmask.eot b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/font/servmask.eot new file mode 100644 index 0000000..c0bcf87 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/font/servmask.eot differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/font/servmask.svg b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/font/servmask.svg new file mode 100644 index 0000000..c468762 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/font/servmask.svg @@ -0,0 +1,56 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/font/servmask.ttf b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/font/servmask.ttf new file mode 100644 index 0000000..f730440 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/font/servmask.ttf differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/font/servmask.woff b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/font/servmask.woff new file mode 100644 index 0000000..71d0c1d Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/font/servmask.woff differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/ajax-loader.gif b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/ajax-loader.gif new file mode 100644 index 0000000..0dc0b91 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/ajax-loader.gif differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/logo-128x128.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/logo-128x128.png new file mode 100644 index 0000000..723ef23 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/logo-128x128.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/logo-20x20.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/logo-20x20.png new file mode 100644 index 0000000..dcbfcc8 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/logo-20x20.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/logo-32x32.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/logo-32x32.png new file mode 100644 index 0000000..ea281a2 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/logo-32x32.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/logo.svg b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/logo.svg new file mode 100644 index 0000000..545d816 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/logo.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/reset/screen.jpg b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/reset/screen.jpg new file mode 100644 index 0000000..c01a792 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/reset/screen.jpg differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/reset/star.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/reset/star.png new file mode 100644 index 0000000..6ede45b Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/reset/star.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/backup-scheduler.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/backup-scheduler.png new file mode 100644 index 0000000..6c931a2 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/backup-scheduler.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/dropbox-storage.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/dropbox-storage.png new file mode 100644 index 0000000..5e6638c Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/dropbox-storage.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/ftp-storage.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/ftp-storage.png new file mode 100644 index 0000000..97ab5c0 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/ftp-storage.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/google-drive-storage.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/google-drive-storage.png new file mode 100644 index 0000000..0dc3d77 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/google-drive-storage.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/more-storage-providers.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/more-storage-providers.png new file mode 100644 index 0000000..9a0f0bf Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/more-storage-providers.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/multisite-schedules.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/multisite-schedules.png new file mode 100644 index 0000000..859df55 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/multisite-schedules.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/notification-settings.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/notification-settings.png new file mode 100644 index 0000000..e06ce10 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/notification-settings.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/onedrive-storage.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/onedrive-storage.png new file mode 100644 index 0000000..e13c93f Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/onedrive-storage.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/retention-settings.png b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/retention-settings.png new file mode 100644 index 0000000..4c331b6 Binary files /dev/null and b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/img/schedules/retention-settings.png differ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/backups.min.js b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/backups.min.js new file mode 100644 index 0000000..ad999d7 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/backups.min.js @@ -0,0 +1 @@ +(()=>{var e={284(e,t,n){const o=n(37);e.exports=function(){(new o).setStatus({type:"pro",message:ai1wm_locale.restore_from_file})}},11(e,t,n){const o=n(132),s=jQuery,i=function(){const e=this;this.params=[],this.modal=new o,this.modal.onStop=function(t){e.onStop(t)}};i.prototype.setParams=function(e){this.params=Ai1wm.Util.list(e)},i.prototype.start=function(e,t){const n=this;if(0===(t=t||0)&&this.stopExport(!1),this.isExportStopped())return;s(window).on("beforeunload",function(){return ai1wm_locale.stop_exporting_your_website}),this.setStatus({type:"info",message:ai1wm_locale.preparing_to_export});let o=this.params.concat({name:"secret_key",value:ai1wm_export.secret_key});e&&(o=o.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_export.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){n.getStatus()}).done(function(e){e&&n.run(e)}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopExport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopExport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:ai1wm_locale.unable_to_start_the_export,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.start.bind(n,e,t),i)})},i.prototype.run=function(e,t){const n=this;t=t||0,this.isExportStopped()||s.ajax({url:ai1wm_export.ajax.url,type:"POST",dataType:"json",data:e,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(e){e&&n.run(e)}).fail(function(o){const s=1e3*t;try{const t=Ai1wm.Util.json(o.responseText);if(t){const o=JSON.parse(t).errors.pop();if(o.message)return n.stopExport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:o.message,nonce:Ai1wm.Util.findValueByName(e,"storage")})}}catch(e){}if(t>=5)return n.stopExport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:ai1wm_locale.unable_to_run_the_export,nonce:Ai1wm.Util.findValueByName(e,"storage")});t++,setTimeout(n.run.bind(n,e,t),s)})},i.prototype.clean=function(e,t){const n=this;0===(t=t||0)&&this.stopExport(!0),this.setStatus({type:"info",message:ai1wm_locale.please_wait_stopping_the_export});let o=this.params.concat({name:"secret_key",value:ai1wm_export.secret_key}).concat({name:"priority",value:300}).concat({name:"ai1wm_export_cancel",value:1});e&&(o=o.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_export.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){s(window).off("beforeunload"),n.modal.destroy()}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopExport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopExport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:ai1wm_locale.unable_to_stop_the_export,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.clean.bind(n,e,t),i)})},i.prototype.getStatus=function(){const e=this;this.isExportStopped()||(this.statusXhr=s.ajax({url:ai1wm_export.status.url,type:"GET",dataType:"json",cache:!1,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(t){if(t)switch(e.setStatus(t),t.type){case"done":case"error":case"download":return void s(window).off("beforeunload")}setTimeout(e.getStatus.bind(e),3e3)}).fail(function(){setTimeout(e.getStatus.bind(e),3e3)}))},i.prototype.setStatus=function(e){this.modal.render(e)},i.prototype.onStop=function(e){this.clean(e)},i.prototype.stopExport=function(e){try{e&&this.statusXhr&&this.statusXhr.abort()}finally{this.isStopped=e}},i.prototype.isExportStopped=function(){return this.isStopped},e.exports=i},132(e){const t=jQuery,n=function(){const e=this;this.error=function(n){const o=t("
"),s=t("
"),i=t("

"),r=t("

").html(n.message),a=t("
"),l=t("").addClass("ai1wm-title-red").text(n.title),c=t('').on("click",function(){e.destroy()});if(c.append(ai1wm_locale.close_export),a.append(c),i.append(l),s.append(i).append(r),n.nonce){const e=t('');e.text(ai1wm_locale.view_error_log_button),e.prop("href",ai1wm_export.storage.url+"/"+ai1wm_export.error_log.pattern.replace("%s",n.nonce)),s.append(t("
").append(e))}o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.info=function(n){const o=t("
"),s=t("
"),i=t("

"),r=t("

").html(n.message),a=t("
"),l=t(''),c=t('').on("click",function(){c.attr("disabled","disabled"),e.onStop()});c.append(' '+ai1wm_locale.stop_export),a.append(c),i.append(l),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.done=function(n){const o=t("
"),s=t("
"),i=t("

"),r=t("

").html(n.message),a=t("
"),l=t("").addClass("ai1wm-title-green").text(n.title),c=t('').on("click",function(){e.destroy()});c.append(ai1wm_locale.close_export),a.append(c),i.append(l),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.download=function(n){const o=t("
"),s=t("
"),i=t("

").html(n.message),r=t("
"),a=t('').on("click",function(){e.destroy()}),l=t(".ai1wm-menu-count");l.text(+l.text()+1),l.text()>1?l.prop("title",ai1wm_locale.backups_count_plural.replace("%d",l.text())):(l.removeClass("ai1wm-menu-hide"),l.prop("title",ai1wm_locale.backups_count_singular.replace("%d",l.text()))),a.append(ai1wm_locale.close_export),r.append(a),s.append(i),o.append(s).append(r),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.overlay=t('
'),this.modal=t(''),t("body").append(this.overlay).append(this.modal)};n.prototype.render=function(e){switch(t(document).trigger("ai1wm-export-status",e),e.type){case"error":this.error(e);break;case"info":this.info(e);break;case"done":this.done(e);break;case"download":this.download(e)}},n.prototype.destroy=function(){this.modal.hide(),this.overlay.hide()},e.exports=n},37(e,t,n){const o=n(595),s=jQuery,i=function(){const e=this;this.params=[],this.modal=new o,this.modal.onConfirm=function(t){e.onConfirm(t)},this.modal.onBlogs=function(t){e.onBlogs(t)},this.modal.onStop=function(t){t=(t||[]).concat({name:"ai1wm_import_cancel",value:1}),e.onStop(t)},this.modal.onDiskSpaceConfirm=function(t){e.onDiskSpaceConfirm(t)},this.modal.onDecryptPassword=function(t){e.onDecryptPassword(t)}};i.prototype.setParams=function(e){this.params=Ai1wm.Util.list(e)},i.prototype.start=function(e,t){const n=this;if(0===(t=t||0)&&this.stopImport(!1),this.isImportStopped())return;s(window).on("beforeunload",function(){return ai1wm_locale.stop_importing_your_website}),this.setStatus({type:"info",message:ai1wm_locale.preparing_to_import});let o=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key});e&&(o=o.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){n.getStatus()}).done(function(e){e&&n.run(e)}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_start_the_import,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.start.bind(n,e,t),i)})},i.prototype.run=function(e,t){const n=this;t=t||0,this.isImportStopped()||s.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:e,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(e){e&&n.run(e)}).fail(function(o){const s=1e3*t;try{const t=Ai1wm.Util.json(o.responseText);if(t){const o=JSON.parse(t).errors.pop();if(o.message)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:o.message,nonce:Ai1wm.Util.findValueByName(e,"storage")})}}catch(e){}t++,setTimeout(n.run.bind(n,e,t),s)})},i.prototype.decryptPassword=function(e,t){const n=this;if(t=t||0,this.isImportStopped())return;let o=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key}).concat({name:"priority",value:75});e&&(o=o.concat(Ai1wm.Util.list(e)),this.params=this.params.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){n.getStatus()}).done(function(e){e&&n.run(e)}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_check_decryption_password,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.decryptPassword.bind(n,e,t),i)})},i.prototype.confirm=function(e,t){const n=this;if(t=t||0,this.isImportStopped())return;let o=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key}).concat({name:"priority",value:150});e&&(o=o.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){n.getStatus()}).done(function(e){e&&n.run(e)}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_confirm_the_import,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.confirm.bind(n,e,t),i)})},i.prototype.checkDiskSpace=function(e,t){this.diskSpaceCallback=t;const n=parseInt(ai1wm_disk_space.free,10),o=parseInt(ai1wm_disk_space.factor,10),s=parseInt(ai1wm_disk_space.extra,10);if(n>=0){const t=e*o+s;if(t>n)return void this.setStatus({type:"disk_space_confirm",message:ai1wm_locale.out_of_disk_space.replace("%s",Ai1wm.Util.sizeFormat(t-n))})}t()},i.prototype.blogs=function(e,t){const n=this;if(t=t||0,this.isImportStopped())return;let o=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key}).concat({name:"priority",value:150});e&&(o=o.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){n.getStatus()}).done(function(e){e&&n.run(e)}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_prepare_blogs_on_import,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.blogs.bind(n,e,t),i)})},i.prototype.clean=function(e,t){const n=this;0===(t=t||0)&&this.stopImport(!0),this.setStatus({type:"info",message:ai1wm_locale.please_wait_stopping_the_import});let o=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key}).concat({name:"priority",value:400});e&&(o=o.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){s(window).off("beforeunload"),n.modal.destroy()}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_stop_the_import,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.clean.bind(n,e,t),i)})},i.prototype.getStatus=function(){const e=this;this.isImportStopped()||(this.statusXhr=s.ajax({url:ai1wm_import.status.url,type:"GET",dataType:"json",cache:!1,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(t){if(t)switch(e.setStatus(t),t.type){case"done":case"error":return void s(window).off("beforeunload");case"confirm":case"disk_space_confirm":case"blogs":case"backup_is_encrypted":return}setTimeout(e.getStatus.bind(e),3e3)}).fail(function(){setTimeout(e.getStatus.bind(e),3e3)}))},i.prototype.setStatus=function(e){this.modal.render(e)},i.prototype.onConfirm=function(e){this.confirm(e)},i.prototype.onDecryptPassword=function(e){this.decryptPassword(e)},i.prototype.onBlogs=function(e){this.blogs(e)},i.prototype.onStop=function(e){this.clean(e)},i.prototype.onDiskSpaceConfirm=function(e){this.diskSpaceCallback(e)},i.prototype.stopImport=function(e){try{e&&this.statusXhr&&this.statusXhr.abort()}finally{this.isStopped=e}},i.prototype.isImportStopped=function(){return this.isStopped},e.exports=i},595(e){const t=jQuery,n=function(){const e=this;this.error=function(n){const o=t("
"),s=t("
"),i=t("

"),r=t("

").html(n.message).addClass(n.leftAligned?"ai1wm-left-aligned":""),a=t("
"),l=t("").addClass("ai1wm-title-red").text(n.title),c=t('').on("click",function(){e.destroy()});if(c.append(ai1wm_locale.close_import),a.append(c),i.append(l),s.append(i).append(r),n.nonce){const e=t('');e.text(ai1wm_locale.view_error_log_button),e.prop("href",ai1wm_export.storage.url+"/"+ai1wm_export.error_log.pattern.replace("%s",n.nonce)),s.append(t("
").append(e))}o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.progress=function(n){if(this.progress.progressBarMeter&&this.progress.progressBarMeter.width(n.percent+"%"),this.progress.progressBarPercent)return void this.progress.progressBarPercent.text(n.percent+"%");const o=t("
"),s=t("
"),i=t("

"),r=t("
"),a=t('');this.progress.progressBarMeter=t('').width(n.percent+"%"),this.progress.progressBarPercent=t('').text(n.percent+"%");const l=t('').on("click",function(){l.attr("disabled","disabled"),e.onStop()});l.append(' '+ai1wm_locale.stop_import),a.append(this.progress.progressBarMeter).append(this.progress.progressBarPercent),r.append(l),i.append(a),s.append(i),o.append(s).append(r),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.pro=function(n){const o=t("
"),s=t("
"),i=t("

"),r=t('

').html(n.message),a=t("
"),l=t(''),c=t('').on("click",function(){e.destroy()});c.append(ai1wm_locale.close_import),a.append(c),i.append(l),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.confirm=function(n){const o=t("
"),s=t("
"),i=t("

"),r=t('

').html(n.message),a=t('
'),l=t(''),c=t('').on("click",function(){c.attr("disabled","disabled"),e.onStop()}),p=t('').on("click",function(){p.attr("disabled","disabled"),e.onConfirm()});c.append(ai1wm_locale.close_import),p.append(ai1wm_locale.confirm_import+" >"),a.append(c),a.append(p),i.append(l),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.diskSpaceConfirm=function(n){const o=t("
"),s=t("
"),i=t("

"),r=t('

').html(n.message),a=t('
'),l=t(''),c=t('').on("click",function(){e.destroy()}),p=t('').on("click",function(){t(this).attr("disabled","disabled"),e.onDiskSpaceConfirm()});c.append(ai1wm_locale.close_import),p.append(ai1wm_locale.confirm_disk_space),a.append(c),a.append(p),i.append(l),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.blogs=function(n){const o=t("
").on("submit",function(t){t.preventDefault(),c.attr("disabled","disabled"),e.onBlogs(o.serializeArray())}),s=t("
"),i=t("

"),r=t("

").html(n.message),a=t("
"),l=t("").addClass("ai1wm-title-grey").text(n.title),c=t('');c.append(ai1wm_locale.continue_import),a.append(c),i.append(l),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.info=function(n){const o=t("
"),s=t("
"),i=t("

"),r=t("

").html(n.message),a=t("
"),l=t(''),c=t("

").html(ai1wm_locale.please_do_not_close_this_browser),p=t('
');p.append(c),a.append(p),i.append(l),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.done=function(n){const o=t("
"),s=t("
"),i=t("

"),r=t('

').html(n.message),a=t('
'),l=t("").addClass("ai1wm-title-green").text(n.title),c=t('').on("click",function(){e.destroy()});c.append(ai1wm_locale.finish_import+" >"),a.append(c),i.append(l),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.backupIsEncrypted=function(n){const o=t("
"),s=t('
'),i=t("

").html(ai1wm_locale.backup_encrypted),r=t('

').html(ai1wm_locale.backup_encrypted_message),a=t('
'),l=t('
'),c=t('').prop("placeholder",ai1wm_locale.enter_password).on("keyup",function(){const e=t(this),n=t("#ai1wm-backup-decrypt-password-confirmation");e.val()!==n.val()?(n.parent().addClass("ai1wm-has-error"),e.parent().addClass("ai1wm-has-error")):(e.parent().removeClass("ai1wm-has-error"),n.parent().removeClass("ai1wm-has-error"))}),p=t('').on("click",function(){return t(this).toggleClass("ai1wm-icon-eye ai1wm-icon-eye-blocked"),t(this).prev().prop("type",function(e,t){return"text"===t?"password":"text"}),!1});if(l.append(c).append(p),n.error){l.addClass("ai1wm-has-error");const e=t('
').html(n.error);l.append(e)}const u=t('
'),d=t('').prop("placeholder",ai1wm_locale.repeat_password).on("keyup",function(){const e=t(this),n=t("#ai1wm-backup-decrypt-password");c.val()!==e.val()?(n.parent().addClass("ai1wm-has-error"),e.parent().addClass("ai1wm-has-error")):(n.parent().removeClass("ai1wm-has-error"),e.parent().removeClass("ai1wm-has-error"))}),h=t('').on("click",function(){return t(this).toggleClass("ai1wm-icon-eye ai1wm-icon-eye-blocked"),t(this).prev().prop("type",function(e,t){return"text"===t?"password":"text"}),!1}),f=t('
').html(ai1wm_locale.passwords_do_not_match);u.append(d).append(h).append(f);const m=t('').on("click",function(){const n=t("#ai1wm-backup-decrypt-password"),o=t("#ai1wm-backup-decrypt-password-confirmation");n.val().length&&n.val()===o.val()?(m.attr("disabled","disabled"),e.onDecryptPassword(a.serializeArray())):(o.parent().addClass("ai1wm-has-error"),n.parent().addClass("ai1wm-has-error"))}),g=t('').on("click",function(){g.attr("disabled","disabled"),e.onStop()});m.append(ai1wm_locale.unlock),g.append(ai1wm_locale.close_import);const y=t('
');y.append(g).append(m),a.append(l).append(u),s.append(i).append(r).append(a).append(y),o.append(s),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.serverCannotDecrypt=function(n){const o=t("
"),s=t("
"),i=t("

"),r=t("

").html(n.message),a=t(''),l=t("
"),c=t('').on("click",function(){c.attr("disabled","disabled"),e.onStop()});c.append(ai1wm_locale.close_import),l.append(c),i.append(a),s.append(i).append(r),o.append(s).append(l),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.overlay=t('
'),this.modal=t(''),t("body").append(this.overlay).append(this.modal)};n.prototype.render=function(e){switch(t(document).trigger("ai1wm-import-status",e),e.type){case"pro":this.pro(e);break;case"error":this.error(e);break;case"confirm":this.confirm(e);break;case"disk_space_confirm":this.diskSpaceConfirm(e);break;case"blogs":this.blogs(e);break;case"progress":this.progress(e);break;case"info":this.info(e);break;case"done":this.done(e);break;case"backup_is_encrypted":this.backupIsEncrypted(e);break;case"server_cannot_decrypt":this.serverCannotDecrypt(e)}},n.prototype.destroy=function(){this.modal.hide(),this.overlay.hide(),this.progress.progressBarMeter=null,this.progress.progressBarPercent=null},e.exports=n},213(e,t){var n,o;void 0===(o="function"==typeof(n=function(){"use strict";function t(e,t,n){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){r(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof globalThis&&globalThis.global===globalThis?globalThis:void 0,i=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(e,i,r){var a=s.URL||s.webkitURL,l=document.createElement("a");i=i||e.name||"download",l.download=i,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?o(l):n(l.href)?t(e,i,r):o(l,l.target="_blank")):(l.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(l.href)},4e4),setTimeout(function(){o(l)},0))}:"msSaveOrOpenBlob"in navigator?function(e,s,i){if(s=s||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,i),s);else if(n(e))t(e,s,i);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){o(r)})}}:function(e,n,o,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,o);var a="application/octet-stream"===e.type,l=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&l||i)&&"undefined"!=typeof FileReader){var p=new FileReader;p.onloadend=function(){var e=p.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},p.readAsDataURL(e)}else{var u=s.URL||s.webkitURL,d=u.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout(function(){u.revokeObjectURL(d)},4e4)}});s.saveAs=r.saveAs=r,e.exports=r})?n.apply(t,[]):n)||(e.exports=o)},504(e){function t(){}t.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function s(){o.off(e,s),t.apply(n,arguments)}return s._=t,this.on(e,s,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,s=n.length;o{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}}},t={};function n(o){var s=t[o];if(void 0!==s)return s.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};function t(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}n.r(e),n.d(e,{BaseTransition:()=>xo,BaseTransitionPropsValidators:()=>_o,Comment:()=>hr,DeprecationTypes:()=>ka,EffectScope:()=>de,ErrorCodes:()=>hn,ErrorTypeStrings:()=>ya,Fragment:()=>ur,KeepAlive:()=>ss,ReactiveEffect:()=>ye,Static:()=>fr,Suspense:()=>ir,Teleport:()=>ho,Text:()=>dr,TrackOpTypes:()=>nn,Transition:()=>Ba,TransitionGroup:()=>Ml,TriggerOpTypes:()=>on,VueElement:()=>xl,assertNumber:()=>dn,callWithAsyncErrorHandling:()=>mn,callWithErrorHandling:()=>fn,camelize:()=>O,capitalize:()=>P,cloneVNode:()=>Mr,compatUtils:()=>Sa,computed:()=>pa,createApp:()=>dc,createBlock:()=>xr,createCommentVNode:()=>Fr,createElementBlock:()=>kr,createElementVNode:()=>Ir,createHydrationRenderer:()=>Ji,createPropsRestProxy:()=>ti,createRenderer:()=>Ki,createSSRApp:()=>hc,createSlots:()=>Ms,createStaticVNode:()=>Br,createTextVNode:()=>Pr,createVNode:()=>Or,customRef:()=>Gt,defineAsyncComponent:()=>es,defineComponent:()=>Oo,defineCustomElement:()=>wl,defineEmits:()=>Hs,defineExpose:()=>Ws,defineModel:()=>Ks,defineOptions:()=>qs,defineProps:()=>$s,defineSSRCustomElement:()=>Sl,defineSlots:()=>zs,devtools:()=>va,effect:()=>Ie,effectScope:()=>he,getCurrentInstance:()=>zr,getCurrentScope:()=>fe,getCurrentWatcher:()=>ln,getTransitionRawChildren:()=>Io,guardReactiveProps:()=>Rr,h:()=>ua,handleError:()=>gn,hasInjectionContext:()=>Jn,hydrate:()=>uc,hydrateOnIdle:()=>Go,hydrateOnInteraction:()=>Yo,hydrateOnMediaQuery:()=>Xo,hydrateOnVisible:()=>Qo,initCustomFormatter:()=>da,initDirectivesForSSR:()=>yc,inject:()=>Kn,isMemoSame:()=>fa,isProxy:()=>Mt,isReactive:()=>It,isReadonly:()=>Ot,isRef:()=>jt,isRuntimeOnly:()=>sa,isShallow:()=>Rt,isVNode:()=>Ar,markRaw:()=>Bt,mergeDefaults:()=>Zs,mergeModels:()=>ei,mergeProps:()=>Dr,nextTick:()=>An,nodeOps:()=>Na,normalizeClass:()=>G,normalizeProps:()=>Q,normalizeStyle:()=>W,onActivated:()=>rs,onBeforeMount:()=>fs,onBeforeUnmount:()=>vs,onBeforeUpdate:()=>gs,onDeactivated:()=>as,onErrorCaptured:()=>ks,onMounted:()=>ms,onRenderTracked:()=>Ss,onRenderTriggered:()=>ws,onScopeDispose:()=>me,onServerPrefetch:()=>_s,onUnmounted:()=>bs,onUpdated:()=>ys,onWatcherCleanup:()=>cn,openBlock:()=>yr,patchProp:()=>bl,popScopeId:()=>Vn,provide:()=>zn,proxyRefs:()=>Kt,pushScopeId:()=>Dn,queuePostFlushCb:()=>En,reactive:()=>At,readonly:()=>Tt,ref:()=>Ut,registerRuntimeCompiler:()=>oa,render:()=>pc,renderList:()=>Rs,renderSlot:()=>Ps,resolveComponent:()=>Cs,resolveDirective:()=>Ns,resolveDynamicComponent:()=>Es,resolveFilter:()=>wa,resolveTransitionHooks:()=>Co,setBlockTracking:()=>wr,setDevtoolsHook:()=>ba,setTransitionHooks:()=>No,shallowReactive:()=>Ct,shallowReadonly:()=>Et,shallowRef:()=>Dt,ssrContextKey:()=>Gn,ssrUtils:()=>_a,stop:()=>Oe,toDisplayString:()=>re,toHandlerKey:()=>B,toHandlers:()=>Fs,toRaw:()=>Pt,toRef:()=>Zt,toRefs:()=>Qt,toValue:()=>qt,transformVNodeArgs:()=>Tr,triggerRef:()=>Ht,unref:()=>Wt,useAttrs:()=>Qs,useCssModule:()=>Tl,useCssVars:()=>el,useHost:()=>Al,useId:()=>Ro,useModel:()=>vi,useSSRContext:()=>Qn,useShadowRoot:()=>Cl,useSlots:()=>Gs,useTemplateRef:()=>Po,useTransitionState:()=>vo,vModelCheckbox:()=>Wl,vModelDynamic:()=>Xl,vModelRadio:()=>zl,vModelSelect:()=>Kl,vModelText:()=>Hl,vShow:()=>Xa,version:()=>ma,warn:()=>ga,watch:()=>eo,watchEffect:()=>Xn,watchPostEffect:()=>Yn,watchSyncEffect:()=>Zn,withAsyncContext:()=>ni,withCtx:()=>Hn,withDefaults:()=>Js,withDirectives:()=>Wn,withKeys:()=>sc,withMemo:()=>ha,withModifiers:()=>nc,withScopeId:()=>$n});const o={},s=[],i=()=>{},r=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),c=Object.assign,p=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),h=Array.isArray,f=e=>"[object Map]"===k(e),m=e=>"[object Set]"===k(e),g=e=>"[object Date]"===k(e),y=e=>"function"==typeof e,v=e=>"string"==typeof e,b=e=>"symbol"==typeof e,_=e=>null!==e&&"object"==typeof e,w=e=>(_(e)||y(e))&&y(e.then)&&y(e.catch),S=Object.prototype.toString,k=e=>S.call(e),x=e=>k(e).slice(8,-1),A=e=>"[object Object]"===k(e),C=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),E=t("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),N=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-\w/g,O=N(e=>e.replace(I,e=>e.slice(1).toUpperCase())),R=/\B([A-Z])/g,M=N(e=>e.replace(R,"-$1").toLowerCase()),P=N(e=>e.charAt(0).toUpperCase()+e.slice(1)),B=N(e=>e?`on${P(e)}`:""),F=(e,t)=>!Object.is(e,t),L=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},U=e=>{const t=parseFloat(e);return isNaN(t)?e:t},D=e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const $=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}),H=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function W(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(z);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function G(e){let t="";if(v(e))t=e;else if(h(e))for(let n=0;noe(e,t))}const ie=e=>!(!e||!0!==e.__v_isRef),re=e=>v(e)?e:null==e?"":h(e)||_(e)&&(e.toString===S||!y(e.toString))?ie(e)?re(e.value):JSON.stringify(e,ae,2):String(e),ae=(e,t)=>ie(t)?ae(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],o)=>(e[le(t,o)+" =>"]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>le(e))}:b(t)?le(t):!_(t)||h(t)||A(t)?t:String(t),le=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};function ce(e){return null==e?"initial":"string"==typeof e?""===e?" ":e:("number"==typeof e&&Number.isFinite(e),String(e))}let pe,ue;class de{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&pe&&(pe.active?(this.parent=pe,this.index=(pe.scopes||(pe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e0&&0===--this._on){if(pe===this)pe=this.prevScope;else{let e=pe;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t0)return;if(be){let e=be;for(be=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ve;){let t=ve;for(ve=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function xe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ae(e){let t,n=e.depsTail,o=n;for(;o;){const e=o.prevDep;-1===o.version?(o===n&&(n=e),Ee(o),Ne(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=t,e.depsTail=n}function Ce(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Te(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Te(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===Le)return;if(e.globalVersion=Le,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!Ce(e)))return;e.flags|=2;const t=e.dep,n=ue,o=Re;ue=e,Re=!0;try{xe(e);const n=e.fn(e._value);(0===t.version||F(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{ue=n,Re=o,Ae(e),e.flags&=-3}}function Ee(e,t=!1){const{dep:n,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ee(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function Ne(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Ie(e,t){e.effect instanceof ye&&(e=e.effect.fn);const n=new ye(e);t&&c(n,t);try{n.run()}catch(e){throw n.stop(),e}const o=n.run.bind(n);return o.effect=n,o}function Oe(e){e.effect.stop()}let Re=!0;const Me=[];function Pe(){Me.push(Re),Re=!1}function Be(){const e=Me.pop();Re=void 0===e||e}function Fe(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ue;ue=void 0;try{t()}finally{ue=e}}}let Le=0;class je{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ue{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ue||!Re||ue===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ue)t=this.activeLink=new je(ue,this),ue.deps?(t.prevDep=ue.depsTail,ue.depsTail.nextDep=t,ue.depsTail=t):ue.deps=ue.depsTail=t,De(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=ue.depsTail,t.nextDep=void 0,ue.depsTail.nextDep=t,ue.depsTail=t,ue.deps===t&&(ue.deps=e)}return t}trigger(e){this.version++,Le++,this.notify(e)}notify(e){Se();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ke()}}}function De(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)De(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ve=new WeakMap,$e=Symbol(""),He=Symbol(""),We=Symbol("");function qe(e,t,n){if(Re&&ue){let t=Ve.get(e);t||Ve.set(e,t=new Map);let o=t.get(n);o||(t.set(n,o=new Ue),o.map=t,o.key=n),o.track()}}function ze(e,t,n,o,s,i){const r=Ve.get(e);if(!r)return void Le++;const a=e=>{e&&e.trigger()};if(Se(),"clear"===t)r.forEach(a);else{const s=h(e),i=s&&C(n);if(s&&"length"===n){const e=Number(o);r.forEach((t,n)=>{("length"===n||n===We||!b(n)&&n>=e)&&a(t)})}else switch((void 0!==n||r.has(void 0))&&a(r.get(n)),i&&a(r.get(We)),t){case"add":s?i&&a(r.get("length")):(a(r.get($e)),f(e)&&a(r.get(He)));break;case"delete":s||(a(r.get($e)),f(e)&&a(r.get(He)));break;case"set":f(e)&&a(r.get($e))}}ke()}function Ke(e){const t=Pt(e);return t===e?t:(qe(t,0,We),Rt(e)?t:t.map(Ft))}function Je(e){return qe(e=Pt(e),0,We),e}function Ge(e,t){return Ot(e)?It(e)?Lt(Ft(t)):Lt(t):Ft(t)}const Qe={__proto__:null,[Symbol.iterator](){return Xe(this,Symbol.iterator,e=>Ge(this,e))},concat(...e){return Ke(this).concat(...e.map(e=>h(e)?Ke(e):e))},entries(){return Xe(this,"entries",e=>(e[1]=Ge(this,e[1]),e))},every(e,t){return Ze(this,"every",e,t,void 0,arguments)},filter(e,t){return Ze(this,"filter",e,t,e=>e.map(e=>Ge(this,e)),arguments)},find(e,t){return Ze(this,"find",e,t,e=>Ge(this,e),arguments)},findIndex(e,t){return Ze(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ze(this,"findLast",e,t,e=>Ge(this,e),arguments)},findLastIndex(e,t){return Ze(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ze(this,"forEach",e,t,void 0,arguments)},includes(...e){return tt(this,"includes",e)},indexOf(...e){return tt(this,"indexOf",e)},join(e){return Ke(this).join(e)},lastIndexOf(...e){return tt(this,"lastIndexOf",e)},map(e,t){return Ze(this,"map",e,t,void 0,arguments)},pop(){return nt(this,"pop")},push(...e){return nt(this,"push",e)},reduce(e,...t){return et(this,"reduce",e,t)},reduceRight(e,...t){return et(this,"reduceRight",e,t)},shift(){return nt(this,"shift")},some(e,t){return Ze(this,"some",e,t,void 0,arguments)},splice(...e){return nt(this,"splice",e)},toReversed(){return Ke(this).toReversed()},toSorted(e){return Ke(this).toSorted(e)},toSpliced(...e){return Ke(this).toSpliced(...e)},unshift(...e){return nt(this,"unshift",e)},values(){return Xe(this,"values",e=>Ge(this,e))}};function Xe(e,t,n){const o=Je(e),s=o[t]();return o===e||Rt(e)||(s._next=s.next,s.next=()=>{const e=s._next();return e.done||(e.value=n(e.value)),e}),s}const Ye=Array.prototype;function Ze(e,t,n,o,s,i){const r=Je(e),a=r!==e&&!Rt(e),l=r[t];if(l!==Ye[t]){const t=l.apply(e,i);return a?Ft(t):t}let c=n;r!==e&&(a?c=function(t,o){return n.call(this,Ge(e,t),o,e)}:n.length>2&&(c=function(t,o){return n.call(this,t,o,e)}));const p=l.call(r,c,o);return a&&s?s(p):p}function et(e,t,n,o){const s=Je(e),i=s!==e&&!Rt(e);let r=n,a=!1;s!==e&&(i?(a=0===o.length,r=function(t,o,s){return a&&(a=!1,t=Ge(e,t)),n.call(this,t,Ge(e,o),s,e)}):n.length>3&&(r=function(t,o,s){return n.call(this,t,o,s,e)}));const l=s[t](r,...o);return a?Ge(e,l):l}function tt(e,t,n){const o=Pt(e);qe(o,0,We);const s=o[t](...n);return-1!==s&&!1!==s||!Mt(n[0])?s:(n[0]=Pt(n[0]),o[t](...n))}function nt(e,t,n=[]){Pe(),Se();const o=Pt(e)[t].apply(e,n);return ke(),Be(),o}const ot=t("__proto__,__v_isRef,__isVue"),st=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(b));function it(e){b(e)||(e=String(e));const t=Pt(this);return qe(t,0,e),t.hasOwnProperty(e)}class rt{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const o=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return s;if("__v_raw"===t)return n===(o?s?xt:kt:s?St:wt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=h(e);if(!o){let e;if(i&&(e=Qe[t]))return e;if("hasOwnProperty"===t)return it}const r=Reflect.get(e,t,jt(e)?e:n);if(b(t)?st.has(t):ot(t))return r;if(o||qe(e,0,t),s)return r;if(jt(r)){const e=i&&C(t)?r:r.value;return o&&_(e)?Tt(e):e}return _(r)?o?Tt(r):At(r):r}}class at extends rt{constructor(e=!1){super(!1,e)}set(e,t,n,o){let s=e[t];const i=h(e)&&C(t);if(!this._isShallow){const e=Ot(s);if(Rt(n)||Ot(n)||(s=Pt(s),n=Pt(n)),!i&&jt(s)&&!jt(n))return e||(s.value=n),!0}const r=i?Number(t)e,ft=e=>Reflect.getPrototypeOf(e);function mt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function gt(e,t){const n=function(e,t){const n={get(n){const o=this.__v_raw,s=Pt(o),i=Pt(n);e||(F(n,i)&&qe(s,0,n),qe(s,0,i));const{has:r}=ft(s),a=t?ht:e?Lt:Ft;return r.call(s,n)?a(o.get(n)):r.call(s,i)?a(o.get(i)):void(o!==s&&o.get(n))},get size(){const t=this.__v_raw;return!e&&qe(Pt(t),0,$e),t.size},has(t){const n=this.__v_raw,o=Pt(n),s=Pt(t);return e||(F(t,s)&&qe(o,0,t),qe(o,0,s)),t===s?n.has(t):n.has(t)||n.has(s)},forEach(n,o){const s=this,i=s.__v_raw,r=Pt(i),a=t?ht:e?Lt:Ft;return!e&&qe(r,0,$e),i.forEach((e,t)=>n.call(o,a(e),a(t),s))}};return c(n,e?{add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear")}:{add(e){const n=Pt(this),o=ft(n),s=Pt(e),i=t||Rt(e)||Ot(e)?e:s;return o.has.call(n,i)||F(e,i)&&o.has.call(n,e)||F(s,i)&&o.has.call(n,s)||(n.add(i),ze(n,"add",i,i)),this},set(e,n){t||Rt(n)||Ot(n)||(n=Pt(n));const o=Pt(this),{has:s,get:i}=ft(o);let r=s.call(o,e);r||(e=Pt(e),r=s.call(o,e));const a=i.call(o,e);return o.set(e,n),r?F(n,a)&&ze(o,"set",e,n):ze(o,"add",e,n),this},delete(e){const t=Pt(this),{has:n,get:o}=ft(t);let s=n.call(t,e);s||(e=Pt(e),s=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return s&&ze(t,"delete",e,void 0),i},clear(){const e=Pt(this),t=0!==e.size,n=e.clear();return t&&ze(e,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=function(e,t,n){return function(...o){const s=this.__v_raw,i=Pt(s),r=f(i),a="entries"===e||e===Symbol.iterator&&r,l="keys"===e&&r,p=s[e](...o),u=n?ht:t?Lt:Ft;return!t&&qe(i,0,l?He:$e),c(Object.create(p),{next(){const{value:e,done:t}=p.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}}})}}(o,e,t)}),n}(e,t);return(t,o,s)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(d(n,o)&&o in t?n:t,o,s)}const yt={get:gt(!1,!1)},vt={get:gt(!1,!0)},bt={get:gt(!0,!1)},_t={get:gt(!0,!0)},wt=new WeakMap,St=new WeakMap,kt=new WeakMap,xt=new WeakMap;function At(e){return Ot(e)?e:Nt(e,!1,ct,yt,wt)}function Ct(e){return Nt(e,!1,ut,vt,St)}function Tt(e){return Nt(e,!0,pt,bt,kt)}function Et(e){return Nt(e,!0,dt,_t,xt)}function Nt(e,t,n,o,s){if(!_(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=(r=e).__v_skip||!Object.isExtensible(r)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(x(r));var r;if(0===i)return e;const a=s.get(e);if(a)return a;const l=new Proxy(e,2===i?o:n);return s.set(e,l),l}function It(e){return Ot(e)?It(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Rt(e){return!(!e||!e.__v_isShallow)}function Mt(e){return!!e&&!!e.__v_raw}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function Bt(e){return!d(e,"__v_skip")&&Object.isExtensible(e)&&j(e,"__v_skip",!0),e}const Ft=e=>_(e)?At(e):e,Lt=e=>_(e)?Tt(e):e;function jt(e){return!!e&&!0===e.__v_isRef}function Ut(e){return Vt(e,!1)}function Dt(e){return Vt(e,!0)}function Vt(e,t){return jt(e)?e:new $t(e,t)}class $t{constructor(e,t){this.dep=new Ue,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Pt(e),this._value=t?e:Ft(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Rt(e)||Ot(e);e=n?e:Pt(e),F(e,t)&&(this._rawValue=e,this._value=n?e:Ft(e),this.dep.trigger())}}function Ht(e){e.dep&&e.dep.trigger()}function Wt(e){return jt(e)?e.value:e}function qt(e){return y(e)?e():Wt(e)}const zt={get:(e,t,n)=>"__v_raw"===t?e:Wt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return jt(s)&&!jt(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function Kt(e){return It(e)?e:new Proxy(e,zt)}class Jt{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new Ue,{get:n,set:o}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Gt(e){return new Jt(e)}function Qt(e){const t=h(e)?new Array(e.length):{};for(const n in e)t[n]=en(e,n);return t}class Xt{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=b(t)?t:String(t),this._raw=Pt(e);let o=!0,s=e;if(!h(e)||b(this._key)||!C(this._key))do{o=!Mt(s)||Rt(s)}while(o&&(s=s.__v_raw));this._shallow=o}get value(){let e=this._object[this._key];return this._shallow&&(e=Wt(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&jt(this._raw[this._key])){const t=this._object[this._key];if(jt(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return function(e,t){const n=Ve.get(e);return n&&n.get(t)}(this._raw,this._key)}}class Yt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Zt(e,t,n){return jt(e)?e:y(e)?new Yt(e):_(e)&&arguments.length>1?en(e,t,n):Ut(e)}function en(e,t,n){return new Xt(e,t,n)}class tn{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ue(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Le-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||ue===this))return we(this,!0),!0}get value(){const e=this.dep.track();return Te(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const nn={GET:"get",HAS:"has",ITERATE:"iterate"},on={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},sn={},rn=new WeakMap;let an;function ln(){return an}function cn(e,t=!1,n=an){if(n){let t=rn.get(n);t||rn.set(n,t=[]),t.push(e)}}function pn(e,t=1/0,n){if(t<=0||!_(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,jt(e))pn(e.value,t,n);else if(h(e))for(let o=0;o{pn(e,t,n)});else if(A(e)){for(const o in e)pn(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&pn(e[o],t,n)}return e}const un=[];function dn(e,t){}const hn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"};function fn(e,t,n,o){try{return o?e(...o):e()}catch(e){gn(e,t,n)}}function mn(e,t,n,o){if(y(e)){const s=fn(e,t,n,o);return s&&w(s)&&s.catch(e=>{gn(e,t,n)}),s}if(h(e)){const s=[];for(let i=0;i=On(n)?yn.push(e):yn.splice(function(e){let t=vn+1,n=yn.length;for(;t>>1,s=yn[o],i=On(s);iOn(e)-On(t));if(bn.length=0,wn)return void wn.push(...e);for(wn=e,Sn=0;Snnull==e.id?2&e.flags?-1:1/0:e.id;function Rn(e){try{for(vn=0;vnHn;function Hn(e,t=Ln,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&wr(-1);const s=Un(t);let i;try{i=e(...n)}finally{Un(s),o._d&&wr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Wn(e,t){if(null===Ln)return e;const n=la(Ln),s=e.dirs||(e.dirs=[]);for(let e=0;e1)return n&&y(t)?t.call(o&&o.proxy):t}}function Jn(){return!(!zr()&&!yi)}const Gn=Symbol.for("v-scx"),Qn=()=>Kn(Gn);function Xn(e,t){return to(e,null,t)}function Yn(e,t){return to(e,null,{flush:"post"})}function Zn(e,t){return to(e,null,{flush:"sync"})}function eo(e,t,n){return to(e,t,n)}function to(e,t,n=o){const{immediate:s,deep:r,flush:a,once:l}=n,u=c({},n),d=t&&s||!t&&"post"!==a;let f;if(ea)if("sync"===a){const e=Qn();f=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}const m=qr;u.call=(e,t,n)=>mn(e,m,t,n);let g=!1;"post"===a?u.scheduler=e=>{zi(e,m&&m.suspense)}:"sync"!==a&&(g=!0,u.scheduler=(e,t)=>{t?e():Cn(e)}),u.augmentJob=e=>{t&&(e.flags|=4),g&&(e.flags|=2,m&&(e.id=m.uid,e.i=m))};const v=function(e,t,n=o){const{immediate:s,deep:r,once:a,scheduler:l,augmentJob:c,call:u}=n,d=e=>r?e:Rt(e)||!1===r||0===r?pn(e,1):pn(e);let f,m,g,v,b=!1,_=!1;if(jt(e)?(m=()=>e.value,b=Rt(e)):It(e)?(m=()=>d(e),b=!0):h(e)?(_=!0,b=e.some(e=>It(e)||Rt(e)),m=()=>e.map(e=>jt(e)?e.value:It(e)?d(e):y(e)?u?u(e,2):e():void 0)):m=y(e)?t?u?()=>u(e,2):e:()=>{if(g){Pe();try{g()}finally{Be()}}const t=an;an=f;try{return u?u(e,3,[v]):e(v)}finally{an=t}}:i,t&&r){const e=m,t=!0===r?1/0:r;m=()=>pn(e(),t)}const w=fe(),S=()=>{f.stop(),w&&w.active&&p(w.effects,f)};if(a&&t){const e=t;t=(...t)=>{e(...t),S()}}let k=_?new Array(e.length).fill(sn):sn;const x=e=>{if(1&f.flags&&(f.dirty||e))if(t){const e=f.run();if(r||b||(_?e.some((e,t)=>F(e,k[t])):F(e,k))){g&&g();const n=an;an=f;try{const n=[e,k===sn?void 0:_&&k[0]===sn?[]:k,v];k=e,u?u(t,3,n):t(...n)}finally{an=n}}}else f.run()};return c&&c(x),f=new ye(m),f.scheduler=l?()=>l(x,!1):x,v=e=>cn(e,!1,f),g=f.onStop=()=>{const e=rn.get(f);if(e){if(u)u(e,4);else for(const t of e)t();rn.delete(f)}},t?s?x(!0):k=f.run():l?l(x.bind(null,!0),!0):f.run(),S.pause=f.pause.bind(f),S.resume=f.resume.bind(f),S.stop=S,S}(e,t,u);return ea&&(f?f.push(v):d&&v()),v}function no(e,t,n){const o=this.proxy,s=v(e)?e.includes(".")?oo(o,e):()=>o[e]:e.bind(o,o);let i;y(t)?i=t:(i=t.handler,n=t);const r=Gr(this),a=to(s,i.bind(o),n);return r(),a}function oo(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;ee.__isTeleport,ao=e=>e&&(e.disabled||""===e.disabled),lo=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,co=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,po=(e,t)=>{const n=e&&e.to;return v(n)?t?t(n):null:n};function uo(e,t,n,{o:{insert:o},m:s},i=2){0===i&&o(e.targetAnchor,t,n);const{el:r,anchor:a,shapeFlag:l,children:c,props:p}=e,u=2===i;if(u&&o(r,t,n),!so.has(e)&&(!u||ao(p))&&16&l)for(let e=0;e{16&e.shapeFlag&&p(e.children,t,n,s,i,r,a,l)},w=(e=t)=>{const n=ao(e.props),o=e.target=po(e.props,f),i=mo(o,e,m,h);o&&("svg"!==r&&lo(o)?r="svg":"mathml"!==r&&co(o)&&(r="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(o),n||(_(e,o,i),fo(e,!1)))},S=e=>{const t=()=>{if(so.get(e)===t){if(so.delete(e),ao(e.props)){const t=y(e.el)||n;_(e,t,e.anchor),fo(e,!0)}w(e)}};so.set(e,t),zi(t,i)};if(null==e){const e=t.el=m(""),s=t.anchor=m("");if(h(e,n,o),h(s,n,o),(k=t.props)&&(k.defer||""===k.defer)||i&&i.pendingBranch)return void S(t);v&&(_(t,n,s),fo(t,!0)),w()}else{t.el=e.el;const o=t.anchor=e.anchor,p=so.get(e);if(p)return p.flags|=8,so.delete(e),void S(t);t.targetStart=e.targetStart;const h=t.target=e.target,m=t.targetAnchor=e.targetAnchor,g=ao(e.props),y=g?n:h,_=g?o:m;if("svg"===r||lo(h)?r="svg":("mathml"===r||co(h))&&(r="mathml"),b?(d(e.dynamicChildren,b,y,s,i,r,a),Zi(e,t,!0)):l||u(e,t,y,_,s,i,r,a,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):uo(t,n,o,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=po(t.props,f);e&&uo(t,e,null,c,0)}else g&&uo(t,h,m,c,1);fo(t,v)}var k},remove(e,t,n,{um:o,o:{remove:s}},i){const{shapeFlag:r,children:a,anchor:l,targetStart:c,targetAnchor:p,target:u,props:d}=e;let h=i||!ao(d);const f=so.get(e);if(f&&(f.flags|=8,so.delete(e),h=!1),u&&(s(c),s(p)),i&&s(l),16&r)for(let e=0;e{e.isMounted=!0}),vs(()=>{e.isUnmounting=!0}),e}const bo=[Function,Array],_o={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:bo,onEnter:bo,onAfterEnter:bo,onEnterCancelled:bo,onBeforeLeave:bo,onLeave:bo,onAfterLeave:bo,onLeaveCancelled:bo,onBeforeAppear:bo,onAppear:bo,onAfterAppear:bo,onAppearCancelled:bo},wo=e=>{const t=e.subTree;return t.component?wo(t.component):t},So={name:"BaseTransition",props:_o,setup(e,{slots:t}){const n=zr(),o=vo();return()=>{const s=t.default&&Io(t.default(),!0),i=s&&s.length?ko(s):n.subTree?Fr():void 0;if(!i)return;const r=Pt(e),{mode:a}=r;if(o.isLeaving)return To(i);const l=Eo(i);if(!l)return To(i);let c=Co(l,r,o,n,e=>c=e);l.type!==hr&&No(l,c);let p=n.subTree&&Eo(n.subTree);if(p&&p.type!==hr&&!Cr(p,l)&&wo(n).type!==hr){let e=Co(p,r,o,n);if(No(p,e),"out-in"===a&&l.type!==hr)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,p=void 0},To(i);"in-out"===a&&l.type!==hr?e.delayLeave=(e,t,n)=>{Ao(o,p)[String(p.key)]=p,e[go]=()=>{t(),e[go]=void 0,delete c.delayedLeave,p=void 0},c.delayedLeave=()=>{n(),delete c.delayedLeave,p=void 0}}:p=void 0}else p&&(p=void 0);return i}}};function ko(e){let t=e[0];if(e.length>1){let n=!1;for(const o of e)if(o.type!==hr){t=o,n=!0;break}}return t}const xo=So;function Ao(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Co(e,t,n,o,s){const{appear:i,mode:r,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:p,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:y,onAppear:v,onAfterAppear:b,onAppearCancelled:_}=t,w=String(e.key),S=Ao(n,e),k=(e,t)=>{e&&mn(e,o,9,t)},x=(e,t)=>{const n=t[1];k(e,t),h(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},A={mode:r,persisted:a,beforeEnter(t){let o=l;if(!n.isMounted){if(!i)return;o=y||l}t[go]&&t[go](!0);const s=S[w];s&&Cr(e,s)&&s.el[go]&&s.el[go](),k(o,[t])},enter(t){if(!Pn&&S[w]===e)return;let o=c,s=p,r=u;if(!n.isMounted){if(!i)return;o=v||c,s=b||p,r=_||u}let a=!1;t[yo]=e=>{a||(a=!0,k(e?r:s,[t]),A.delayedLeave&&A.delayedLeave(),t[yo]=void 0)};const l=t[yo].bind(null,!1);o?x(o,[t,l]):l()},leave(t,o){const s=String(e.key);if(t[yo]&&t[yo](!0),n.isUnmounting)return o();k(d,[t]);let i=!1;t[go]=n=>{i||(i=!0,o(),k(n?g:m,[t]),t[go]=void 0,S[s]===e&&delete S[s])};const r=t[go].bind(null,!1);S[s]=e,f?x(f,[t,r]):r()},clone(e){const i=Co(e,t,n,o,s);return s&&s(i),i}};return A}function To(e){if(ns(e))return(e=Mr(e)).children=null,e}function Eo(e){if(!ns(e))return ro(e.type)&&e.children?ko(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&y(n.default))return n.default()}}function No(e,t){6&e.shapeFlag&&e.component?(e.transition=t,No(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Io(e,t=!1,n){let o=[],s=0;for(let i=0;i1)for(let e=0;ec({name:e.name},t,{setup:e}))():e}function Ro(){const e=zr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Mo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Po(e){const t=zr(),n=Dt(null);if(t){const s=t.refs===o?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}function Bo(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const Fo=new WeakMap;function Lo(e,t,n,s,i=!1){if(h(e))return void e.forEach((e,o)=>Lo(e,t&&(h(t)?t[o]:t),n,s,i));if(Zo(s)&&!i)return void(512&s.shapeFlag&&s.type.__asyncResolved&&s.component.subTree.component&&Lo(e,t,n,s.component.subTree));const a=4&s.shapeFlag?la(s.component):s.el,l=i?null:a,{i:c,r:u}=e,f=t&&t.r,m=c.refs===o?c.refs={}:c.refs,g=c.setupState,b=Pt(g),_=g===o?r:e=>!Bo(m,e)&&d(b,e),w=(e,t)=>!t||!Bo(m,t);if(null!=f&&f!==u)if(jo(t),v(f))m[f]=null,_(f)&&(g[f]=null);else if(jt(f)){const e=t;w(0,e.k)&&(f.value=null),e.k&&(m[e.k]=null)}if(y(u))fn(u,c,12,[l,m]);else{const t=v(u),o=jt(u);if(t||o){const s=()=>{if(e.f){const n=t?_(u)?g[u]:m[u]:w()||!e.k?u.value:m[e.k];if(i)h(n)&&p(n,a);else if(h(n))n.includes(a)||n.push(a);else if(t)m[u]=[a],_(u)&&(g[u]=m[u]);else{const t=[a];w(0,e.k)&&(u.value=t),e.k&&(m[e.k]=t)}}else t?(m[u]=l,_(u)&&(g[u]=l)):o&&(w(0,e.k)&&(u.value=l),e.k&&(m[e.k]=l))};if(l){const t=()=>{s(),Fo.delete(e)};t.id=-1,Fo.set(e,t),zi(t,n)}else jo(e),s()}}}function jo(e){const t=Fo.get(e);t&&(t.flags|=8,Fo.delete(e))}let Uo=!1;const Do=()=>{Uo||(console.error("Hydration completed but contains mismatches."),Uo=!0)},Vo=e=>{if(1===e.nodeType)return(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0},$o=e=>8===e.nodeType;function Ho(e){const{mt:t,p:n,o:{patchProp:o,createText:s,nextSibling:i,parentNode:r,remove:l,insert:c,createComment:p}}=e,u=(n,o,a,l,p,b=!1)=>{b=b||!!o.dynamicChildren;const _=$o(n)&&"["===n.data,w=()=>m(n,o,a,l,p,_),{type:S,ref:k,shapeFlag:x,patchFlag:A}=o;let C=n.nodeType;o.el=n,-2===A&&(b=!1,o.dynamicChildren=null);let T=null;switch(S){case dr:3!==C?""===o.children?(c(o.el=s(""),r(n),n),T=n):T=w():(n.data!==o.children&&(Do(),n.data=o.children),T=i(n));break;case hr:v(n)?(T=i(n),y(o.el=n.content.firstChild,n,a)):T=8!==C||_?w():i(n);break;case fr:if(_&&(C=(n=i(n)).nodeType),1===C||3===C){T=n;const e=!o.children.length;for(let t=0;t{r=r||!!t.dynamicChildren;const{type:c,props:p,patchFlag:u,shapeFlag:d,dirs:f,transition:m}=t,g="input"===c||"option"===c;if(g||-1!==u){f&&qn(t,null,n,"created");let c,b=!1;if(v(e)){b=Yi(null,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;if(b){const e=o.getAttribute("class");e&&(o.$cls=e),m.beforeEnter(o)}y(o,e,n),t.el=e=o}if(16&d&&(!p||!p.innerHTML&&!p.textContent)){let o=h(e.firstChild,t,e,n,s,i,r);for(;o;){zo(e,1)||Do();const t=o;o=o.nextSibling,l(t)}}else if(8&d){let n=t.children;"\n"!==n[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(n=n.slice(1));const{textContent:o}=e;o!==n&&o!==n.replace(/\r\n|\r/g,"\n")&&(zo(e,0)||Do(),e.textContent=t.children)}if(p)if(g||!r||48&u){const t=e.tagName.includes("-");for(const s in p)(g&&(s.endsWith("value")||"indeterminate"===s)||a(s)&&!T(s)||"."===s[0]||t&&!T(s))&&o(e,s,null,p[s],void 0,n)}else if(p.onClick)o(e,"onClick",null,p.onClick,void 0,n);else if(4&u&&It(p.style))for(const e in p.style)p.style[e];(c=p&&p.onVnodeBeforeMount)&&Vr(c,n,t),f&&qn(t,null,n,"beforeMount"),((c=p&&p.onVnodeMounted)||f||b)&&cr(()=>{c&&Vr(c,n,t),b&&m.enter(e),f&&qn(t,null,n,"mounted")},s)}return e.nextSibling},h=(e,t,o,r,a,l,p)=>{p=p||!!t.dynamicChildren;const d=t.children,h=d.length;for(let t=0;t{const{slotScopeIds:l}=t;l&&(s=s?s.concat(l):l);const u=r(e),d=h(i(e),t,u,n,o,s,a);return d&&$o(d)&&"]"===d.data?i(t.anchor=d):(Do(),c(t.anchor=p("]"),u,d),d)},m=(e,t,o,s,a,c)=>{if(zo(e.parentElement,1)||Do(),t.el=null,c){const t=g(e);for(;;){const n=i(e);if(!n||n===t)break;l(n)}}const p=i(e),u=r(e);return l(e),n(null,t,u,p,o,s,Vo(u),a),o&&(o.vnode.el=t.el,Ni(o,t.el)),p},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=i(e))&&$o(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return i(e);o--}return e},y=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let s=n;for(;s;)s.vnode.el===t&&(s.vnode.el=s.subTree.el=e),s=s.parent},v=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),In(),void(t._vnode=e);u(t.firstChild,e,null,null,null),In(),t._vnode=e},u]}const Wo="data-allow-mismatch",qo={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function zo(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(Wo);)e=e.parentElement;const n=e&&e.getAttribute(Wo);if(null==n)return!1;if(""===n)return!0;{const e=n.split(",");return!(0!==t||!e.includes("children"))||e.includes(qo[t])}}const Ko=$().requestIdleCallback||(e=>setTimeout(e,1)),Jo=$().cancelIdleCallback||(e=>clearTimeout(e)),Go=(e=1e4)=>t=>{const n=Ko(t,{timeout:e});return()=>Jo(n)},Qo=e=>(t,n)=>{const o=new IntersectionObserver(e=>{for(const n of e)if(n.isIntersecting){o.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element)return function(e){const{top:t,left:n,bottom:o,right:s}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:r}=window;return(t>0&&t0&&o0&&n0&&so.disconnect()},Xo=e=>t=>{if(e){const n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},Yo=(e=[])=>(t,n)=>{v(e)&&(e=[e]);let o=!1;const s=e=>{o||(o=!0,i(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},i=()=>{n(t=>{for(const n of e)t.removeEventListener(n,s)})};return n(t=>{for(const n of e)t.addEventListener(n,s,{once:!0})}),i},Zo=e=>!!e.type.__asyncLoader;function es(e){y(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:s=200,hydrate:i,timeout:r,suspensible:a=!0,onError:l}=e;let c,p=null,u=0;const d=()=>{let e;return p||(e=p=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((u++,p=null,d())),()=>n(e),u+1)});throw e}).then(t=>e!==p&&p?p:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t)))};return Oo({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(e,t,n){let o=!1;(t.bu||(t.bu=[])).push(()=>o=!0);const s=()=>{o||n()},r=i?()=>{const n=i(s,t=>function(e,t){if($o(e)&&"["===e.data){let n=1,o=e.nextSibling;for(;o;){if(1===o.nodeType){if(!1===t(o))break}else if($o(o))if("]"===o.data){if(0===--n)break}else"["===o.data&&n++;o=o.nextSibling}}else t(e)}(e,t));n&&(t.bum||(t.bum=[])).push(n)}:s;c?r():d().then(()=>!t.isUnmounted&&r())},get __asyncResolved(){return c},setup(){const e=qr;if(Mo(e),c)return()=>ts(c,e);const t=t=>{p=null,gn(t,e,13,!o)};if(a&&e.suspense||ea)return d().then(t=>()=>ts(t,e)).catch(e=>(t(e),()=>o?Or(o,{error:e}):null));const i=Ut(!1),l=Ut(),u=Ut(!!s);return s&&setTimeout(()=>{u.value=!1},s),null!=r&&setTimeout(()=>{if(!i.value&&!l.value){const e=new Error(`Async component timed out after ${r}ms.`);t(e),l.value=e}},r),d().then(()=>{i.value=!0,e.parent&&ns(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),l.value=e}),()=>i.value&&c?ts(c,e):l.value&&o?Or(o,{error:l.value}):n&&!u.value?ts(n,e):void 0}})}function ts(e,t){const{ref:n,props:o,children:s,ce:i}=t.vnode,r=Or(e,o,s);return r.ref=n,r.ce=i,delete t.vnode.ce,r}const ns=e=>e.type.__isKeepAlive,os={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=zr(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const s=new Map,i=new Set;let r=null;const a=n.suspense,{renderer:{p:l,m:c,um:p,o:{createElement:u}}}=o,d=u("div");function h(e){ps(e),p(e,n,a,!0)}function f(e){s.forEach((t,n)=>{const o=ca(Zo(t)?t.type.__asyncResolved||{}:t.type);o&&!e(o)&&m(n)})}function m(e){const t=s.get(e);!t||r&&Cr(t,r)?r&&ps(r):h(t),s.delete(e),i.delete(e)}o.activate=(e,t,n,o,s)=>{const i=e.component;c(e,t,n,0,a),l(i.vnode,e,t,n,i,a,o,e.slotScopeIds,s),zi(()=>{i.isDeactivated=!1,i.a&&L(i.a);const t=e.props&&e.props.onVnodeMounted;t&&Vr(t,i.parent,e)},a)},o.deactivate=e=>{const t=e.component;tr(t.m),tr(t.a),c(e,d,null,1,a),zi(()=>{t.da&&L(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Vr(n,t.parent,e),t.isDeactivated=!0},a)},eo(()=>[e.include,e.exclude],([e,t])=>{e&&f(t=>is(e,t)),t&&f(e=>!is(t,e))},{flush:"post",deep:!0});let g=null;const y=()=>{null!=g&&(or(n.subTree.type)?zi(()=>{s.set(g,us(n.subTree))},n.subTree.suspense):s.set(g,us(n.subTree)))};return ms(y),ys(y),vs(()=>{s.forEach(e=>{const{subTree:t,suspense:o}=n,s=us(t);if(e.type===s.type&&e.key===s.key){ps(s);const e=s.component.da;return void(e&&zi(e,o))}h(e)})}),()=>{if(g=null,!t.default)return r=null;const n=t.default(),o=n[0];if(n.length>1)return r=null,n;if(!Ar(o)||!(4&o.shapeFlag||128&o.shapeFlag))return r=null,o;let a=us(o);if(a.type===hr)return r=null,a;const l=a.type,c=ca(Zo(a)?a.type.__asyncResolved||{}:l),{include:p,exclude:u,max:d}=e;if(p&&(!c||!is(p,c))||u&&c&&is(u,c))return a.shapeFlag&=-257,r=a,o;const h=null==a.key?l:a.key,f=s.get(h);return a.el&&(a=Mr(a),128&o.shapeFlag&&(o.ssContent=a)),g=h,f?(a.el=f.el,a.component=f.component,a.transition&&No(a,a.transition),a.shapeFlag|=512,i.delete(h),i.add(h)):(i.add(h),d&&i.size>parseInt(d,10)&&m(i.values().next().value)),a.shapeFlag|=256,r=a,or(o.type)?o:a}}},ss=os;function is(e,t){return h(e)?e.some(e=>is(e,t)):v(e)?e.split(",").includes(t):"[object RegExp]"===k(e)&&(e.lastIndex=0,e.test(t))}function rs(e,t){ls(e,"a",t)}function as(e,t){ls(e,"da",t)}function ls(e,t,n=qr){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ds(t,o,n),n){let e=n.parent;for(;e&&e.parent;)ns(e.parent.vnode)&&cs(o,t,n,e),e=e.parent}}function cs(e,t,n,o){const s=ds(t,e,o,!0);bs(()=>{p(o[t],s)},n)}function ps(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function us(e){return 128&e.shapeFlag?e.ssContent:e}function ds(e,t,n=qr,o=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Pe();const s=Gr(n),i=mn(t,n,e,o);return s(),Be(),i});return o?s.unshift(i):s.push(i),i}}const hs=e=>(t,n=qr)=>{ea&&"sp"!==e||ds(e,(...e)=>t(...e),n)},fs=hs("bm"),ms=hs("m"),gs=hs("bu"),ys=hs("u"),vs=hs("bum"),bs=hs("um"),_s=hs("sp"),ws=hs("rtg"),Ss=hs("rtc");function ks(e,t=qr){ds("ec",e,t)}const xs="components",As="directives";function Cs(e,t){return Is(xs,e,!0,t)||e}const Ts=Symbol.for("v-ndc");function Es(e){return v(e)?Is(xs,e,!1)||e:e||Ts}function Ns(e){return Is(As,e)}function Is(e,t,n=!0,o=!1){const s=Ln||qr;if(s){const n=s.type;if(e===xs){const e=ca(n,!1);if(e&&(e===t||e===O(t)||e===P(O(t))))return n}const i=Os(s[e]||n[e],t)||Os(s.appContext[e],t);return!i&&o?n:i}}function Os(e,t){return e&&(e[t]||e[O(t)]||e[P(O(t))])}function Rs(e,t,n,o){let s;const i=n&&n[o],r=h(e);if(r||v(e)){let n=!1,o=!1;r&&It(e)&&(n=!Rt(e),o=Ot(e),e=Je(e)),s=new Array(e.length);for(let r=0,a=e.length;rt(e,n,void 0,i&&i[n]));else{const n=Object.keys(e);s=new Array(n.length);for(let o=0,r=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Ps(e,t,n={},o,s){if(Ln.ce||Ln.parent&&Zo(Ln.parent)&&Ln.parent.ce){const e=Object.keys(n).length>0;return"default"!==t&&(n.name=t),yr(),xr(ur,null,[Or("slot",n,o&&o())],e?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),yr();const r=i&&Bs(i(n)),a=n.key||r&&r.key,l=xr(ur,{key:(a&&!b(a)?a:`_${t}`)+(!r&&o?"_fb":"")},r||(o?o():[]),r&&1===e._?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Bs(e){return e.some(e=>!Ar(e)||e.type!==hr&&!(e.type===ur&&!Bs(e.children)))?e:null}function Fs(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:B(o)]=e[o];return n}const Ls=e=>e?Xr(e)?la(e):Ls(e.parent):null,js=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ls(e.parent),$root:e=>Ls(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ri(e),$forceUpdate:e=>e.f||(e.f=()=>{Cn(e.update)}),$nextTick:e=>e.n||(e.n=An.bind(e.proxy)),$watch:e=>no.bind(e)}),Us=(e,t)=>e!==o&&!e.__isScriptSetup&&d(e,t),Ds={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:s,data:i,props:r,accessCache:a,type:l,appContext:c}=e;if("$"!==t[0]){const e=a[t];if(void 0!==e)switch(e){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Us(s,t))return a[t]=1,s[t];if(i!==o&&d(i,t))return a[t]=2,i[t];if(d(r,t))return a[t]=3,r[t];if(n!==o&&d(n,t))return a[t]=4,n[t];oi&&(a[t]=0)}}const p=js[t];let u,h;return p?("$attrs"===t&&qe(e.attrs,0,""),p(e)):(u=l.__cssModules)&&(u=u[t])?u:n!==o&&d(n,t)?(a[t]=4,n[t]):(h=c.config.globalProperties,d(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:s,setupState:i,ctx:r}=e;return Us(i,t)?(i[t]=n,!0):s!==o&&d(s,t)?(s[t]=n,!0):!(d(e.props,t)||"$"===t[0]&&t.slice(1)in e||(r[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,props:r,type:a}},l){let c;return!!(n[l]||e!==o&&"$"!==l[0]&&d(e,l)||Us(t,l)||d(r,l)||d(s,l)||d(js,l)||d(i.config.globalProperties,l)||(c=a.__cssModules)&&c[l])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Vs=c({},Ds,{get(e,t){if(t!==Symbol.unscopables)return Ds.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!H(t)});function $s(){return null}function Hs(){return null}function Ws(e){}function qs(e){}function zs(){return null}function Ks(){}function Js(e,t){return null}function Gs(){return Xs().slots}function Qs(){return Xs().attrs}function Xs(e){const t=zr();return t.setupContext||(t.setupContext=aa(t))}function Ys(e){return h(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Zs(e,t){const n=Ys(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?h(o)||y(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function ei(e,t){return e&&t?h(e)&&h(t)?e.concat(t):c({},Ys(e),Ys(t)):e||t}function ti(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ni(e){const t=zr(),n=ea;let o=e();Qr(),n&&Jr(!1);const s=()=>{Gr(t),n&&Jr(!0)},i=()=>{zr()!==t&&t.scope.off(),Qr(),n&&Jr(!1)};return w(o)&&(o=o.catch(e=>{throw s(),Promise.resolve().then(()=>Promise.resolve().then(i)),e})),[o,()=>{s(),Promise.resolve().then(i)}]}let oi=!0;function si(e,t,n){mn(h(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ii(e,t,n,o){let s=o.includes(".")?oo(n,o):()=>n[o];if(v(e)){const n=t[e];y(n)&&eo(s,n)}else if(y(e))eo(s,e.bind(n));else if(_(e))if(h(e))e.forEach(e=>ii(e,t,n,o));else{const o=y(e.handler)?e.handler.bind(n):t[e.handler];y(o)&&eo(s,o,e)}}function ri(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,a=i.get(t);let l;return a?l=a:s.length||n||o?(l={},s.length&&s.forEach(e=>ai(l,e,r,!0)),ai(l,t,r)):l=t,_(t)&&i.set(t,l),l}function ai(e,t,n,o=!1){const{mixins:s,extends:i}=t;i&&ai(e,i,n,!0),s&&s.forEach(t=>ai(e,t,n,!0));for(const s in t)if(o&&"expose"===s);else{const o=li[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const li={data:ci,props:hi,emits:hi,methods:di,computed:di,beforeCreate:ui,created:ui,beforeMount:ui,mounted:ui,beforeUpdate:ui,updated:ui,beforeDestroy:ui,beforeUnmount:ui,destroyed:ui,unmounted:ui,activated:ui,deactivated:ui,errorCaptured:ui,serverPrefetch:ui,components:di,directives:di,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const o in t)n[o]=ui(e[o],t[o]);return n},provide:ci,inject:function(e,t){return di(pi(e),pi(t))}};function ci(e,t){return t?e?function(){return c(y(e)?e.call(this,this):e,y(t)?t.call(this,this):t)}:t:e}function pi(e){if(h(e)){const t={};for(let n=0;n(i.has(e)||(e&&y(e.install)?(i.add(e),e.install(l,...t)):y(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(s.mixins.includes(e)||s.mixins.push(e),l),component:(e,t)=>t?(s.components[e]=t,l):s.components[e],directive:(e,t)=>t?(s.directives[e]=t,l):s.directives[e],mount(i,r,c){if(!a){const p=l._ceVNode||Or(n,o);return p.appContext=s,!0===c?c="svg":!1===c&&(c=void 0),r&&t?t(p,i):e(p,i,c),a=!0,l._container=i,i.__vue_app__=l,la(p.component)}},onUnmount(e){r.push(e)},unmount(){a&&(mn(r,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(s.provides[e]=t,l),runWithContext(e){const t=yi;yi=l;try{return e()}finally{yi=t}}};return l}}let yi=null;function vi(e,t,n=o){const s=zr(),i=O(t),r=M(t),a=bi(e,i),l=Gt((a,l)=>{let c,p,u=o;return Zn(()=>{const t=e[i];F(c,t)&&(c=t,l())}),{get:()=>(a(),n.get?n.get(c):c),set(e){const a=n.set?n.set(e):e;if(!(F(a,c)||u!==o&&F(e,u)))return;const d=s.vnode.props;d&&(t in d||i in d||r in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${r}`in d)||(c=e,l()),s.emit(`update:${t}`,a),F(e,a)&&F(e,u)&&!F(a,p)&&l(),u=e,p=a}}});return l[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?a||o:l,done:!1}:{done:!0}}},l}const bi=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${M(t)}Modifiers`];function _i(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||o;let i=n;const r=t.startsWith("update:"),a=r&&bi(s,t.slice(7));let l;a&&(a.trim&&(i=n.map(e=>v(e)?e.trim():e)),a.number&&(i=n.map(U)));let c=s[l=B(t)]||s[l=B(O(t))];!c&&r&&(c=s[l=B(M(t))]),c&&mn(c,e,6,i);const p=s[l+"Once"];if(p){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,mn(p,e,6,i)}}const wi=new WeakMap;function Si(e,t,n=!1){const o=n?wi:t.emitsCache,s=o.get(e);if(void 0!==s)return s;const i=e.emits;let r={},a=!1;if(!y(e)){const o=e=>{const n=Si(e,t,!0);n&&(a=!0,c(r,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(h(i)?i.forEach(e=>r[e]=null):c(r,i),_(e)&&o.set(e,r),r):(_(e)&&o.set(e,null),null)}function ki(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,M(t))||d(e,t))}function xi(e){const{type:t,vnode:n,proxy:o,withProxy:s,propsOptions:[i],slots:r,attrs:a,emit:c,render:p,renderCache:u,props:d,data:h,setupState:f,ctx:m,inheritAttrs:g}=e,y=Un(e);let v,b;try{if(4&n.shapeFlag){const e=s||o,t=e;v=Lr(p.call(t,e,u,d,f,h,m)),b=a}else{const e=t;v=Lr(e.length>1?e(d,{attrs:a,slots:r,emit:c}):e(d,null)),b=t.props?a:Ai(a)}}catch(t){mr.length=0,gn(t,e,1),v=Or(hr)}let _=v;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=_;e.length&&7&t&&(i&&e.some(l)&&(b=Ci(b,i)),_=Mr(_,b,!1,!0))}return n.dirs&&(_=Mr(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&No(_,n.transition),v=_,Un(y),v}const Ai=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},Ci=(e,t)=>{const n={};for(const o in e)l(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Ti(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;sObject.create(Ii),Ri=e=>Object.getPrototypeOf(e)===Ii;function Mi(e,t,n,s){const[i,r]=e.propsOptions;let a,l=!1;if(t)for(let o in t){if(T(o))continue;const c=t[o];let p;i&&d(i,p=O(o))?r&&r.includes(p)?(a||(a={}))[p]=c:n[p]=c:ki(e.emitsOptions,o)||o in s&&c===s[o]||(s[o]=c,l=!0)}if(r){const t=Pt(n),s=a||o;for(let o=0;o{u=!0;const[n,o]=Fi(e,t,!0);c(l,n),o&&p.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!a&&!u)return _(e)&&i.set(e,s),s;if(h(a))for(let e=0;e"_"===e||"_ctx"===e||"$stable"===e,Ui=e=>h(e)?e.map(Lr):[Lr(e)],Di=(e,t,n)=>{if(t._n)return t;const o=Hn((...e)=>Ui(t(...e)),n);return o._c=!1,o},Vi=(e,t,n)=>{const o=e._ctx;for(const n in e){if(ji(n))continue;const s=e[n];if(y(s))t[n]=Di(0,s,o);else if(null!=s){const e=Ui(s);t[n]=()=>e}}},$i=(e,t)=>{const n=Ui(t);e.slots.default=()=>n},Hi=(e,t,n)=>{for(const o in t)!n&&ji(o)||(e[o]=t[o])},Wi=(e,t,n)=>{const o=e.slots=Oi();if(32&e.vnode.shapeFlag){const e=t._;e?(Hi(o,t,n),n&&j(o,"_",e,!0)):Vi(t,o)}else t&&$i(e,t)},qi=(e,t,n)=>{const{vnode:s,slots:i}=e;let r=!0,a=o;if(32&s.shapeFlag){const e=t._;e?n&&1===e?r=!1:Hi(i,t,n):(r=!t.$stable,Vi(t,i)),a=t}else t&&($i(e,t),a={default:1});if(r)for(const e in i)ji(e)||null!=a[e]||delete i[e]},zi=cr;function Ki(e){return Gi(e)}function Ji(e){return Gi(e,Ho)}function Gi(e,t){$().__VUE__=!0;const{insert:n,remove:r,patchProp:a,createElement:l,createText:c,createComment:p,setText:u,setElementText:h,parentNode:f,nextSibling:m,setScopeId:g=i,insertStaticContent:y}=e,v=(e,t,n,o=null,s=null,i=null,r=void 0,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Cr(e,t)&&(o=G(e),W(e,s,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:p,shapeFlag:u}=t;switch(c){case dr:b(e,t,n,o);break;case hr:_(e,t,n,o);break;case fr:null==e&&w(t,n,o,r);break;case ur:I(e,t,n,o,s,i,r,a,l);break;default:1&u?S(e,t,n,o,s,i,r,a,l):6&u?R(e,t,n,o,s,i,r,a,l):(64&u||128&u)&&c.process(e,t,n,o,s,i,r,a,l,Y)}null!=p&&s?Lo(p,e&&e.ref,i,t||e,!t):null==p&&e&&null!=e.ref&&Lo(e.ref,null,i,e,!0)},b=(e,t,o,s)=>{if(null==e)n(t.el=c(t.children),o,s);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},_=(e,t,o,s)=>{null==e?n(t.el=p(t.children||""),o,s):t.el=e.el},w=(e,t,n,o)=>{[e.el,e.anchor]=y(e.children,t,n,o,e.el,e.anchor)},S=(e,t,n,o,s,i,r,a,l)=>{if("svg"===t.type?r="svg":"math"===t.type&&(r="mathml"),null==e)k(t,n,o,s,i,r,a,l);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),C(e,t,s,i,r,a,l)}finally{n&&n._endPatch()}}},k=(e,t,o,s,i,r,c,p)=>{let u,d;const{props:f,shapeFlag:m,transition:g,dirs:y}=e;if(u=e.el=l(e.type,r,f&&f.is,f),8&m?h(u,e.children):16&m&&A(e.children,u,null,s,i,Qi(e,r),c,p),y&&qn(e,null,s,"created"),x(u,e,e.scopeId,c,s),f){for(const e in f)"value"===e||T(e)||a(u,e,null,f[e],r,s);"value"in f&&a(u,"value",null,f.value,r),(d=f.onVnodeBeforeMount)&&Vr(d,s,e)}y&&qn(e,null,s,"beforeMount");const v=Yi(i,g);v&&g.beforeEnter(u),n(u,t,o),((d=f&&f.onVnodeMounted)||v||y)&&zi(()=>{try{d&&Vr(d,s,e),v&&g.enter(u),y&&qn(e,null,s,"mounted")}finally{}},i)},x=(e,t,n,o,s)=>{if(n&&g(e,n),o)for(let t=0;t{for(let c=l;c{const c=t.el=e.el;let{patchFlag:p,dynamicChildren:u,dirs:d}=t;p|=16&e.patchFlag;const f=e.props||o,m=t.props||o;let g;if(n&&Xi(n,!1),(g=m.onVnodeBeforeUpdate)&&Vr(g,n,t,e),d&&qn(t,e,n,"beforeUpdate"),n&&Xi(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(c,""),u?E(e.dynamicChildren,u,c,n,s,Qi(t,i),r):l||U(e,t,c,null,n,s,Qi(t,i),r,!1),p>0){if(16&p)N(c,f,m,n,i);else if(2&p&&f.class!==m.class&&a(c,"class",null,m.class,i),4&p&&a(c,"style",f.style,m.style,i),8&p){const e=t.dynamicProps;for(let t=0;t{g&&Vr(g,n,t,e),d&&qn(t,e,n,"updated")},s)},E=(e,t,n,o,s,i,r)=>{for(let a=0;a{if(t!==n){if(t!==o)for(const o in t)T(o)||o in n||a(e,o,t[o],null,i,s);for(const o in n){if(T(o))continue;const r=n[o],l=t[o];r!==l&&"value"!==o&&a(e,o,l,r,i,s)}"value"in n&&a(e,"value",t.value,n.value,i)}},I=(e,t,o,s,i,r,a,l,p)=>{const u=t.el=e?e.el:c(""),d=t.anchor=e?e.anchor:c("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(u,o,s),n(d,o,s),A(t.children||[],o,d,i,r,a,l,p)):h>0&&64&h&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(E(e.dynamicChildren,f,o,i,r,a,l),(null!=t.key||i&&t===i.subTree)&&Zi(e,t,!0)):U(e,t,o,d,i,r,a,l,p)},R=(e,t,n,o,s,i,r,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?s.ctx.activate(t,n,o,r,l):P(t,n,o,s,i,r,l):B(e,t,l)},P=(e,t,n,o,s,i,r)=>{const a=e.component=Wr(e,o,s);if(ns(e)&&(a.ctx.renderer=Y),ta(a,!1,r),a.asyncDep){if(s&&s.registerDep(a,F,r),!e.el){const o=a.subTree=Or(hr);_(null,o,t,n),e.placeholder=o.el}}else F(a,e,t,n,s,i,r)},B=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:s,component:i}=e,{props:r,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!s&&!a||a&&a.$stable)||o!==r&&(o?!r||Ti(o,r,c):!!r);if(1024&l)return!0;if(16&l)return o?Ti(o,r,c):!!r;if(8&l){const e=t.dynamicProps;for(let t=0;t{e.scope.on();const a=e.effect=new ye(()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:a,vnode:c}=e;{const n=er(e);if(n)return t&&(t.el=c.el,j(e,t,r)),void n.asyncDep.then(()=>{zi(()=>{e.isUnmounted||l()},s)})}let p,u=t;Xi(e,!1),t?(t.el=c.el,j(e,t,r)):t=c,n&&L(n),(p=t.props&&t.props.onVnodeBeforeUpdate)&&Vr(p,a,t,c),Xi(e,!0);const d=xi(e),h=e.subTree;e.subTree=d,v(h,d,f(h.el),G(h),e,s,i),t.el=d.el,null===u&&Ni(e,d.el),o&&zi(o,s),(p=t.props&&t.props.onVnodeUpdated)&&zi(()=>Vr(p,a,t,c),s)}else{let r;const{el:a,props:l}=t,{bm:c,m:p,parent:u,root:d,type:h}=e,f=Zo(t);if(Xi(e,!1),c&&L(c),!f&&(r=l&&l.onVnodeBeforeMount)&&Vr(r,u,t),Xi(e,!0),a&&ee){const t=()=>{e.subTree=xi(e),ee(a,e.subTree,e,s,null)};f&&h.__asyncHydrate?h.__asyncHydrate(a,e,t):t()}else{d.ce&&d.ce._hasShadowRoot()&&d.ce._injectChildStyle(h,e.parent?e.parent.type:void 0);const r=e.subTree=xi(e);v(null,r,n,o,e,s,i),t.el=r.el}if(p&&zi(p,s),!f&&(r=l&&l.onVnodeMounted)){const e=t;zi(()=>Vr(r,u,e),s)}(256&t.shapeFlag||u&&Zo(u.vnode)&&256&u.vnode.shapeFlag)&&e.a&&zi(e.a,s),e.isMounted=!0,t=n=o=null}});e.scope.off();const l=e.update=a.run.bind(a),c=e.job=a.runIfDirty.bind(a);c.i=e,c.id=e.uid,a.scheduler=()=>Cn(c),Xi(e,!0),l()},j=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:s,attrs:i,vnode:{patchFlag:r}}=e,a=Pt(s),[l]=e.propsOptions;let c=!1;if(!(o||r>0)||16&r){let o;Mi(e,t,s,i)&&(c=!0);for(const i in a)t&&(d(t,i)||(o=M(i))!==i&&d(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(s[i]=Pi(l,a,i,void 0,e,!0)):delete s[i]);if(i!==a)for(const e in i)t&&d(t,e)||(delete i[e],c=!0)}else if(8&r){const n=e.vnode.dynamicProps;for(let o=0;o{const c=e&&e.children,p=e?e.shapeFlag:0,u=t.children,{patchFlag:d,shapeFlag:f}=t;if(d>0){if(128&d)return void V(c,u,n,o,s,i,r,a,l);if(256&d)return void D(c,u,n,o,s,i,r,a,l)}8&f?(16&p&&J(c,s,i),u!==c&&h(n,u)):16&p?16&f?V(c,u,n,o,s,i,r,a,l):J(c,s,i,!0):(8&p&&h(n,""),16&f&&A(u,n,o,s,i,r,a,l))},D=(e,t,n,o,i,r,a,l,c)=>{t=t||s;const p=(e=e||s).length,u=t.length,d=Math.min(p,u);let h;for(h=0;hu?J(e,i,r,!0,!1,d):A(t,n,o,i,r,a,l,c,d)},V=(e,t,n,o,i,r,a,l,c)=>{let p=0;const u=t.length;let d=e.length-1,h=u-1;for(;p<=d&&p<=h;){const o=e[p],s=t[p]=c?jr(t[p]):Lr(t[p]);if(!Cr(o,s))break;v(o,s,n,null,i,r,a,l,c),p++}for(;p<=d&&p<=h;){const o=e[d],s=t[h]=c?jr(t[h]):Lr(t[h]);if(!Cr(o,s))break;v(o,s,n,null,i,r,a,l,c),d--,h--}if(p>d){if(p<=h){const e=h+1,s=eh)for(;p<=d;)W(e[p],i,r,!0),p++;else{const f=p,m=p,g=new Map;for(p=m;p<=h;p++){const e=t[p]=c?jr(t[p]):Lr(t[p]);null!=e.key&&g.set(e.key,p)}let y,b=0;const _=h-m+1;let w=!1,S=0;const k=new Array(_);for(p=0;p<_;p++)k[p]=0;for(p=f;p<=d;p++){const o=e[p];if(b>=_){W(o,i,r,!0);continue}let s;if(null!=o.key)s=g.get(o.key);else for(y=m;y<=h;y++)if(0===k[y-m]&&Cr(o,t[y])){s=y;break}void 0===s?W(o,i,r,!0):(k[s-m]=p+1,s>=S?S=s:w=!0,v(o,t[s],n,null,i,r,a,l,c),b++)}const x=w?function(e){const t=e.slice(),n=[0];let o,s,i,r,a;const l=e.length;for(o=0;o>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}(k):s;for(y=x.length-1,p=_-1;p>=0;p--){const e=m+p,s=t[e],d=t[e+1],h=e+1{const{el:a,type:l,transition:c,children:p,shapeFlag:u}=e;if(6&u)H(e.component.subTree,t,o,s);else if(128&u)e.suspense.move(t,o,s);else if(64&u)l.move(e,t,o,Y);else if(l!==ur)if(l!==fr)if(2!==s&&1&u&&c)if(0===s)c.beforeEnter(a),n(a,t,o),zi(()=>c.enter(a),i);else{const{leave:s,delayLeave:i,afterLeave:l}=c,p=()=>{e.ctx.isUnmounted?r(a):n(a,t,o)},u=()=>{a._isLeaving&&a[go](!0),s(a,()=>{p(),l&&l()})};i?i(a,p,u):u()}else n(a,t,o);else(({el:e,anchor:t},o,s)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,s),e=i;n(t,o,s)})(e,t,o);else{n(a,t,o);for(let e=0;e{const{type:i,props:r,ref:a,children:l,dynamicChildren:c,shapeFlag:p,patchFlag:u,dirs:d,cacheIndex:h,memo:f}=e;if(-2===u&&(s=!1),null!=a&&(Pe(),Lo(a,null,n,e,!0),Be()),null!=h&&(t.renderCache[h]=void 0),256&p)return void t.ctx.deactivate(e);const m=1&p&&d,g=!Zo(e);let y;if(g&&(y=r&&r.onVnodeBeforeUnmount)&&Vr(y,t,e),6&p)K(e.component,n,o);else{if(128&p)return void e.suspense.unmount(n,o);m&&qn(e,null,t,"beforeUnmount"),64&p?e.type.remove(e,t,n,Y,o):c&&!c.hasOnce&&(i!==ur||u>0&&64&u)?J(c,t,n,!1,!0):(i===ur&&384&u||!s&&16&p)&&J(l,t,n),o&&q(e)}const v=null!=f&&null==h;(g&&(y=r&&r.onVnodeUnmounted)||m||v)&&zi(()=>{y&&Vr(y,t,e),m&&qn(e,null,t,"unmounted"),v&&(e.el=null)},n)},q=e=>{const{type:t,el:n,anchor:o,transition:s}=e;if(t===ur)return void z(n,o);if(t===fr)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),r(e),e=n;r(t)})(e);const i=()=>{r(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:o}=s,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},z=(e,t)=>{let n;for(;e!==t;)n=m(e),r(e),e=n;r(t)},K=(e,t,n)=>{const{bum:o,scope:s,job:i,subTree:r,um:a,m:l,a:c}=e;tr(l),tr(c),o&&L(o),s.stop(),i&&(i.flags|=8,W(r,e,t,n)),a&&zi(a,t),zi(()=>{e.isUnmounted=!0},t)},J=(e,t,n,o=!1,s=!1,i=0)=>{for(let r=i;r{if(6&e.shapeFlag)return G(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[io];return n?m(n):t};let Q=!1;const X=(e,t,n)=>{let o;null==e?t._vnode&&(W(t._vnode,null,null,!0),o=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Q||(Q=!0,Nn(o),In(),Q=!1)},Y={p:v,um:W,m:H,r:q,mt:P,mc:A,pc:U,pbc:E,n:G,o:e};let Z,ee;return t&&([Z,ee]=t(Y)),{render:X,hydrate:Z,createApp:gi(X,Z)}}function Qi({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Xi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Yi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Zi(e,t,n=!1){const o=e.children,s=t.children;if(h(o)&&h(s))for(let e=0;ee.__isSuspense;let sr=0;const ir={name:"Suspense",__isSuspense:!0,process(e,t,n,o,s,i,r,a,l,c){if(null==e)!function(e,t,n,o,s,i,r,a,l){const{p:c,o:{createElement:p}}=l,u=p("div"),d=e.suspense=ar(e,s,o,t,u,n,i,r,a,l);c(null,d.pendingBranch=e.ssContent,u,null,o,d,i,r),d.deps>0?(rr(e,"onPending"),rr(e,"onFallback"),c(null,e.ssFallback,t,n,o,null,i,r),pr(d,e.ssFallback)):d.resolve(!1,!0)}(t,n,o,s,i,r,a,l,c);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,s,i,r,a,{p:l,um:c,o:{createElement:p}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:y}=u;if(m)u.pendingBranch=d,Cr(m,d)?(l(m,d,u.hiddenContainer,null,s,u,i,r,a),u.deps<=0?u.resolve():g&&(y||(l(f,h,n,o,s,null,i,r,a),pr(u,h)))):(u.pendingId=sr++,y?(u.isHydrating=!1,u.activeBranch=m):c(m,s,u),u.deps=0,u.effects.length=0,u.hiddenContainer=p("div"),g?(l(null,d,u.hiddenContainer,null,s,u,i,r,a),u.deps<=0?u.resolve():(l(f,h,n,o,s,null,i,r,a),pr(u,h))):f&&Cr(f,d)?(l(f,d,n,o,s,u,i,r,a),u.resolve(!0)):(l(null,d,u.hiddenContainer,null,s,u,i,r,a),u.deps<=0&&u.resolve()));else if(f&&Cr(f,d))l(f,d,n,o,s,u,i,r,a),pr(u,d);else if(rr(t,"onPending"),u.pendingBranch=d,512&d.shapeFlag?u.pendingId=d.component.suspenseId:u.pendingId=sr++,l(null,d,u.hiddenContainer,null,s,u,i,r,a),u.deps<=0)u.resolve();else{const{timeout:e,pendingId:t}=u;e>0?setTimeout(()=>{u.pendingId===t&&u.fallback(h)},e):0===e&&u.fallback(h)}}(e,t,n,o,s,r,a,l,c)}},hydrate:function(e,t,n,o,s,i,r,a,l){const c=t.suspense=ar(t,o,n,e.parentNode,document.createElement("div"),null,s,i,r,a,!0),p=l(e,c.pendingBranch=t.ssContent,n,c,i,r);return 0===c.deps&&c.resolve(!1,!0),p},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=lr(o?n.default:n),e.ssFallback=o?lr(n.fallback):Or(hr)}};function rr(e,t){const n=e.props&&e.props[t];y(n)&&n()}function ar(e,t,n,o,s,i,r,a,l,c,p=!1){const{p:u,m:d,um:h,n:f,o:{parentNode:m,remove:g}}=c;let y;const v=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);v&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const b=e.props?D(e.props.timeout):void 0,_=i,w={vnode:e,parent:t,parentComponent:n,namespace:r,container:o,hiddenContainer:s,deps:0,pendingId:sr++,timeout:"number"==typeof b?b:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:s,pendingBranch:r,pendingId:a,effects:l,parentComponent:c,container:p,isInFallback:u}=w;let g=!1;if(w.isHydrating)w.isHydrating=!1;else if(!e){g=s&&r.transition&&"out-in"===r.transition.mode;let e=!1;g&&(s.transition.afterLeave=()=>{a===w.pendingId&&(d(r,p,i!==_||e?i:f(s),0),En(l),u&&o.ssFallback&&(o.ssFallback.el=null))}),s&&!w.isFallbackMountPending&&(m(s.el)===p&&(i=f(s),e=!0),h(s,c,w,!0),!g&&u&&o.ssFallback&&zi(()=>o.ssFallback.el=null,w)),g||d(r,p,i,0)}w.isFallbackMountPending=!1,pr(w,r),w.pendingBranch=null,w.isInFallback=!1;let b=w.parent,S=!1;for(;b;){if(b.pendingBranch){b.effects.push(...l),S=!0;break}b=b.parent}S||g||En(l),w.effects=[],v&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),rr(o,"onResolve")},fallback(e){if(!w.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:s,namespace:i}=w;rr(t,"onFallback");const r=f(n),c=()=>{w.isFallbackMountPending=!1,w.isInFallback&&(u(null,e,s,r,o,null,i,a,l),pr(w,e))},p=e.transition&&"out-in"===e.transition.mode;p&&(w.isFallbackMountPending=!0,n.transition.afterLeave=c),w.isInFallback=!0,h(n,o,null,!0),p||c()},move(e,t,n){w.activeBranch&&d(w.activeBranch,e,t,n),w.container=e},next:()=>w.activeBranch&&f(w.activeBranch),registerDep(e,t,n){const o=!!w.pendingBranch;o&&w.deps++;const s=e.vnode.el;e.asyncDep.catch(t=>{gn(t,e,0)}).then(i=>{if(e.isUnmounted||w.isUnmounted||w.pendingId!==e.suspenseId)return;Qr(),e.asyncResolved=!0;const{vnode:a}=e;na(e,i,!1),s&&(a.el=s);const l=!s&&e.subTree.el;t(e,a,m(s||e.subTree.el),s?null:f(e.subTree),w,r,n),l&&(a.placeholder=null,g(l)),Ni(e,a.el),o&&0===--w.deps&&w.resolve()})},unmount(e,t){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,n,e,t),w.pendingBranch&&h(w.pendingBranch,n,e,t)}};return w}function lr(e){let t;if(y(e)){const n=_r&&e._c;n&&(e._d=!1,yr()),e=e(),n&&(e._d=!0,t=gr,vr())}if(h(e)){const t=function(e){let t;for(let n=0;nt!==e)),e}function cr(e,t){t&&t.pendingBranch?h(e)?t.effects.push(...e):t.effects.push(e):En(e)}function pr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)s=(t=t.component.subTree).el;n.el=s,o&&o.subTree===n&&(o.vnode.el=s,Ni(o,s))}const ur=Symbol.for("v-fgt"),dr=Symbol.for("v-txt"),hr=Symbol.for("v-cmt"),fr=Symbol.for("v-stc"),mr=[];let gr=null;function yr(e=!1){mr.push(gr=e?null:[])}function vr(){mr.pop(),gr=mr[mr.length-1]||null}let br,_r=1;function wr(e,t=!1){_r+=e,e<0&&gr&&t&&(gr.hasOnce=!0)}function Sr(e){return e.dynamicChildren=_r>0?gr||s:null,vr(),_r>0&&gr&&gr.push(e),e}function kr(e,t,n,o,s,i){return Sr(Ir(e,t,n,o,s,i,!0))}function xr(e,t,n,o,s){return Sr(Or(e,t,n,o,s,!0))}function Ar(e){return!!e&&!0===e.__v_isVNode}function Cr(e,t){return e.type===t.type&&e.key===t.key}function Tr(e){br=e}const Er=({key:e})=>null!=e?e:null,Nr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||jt(e)||y(e)?{i:Ln,r:e,k:t,f:!!n}:e:null);function Ir(e,t=null,n=null,o=0,s=null,i=(e===ur?0:1),r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Er(t),ref:t&&Nr(t),scopeId:jn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ln};return a?(Ur(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=v(n)?8:16),_r>0&&!r&&gr&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&gr.push(l),l}const Or=function(e,t=null,n=null,o=0,s=null,i=!1){if(e&&e!==Ts||(e=hr),Ar(e)){const o=Mr(e,t,!0);return n&&Ur(o,n),_r>0&&!i&&gr&&(6&o.shapeFlag?gr[gr.indexOf(e)]=o:gr.push(o)),o.patchFlag=-2,o}if(r=e,y(r)&&"__vccOpts"in r&&(e=e.__vccOpts),t){t=Rr(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=G(e)),_(n)&&(Mt(n)&&!h(n)&&(n=c({},n)),t.style=W(n))}var r;return Ir(e,t,n,o,s,v(e)?1:or(e)?128:ro(e)?64:_(e)?4:y(e)?2:0,i,!0)};function Rr(e){return e?Mt(e)||Ri(e)?c({},e):e:null}function Mr(e,t,n=!1,o=!1){const{props:s,ref:i,patchFlag:r,children:a,transition:l}=e,c=t?Dr(s||{},t):s,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Er(c),ref:t&&t.ref?n&&i?h(i)?i.concat(Nr(t)):[i,Nr(t)]:Nr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ur?-1===r?16:16|r:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mr(e.ssContent),ssFallback:e.ssFallback&&Mr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&No(p,l.clone(p)),p}function Pr(e=" ",t=0){return Or(dr,null,e,t)}function Br(e,t){const n=Or(fr,null,e);return n.staticCount=t,n}function Fr(e="",t=!1){return t?(yr(),xr(hr,null,e)):Or(hr,null,e)}function Lr(e){return null==e||"boolean"==typeof e?Or(hr):h(e)?Or(ur,null,e.slice()):Ar(e)?jr(e):Or(dr,null,String(e))}function jr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Mr(e)}function Ur(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(h(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Ur(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Ri(t)?3===o&&Ln&&(1===Ln.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Ln}}else y(t)?(t={default:t,_ctx:Ln},n=32):(t=String(t),64&o?(n=16,t=[Pr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Dr(...e){const t={};for(let n=0;nqr||Ln;let Kr,Jr;{const e=$(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach(t=>t(e)):o[0](e)}};Kr=t("__VUE_INSTANCE_SETTERS__",e=>qr=e),Jr=t("__VUE_SSR_SETTERS__",e=>ea=e)}const Gr=e=>{const t=qr;return Kr(e),e.scope.on(),()=>{e.scope.off(),Kr(t)}},Qr=()=>{qr&&qr.scope.off(),Kr(null)};function Xr(e){return 4&e.vnode.shapeFlag}let Yr,Zr,ea=!1;function ta(e,t=!1,n=!1){t&&Jr(t);const{props:o,children:s}=e.vnode,i=Xr(e);!function(e,t,n,o=!1){const s={},i=Oi();e.propsDefaults=Object.create(null),Mi(e,t,s,i);for(const t in e.propsOptions[0])t in s||(s[t]=void 0);n?e.props=o?s:Ct(s):e.type.props?e.props=s:e.props=i,e.attrs=i}(e,o,i,t),Wi(e,s,n||t);const r=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ds);const{setup:o}=n;if(o){Pe();const n=e.setupContext=o.length>1?aa(e):null,s=Gr(e),i=fn(o,e,0,[e.props,n]),r=w(i);if(Be(),s(),!r&&!e.sp||Zo(e)||Mo(e),r){if(i.then(Qr,Qr),t)return i.then(n=>{na(e,n,t)}).catch(t=>{gn(t,e,0)});e.asyncDep=i}else na(e,i,t)}else ia(e,t)}(e,t):void 0;return t&&Jr(!1),r}function na(e,t,n){y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_(t)&&(e.setupState=Kt(t)),ia(e,n)}function oa(e){Yr=e,Zr=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Vs))}}const sa=()=>!Yr;function ia(e,t,n){const o=e.type;if(!e.render){if(!t&&Yr&&!o.render){const t=o.template||ri(e).template;if(t){const{isCustomElement:n,compilerOptions:s}=e.appContext.config,{delimiters:i,compilerOptions:r}=o,a=c(c({isCustomElement:n,delimiters:i},s),r);o.render=Yr(t,a)}}e.render=o.render||i,Zr&&Zr(e)}{const t=Gr(e);Pe();try{!function(e){const t=ri(e),n=e.proxy,o=e.ctx;oi=!1,t.beforeCreate&&si(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:a,watch:l,provide:c,inject:p,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:g,activated:v,deactivated:b,beforeDestroy:w,beforeUnmount:S,destroyed:k,unmounted:x,render:A,renderTracked:C,renderTriggered:T,errorCaptured:E,serverPrefetch:N,expose:I,inheritAttrs:O,components:R,directives:M,filters:P}=t;if(p&&function(e,t){h(e)&&(e=pi(e));for(const n in e){const o=e[n];let s;s=_(o)?"default"in o?Kn(o.from||n,o.default,!0):Kn(o.from||n):Kn(o),jt(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(p,o),a)for(const e in a){const t=a[e];y(t)&&(o[e]=t.bind(n))}if(s){const t=s.call(n,n);_(t)&&(e.data=At(t))}if(oi=!0,r)for(const e in r){const t=r[e],s=y(t)?t.bind(n,n):y(t.get)?t.get.bind(n,n):i,a=!y(t)&&y(t.set)?t.set.bind(n):i,l=pa({get:s,set:a});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(l)for(const e in l)ii(l[e],o,n,e);if(c){const e=y(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{zn(t,e[t])})}function B(e,t){h(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(u&&si(u,e,"c"),B(fs,d),B(ms,f),B(gs,m),B(ys,g),B(rs,v),B(as,b),B(ks,E),B(Ss,C),B(ws,T),B(vs,S),B(bs,x),B(_s,N),h(I))if(I.length){const t=e.exposed||(e.exposed={});I.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===i&&(e.render=A),null!=O&&(e.inheritAttrs=O),R&&(e.components=R),M&&(e.directives=M),N&&Mo(e)}(e)}finally{Be(),t()}}}const ra={get:(e,t)=>(qe(e,0,""),e[t])};function aa(e){return{attrs:new Proxy(e.attrs,ra),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function la(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Kt(Bt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in js?js[n](e):void 0,has:(e,t)=>t in e||t in js})):e.proxy}function ca(e,t=!0){return y(e)?e.displayName||e.name:e.name||t&&e.__name}const pa=(e,t)=>{const n=function(e,t,n=!1){let o,s;return y(e)?o=e:(o=e.get,s=e.set),new tn(o,s,n)}(e,0,ea);return n};function ua(e,t,n){try{wr(-1);const o=arguments.length;return 2===o?_(t)&&!h(t)?Ar(t)?Or(e,null,[t]):Or(e,t):Or(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Ar(n)&&(n=[n]),Or(e,t,n))}finally{wr(1)}}function da(){}function ha(e,t,n,o){const s=n[o];if(s&&fa(s,e))return s;const i=t();return i.memo=e.slice(),i.cacheIndex=o,n[o]=i}function fa(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&gr&&gr.push(e),!0}const ma="3.5.34",ga=i,ya={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"},va=Mn,ba=function e(t,n){var o,s;Mn=t,Mn?(Mn.enabled=!0,Bn.forEach(({event:e,args:t})=>Mn.emit(e,...t)),Bn=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(s=null==(o=window.navigator)?void 0:o.userAgent)?void 0:s.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{e(t,n)}),setTimeout(()=>{Mn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Fn=!0,Bn=[])},3e3)):(Fn=!0,Bn=[])},_a={createComponentInstance:Wr,setupComponent:ta,renderComponentRoot:xi,setCurrentRenderingInstance:Un,isVNode:Ar,normalizeVNode:Lr,getComponentPublicInstance:la,ensureValidVNode:Bs,pushWarningContext:function(e){un.push(e)},popWarningContext:function(){un.pop()}},wa=null,Sa=null,ka=null;let xa;const Aa="undefined"!=typeof window&&window.trustedTypes;if(Aa)try{xa=Aa.createPolicy("vue",{createHTML:e=>e})}catch(e){}const Ca=xa?e=>xa.createHTML(e):e=>e,Ta="undefined"!=typeof document?document:null,Ea=Ta&&Ta.createElement("template"),Na={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s="svg"===t?Ta.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Ta.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Ta.createElement(e,{is:n}):Ta.createElement(e);return"select"===e&&o&&null!=o.multiple&&s.setAttribute("multiple",o.multiple),s},createText:e=>Ta.createTextNode(e),createComment:e=>Ta.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ta.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,i){const r=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),s!==i&&(s=s.nextSibling););else{Ea.innerHTML=Ca("svg"===o?`${e}`:"mathml"===o?`${e}`:e);const s=Ea.content;if("svg"===o||"mathml"===o){const e=s.firstChild;for(;e.firstChild;)s.appendChild(e.firstChild);s.removeChild(e)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ia="transition",Oa="animation",Ra=Symbol("_vtc"),Ma={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Pa=c({},_o,Ma),Ba=(e=>(e.displayName="Transition",e.props=Pa,e))((e,{slots:t})=>ua(xo,ja(e),t)),Fa=(e,t=[])=>{h(e)?e.forEach(e=>e(...t)):e&&e(...t)},La=e=>!!e&&(h(e)?e.some(e=>e.length>1):e.length>1);function ja(e){const t={};for(const n in e)n in Ma||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:p=r,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(_(e))return[Ua(e.enter),Ua(e.leave)];{const t=Ua(e);return[t,t]}}(s),g=m&&m[0],y=m&&m[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:w,onLeave:S,onLeaveCancelled:k,onBeforeAppear:x=v,onAppear:A=b,onAppearCancelled:C=w}=t,T=(e,t,n,o)=>{e._enterCancelled=o,Va(e,t?u:a),Va(e,t?p:r),n&&n()},E=(e,t)=>{e._isLeaving=!1,Va(e,d),Va(e,f),Va(e,h),t&&t()},N=e=>(t,n)=>{const s=e?A:b,r=()=>T(t,e,n);Fa(s,[t,r]),$a(()=>{Va(t,e?l:i),Da(t,e?u:a),La(s)||Wa(t,o,g,r)})};return c(t,{onBeforeEnter(e){Fa(v,[e]),Da(e,i),Da(e,r)},onBeforeAppear(e){Fa(x,[e]),Da(e,l),Da(e,p)},onEnter:N(!1),onAppear:N(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);Da(e,d),e._enterCancelled?(Da(e,h),Ja(e)):(Ja(e),Da(e,h)),$a(()=>{e._isLeaving&&(Va(e,d),Da(e,f),La(S)||Wa(e,o,y,n))}),Fa(S,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),Fa(w,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),Fa(C,[e])},onLeaveCancelled(e){E(e),Fa(k,[e])}})}function Ua(e){return D(e)}function Da(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Ra]||(e[Ra]=new Set)).add(t)}function Va(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[Ra];n&&(n.delete(t),n.size||(e[Ra]=void 0))}function $a(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ha=0;function Wa(e,t,n,o){const s=e._endId=++Ha,i=()=>{s===e._endId&&o()};if(null!=n)return setTimeout(i,n);const{type:r,timeout:a,propCount:l}=qa(e,t);if(!r)return o();const c=r+"end";let p=0;const u=()=>{e.removeEventListener(c,d),i()},d=t=>{t.target===e&&++p>=l&&u()};setTimeout(()=>{p(n[e]||"").split(", "),s=o(`${Ia}Delay`),i=o(`${Ia}Duration`),r=za(s,i),a=o(`${Oa}Delay`),l=o(`${Oa}Duration`),c=za(a,l);let p=null,u=0,d=0;return t===Ia?r>0&&(p=Ia,u=r,d=i.length):t===Oa?c>0&&(p=Oa,u=c,d=l.length):(u=Math.max(r,c),p=u>0?r>c?Ia:Oa:null,d=p?p===Ia?i.length:l.length:0),{type:p,timeout:u,propCount:d,hasTransform:p===Ia&&/\b(?:transform|all)(?:,|$)/.test(o(`${Ia}Property`).toString())}}function za(e,t){for(;e.lengthKa(t)+Ka(e[n])))}function Ka(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Ja(e){return(e?e.ownerDocument:document).body.offsetHeight}const Ga=Symbol("_vod"),Qa=Symbol("_vsh"),Xa={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ga]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ya(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Ya(e,!0),o.enter(e)):o.leave(e,()=>{Ya(e,!1)}):Ya(e,t))},beforeUnmount(e,{value:t}){Ya(e,t)}};function Ya(e,t){e.style.display=t?e[Ga]:"none",e[Qa]=!t}const Za=Symbol("");function el(e){const t=zr();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>nl(e,n))},o=()=>{const o=e(t.proxy);t.ce?nl(t.ce,o):tl(t.subTree,o),n(o)};gs(()=>{En(o)}),ms(()=>{eo(o,i,{flush:"post"});const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),bs(()=>e.disconnect())})}function tl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{tl(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)nl(e.el,t);else if(e.type===ur)e.children.forEach(e=>tl(e,t));else if(e.type===fr){let{el:n,anchor:o}=e;for(;n&&(nl(n,t),n!==o);)n=n.nextSibling}}function nl(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t){const s=ce(t[e]);n.setProperty(`--${e}`,s),o+=`--${e}: ${s};`}n[Za]=o}}const ol=/(?:^|;)\s*display\s*:/,sl=/\s*!important$/;function il(e,t,n){if(h(n))n.forEach(n=>il(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=al[t];if(n)return n;let o=O(t);if("filter"!==o&&o in e)return al[t]=o;o=P(o);for(let n=0;nml||(gl.then(()=>ml=0),ml=Date.now()),vl=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bl=(e,t,n,o,s,i)=>{const r="svg"===s;"class"===t?function(e,t,n){const o=e[Ra];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style,s=v(n);let i=!1;if(n&&!s){if(t)if(v(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&il(o,t,"")}else for(const e in t)null==n[e]&&il(o,e,"");for(const s in n){"display"===s&&(i=!0);const r=n[s];null!=r?ll(e,s,!v(t)&&t?t[s]:void 0,r)||il(o,s,r):il(o,s,"")}}else if(s){if(t!==n){const e=o[Za];e&&(n+=";"+e),o.cssText=n,i=ol.test(n)}}else t&&e.removeAttribute("style");Ga in e&&(e[Ga]=i?o.display:"",e[Qa]&&(o.display="none"))}(e,n,o):a(t)?l(t)||function(e,t,n,o,s=null){const i=e[hl]||(e[hl]={}),r=i[t];if(o&&r)r.value=o;else{const[n,a]=function(e){let t;if(fl.test(e)){let n;for(t={};n=e.match(fl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):M(e.slice(2)),t]}(t);if(o){const r=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();mn(function(e,t){if(h(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=yl(),n}(o,s);dl(e,n,r,a)}else r&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,r,a),i[t]=void 0)}}(e,t,0,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&vl(t)&&y(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!vl(t)||!v(n))&&t in e}(e,t,o,r))?(ul(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||pl(e,t,o,r,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const o=O(t);return Array.isArray(n)?n.some(e=>O(e)===o):Object.keys(n).some(e=>O(e)===o)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(o)))?ul(e,O(t),o,0,t):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),pl(e,t,o,r))},_l={};function wl(e,t,n){let o=Oo(e,t);A(o)&&(o=c({},o,t));class s extends xl{constructor(e){super(o,e,n)}}return s.def=o,s}const Sl=(e,t)=>wl(e,t,hc),kl="undefined"!=typeof HTMLElement?HTMLElement:class{};class xl extends kl{constructor(e,t={},n=dc){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==dc?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(c({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof xl){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,An(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:o}=e;let s;if(n&&!h(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=D(this._props[e])),(s||(s=Object.create(null)))[O(e)]=!0)}this._numberProps=s,this._resolveProps(e),this.shadowRoot&&this._applyStyles(o),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)d(this,e)||Object.defineProperty(this,e,{get:()=>Wt(t[e])})}_resolveProps(e){const{props:t}=e,n=h(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):_l;const o=O(e);t&&this._numberProps&&this._numberProps[o]&&(n=D(n)),this._setProp(o,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!1){if(t!==this._props[e]&&(this._dirty=!0,t===_l?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),o&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(M(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(M(e),t+""):t||this.removeAttribute(M(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),pc(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=Or(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,A(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),M(e)!==e&&t(M(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const o=this._nonce,s=this.shadowRoot,i=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(s);let r=null;for(let a=e.length-1;a>=0;a--){const l=document.createElement("style");o&&l.setAttribute("nonce",o),l.textContent=e[a],s.insertBefore(l,r||i),r=l,0===a&&(n||this._styleAnchors.set(this._def,l),t&&this._styleAnchors.set(t,l))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t(delete e.props.mode,e))({name:"TransitionGroup",props:c({},Pa,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=zr(),o=vo();let s,i;return ys(()=>{if(!s.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),s=e[Ra];s&&s.forEach(e=>{e.split(/\s+/).forEach(e=>e&&o.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&o.classList.add(e)),o.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(o);const{hasTransform:r}=qa(o);return i.removeChild(o),r}(s[0].el,n.vnode.el,t))return void(s=[]);s.forEach(Pl),s.forEach(Bl);const o=s.filter(Fl);Ja(n.vnode.el),o.forEach(e=>{const n=e.el,o=n.style;Da(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const s=n[Il]=e=>{e&&e.target!==n||e&&!e.propertyName.endsWith("transform")||(n.removeEventListener("transitionend",s),n[Il]=null,Va(n,t))};n.addEventListener("transitionend",s)}),s=[]}),()=>{const r=Pt(e),a=ja(r);let l=r.tag||ur;if(s=[],i)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return h(t)?e=>L(t,e):t};function Ul(e){e.target.composing=!0}function Dl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Vl=Symbol("_assign");function $l(e,t,n){return t&&(e=e.trim()),n&&(e=U(e)),e}const Hl={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e[Vl]=jl(s);const i=o||s.props&&"number"===s.props.type;dl(e,t?"change":"input",t=>{t.target.composing||e[Vl]($l(e.value,n,i))}),(n||i)&&dl(e,"change",()=>{e.value=$l(e.value,n,i)}),t||(dl(e,"compositionstart",Ul),dl(e,"compositionend",Dl),dl(e,"change",Dl))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:s,number:i}},r){if(e[Vl]=jl(r),e.composing)return;const a=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:U(e.value))===a)return;const l=e.getRootNode();if((l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(s&&e.value.trim()===a)return}e.value=a}},Wl={deep:!0,created(e,t,n){e[Vl]=jl(n),dl(e,"change",()=>{const t=e._modelValue,n=Gl(e),o=e.checked,s=e[Vl];if(h(t)){const e=se(t,n),i=-1!==e;if(o&&!i)s(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),s(n)}}else if(m(t)){const e=new Set(t);o?e.add(n):e.delete(n),s(e)}else s(Ql(e,o))})},mounted:ql,beforeUpdate(e,t,n){e[Vl]=jl(n),ql(e,t,n)}};function ql(e,{value:t,oldValue:n},o){let s;if(e._modelValue=t,h(t))s=se(t,o.props.value)>-1;else if(m(t))s=t.has(o.props.value);else{if(t===n)return;s=oe(t,Ql(e,!0))}e.checked!==s&&(e.checked=s)}const zl={created(e,{value:t},n){e.checked=oe(t,n.props.value),e[Vl]=jl(n),dl(e,"change",()=>{e[Vl](Gl(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[Vl]=jl(o),t!==n&&(e.checked=oe(t,o.props.value))}},Kl={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=m(t);dl(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?U(Gl(e)):Gl(e));e[Vl](e.multiple?s?new Set(t):t:t[0]),e._assigning=!0,An(()=>{e._assigning=!1})}),e[Vl]=jl(o)},mounted(e,{value:t}){Jl(e,t)},beforeUpdate(e,t,n){e[Vl]=jl(n)},updated(e,{value:t}){e._assigning||Jl(e,t)}};function Jl(e,t){const n=e.multiple,o=h(t);if(!n||o||m(t)){for(let s=0,i=e.options.length;sString(e)===String(r)):se(t,r)>-1}else i.selected=t.has(r);else if(oe(Gl(i),t))return void(e.selectedIndex!==s&&(e.selectedIndex=s))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Gl(e){return"_value"in e?e._value:e.value}function Ql(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Xl={created(e,t,n){Zl(e,t,n,null,"created")},mounted(e,t,n){Zl(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){Zl(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){Zl(e,t,n,o,"updated")}};function Yl(e,t){switch(e){case"SELECT":return Kl;case"TEXTAREA":return Hl;default:switch(t){case"checkbox":return Wl;case"radio":return zl;default:return Hl}}}function Zl(e,t,n,o,s){const i=Yl(e.tagName,n.props&&n.props.type)[s];i&&i(e,t,n,o)}const ec=["ctrl","shift","alt","meta"],tc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ec.some(n=>e[`${n}Key`]&&!t.includes(n))},nc=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=M(n.key);return t.some(e=>e===o||oc[e]===o)?e(n):void 0})},ic=c({patchProp:bl},Na);let rc,ac=!1;function lc(){return rc||(rc=Ki(ic))}function cc(){return rc=ac?rc:Ji(ic),ac=!0,rc}const pc=(...e)=>{lc().render(...e)},uc=(...e)=>{cc().hydrate(...e)},dc=(...e)=>{const t=lc().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=mc(e);if(!o)return;const s=t._component;y(s)||s.render||s.template||(s.template=o.innerHTML),1===o.nodeType&&(o.textContent="");const i=n(o,!1,fc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},hc=(...e)=>{const t=cc().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=mc(e);if(t)return n(t,!0,fc(t))},t};function fc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function mc(e){return v(e)?document.querySelector(e):e}let gc=!1;const yc=()=>{gc||(gc=!0,Hl.getSSRProps=({value:e})=>({value:e}),zl.getSSRProps=({value:e},t)=>{if(t.props&&oe(t.props.value,e))return{checked:!0}},Wl.getSSRProps=({value:e},t)=>{if(h(e)){if(t.props&&se(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Xl.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Yl(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Xa.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},vc=Symbol(""),bc=Symbol(""),_c=Symbol(""),wc=Symbol(""),Sc=Symbol(""),kc=Symbol(""),xc=Symbol(""),Ac=Symbol(""),Cc=Symbol(""),Tc=Symbol(""),Ec=Symbol(""),Nc=Symbol(""),Ic=Symbol(""),Oc=Symbol(""),Rc=Symbol(""),Mc=Symbol(""),Pc=Symbol(""),Bc=Symbol(""),Fc=Symbol(""),Lc=Symbol(""),jc=Symbol(""),Uc=Symbol(""),Dc=Symbol(""),Vc=Symbol(""),$c=Symbol(""),Hc=Symbol(""),Wc=Symbol(""),qc=Symbol(""),zc=Symbol(""),Kc=Symbol(""),Jc=Symbol(""),Gc=Symbol(""),Qc=Symbol(""),Xc=Symbol(""),Yc=Symbol(""),Zc=Symbol(""),ep=Symbol(""),tp=Symbol(""),np=Symbol(""),op={[vc]:"Fragment",[bc]:"Teleport",[_c]:"Suspense",[wc]:"KeepAlive",[Sc]:"BaseTransition",[kc]:"openBlock",[xc]:"createBlock",[Ac]:"createElementBlock",[Cc]:"createVNode",[Tc]:"createElementVNode",[Ec]:"createCommentVNode",[Nc]:"createTextVNode",[Ic]:"createStaticVNode",[Oc]:"resolveComponent",[Rc]:"resolveDynamicComponent",[Mc]:"resolveDirective",[Pc]:"resolveFilter",[Bc]:"withDirectives",[Fc]:"renderList",[Lc]:"renderSlot",[jc]:"createSlots",[Uc]:"toDisplayString",[Dc]:"mergeProps",[Vc]:"normalizeClass",[$c]:"normalizeStyle",[Hc]:"normalizeProps",[Wc]:"guardReactiveProps",[qc]:"toHandlers",[zc]:"camelize",[Kc]:"capitalize",[Jc]:"toHandlerKey",[Gc]:"setBlockTracking",[Qc]:"pushScopeId",[Xc]:"popScopeId",[Yc]:"withCtx",[Zc]:"unref",[ep]:"isRef",[tp]:"withMemo",[np]:"isMemoSame"},sp={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function ip(e,t,n,o,s,i,r,a=!1,l=!1,c=!1,p=sp){return e&&(a?(e.helper(kc),e.helper(mp(e.inSSR,c))):e.helper(fp(e.inSSR,c)),r&&e.helper(Bc)),{type:13,tag:t,props:n,children:o,patchFlag:s,dynamicProps:i,directives:r,isBlock:a,disableTracking:l,isComponent:c,loc:p}}function rp(e,t=sp){return{type:17,loc:t,elements:e}}function ap(e,t=sp){return{type:15,loc:t,properties:e}}function lp(e,t){return{type:16,loc:sp,key:v(e)?cp(e,!0):e,value:t}}function cp(e,t=!1,n=sp,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function pp(e,t=sp){return{type:8,loc:t,children:e}}function up(e,t=[],n=sp){return{type:14,loc:n,callee:e,arguments:t}}function dp(e,t=void 0,n=!1,o=!1,s=sp){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:s}}function hp(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:sp}}function fp(e,t){return e||t?Cc:Tc}function mp(e,t){return e||t?xc:Ac}function gp(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(fp(o,e.isComponent)),t(kc),t(mp(o,e.isComponent)))}const yp=new Uint8Array([123,123]),vp=new Uint8Array([125,125]);function bp(e){return e>=97&&e<=122||e>=65&&e<=90}function _p(e){return 32===e||10===e||9===e||12===e||13===e}function wp(e){return 47===e||62===e||_p(e)}function Sp(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Op(e){switch(e){case"Teleport":case"teleport":return bc;case"Suspense":case"suspense":return _c;case"KeepAlive":case"keep-alive":return wc;case"BaseTransition":case"base-transition":return Sc}}const Rp=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Mp=e=>!Rp.test(e),Pp=/[A-Za-z_$\xA0-\uFFFF]/,Bp=/[\.\?\w$\xA0-\uFFFF]/,Fp=/\s+[.[]\s*|\s*[.[]\s+/g,Lp=e=>4===e.type?e.content:e.loc.source,jp=e=>{const t=Lp(e).trim().replace(Fp,e=>e.trim());let n=0,o=[],s=0,i=0,r=null;for(let e=0;e|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/;function Dp(e,t,n=!1){for(let o=0;o4===e.key.type&&e.key.content===o)}return n}function Yp(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>"-"===t?"_":e.charCodeAt(n).toString())}`}const Zp=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function eu(e){for(let t=0;t0,isVoidTag:r,isPreTag:r,isIgnoreNewlineTag:r,isCustomElement:r,onError:Tp,onWarn:Ep,comments:!1,prefixIdentifiers:!1};let su=ou,iu=null,ru="",au=null,lu=null,cu="",pu=-1,uu=-1,du=0,hu=!1,fu=null;const mu=[],gu=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=yp,this.delimiterClose=vp,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=yp,this.delimiterClose=vp}getPos(e){let t=1,n=e+1;const o=this.newlines.length;let s=-1;if(o>100){let t=-1,n=o;for(;t+1>>1;this.newlines[o]=0;t--)if(e>this.newlines[t]){s=t;break}return s>=0&&(t=s+2,n=e-this.newlines[s]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?wp(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||_p(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===kp.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(mu,{onerr:Bu,ontext(e,t){wu(bu(e,t),e,t)},ontextentity(e,t,n){wu(e,t,n)},oninterpolation(e,t){if(hu)return wu(bu(e,t),e,t);let n=e+gu.delimiterOpen.length,o=t-gu.delimiterClose.length;for(;_p(ru.charCodeAt(n));)n++;for(;_p(ru.charCodeAt(o-1));)o--;let s=bu(n,o);s.includes("&")&&(s=su.decodeEntities(s,!1)),Iu({type:5,content:Pu(s,!1,Ou(n,o)),loc:Ou(e,t)})},onopentagname(e,t){const n=bu(e,t);au={type:1,tag:n,ns:su.getNamespace(n,mu[0],su.ns),tagType:0,props:[],children:[],loc:Ou(e-1,t),codegenNode:void 0}},onopentagend(e){_u(e)},onclosetag(e,t){const n=bu(e,t);if(!su.isVoidTag(n)){let o=!1;for(let e=0;e0&&Bu(24,mu[0].loc.start.offset);for(let n=0;n<=e;n++)Su(mu.shift(),t,n(7===e.type?e.rawName:e.name)===n)&&Bu(2,t)},onattribend(e,t){if(au&&lu){if(Ru(lu.loc,t),0!==e)if(cu.includes("&")&&(cu=su.decodeEntities(cu,!0)),6===lu.type)"class"===lu.name&&(cu=Nu(cu).trim()),1!==e||cu||Bu(13,t),lu.value={type:2,content:cu,loc:1===e?Ou(pu,uu):Ou(pu-1,uu+1)},gu.inSFCRoot&&"template"===au.tag&&"lang"===lu.name&&cu&&"html"!==cu&&gu.enterRCDATA(Sp("{const s=t.start.offset+n;return Pu(e,!1,Ou(s,s+e.length),0,o?1:0)},a={source:r(i.trim(),n.indexOf(i,s.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=s.trim().replace(vu,"").trim();const c=s.indexOf(l),p=l.match(yu);if(p){l=l.replace(yu,"").trim();const e=p[1].trim();let t;if(e&&(t=n.indexOf(e,c+l.length),a.key=r(e,t,!0)),p[2]){const o=p[2].trim();o&&(a.index=r(o,n.indexOf(o,a.key?t+e.length:c+l.length),!0))}}return l&&(a.value=r(l,c,!0)),a}(lu.exp));let t=-1;"bind"===lu.name&&(t=lu.modifiers.findIndex(e=>"sync"===e.content))>-1&&Cp("COMPILER_V_BIND_SYNC",su,lu.loc,lu.arg.loc.source)&&(lu.name="model",lu.modifiers.splice(t,1))}7===lu.type&&"pre"===lu.name||au.props.push(lu)}cu="",pu=uu=-1},oncomment(e,t){su.comments&&Iu({type:3,content:bu(e,t),loc:Ou(e-4,t+3)})},onend(){const e=ru.length;for(let t=0;t64&&n<91||Op(e)||su.isBuiltInComponent&&su.isBuiltInComponent(e)||su.isNativeTag&&!su.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name);n&&Cp("COMPILER_INLINE_TEMPLATE",su,n.loc)&&e.children.length&&(n.value={type:2,content:bu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function ku(e,t){let n=e;for(;ru.charCodeAt(n)!==t&&n>=0;)n--;return n}const xu=new Set(["if","else","else-if","for","slot"]);function Au({tag:e,props:t}){if("template"===e)for(let e=0;e3!==e.type);return 1!==t.length||1!==t[0].type||Kp(t[0])?null:t[0]}function ju(e,t,n,o=!1,s=!1){const{children:i}=e,r=[];for(let t=0;t0){if(e>=2){a.codegenNode.patchFlag=-1,r.push(a);continue}}else{const e=a.codegenNode;if(13===e.type){const t=e.patchFlag;if((void 0===t||512===t||1===t)&&$u(a,n)>=2){const t=Hu(a);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===a.type&&(o?0:Uu(a,n))>=2){14===a.codegenNode.type&&a.codegenNode.arguments.length>0&&a.codegenNode.arguments.push("-1"),r.push(a);continue}if(1===a.type){const t=1===a.tagType;t&&n.scopes.vSlot++,ju(a,e,n,!1,s),t&&n.scopes.vSlot--}else if(11===a.type)ju(a,e,n,1===a.children.length,!0);else if(9===a.type)for(let t=0;te.key===t||e.key.content===t);return n&&n.value}}r.length&&n.transformHoist&&n.transformHoist(i,n,e)}function Uu(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const o=n.get(e);if(void 0!==o)return o;const s=e.codegenNode;if(13!==s.type)return 0;if(s.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===s.patchFlag){let o=3;const i=$u(e,t);if(0===i)return n.set(e,0),0;i1)for(let s=0;s`_${op[T.helper(e)]}`,replaceNode(e){T.parent.children[T.childIndex]=T.currentNode=e},removeNode(e){const t=T.parent.children,n=e?t.indexOf(e):T.currentNode?T.childIndex:-1;e&&e!==T.currentNode?T.childIndex>n&&(T.childIndex--,T.onNodeRemoved()):(T.currentNode=null,T.onNodeRemoved()),T.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){v(e)&&(e=cp(e)),T.hoists.push(e);const t=cp(`_hoisted_${T.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){const o=function(e,t,n=!1,o=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:o,needArraySpread:!1,loc:sp}}(T.cached.length,e,t,n);return T.cached.push(o),o}};return T.filters=new Set,T}(e,t);qu(e,n),t.hoistStatic&&Fu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=Lu(e);if(n&&n.codegenNode){const o=n.codegenNode;13===o.type&&gp(o,t),e.codegenNode=o}else e.codegenNode=o[0]}else if(o.length>1){let o=64;e.codegenNode=ip(t,n(vc),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function qu(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let s=0;s{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:s}=e;if(3===e.tagType&&s.some(qp))return;const i=[];for(let r=0;r`${op[e]}: _${op[e]}`;function Gu(e,t,{helper:n,push:o,newline:s,isTS:i}){const r=n("filter"===t?Pc:"component"===t?Oc:Mc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),Xu(e,t,n),n&&t.deindent(),t.push("]")}function Xu(e,t,n=!1,o=!0){const{push:s,newline:i}=t;for(let r=0;re||"null")}([i,r,a,f,c]),t),n(")"),u&&n(")"),p&&(n(", "),Yu(p,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:s}=t,i=v(e.callee)?e.callee:o(e.callee);s&&n(Ku),n(i+"(",-2,e),Xu(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:s,newline:i}=t,{properties:r}=e;if(!r.length)return void n("{}",-2,e);const a=r.length>1||!1;n(a?"{":"{ "),a&&o();for(let e=0;e "),(l||a)&&(n("{"),o()),r?(l&&n("return "),h(r)?Qu(r,t):Yu(r,t)):a&&Yu(a,t),(l||a)&&(s(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:s,newline:i}=e,{push:r,indent:a,deindent:l,newline:c}=t;if(4===n.type){const e=!Mp(n.content);e&&r("("),Zu(n,t),e&&r(")")}else r("("),Yu(n,t),r(")");i&&a(),t.indentLevel++,i||r(" "),r("? "),Yu(o,t),t.indentLevel--,i&&c(),i||r(" "),r(": ");const p=19===s.type;p||t.indentLevel++,Yu(s,t),p||t.indentLevel--,i&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:s,deindent:i,newline:r}=t,{needPauseTracking:a,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),a&&(s(),n(`${o(Gc)}(-1`),e.inVOnce&&n(", true"),n("),"),r(),n("(")),n(`_cache[${e.index}] = `),Yu(e.value,t),a&&(n(`).cacheIndex = ${e.index},`),r(),n(`${o(Gc)}(1),`),r(),n(`_cache[${e.index}]`),i()),n(")"),l&&n(")]")}(e,t);break;case 21:Xu(e.body,t,!0,!1)}}function Zu(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function ed(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Np(28,t.loc)),t.exp=cp("true",!1,o)}if("if"===t.name){const i=od(e,t),r={type:9,loc:(s=e.loc,Ou(s.start.offset,s.end.offset)),branches:[i]};if(n.replaceNode(r),o)return o(r,i,!0)}else{const s=n.parent.children;let i=s.indexOf(e);for(;i-- >=-1;){const r=s[i];if(!r||!nu(r)){if(r&&9===r.type){"else-if"!==t.name&&"else"!==t.name||void 0!==r.branches[r.branches.length-1].condition||n.onError(Np(30,e.loc)),n.removeNode();const s=od(e,t);r.branches.push(s);const i=o&&o(r,s,!1);qu(s,n),i&&i(),n.currentNode=null}else n.onError(Np(30,e.loc));break}n.removeNode(r)}}var s}(e,t,n,(e,t,o)=>{const s=n.parent.children;let i=s.indexOf(e),r=0;for(;i-- >=0;){const e=s[i];e&&9===e.type&&(r+=e.branches.length)}return()=>{if(o)e.codegenNode=sd(t,r,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=sd(t,r+e.branches.length-1,n)}}}));function od(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!Dp(e,"for")?e.children:[e],userKey:Vp(e,"key"),isTemplateIf:n}}function sd(e,t,n){return e.condition?hp(e.condition,id(e,t,n),up(n.helper(Ec),['""',"true"])):id(e,t,n)}function id(e,t,n){const{helper:o}=n,s=lp("key",cp(`${t}`,!1,sp,2)),{children:i}=e,r=i[0];if(1!==i.length||1!==r.type){if(1===i.length&&11===r.type){const e=r.codegenNode;return Qp(e,s,n),e}{let t=64;return ip(n,o(vc),ap([s]),i,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=r.codegenNode,t=14===(a=e).type&&a.callee===tp?a.arguments[1].returns:a;return 13===t.type&&gp(t,n),Qp(t,s,n),e}var a}const rd=zu("for",(e,t,n)=>{const{helper:o,removeHelper:s}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Np(31,t.loc));const s=t.forParseResult;if(!s)return void n.onError(Np(32,t.loc));ad(s);const{addIdentifiers:i,removeIdentifiers:r,scopes:a}=n,{source:l,value:c,key:p,index:u}=s,d={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:p,objectIndexAlias:u,parseResult:s,children:zp(e)?e.children:[e]};n.replaceNode(d),a.vFor++;const h=o&&o(d);return()=>{a.vFor--,h&&h()}}(e,t,n,t=>{const i=up(o(Fc),[t.source]),r=zp(e),a=Dp(e,"memo"),l=Vp(e,"key",!1,!0);l&&l.type;let c=l&&(6===l.type?l.value?cp(l.value.content,!0):void 0:l.exp);const p=l&&c?lp("key",c):null,u=4===t.source.type&&t.source.constType>0,d=u?64:l?128:256;return t.codegenNode=ip(n,o(vc),void 0,i,d,void 0,void 0,!0,!u,!1,e.loc),()=>{let l;const{children:d}=t,h=1!==d.length||1!==d[0].type,f=Kp(e)?e:r&&1===e.children.length&&Kp(e.children[0])?e.children[0]:null;if(f?(l=f.codegenNode,r&&p&&Qp(l,p,n)):h?l=ip(n,o(vc),p?ap([p]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(l=d[0].codegenNode,r&&p&&Qp(l,p,n),l.isBlock!==!u&&(l.isBlock?(s(kc),s(mp(n.inSSR,l.isComponent))):s(fp(n.inSSR,l.isComponent))),l.isBlock=!u,l.isBlock?(o(kc),o(mp(n.inSSR,l.isComponent))):o(fp(n.inSSR,l.isComponent))),a){const e=dp(ld(t.parseResult,[cp("_cached")]));e.body={type:21,body:[pp(["const _memo = (",a.exp,")"]),pp(["if (_cached && _cached.el",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(np)}(_cached, _memo)) return _cached`]),pp(["const _item = ",l]),cp("_item.memo = _memo"),cp("return _item")],loc:sp},i.arguments.push(e,cp("_cache"),cp(String(n.cached.length))),n.cached.push(null)}else i.arguments.push(dp(ld(t.parseResult),l,!0))}})});function ad(e,t){e.finalized||(e.finalized=!0)}function ld({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||cp("_".repeat(t+1),!1))}([e,t,n,...o])}const cd=cp("undefined",!1),pd=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Dp(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},ud=(e,t,n,o)=>dp(e,n,!1,!0,n.length?n[0].loc:o);function dd(e,t,n=ud){t.helper(Yc);const{children:o,loc:s}=e,i=[],r=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Dp(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!Ip(e)&&(a=!0),i.push(lp(e||cp("default",!0),n(t,void 0,o,s)))}let c=!1,p=!1;const u=[],d=new Set;let h=0;for(let e=0;e{const i=n(e,void 0,o,s);return t.compatConfig&&(i.isNonScopedSlot=!0),lp("default",i)};c?u.length&&!u.every(tu)&&(p?t.onError(Np(39,u[0].loc)):i.push(e(void 0,u))):i.push(e(void 0,o))}const f=a?2:fd(e.children)?3:1;let m=ap(i.concat(lp("_",cp(f+"",!1))),s);return r.length&&(m=up(t.helper(jc),[m,rp(r)])),{slots:m,hasDynamicSlots:a}}function hd(e,t,n){const o=[lp("name",e),lp("fn",t)];return null!=n&&o.push(lp("key",cp(String(n),!0))),ap(o)}function fd(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,s=1===e.tagType;let i=s?function(e,t,n=!1){let{tag:o}=e;const s=_d(o),i=Vp(e,"is",!1,!0);if(i)if(s||Ap("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===i.type?e=i.value&&cp(i.value.content,!0):(e=i.exp,e||(e=cp("is",!1,i.arg.loc))),e)return up(t.helper(Rc),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const r=Op(o)||t.isBuiltInComponent(o);return r?(n||t.helper(r),r):(t.helper(Oc),t.components.add(o),Yp(o,"component"))}(e,t):`"${n}"`;const r=_(i)&&i.callee===Rc;let a,l,c,p,u,d=0,h=r||i===bc||i===_c||!s&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=yd(e,t,void 0,s,r);a=n.props,d=n.patchFlag,p=n.dynamicPropNames;const o=n.directives;u=o&&o.length?rp(o.map(e=>function(e,t){const n=[],o=md.get(e);o?n.push(t.helperString(o)):(t.helper(Mc),t.directives.add(e.name),n.push(Yp(e.name,"directive")));const{loc:s}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=cp("true",!1,s);n.push(ap(e.modifiers.map(e=>lp(e,t)),s))}return rp(n,e.loc)}(e,t))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0)if(i===wc&&(h=!0,d|=1024),s&&i!==bc&&i!==wc){const{slots:n,hasDynamicSlots:o}=dd(e,t);l=n,o&&(d|=1024)}else if(1===e.children.length&&i!==bc){const n=e.children[0],o=n.type,s=5===o||8===o;s&&0===Uu(n,t)&&(d|=1),l=s||2===o?n:e.children}else l=e.children;p&&p.length&&(c=function(e){let t="[";for(let n=0,o=e.length;n0;let f=!1,m=0,g=!1,y=!1,v=!1,_=!1,w=!1,S=!1;const k=[],x=e=>{p.length&&(u.push(ap(vd(p),l)),p=[]),e&&u.push(e)},A=()=>{t.scopes.vFor>0&&p.push(lp(cp("ref_for",!0),cp("true")))},C=({key:e,value:n})=>{if(Ip(e)){const i=e.content,r=a(i);if(!r||o&&!s||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||T(i)||(_=!0),r&&T(i)&&(S=!0),r&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Uu(n,t)>0)return;"ref"===i?g=!0:"class"===i?y=!0:"style"===i?v=!0:"key"===i||k.includes(i)||k.push(i),!o||"class"!==i&&"style"!==i||k.includes(i)||k.push(i)}else w=!0};for(let s=0;s"prop"===e.content)&&(m|=32);const S=t.directiveTransforms[n];if(S){const{props:n,needRuntime:o}=S(a,e,t);!i&&n.forEach(C),_&&s&&!Ip(s)?x(ap(n,l)):p.push(...n),o&&(d.push(a),b(o)&&md.set(a,o))}else E(n)||(d.push(a),h&&(f=!0))}}let N;if(u.length?(x(),N=u.length>1?up(t.helper(Dc),u,l):u[0]):p.length&&(N=ap(vd(p),l)),w?m|=16:(y&&!o&&(m|=2),v&&!o&&(m|=4),k.length&&(m|=8),_&&(m|=32)),f||0!==m&&32!==m||!(g||S||d.length>0)||(m|=512),!t.inSSR&&N)switch(N.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(Kp(e)){const{children:n,loc:o}=e,{slotName:s,slotProps:i}=function(e,t){let n,o='"default"';const s=[];for(let t=0;t0){const{props:o,directives:i}=yd(e,t,s,!1,!1);n=o,i.length&&t.onError(Np(36,i[0].loc))}return{slotName:o,slotProps:n}}(e,t),r=[t.prefixIdentifiers?"_ctx.$slots":"$slots",s,"{}","undefined","true"];let a=2;i&&(r[2]=i,a=3),n.length&&(r[3]=dp([],n,!1,!1,o),a=4),t.scopeId&&!t.slotted&&(a=5),r.splice(a),e.codegenNode=up(t.helper(Lc),r,o)}},Sd=(e,t,n,o)=>{const{loc:s,modifiers:i,arg:r}=e;let a;if(e.exp||i.length||n.onError(Np(35,s)),4===r.type)if(r.isStatic){let e=r.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),a=cp(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?B(O(e)):`on:${e}`,!0,r.loc)}else a=pp([`${n.helperString(Jc)}(`,r,")"]);else a=r,a.children.unshift(`${n.helperString(Jc)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=jp(l),t=!(e||(e=>Up.test(Lp(e)))(l)),n=l.content.includes(";");(t||c&&e)&&(l=pp([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let p={props:[lp(a,l||cp("() => {}",!1,s))]};return o&&(p=o(p)),c&&(p.props[0].value=n.cache(p.props[0].value)),p.props.forEach(e=>e.key.isHandlerKey=!0),p},kd=(e,t,n)=>{const{modifiers:o,loc:s}=e,i=e.arg;let{exp:r}=e;return r&&4===r.type&&!r.content.trim()&&(r=void 0),4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=i.content?`${i.content} || ""`:'""'),o.some(e=>"camel"===e.content)&&(4===i.type?i.isStatic?i.content=O(i.content):i.content=`${n.helperString(zc)}(${i.content})`:(i.children.unshift(`${n.helperString(zc)}(`),i.children.push(")"))),n.inSSR||(o.some(e=>"prop"===e.content)&&xd(i,"."),o.some(e=>"attr"===e.content)&&xd(i,"^")),{props:[lp(i,r)]}},xd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Ad=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,s=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name])||"template"===e.tag)))for(let e=0;e{if(1===e.type&&Dp(e,"once",!0)){if(Cd.has(e)||t.inVOnce||t.inSSR)return;return Cd.add(e),t.inVOnce=!0,t.helper(Gc),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0,!0))}}},Ed=(e,t,n)=>{const{exp:o,arg:s}=e;if(!o)return n.onError(Np(41,e.loc)),Nd();const i=o.loc.source.trim(),r=4===o.type?o.content:i,a=n.bindingMetadata[i];if("props"===a||"props-aliased"===a)return n.onError(Np(44,o.loc)),Nd();if("literal-const"===a||"setup-const"===a)return n.onError(Np(45,o.loc)),Nd();if(!r.trim()||!jp(o))return n.onError(Np(42,o.loc)),Nd();const l=s||cp("modelValue",!0),c=s?Ip(s)?`onUpdate:${O(s.content)}`:pp(['"onUpdate:" + ',s]):"onUpdate:modelValue";let p;p=pp([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const u=[lp(l,e.exp),lp(c,p)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map(e=>e.content).map(e=>(Mp(e)?e:JSON.stringify(e))+": true").join(", "),n=s?Ip(s)?`${s.content}Modifiers`:pp([s,' + "Modifiers"']):"modelModifiers";u.push(lp(n,cp(`{ ${t} }`,!1,e.loc,2)))}return Nd(u)};function Nd(e=[]){return{props:e}}const Id=/[\w).+\-_$\]]/,Od=(e,t)=>{Ap("COMPILER_FILTERS",t)&&(5===e.type?Rd(e.content,t):1===e.type&&e.props.forEach(e=>{7===e.type&&"for"!==e.name&&e.exp&&Rd(e.exp,t)}))};function Rd(e,t){if(4===e.type)Md(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Id.test(e)||(p=!0)}}else void 0===r?(f=i+1,r=n.slice(0,i).trim()):g();function g(){m.push(n.slice(f,i).trim()),f=i+1}if(void 0===r?r=n.slice(0,i).trim():0!==f&&g(),m.length){for(i=0;i{if(1===e.type){const n=Dp(e,"memo");if(!n||Bd.has(e)||t.inSSR)return;return Bd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&gp(o,t),e.codegenNode=up(t.helper(tp),[n.exp,dp(void 0,o),"_cache",String(t.cached.length)]),t.cached.push(null))}}},Ld=(e,t)=>{if(1===e.type)for(const n of e.props)if(7===n.type&&"bind"===n.name&&(!n.exp||4===n.exp.type&&!n.exp.content.trim())&&n.arg){const e=n.arg;if(4===e.type&&e.isStatic){const t=O(e.content);(Pp.test(t[0])||"-"===t[0])&&(n.exp=cp(t,!1,e.loc))}else t.onError(Np(53,e.loc)),n.exp=cp("",!0,e.loc)}};function jd(e,t={}){const n=t.onError||Tp,o="module"===t.mode;!0===t.prefixIdentifiers?n(Np(48)):o&&n(Np(49)),t.cacheHandlers&&n(Np(50)),t.scopeId&&!o&&n(Np(51));const s=c({},t,{prefixIdentifiers:!1}),i=v(e)?function(e,t){if(gu.reset(),au=null,lu=null,cu="",pu=-1,uu=-1,mu.length=0,ru=e,su=c({},ou),t){let e;for(e in t)null!=t[e]&&(su[e]=t[e])}gu.mode="html"===su.parseMode?1:"sfc"===su.parseMode?2:0,gu.inXML=1===su.ns||2===su.ns;const n=t&&t.delimiters;n&&(gu.delimiterOpen=Sp(n[0]),gu.delimiterClose=Sp(n[1]));const o=iu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:sp}}(0,e);return gu.parse(ru),o.loc=Ou(0,e.length),o.children=Tu(o.children),iu=null,o}(e,s):e,[r,a]=[[Ld,Td,nd,Fd,rd,Od,wd,gd,pd,Ad],{on:Sd,bind:kd,model:Ed}];return Wu(i,c({},s,{nodeTransforms:[...r,...t.nodeTransforms||[]],directiveTransforms:c({},a,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:s="template.vue.html",scopeId:i=null,optimizeImports:r=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:p=!1,isTS:u=!1,inSSR:d=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:o,filename:s,scopeId:i,optimizeImports:r,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:p,isTS:u,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${op[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:s,prefixIdentifiers:i,indent:r,deindent:a,newline:l,scopeId:c,ssr:p}=n,u=Array.from(e.helpers),d=u.length>0,h=!i&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:s,newline:i,runtimeModuleName:r,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,p=Array.from(e.helpers);p.length>0&&(s(`const _Vue = ${c}\n`,-1),e.hoists.length)&&s(`const { ${[Cc,Tc,Ec,Nc,Ic].filter(e=>p.includes(e)).map(Ju).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o();for(let s=0;s0)&&l()),e.directives.length&&(Gu(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Gu(e.filters,"filter",n),l()),e.temps>0){s("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(s("\n",0),l()),p||s("return "),e.codegenNode?Yu(e.codegenNode,n):s("null"),h&&(a(),s("}")),a(),s("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(i,s)}const Ud=Symbol(""),Dd=Symbol(""),Vd=Symbol(""),$d=Symbol(""),Hd=Symbol(""),Wd=Symbol(""),qd=Symbol(""),zd=Symbol(""),Kd=Symbol(""),Jd=Symbol("");var Gd;let Qd;Gd={[Ud]:"vModelRadio",[Dd]:"vModelCheckbox",[Vd]:"vModelText",[$d]:"vModelSelect",[Hd]:"vModelDynamic",[Wd]:"withModifiers",[qd]:"withKeys",[zd]:"vShow",[Kd]:"Transition",[Jd]:"TransitionGroup"},Object.getOwnPropertySymbols(Gd).forEach(e=>{op[e]=Gd[e]});const Xd={parseMode:"html",isVoidTag:ee,isNativeTag:e=>X(e)||Y(e)||Z(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return Qd||(Qd=document.createElement("div")),t?(Qd.innerHTML=`
`,Qd.children[0].getAttribute("foo")):(Qd.innerHTML=e,Qd.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?Kd:"TransitionGroup"===e||"transition-group"===e?Jd:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},Yd=(e,t)=>{const n=J(e);return cp(JSON.stringify(n),!1,t,3)};function Zd(e,t){return Np(e,t)}const eh=t("passive,once,capture"),th=t("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),nh=t("left,right"),oh=t("onkeyup,onkeydown,onkeypress"),sh=(e,t)=>Ip(e)&&"onclick"===e.content.toLowerCase()?cp(t,!0):4!==e.type?pp(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,ih=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},rh=[e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:cp("style",!0,t.loc),exp:Yd(t.value.content,t.loc),modifiers:[],loc:t.loc})})}],ah={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:s}=e;return o||n.onError(Zd(54,s)),t.children.length&&(n.onError(Zd(55,s)),t.children.length=0),{props:[lp(cp("innerHTML",!0,s),o||cp("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:s}=e;return o||n.onError(Zd(56,s)),t.children.length&&(n.onError(Zd(57,s)),t.children.length=0),{props:[lp(cp("textContent",!0),o?Uu(o,n)>0?o:up(n.helperString(Uc),[o],s):cp("",!0))]}},model:(e,t,n)=>{const o=Ed(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(Zd(59,e.arg.loc));const{tag:s}=t,i=n.isCustomElement(s);if("input"===s||"textarea"===s||"select"===s||i){let r=Vd,a=!1;if("input"===s||i){const o=Vp(t,"type");if(o){if(7===o.type)r=Hd;else if(o.value)switch(o.value.content){case"radio":r=Ud;break;case"checkbox":r=Dd;break;case"file":a=!0,n.onError(Zd(60,e.loc))}}else(function(e){return e.props.some(e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))})(t)&&(r=Hd)}else"select"===s&&(r=$d);a||(o.needRuntime=n.helper(r))}else n.onError(Zd(58,e.loc));return o.props=o.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),o},on:(e,t,n)=>Sd(e,t,n,t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:s,value:i}=t.props[0];const{keyModifiers:r,nonKeyModifiers:a,eventOptionModifiers:l}=((e,t,n)=>{const o=[],s=[],i=[];for(let r=0;r{const{exp:o,loc:s}=e;return o||n.onError(Zd(62,s)),{props:[],needRuntime:n.helper(zd)}}},lh=Object.create(null);oa(function(t,n){if(!v(t)){if(!t.nodeType)return i;t=t.innerHTML}const o=function(e,t){return e+JSON.stringify(t,(e,t)=>"function"==typeof t?t.toString():t)}(t,n),s=lh[o];if(s)return s;if("#"===t[0]){const e=document.querySelector(t);t=e?e.innerHTML:""}const r=c({hoistStatic:!0,onError:void 0,onWarn:i},n);r.isCustomElement||"undefined"==typeof customElements||(r.isCustomElement=e=>!!customElements.get(e));const{code:a}=function(e,t={}){return jd(e,c({},Xd,t,{nodeTransforms:[ih,...rh,...t.nodeTransforms||[]],directiveTransforms:c({},ah,t.directiveTransforms||{}),transformHoist:null}))}(t,r),l=new Function("Vue",a)(e);return l._rc=!0,lh[o]=l});var ch=n(237),ph=n.n(ch);const uh={$on:(...e)=>ph().on(...e),$once:(...e)=>ph().once(...e),$off:(...e)=>ph().off(...e),$emit:(...e)=>ph().emit(...e)},dh={key:0,class:"ai1wm-overlay",style:{display:"block"}},hh={key:0,class:"ai1wm-folder-container"},fh=["innerHTML"],mh={key:4,class:"ai1wm-folder-container"},gh={key:0},yh=["onClick"],vh={class:"ai1wm-archive-browser-filename"},bh={class:"ai1wm-archive-browser-filesize"},_h={key:1},wh={name:"Folder",props:{folder:{type:Object,required:!0},index:{type:Number,default:0}},data:function(){return{tree:this.folder,Ai1wm}},methods:{download:function(e){this.$eventBus.$emit("ai1wm-download-file",e)},toggle:function(){this.index>0&&(this.tree.expanded=!this.tree.expanded)}}};var Sh=n(262);const kh=(0,Sh.A)(wh,[["render",function(e,t,n,o,s,i){const r=Cs("folder",!0);return yr(),kr("ul",null,[e.tree.expanded?(yr(),kr("li",gh,[Ir("a",{href:"#",style:W({"padding-left":n.index+"rem"}),onClick:t[0]||(t[0]=nc(e=>i.toggle(),["prevent"]))},[t[2]||(t[2]=Ir("i",{class:"ai1wm-icon-folder-secondary-open"},null,-1)),Pr(" "+re(e.Ai1wm.Util.basename(e.tree.name)),1)],4),(yr(!0),kr(ur,null,Rs(e.tree.children,e=>(yr(),xr(r,{key:"folder_"+e.name,folder:e,index:n.index+1},null,8,["folder","index"]))),128)),(yr(!0),kr(ur,null,Rs(e.tree.files,o=>(yr(),kr("ul",{key:"files_"+o.name},[Ir("li",null,[Ir("a",{href:"#",style:W({"padding-left":n.index+1+"rem"}),onClick:nc(e=>i.download(o),["prevent"])},[t[3]||(t[3]=Ir("i",{class:"ai1wm-icon-file"},null,-1)),Ir("span",vh,re(e.Ai1wm.Util.basename(o.name)),1),Ir("span",bh,re(e.Ai1wm.Util.sizeFormat(o.size)),1),t[4]||(t[4]=Ir("i",{class:"ai1wm-icon-arrow-down"},null,-1))],12,yh)])]))),128))])):(yr(),kr("li",_h,[Ir("a",{href:"#",style:W({"padding-left":n.index+"rem"}),onClick:t[1]||(t[1]=nc(t=>e.tree.expanded=!e.tree.expanded,["prevent"]))},[t[5]||(t[5]=Ir("i",{class:"ai1wm-icon-folder-secondary"},null,-1)),Pr(" "+re(e.Ai1wm.Util.basename(e.tree.name)),1)],4)]))])}]]),xh={class:"ai1wm-spin-container"},Ah={},Ch=(0,Sh.A)(Ah,[["render",function(e,t,n,o,s,i){return yr(),kr("div",xh,[...t[0]||(t[0]=[Ir("div",{class:"ai1wm-spinner ai1wm-spin-right"},[Ir("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAF1QTFRFAAAAkpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWaDpDRYAAAAB90Uk5TABAwsM/A/9h/Tz/v37+fIPBQQG/McIDgr2CQ0KCPX6xBX1EAAALLSURBVHic7Zp/c7MgDMfFVh43rVr3SOuP9f2/zFnbmqAIiMTb3fr9Y7e7Uj+GhBBCg+C3iu3ACA/0DHaMdmBwckjPIIfcGdSQgUEMeTBoIU8GKeTF4P/i+OOTZkWODJ4Mf9NTHNIxnpDhv+yDiIEgd4Pi3BskLBYgvTJvGESZQnqMrzAAyhzCk7NvigLC+cnTnL0oSghPSq8UNYTzL5+U/2UlokJByTxSHrkrrw6UlDFBsuoyoVy9UXAWri9EtsipvpK903iiTEqiPJIotR/KLIcIab143wCeOuMpOxJBpCTtyy0GCtWEBSGCnKggQY0ovhL/XA1AUjJI0O5hCnILnVeCbocACxjEMdlawfmF0PX5Hq5HXiGcrzN9muwFric87Xd7OAUymKCDQHx1dJBghFCeLMcsqVyOLH5pU70BpYvq09LPbDaWkE1xId4QCsgmx+uji/lZRnoIrNVNu1qif9VW/w52gvlQ91zB0A2HZdi11OEjDJ9bCRa8ej+Bl9jgeWgmqTsUMJ0LAywE28llYQR4vnKFwJQvLTaYT+dSIx0fsbRfoILZMb7QGWWxWIGDv2NVDoYsp6ZqoykQn5qCCJWyLqmFgSGFZhg6YDgsSGH3bWTK+mMM7BW80NaoyJR0ZTHLUENPPw3YlHURhrvTekPkXsyq3lWGvmgq3NjFjYIZ5vyKYt2ewjCjsAiZBlOOVt7H/rDsqrX4GzYt5VJqFNvVOrncVPw2GMO+peGtZeSHMiW56Qbf5H63KXoRhctKFzG3VB5p4/SX6gmFJ5nCN2E27dqvYcxmbOBcv9CV3OftOr8XWMdQUgadBqnvHdrV9UfeKh+k0cGlPdCYn4vlWOGU0zsFjVrnLhoT5qcPKpwLtbvyzkzoM8nWZo0RUwgf93J5pQm0tvbWcgpFpCJElb9734fOogNSETXC072iSnlZ7vELnLfe+mv6AYyEOZ4mvtpBAAAAAElFTkSuQmCC"})],-1),Ir("div",{class:"ai1wm-spinner ai1wm-spin-left"},[Ir("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAFpQTFRFAAAABp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/j79BQvAAAAB50Uk5TACA/f19Pn9//EO9vMM9gkMDgQIDwr7BwoL/QUPSTc7QwrgAAAa9JREFUeJztmGuXgiAQQFE3AyMzZdVy9///zdXaYJRHLqDn7DlzPwbN5TEDFCEIgiAIgiAI8s9J0mziI022MhzyI5Uc8wOLbmAZMDwpssiaU7FURNfws0kxceaxHKVxGr+TOUVy2BUT+Q6OKJa3DkovoQ6uhayu2kd1mIPNquN6eSZTUlYzSRGWyQ0IJUrQwGeazxBHAgK1i+F2ItKC9SpMrzVyYLn5OxKXg5AaTMX/WO5kjLtxazv3INahUsuy5iqbC1+HWq3K0gNUqu9JqUIMyybWTPdjmn7JLt/pxN8LRhaJcA0AYpuxg8r1XZPFnB4rJY2ptY/iIGenRLMIrxOMuiULi/DLL/dyjSl2D3coia2coUXL8pW0rwBHWw8mS760dXmHukysS/E6ib0dZHi389IScMszKSnsJzl37Nkq1L467tcyzAGPDseiD2HPCCZWWQKBj5VIj14dOBV62+rnFbjFR/LDNpb7zEKLWx74JjWRCLrAXpj+aC/uLSTaPbuJhAxiBwnh1x0khPU7SMa3dbWDZNS0O0jGkulasbnkIarraP9BIAiCIAiCIIiNHyohJRyvfZJVAAAAAElFTkSuQmCC"})],-1)])])}]]),Th={class:"ai1wm-decrypt-backup-section"},Eh={class:"ai1wm-import-decrypt-password-modal-content"},Nh={id:"ai1wm-password-form",class:"ai1wm-decrypt-form"},Ih=["type","placeholder"],Oh=["type","placeholder"],Rh={class:"ai1wm-backup-decrypt-button-container"},Mh=jQuery,Ph={data:function(){return{password:"",passwordConfirmation:"",passwordType:"password",passwordConfirmationType:"password",showMismatchClass:!1,showMismatchError:!1,ai1wm_locale}},computed:{passwordIconClass:function(){return"password"===this.passwordType?"ai1wm-icon-eye-blocked":"ai1wm-icon-eye"},passwordConfirmationIconClass:function(){return"password"===this.passwordConfirmationType?"ai1wm-icon-eye-blocked":"ai1wm-icon-eye"}},methods:{checkPasswordMismatch:function(){this.showMismatchClass=this.showMismatchError=this.password!==this.passwordConfirmation},togglePasswordVisibility:function(){this.passwordType="password"===this.passwordType?"text":"password"},togglePasswordConfirmationVisibility:function(){this.passwordConfirmationType="password"===this.passwordConfirmationType?"text":"password"},submit:function(){this.password.length>0?this.password===this.passwordConfirmation?this.$eventBus.$emit("ai1wm-check-encryption",Mh("#ai1wm-password-form").serializeArray()):(this.showMismatchClass=!0,this.showMismatchError=!0):this.showMismatchClass=!0},close:function(){this.$eventBus.$emit("ai1wm-close-modal")}}},Bh=(0,Sh.A)(Ph,[["render",function(e,t,n,o,s,i){return yr(),kr("section",Th,[Ir("h1",null,re(e.ai1wm_locale.backup_encrypted),1),Ir("p",Eh,re(e.ai1wm_locale.backup_encrypted_message),1),Ir("form",Nh,[Ir("div",{class:G(["ai1wm-input-password-container",{"ai1wm-has-error":e.showMismatchClass}])},[Wn(Ir("input",{id:"ai1wm-backup-decrypt-password","onUpdate:modelValue":t[0]||(t[0]=t=>e.password=t),type:e.passwordType,name:"decryption_password",placeholder:e.ai1wm_locale.enter_password,required:"",onKeyup:t[1]||(t[1]=(...e)=>i.checkPasswordMismatch&&i.checkPasswordMismatch(...e))},null,40,Ih),[[Xl,e.password]]),Ir("a",{href:"#ai1wm-backup-decrypt-password",class:G(["ai1wm-toggle-password-visibility",i.passwordIconClass]),onClick:t[2]||(t[2]=nc(e=>i.togglePasswordVisibility(),["prevent"]))},null,2)],2),Ir("div",{class:G(["ai1wm-input-password-container",{"ai1wm-has-error":e.showMismatchClass}])},[Wn(Ir("input",{id:"ai1wm-backup-decrypt-password-confirmation","onUpdate:modelValue":t[3]||(t[3]=t=>e.passwordConfirmation=t),type:e.passwordConfirmationType,name:"decryption_password_confirmation",placeholder:e.ai1wm_locale.repeat_password,required:"",onKeyup:t[4]||(t[4]=(...e)=>i.checkPasswordMismatch&&i.checkPasswordMismatch(...e))},null,40,Oh),[[Xl,e.passwordConfirmation]]),Ir("a",{href:"#ai1wm-backup-decrypt-password-confirmation",class:G(["ai1wm-toggle-password-visibility",i.passwordConfirmationIconClass]),onClick:t[5]||(t[5]=nc(e=>i.togglePasswordConfirmationVisibility(),["prevent"]))},null,2),Wn(Ir("div",{class:"ai1wm-error-message"},re(e.ai1wm_locale.passwords_do_not_match),513),[[Xa,e.showMismatchError]])],2)]),Ir("div",Rh,[Ir("button",{type:"button",class:"ai1wm-button-gray",onClick:t[6]||(t[6]=nc(e=>i.close(),["prevent"]))},re(e.ai1wm_locale.close_encryption),1),Ir("button",{type:"button",class:"ai1wm-button-green",onClick:t[7]||(t[7]=nc(e=>i.submit(),["prevent"]))},re(e.ai1wm_locale.check_encryption),1)])])}]]),Fh={class:"ai1wm-progress-bar-v2"},Lh=["textContent"],jh={class:"ai1wm-progress-bar-v2-container"},Uh={props:{title:{type:String,required:!0},total:{type:Number,required:!0},processed:{type:Number,required:!0}},computed:{progress:function(){return this.total>0?parseInt(this.processed/this.total*100):0}}},Dh=(0,Sh.A)(Uh,[["render",function(e,t,n,o,s,i){return yr(),kr("div",Fh,[Ir("h1",{textContent:re(n.title)},null,8,Lh),Ir("div",jh,[(yr(),kr("div",{key:"progres"+i.progress,class:"ai1wm-progress-bar-v2-meter"},[Ir("div",{class:"ai1wm-progress-bar-v2-percent",style:W({left:i.progress+"%"})},re(i.progress)+"% ",5),Ir("span",{class:"ai1wm-progress-bar-v2-slider",style:W({width:i.progress+"%"})},null,4)]))])])}]]);var Vh=n(213);class $h{constructor(e){this.root=new Hh(e,!0),this.root.parent=null,this.root.tree=this}}class Hh{constructor(e,t){this.name=e,this.children=[],this.files=[],this.expanded=!!t}addChild(e){return e.parent=this,this.children.push(e),e}findNode(e){return this.name===e?this:this.children.find(t=>t.findNode(e))}getRootNode(){return null===this.parent?this:this.parent.getRootNode()}}const Wh=jQuery,qh={components:{Folder:kh,Ai1wmSpinner:Ch,CheckEncryption:Bh,ProgressBar:Dh},data:function(){return{errors:[],params:[],loading:!0,processing:!1,encryption:!1,archive:null,storage:null,tree:null,total:100,processed:0,ai1wm_locale}},watch:{processed:function(e){e>=this.total&&setTimeout(()=>this.processing=!1,100)}},mounted:function(){this.$eventBus.$on("ai1wm-get-config",this.getConfig),this.$eventBus.$on("ai1wm-check-encryption",this.checkEncryption),this.$eventBus.$on("ai1wm-download-file",this.downloadFile),this.$eventBus.$on("ai1wm-download-backup",this.downloadBackup),this.$eventBus.$on("ai1wm-close-modal",this.closeModal)},beforeUnmount:function(){this.$eventBus.$off("ai1wm-get-config",this.getConfig),this.$eventBus.$off("ai1wm-check-encryption",this.checkEncryption),this.$eventBus.$off("ai1wm-download-file",this.downloadFile),this.$eventBus.$off("ai1wm-download-backup",this.downloadBackup),this.$eventBus.$off("ai1wm-close-modal",this.closeModal)},methods:{getConfig:function(e){const t=this;this.errors=[],this.params=[],this.loading=!0,this.archive=e,this.storage=Ai1wm.Util.random(12);const n=this.params.concat({name:"secret_key",value:ai1wm_backups.secret_key}).concat({name:"storage",value:this.storage}).concat({name:"archive",value:this.archive});Wh.ajax({url:ai1wm_backups.get_config.url,type:"POST",dataType:"json",data:n}).done(function(e){if(e?.errors?.length>0)return t.errors=e.errors,void(t.loading=!1);t.checkEncryption()}).fail(function(e){Ai1wm.Util.handleAuthError(e)||(t.errors.push(ai1wm_locale.archive_browser_list_error),t.loading=!1)})},checkEncryption:function(e=[]){const t=this;this.loading=!0,this.encryption=!1;let n=this.params.concat({name:"secret_key",value:ai1wm_backups.secret_key}).concat({name:"storage",value:this.storage}).concat({name:"archive",value:this.archive});e&&(n=n.concat(Ai1wm.Util.list(e)),this.params=this.params.concat(Ai1wm.Util.list(e))),Wh.ajax({url:ai1wm_backups.check_encryption.url,type:"POST",dataType:"json",data:n}).done(function(e){if(e?.errors?.length>0)return t.errors=e.errors,void(t.loading=!1);e.check?(t.loading=!1,t.encryption=!0):t.listContent()}).fail(function(e){Ai1wm.Util.handleAuthError(e)||(t.errors.push(ai1wm_locale.archive_browser_list_error),t.loading=!1)})},listContent:function(){const e=this;this.loading=!0,this.processed=0,this.processing=!0,this.tree=new $h(this.archive);const t=this.params.concat({name:"secret_key",value:ai1wm_backups.secret_key}).concat({name:"storage",value:this.storage}).concat({name:"archive",value:this.archive});Wh.ajax({url:ai1wm_backups.list_content.url,type:"POST",dataType:"json",data:t}).done(function(t){if(t?.errors?.length>0)return e.errors=t.errors,e.loading=!1,void(e.processing=!0);setTimeout(()=>{e.total=t.length,e.loading=!1},5),t.forEach(t=>{setTimeout(()=>{e.addFile(t),e.processed+=1},50)})}).fail(function(t){Ai1wm.Util.handleAuthError(t)||(e.errors.push(ai1wm_locale.archive_browser_list_error),e.loading=!1,e.processing=!1)})},closeModal:function(){const e=this;this.errors=[],this.loading=!0;const t=this.params.concat({name:"secret_key",value:ai1wm_backups.secret_key}).concat({name:"storage",value:this.storage});Wh.ajax({url:ai1wm_backups.clean.url,type:"POST",data:t}).always(function(){e.loading=!1,e.archive=null})},downloadFile:function(e){const t=this.params.concat({name:"secret_key",value:ai1wm_backups.secret_key}).concat({name:"storage",value:this.storage}).concat({name:"archive",value:this.archive}).concat({name:"file_name",value:e.name}).concat({name:"file_size",value:e.size}).concat({name:"file_offset",value:e.offset}),n=new XMLHttpRequest;n.addEventListener("readystatechange",function(){2===n.readyState&&200===n.status||3===n.readyState||4===n.readyState&&(n.status<400?(0,Vh.saveAs)(n.response,Ai1wm.Util.basename(e.name)):Ai1wm.Util.handleAuthError(n)||alert(ai1wm_locale.archive_browser_download_error))}),n.responseType="blob";const o=new FormData;t.forEach(e=>{o.append(e.name,e.value)}),n.open("post",ai1wm_backups.download_file.url),n.send(o)},downloadBackup:function(e){const t=this.params.concat({name:"secret_key",value:ai1wm_backups.secret_key}).concat({name:"archive",value:e}),n=new XMLHttpRequest;n.addEventListener("readystatechange",function(){2===n.readyState&&200===n.status||3===n.readyState||4===n.readyState&&(n.status<400?(0,Vh.saveAs)(n.response,Ai1wm.Util.basename(file)):Ai1wm.Util.handleAuthError(n)||alert(ai1wm_locale.archive_browser_download_error))}),n.responseType="blob";const o=new FormData;t.forEach(e=>{o.append(e.name,e.value)}),n.open("post",ai1wm_backups.download_backup.url),n.send(o)},addFile:function(e){let t=this.tree.root;const n=e.filename,o=e.size,s=e.offset,i=n.match(/[\\|/]/)?Ai1wm.Util.dirname(n):"";if(i.length>0){let e="";i.split("/").forEach(n=>{e+="/"+n;const o=t.findNode(e);t=o||t.addChild(new Hh(e))})}t.files.push({name:n,size:o,offset:s})}}},zh=(0,Sh.A)(qh,[["render",function(e,t,n,o,s,i){const r=Cs("ai1wm-spinner"),a=Cs("progress-bar"),l=Cs("check-encryption"),c=Cs("folder");return e.archive?(yr(),kr("div",dh,[Ir("div",{class:G(["ai1wm-modal-container ai1wm-modal-container-v2",{"ai1wm-modal-loading":e.loading}]),role:"dialog",tabindex:"-1",onClick:t[2]||(t[2]=nc(()=>{},["stop"]))},[e.errors.length>0?(yr(),kr("div",hh,[Ir("h1",null,[Pr(re(e.ai1wm_locale.archive_browser_error)+" ",1),Ir("a",{href:"#",onClick:t[0]||(t[0]=nc(e=>i.closeModal(),["prevent"]))},[...t[3]||(t[3]=[Ir("i",{class:"ai1wm-icon-close"},null,-1)])])]),(yr(!0),kr(ur,null,Rs(e.errors,(e,t)=>(yr(),kr("p",{key:t,innerHTML:e},null,8,fh))),128))])):e.loading?(yr(),xr(r,{key:1})):e.processing?(yr(),xr(a,{key:2,title:e.ai1wm_locale.progress_bar_title,total:e.total,processed:e.processed},null,8,["title","total","processed"])):e.encryption?(yr(),xr(l,{key:3})):(yr(),kr("div",mh,[Ir("h1",null,[Pr(re(e.ai1wm_locale.archive_browser_title)+" ",1),Ir("a",{href:"#",onClick:t[1]||(t[1]=nc(e=>i.closeModal(),["prevent"]))},[...t[4]||(t[4]=[Ir("i",{class:"ai1wm-icon-close"},null,-1)])])]),Or(c,{folder:e.tree.root,index:0},null,8,["folder"])]))],2)])):Fr("",!0)}]]),Kh=n(37),Jh=n(11),Gh=n(284);window.addEventListener("DOMContentLoaded",function(){const e=dc({});e.component("ArchiveBrowser",zh),e.config.globalProperties.$eventBus=uh,e.mount("#ai1wm-backups-list-archive-browser")}),jQuery(document).ready(function(e){function t(t){return e.ajax({url:ai1wm_backups.delete.url,type:"POST",dataType:"json",data:{secret_key:ai1wm_backups.secret_key,archives:t},dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(t){!function(t){const n=e(".ai1wm-menu-count");e(".ai1wm-backup-checkbox").each(function(){-1!==t.indexOf(e(this).data("archive"))&&e(this).closest("tr").remove()});const o=Math.max(+n.text()-t.length,0);n.text(o),o>1?n.prop("title",ai1wm_locale.backups_count_plural.replace("%d",o)):(0===o&&n.addClass("ai1wm-menu-hide"),n.prop("title",ai1wm_locale.backups_count_singular.replace("%d",o))),1===e(".ai1wm-backups tbody tr").length&&(e(".ai1wm-backups").hide(),e(".ai1wm-backups-empty").show())}(t.deleted),t.errors.length>0&&alert(t.errors.join("\n"))}).fail(Ai1wm.Util.handleAuthError).always(function(){!function(){const t=e(".ai1wm-backup-checkbox");t.length?t.first().trigger("change"):(e("#ai1wm-backup-select-all").prop("checked",!1),e("#ai1wm-backup-bulk-delete").addClass("ai1wm-hide"))}()})}e("#ai1wm-backups-list").on("click",".ai1wm-backup-dots",function(t){t.preventDefault(),t.stopPropagation();const n=e(this).next("div.ai1wm-backup-dots-menu");e("div.ai1wm-backup-dots-menu").not(n).hide(),e(n).toggle()}),e(document).on("click","body",function(){e("div.ai1wm-backup-dots-menu").hide()}),e("#ai1wm-backups-list").on("click",".ai1wm-backup-delete",function(n){const o=e(this);confirm(ai1wm_locale.want_to_delete_this_file)&&t([o.data("archive")]),n.preventDefault()}),e("#ai1wm-backups-list").on("change","#ai1wm-backup-select-all",function(){e(".ai1wm-backup-checkbox").prop("checked",e(this).prop("checked")).trigger("change")}),e("#ai1wm-backups-list").on("change",".ai1wm-backup-checkbox",function(){const t=e(".ai1wm-backup-checkbox").length,n=e(".ai1wm-backup-checkbox:checked").length,o=e("#ai1wm-backup-bulk-delete");e("#ai1wm-backup-select-all").prop("checked",t===n),0===n?o.addClass("ai1wm-hide"):(o.find(".ai1wm-backup-bulk-delete-text").text(ai1wm_locale.delete_selected.replace("%d",n)),o.removeClass("ai1wm-hide"))}),e("#ai1wm-backup-bulk-delete").on("click",function(n){const o=e(this),s=e(".ai1wm-backup-checkbox:checked").map(function(){return e(this).data("archive")}).get(),i=1===s.length?ai1wm_locale.want_to_delete_selected_singular:ai1wm_locale.want_to_delete_selected_plural;s.length&&confirm(i.replace("%d",s.length))&&(o.addClass("ai1wm-hide"),t(s)),n.preventDefault()}),e("#ai1wm-backups-list").on("click",".ai1wm-backup-restore",function(t){t.preventDefault(),Ai1wm.MultisiteExtensionRestore?new Ai1wm.MultisiteExtensionRestore(e(this).data("archive"),e(this).data("size")):Ai1wm.UnlimitedExtensionRestore?new Ai1wm.UnlimitedExtensionRestore(e(this).data("archive"),e(this).data("size")):Ai1wm.FreeExtensionRestore?new Ai1wm.FreeExtensionRestore(e(this).data("archive"),e(this).data("size")):new Ai1wm.Restore(e(this).data("archive"),e(this).data("size"))}),e("#ai1wm-backups-list").on("click",".ai1wm-backup-list-content",function(t){return t.preventDefault(),uh.$emit("ai1wm-get-config",e(this).data("archive")),!1}),e("#ai1wm-backups-list").on("click",".ai1wm-backup-download",function(t){return t.preventDefault(),uh.$emit("ai1wm-download-backup",e(this).prop("download")),!1}),e("#ai1wm-backups-list").on("click",".ai1wm-backup-label-description, .ai1wm-backup-label-text",function(){e(this).hide(),e(this).closest(".ai1wm-column-name").find(".ai1wm-backup-label-holder").show(),e(this).closest(".ai1wm-column-name").find(".ai1wm-backup-label-field").trigger("focus")}),e("#ai1wm-backups-list").on("keydown",".ai1wm-backup-label-field",function(t){const n=e(this),o=e('');13===t.which?(t.preventDefault(),n.hide(),n.closest(".ai1wm-backup-label-holder").append(o),e.ajax({url:ai1wm_backups.add_label.url,type:"POST",dataType:"json",data:{secret_key:ai1wm_backups.secret_key,archive:n.data("archive"),label:n.val()},dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(e){0===e.errors.length&&(o.remove(),n.show(),n.val()?(n.closest(".ai1wm-backup-label-holder").hide(),n.closest(".ai1wm-column-name").find(".ai1wm-backup-label-text").show(),n.closest(".ai1wm-column-name").find(".ai1wm-backup-label-colored").text(n.val())):(n.closest(".ai1wm-backup-label-holder").hide(),n.closest(".ai1wm-column-name").find(".ai1wm-backup-label-description").removeClass("ai1wm-backup-label-selected").removeAttr("style")),n.data("value",n.val()))}).fail(Ai1wm.Util.handleAuthError)):27===t.which&&(t.preventDefault(),n.data("value")?(n.closest(".ai1wm-backup-label-holder").hide(),n.closest(".ai1wm-column-name").find(".ai1wm-backup-label-text").show()):(n.closest(".ai1wm-backup-label-holder").hide(),n.closest(".ai1wm-column-name").find(".ai1wm-backup-label-text").hide(),n.closest(".ai1wm-column-name").find(".ai1wm-backup-label-description").removeClass("ai1wm-backup-label-selected").removeAttr("style")),n.val(n.data("value")))}),e(document).on("ai1wm-export-status",function(t,n){"download"===n.type&&(e(".ai1wm-backups tbody tr").length>1?e(".ai1wm-backups-list-spinner-holder").show():(e(".ai1wm-backups-empty").hide(),e(".ai1wm-backups-empty-spinner-holder").show()),e.get(ai1wm_backups.list.url,{secret_key:ai1wm_backups.secret_key}).done(function(t){e("#ai1wm-backups-create").find(".ai1wm-backups-empty").hide(),e("#ai1wm-backups-create").find(".ai1wm-backups-empty-spinner-holder").hide(),e("#ai1wm-backups-list").html(t),e("#ai1wm-backup-bulk-delete").addClass("ai1wm-hide")}).fail(Ai1wm.Util.handleAuthError))});const n=new Jh;e("#ai1wm-create-backup").on("click",function(e){const t=Ai1wm.Util.random(12),o=Ai1wm.Util.form("#ai1wm-export-form").concat({name:"storage",value:t}).concat({name:"file",value:1}).concat({name:"ai1wm_manual_backup",value:1});n.setParams(o),n.start(),e.preventDefault()})}),globalThis.Ai1wm=jQuery.extend({},globalThis.Ai1wm,{Import:Kh,Restore:Gh,Export:Jh})})()})(); \ No newline at end of file diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/export.min.js b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/export.min.js new file mode 100644 index 0000000..b224b95 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/export.min.js @@ -0,0 +1 @@ +(()=>{var t={11(t,e,o){const a=o(132),n=jQuery,i=function(){const t=this;this.params=[],this.modal=new a,this.modal.onStop=function(e){t.onStop(e)}};i.prototype.setParams=function(t){this.params=Ai1wm.Util.list(t)},i.prototype.start=function(t,e){const o=this;if(0===(e=e||0)&&this.stopExport(!1),this.isExportStopped())return;n(window).on("beforeunload",function(){return ai1wm_locale.stop_exporting_your_website}),this.setStatus({type:"info",message:ai1wm_locale.preparing_to_export});let a=this.params.concat({name:"secret_key",value:ai1wm_export.secret_key});t&&(a=a.concat(Ai1wm.Util.list(t))),n.ajax({url:ai1wm_export.ajax.url,type:"POST",dataType:"json",data:a,dataFilter:function(t){return Ai1wm.Util.json(t)}}).done(function(){o.getStatus()}).done(function(t){t&&o.run(t)}).fail(function(n){const i=1e3*e;try{const t=Ai1wm.Util.json(n.responseText);if(t){const e=JSON.parse(t).errors.pop();if(e.message)return o.stopExport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:e.message,nonce:Ai1wm.Util.findValueByName(a,"storage")})}}catch(t){}if(e>=5)return o.stopExport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:ai1wm_locale.unable_to_start_the_export,nonce:Ai1wm.Util.findValueByName(a,"storage")});e++,setTimeout(o.start.bind(o,t,e),i)})},i.prototype.run=function(t,e){const o=this;e=e||0,this.isExportStopped()||n.ajax({url:ai1wm_export.ajax.url,type:"POST",dataType:"json",data:t,dataFilter:function(t){return Ai1wm.Util.json(t)}}).done(function(t){t&&o.run(t)}).fail(function(a){const n=1e3*e;try{const e=Ai1wm.Util.json(a.responseText);if(e){const a=JSON.parse(e).errors.pop();if(a.message)return o.stopExport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:a.message,nonce:Ai1wm.Util.findValueByName(t,"storage")})}}catch(t){}if(e>=5)return o.stopExport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:ai1wm_locale.unable_to_run_the_export,nonce:Ai1wm.Util.findValueByName(t,"storage")});e++,setTimeout(o.run.bind(o,t,e),n)})},i.prototype.clean=function(t,e){const o=this;0===(e=e||0)&&this.stopExport(!0),this.setStatus({type:"info",message:ai1wm_locale.please_wait_stopping_the_export});let a=this.params.concat({name:"secret_key",value:ai1wm_export.secret_key}).concat({name:"priority",value:300}).concat({name:"ai1wm_export_cancel",value:1});t&&(a=a.concat(Ai1wm.Util.list(t))),n.ajax({url:ai1wm_export.ajax.url,type:"POST",dataType:"json",data:a,dataFilter:function(t){return Ai1wm.Util.json(t)}}).done(function(){n(window).off("beforeunload"),o.modal.destroy()}).fail(function(n){const i=1e3*e;try{const t=Ai1wm.Util.json(n.responseText);if(t){const e=JSON.parse(t).errors.pop();if(e.message)return o.stopExport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:e.message,nonce:Ai1wm.Util.findValueByName(a,"storage")})}}catch(t){}if(e>=5)return o.stopExport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:ai1wm_locale.unable_to_stop_the_export,nonce:Ai1wm.Util.findValueByName(a,"storage")});e++,setTimeout(o.clean.bind(o,t,e),i)})},i.prototype.getStatus=function(){const t=this;this.isExportStopped()||(this.statusXhr=n.ajax({url:ai1wm_export.status.url,type:"GET",dataType:"json",cache:!1,dataFilter:function(t){return Ai1wm.Util.json(t)}}).done(function(e){if(e)switch(t.setStatus(e),e.type){case"done":case"error":case"download":return void n(window).off("beforeunload")}setTimeout(t.getStatus.bind(t),3e3)}).fail(function(){setTimeout(t.getStatus.bind(t),3e3)}))},i.prototype.setStatus=function(t){this.modal.render(t)},i.prototype.onStop=function(t){this.clean(t)},i.prototype.stopExport=function(t){try{t&&this.statusXhr&&this.statusXhr.abort()}finally{this.isStopped=t}},i.prototype.isExportStopped=function(){return this.isStopped},t.exports=i},132(t){const e=jQuery,o=function(){const t=this;this.error=function(o){const a=e("
"),n=e("
"),i=e("

"),r=e("

").html(o.message),s=e("
"),p=e("").addClass("ai1wm-title-red").text(o.title),l=e('').on("click",function(){t.destroy()});if(l.append(ai1wm_locale.close_export),s.append(l),i.append(p),n.append(i).append(r),o.nonce){const t=e('');t.text(ai1wm_locale.view_error_log_button),t.prop("href",ai1wm_export.storage.url+"/"+ai1wm_export.error_log.pattern.replace("%s",o.nonce)),n.append(e("
").append(t))}a.append(n).append(s),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.info=function(o){const a=e("
"),n=e("
"),i=e("

"),r=e("

").html(o.message),s=e("
"),p=e(''),l=e('').on("click",function(){l.attr("disabled","disabled"),t.onStop()});l.append(' '+ai1wm_locale.stop_export),s.append(l),i.append(p),n.append(i).append(r),a.append(n).append(s),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.done=function(o){const a=e("
"),n=e("
"),i=e("

"),r=e("

").html(o.message),s=e("
"),p=e("").addClass("ai1wm-title-green").text(o.title),l=e('').on("click",function(){t.destroy()});l.append(ai1wm_locale.close_export),s.append(l),i.append(p),n.append(i).append(r),a.append(n).append(s),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.download=function(o){const a=e("
"),n=e("
"),i=e("

").html(o.message),r=e("
"),s=e('').on("click",function(){t.destroy()}),p=e(".ai1wm-menu-count");p.text(+p.text()+1),p.text()>1?p.prop("title",ai1wm_locale.backups_count_plural.replace("%d",p.text())):(p.removeClass("ai1wm-menu-hide"),p.prop("title",ai1wm_locale.backups_count_singular.replace("%d",p.text()))),s.append(ai1wm_locale.close_export),r.append(s),n.append(i),a.append(n).append(r),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.overlay=e('
'),this.modal=e(''),e("body").append(this.overlay).append(this.modal)};o.prototype.render=function(t){switch(e(document).trigger("ai1wm-export-status",t),t.type){case"error":this.error(t);break;case"info":this.info(t);break;case"done":this.done(t);break;case"download":this.download(t)}},o.prototype.destroy=function(){this.modal.hide(),this.overlay.hide()},t.exports=o},827(){var t;(t=jQuery).fn.ai1wm_find_replace=function(){return t(this).on("click",function(e){e.preventDefault();const o=t("#ai1wm-queries > li:first").clone();o.find("input").val(""),o.find(".ai1wm-query-find-text").html("<text>"),o.find(".ai1wm-query-replace-text").html("<another-text>"),t("#ai1wm-queries > li").removeClass("ai1wm-open"),t(o).addClass("ai1wm-open"),t("#ai1wm-queries").append(o),t(o).ai1wm_query(),t(o).find("p:first").on("click",function(){t(this).parent().toggleClass("ai1wm-open")})}),this}},157(){var t;(t=jQuery).fn.ai1wm_query=function(){const e=t(this).find("input.ai1wm-query-find-input"),o=t(this).find("input.ai1wm-query-replace-input"),a=t(this).find("small.ai1wm-query-find-text"),n=t(this).find("small.ai1wm-query-replace-text");return e.on("change paste input keypress keydown keyup",function(){const e=t(this).val().length>0?t(this).val():"";a.text(e)}),o.on("change paste input keypress keydown keyup",function(){const e=t(this).val().length>0?t(this).val():"";n.text(e)}),this}},213(t,e){var o,a;void 0===(a="function"==typeof(o=function(){"use strict";function e(t,e,o){var a=new XMLHttpRequest;a.open("GET",t),a.responseType="blob",a.onload=function(){r(a.response,e,o)},a.onerror=function(){console.error("could not download file")},a.send()}function o(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function a(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(o){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var n="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof globalThis&&globalThis.global===globalThis?globalThis:void 0,i=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=n.saveAs||("object"!=typeof window||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(t,i,r){var s=n.URL||n.webkitURL,p=document.createElement("a");i=i||t.name||"download",p.download=i,p.rel="noopener","string"==typeof t?(p.href=t,p.origin===location.origin?a(p):o(p.href)?e(t,i,r):a(p,p.target="_blank")):(p.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(p.href)},4e4),setTimeout(function(){a(p)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,i){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,i),n);else if(o(t))e(t,n,i);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){a(r)})}}:function(t,o,a,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,o,a);var s="application/octet-stream"===t.type,p=/constructor/i.test(n.HTMLElement)||n.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&p||i)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},c.readAsDataURL(t)}else{var u=n.URL||n.webkitURL,d=u.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){u.revokeObjectURL(d)},4e4)}});n.saveAs=r.saveAs=r,t.exports=r})?o.apply(e,[]):o)||(t.exports=a)}},e={};function o(a){var n=e[a];if(void 0!==n)return n.exports;var i=e[a]={exports:{}};return t[a].call(i.exports,i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var a in e)o.o(e,a)&&!o.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=o(213);const e=o(157),a=o(827),n=o(11);jQuery(document).ready(function(e){const o=new n;e("#ai1wm-export-file").on("click",function(t){if(e("#ai1wm-encrypt-backups").is(":checked")){const t=e("#ai1wm-backup-encrypt-password"),o=e("#ai1wm-backup-encrypt-password-confirmation");if(!t.val().length)return t.parent().addClass("ai1wm-has-error"),t.focus(),!1;if(t.val()!==o.val())return o.parent().addClass("ai1wm-has-error"),o.focus(),!1}const a=Ai1wm.Util.random(12),n=Ai1wm.Util.form("#ai1wm-export-form").concat({name:"storage",value:a}).concat({name:"file",value:1});o.setParams(n),o.start(),t.preventDefault()}),e(document).on("click",".ai1wm-modal-container .ai1wm-direct-download",function(o){o.preventDefault();const a=e(this).prop("download"),n={secret_key:ai1wm_export.secret_key,archive:a},i=new XMLHttpRequest;i.addEventListener("readystatechange",function(){2===i.readyState&&200===i.status||3===i.readyState||4===i.readyState&&(i.status<400?(0,t.saveAs)(i.response,Ai1wm.Util.basename(a)):Ai1wm.Util.handleAuthError(i)||alert(ai1wm_locale.archive_browser_download_error))}),i.responseType="blob";const r=new FormData;for(const t in n)r.append(t,n[t]);i.open("post",ai1wm_export.download_backup.url),i.send(r)}),e(".ai1wm-accordion > .ai1wm-title").on("click",function(){e(this).parent().toggleClass("ai1wm-active")}),e("#ai1wm-add-new-replace-button").ai1wm_find_replace(),e(".ai1wm-expandable > p:first, .ai1wm-expandable > h4:first, .ai1wm-expandable > div.ai1wm-button-main").on("click",function(){e(this).parent().toggleClass("ai1wm-open")}),e(".ai1wm-query").ai1wm_query(),e(".ai1wm-toggle-password-visibility").on("click",function(){return e(this).toggleClass("ai1wm-icon-eye ai1wm-icon-eye-blocked"),e(this).prev().prop("type",function(t,e){return"text"===e?"password":"text"}),!1}),e("#ai1wm-encrypt-backups").on("click",function(){e(".ai1wm-encrypt-backups-passwords-toggle").toggle()}),e("#ai1wm-backup-encrypt-password").on("keyup",function(){const t=e(this),o=e("#ai1wm-backup-encrypt-password-confirmation");t.val()!==o.val()&&o.parent().addClass("ai1wm-has-error"),t.val().length&&t.parent().removeClass("ai1wm-has-error")}),e("#ai1wm-backup-encrypt-password-confirmation").on("keyup",function(){const t=e(this);e("#ai1wm-backup-encrypt-password").val()!==t.val()?t.parent().addClass("ai1wm-has-error"):t.parent().removeClass("ai1wm-has-error")})}),globalThis.Ai1wm=jQuery.extend({},globalThis.Ai1wm,{Query:e,FindReplace:a,Export:n})})()})(); \ No newline at end of file diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/import.min.js b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/import.min.js new file mode 100644 index 0000000..682583c --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/import.min.js @@ -0,0 +1 @@ +(()=>{var t={525(t){const e=jQuery,o=function(){};o.prototype.setDefaultValues=function(){this.model=new Ai1wm.Import,this.stopUpload=!1},o.prototype.init=function(){const t=e("#ai1wm-import-form"),o=e("#ai1wm-import-file"),a=e("#ai1wm-drag-drop-area");o.on("change",e=>{this.setDefaultValues();const o=e.target.files.item(0);o&&(this.fileSize=o.size,this.fileSize>ai1wm_uploader.max_file_size?this.model.setStatus({type:"pro",message:ai1wm_locale.import_from_file}):this.model.checkDiskSpace(this.fileSize,()=>{try{this.onFilesAdded(o),this.onBeforeUpload(o),this.upload(o)}catch(t){this.onError(t)}})),t.trigger("reset"),e.preventDefault()}),a.on("dragenter",t=>{a.addClass("ai1wm-drag-over"),t.preventDefault()}),a.on("dragover",t=>{a.addClass("ai1wm-drag-over"),t.preventDefault()}),a.on("dragleave",t=>{a.removeClass("ai1wm-drag-over"),t.preventDefault()}),a.on("drop",e=>{this.setDefaultValues(),a.removeClass("ai1wm-drag-over");const o=e.originalEvent.dataTransfer.files.item(0);o&&(this.fileSize=o.size,this.fileSize>ai1wm_uploader.max_file_size?this.model.setStatus({type:"pro",message:ai1wm_locale.import_from_file}):this.model.checkDiskSpace(this.fileSize,()=>{try{this.onFilesAdded(o),this.onBeforeUpload(o),this.upload(o)}catch(t){this.onError(t)}})),t.trigger("reset"),e.preventDefault()})},o.prototype.c1=t=>{if("wpress"!==t.name.substr(-6))throw new Error(ai1wm_locale.invalid_archive_extension)},o.prototype.c3=()=>{if(ai1wm_compatibility.messages.length>0)throw new Error(ai1wm_compatibility.messages.join())},o.prototype.onFilesAdded=function(t){this.c1(t),this.c3(t),e(window).on("beforeunload",function(){return ai1wm_locale.stop_importing_your_website})},o.prototype.onBeforeUpload=function(t){const o=this,a=Ai1wm.Util.random(12),i=Ai1wm.Util.form("#ai1wm-import-form").concat({name:"storage",value:a}).concat({name:"archive",value:t.name}).concat({name:"file",value:1});this.model.setParams(i),e.extend(ai1wm_uploader.params,{storage:a,archive:t.name}),this.model.onStop=function(){o.xhr&&o.xhr.abort(),o.stopUpload=!0,o.model.clean()},this.model.setStatus({type:"progress",percent:"0.00"})},o.prototype.upload=function(t){const o=this;this.xhr=null;const a=new FormData;a.append("upload_file",t);for(const t in ai1wm_uploader.params)a.append(t,ai1wm_uploader.params[t]);e.ajax({url:ai1wm_uploader.url,type:"POST",data:a,cache:!1,contentType:!1,processData:!1,xhr:function(){return o.xhr=e.ajaxSettings.xhr(),o.xhr.upload&&o.xhr.upload.addEventListener("progress",function(t){const e=t.loaded/t.total*100;o.model.setStatus({type:"progress",percent:e.toFixed(2)})}),o.xhr},success:function(){o.stopUpload||o.onFileUploaded()},error:function(t,e){if(0===t.status)return void o.onError(new Error(ai1wm_locale.upload_failed_connection_lost),!0);if(413===t.status)return void o.onError(new Error(ai1wm_locale.file_too_large),!0);const a=Ai1wm.Util.json(t.responseText);if(a){const t=JSON.parse(a);if(t.errors.length>0)return void o.onError(new Error(t.errors.at(0).message),!0)}o.onError(new Error(`${ai1wm_locale.upload_failed} (${t.status}): ${t.statusText||e}`),!0)}})},o.prototype.onUploadProgress=function(t){this.model.setStatus({type:"progress",percent:t})},o.prototype.onFileUploaded=function(){this.model.start()},o.prototype.onError=function(t,e=!1){this.model.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:t.message,leftAligned:e})},t.exports=o},37(t,e,o){const a=o(595),i=jQuery,s=function(){const t=this;this.params=[],this.modal=new a,this.modal.onConfirm=function(e){t.onConfirm(e)},this.modal.onBlogs=function(e){t.onBlogs(e)},this.modal.onStop=function(e){e=(e||[]).concat({name:"ai1wm_import_cancel",value:1}),t.onStop(e)},this.modal.onDiskSpaceConfirm=function(e){t.onDiskSpaceConfirm(e)},this.modal.onDecryptPassword=function(e){t.onDecryptPassword(e)}};s.prototype.setParams=function(t){this.params=Ai1wm.Util.list(t)},s.prototype.start=function(t,e){const o=this;if(0===(e=e||0)&&this.stopImport(!1),this.isImportStopped())return;i(window).on("beforeunload",function(){return ai1wm_locale.stop_importing_your_website}),this.setStatus({type:"info",message:ai1wm_locale.preparing_to_import});let a=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key});t&&(a=a.concat(Ai1wm.Util.list(t))),i.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:a,dataFilter:function(t){return Ai1wm.Util.json(t)}}).done(function(){o.getStatus()}).done(function(t){t&&o.run(t)}).fail(function(i){const s=1e3*e;try{const t=Ai1wm.Util.json(i.responseText);if(t){const e=JSON.parse(t).errors.pop();if(e.message)return o.stopImport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:e.message,nonce:Ai1wm.Util.findValueByName(a,"storage")})}}catch(t){}if(e>=5)return o.stopImport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_start_the_import,nonce:Ai1wm.Util.findValueByName(a,"storage")});e++,setTimeout(o.start.bind(o,t,e),s)})},s.prototype.run=function(t,e){const o=this;e=e||0,this.isImportStopped()||i.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:t,dataFilter:function(t){return Ai1wm.Util.json(t)}}).done(function(t){t&&o.run(t)}).fail(function(a){const i=1e3*e;try{const e=Ai1wm.Util.json(a.responseText);if(e){const a=JSON.parse(e).errors.pop();if(a.message)return o.stopImport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:a.message,nonce:Ai1wm.Util.findValueByName(t,"storage")})}}catch(t){}e++,setTimeout(o.run.bind(o,t,e),i)})},s.prototype.decryptPassword=function(t,e){const o=this;if(e=e||0,this.isImportStopped())return;let a=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key}).concat({name:"priority",value:75});t&&(a=a.concat(Ai1wm.Util.list(t)),this.params=this.params.concat(Ai1wm.Util.list(t))),i.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:a,dataFilter:function(t){return Ai1wm.Util.json(t)}}).done(function(){o.getStatus()}).done(function(t){t&&o.run(t)}).fail(function(i){const s=1e3*e;try{const t=Ai1wm.Util.json(i.responseText);if(t){const e=JSON.parse(t).errors.pop();if(e.message)return o.stopImport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:e.message,nonce:Ai1wm.Util.findValueByName(a,"storage")})}}catch(t){}if(e>=5)return o.stopImport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_check_decryption_password,nonce:Ai1wm.Util.findValueByName(a,"storage")});e++,setTimeout(o.decryptPassword.bind(o,t,e),s)})},s.prototype.confirm=function(t,e){const o=this;if(e=e||0,this.isImportStopped())return;let a=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key}).concat({name:"priority",value:150});t&&(a=a.concat(Ai1wm.Util.list(t))),i.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:a,dataFilter:function(t){return Ai1wm.Util.json(t)}}).done(function(){o.getStatus()}).done(function(t){t&&o.run(t)}).fail(function(i){const s=1e3*e;try{const t=Ai1wm.Util.json(i.responseText);if(t){const e=JSON.parse(t).errors.pop();if(e.message)return o.stopImport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:e.message,nonce:Ai1wm.Util.findValueByName(a,"storage")})}}catch(t){}if(e>=5)return o.stopImport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_confirm_the_import,nonce:Ai1wm.Util.findValueByName(a,"storage")});e++,setTimeout(o.confirm.bind(o,t,e),s)})},s.prototype.checkDiskSpace=function(t,e){this.diskSpaceCallback=e;const o=parseInt(ai1wm_disk_space.free,10),a=parseInt(ai1wm_disk_space.factor,10),i=parseInt(ai1wm_disk_space.extra,10);if(o>=0){const e=t*a+i;if(e>o)return void this.setStatus({type:"disk_space_confirm",message:ai1wm_locale.out_of_disk_space.replace("%s",Ai1wm.Util.sizeFormat(e-o))})}e()},s.prototype.blogs=function(t,e){const o=this;if(e=e||0,this.isImportStopped())return;let a=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key}).concat({name:"priority",value:150});t&&(a=a.concat(Ai1wm.Util.list(t))),i.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:a,dataFilter:function(t){return Ai1wm.Util.json(t)}}).done(function(){o.getStatus()}).done(function(t){t&&o.run(t)}).fail(function(i){const s=1e3*e;try{const t=Ai1wm.Util.json(i.responseText);if(t){const e=JSON.parse(t).errors.pop();if(e.message)return o.stopImport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:e.message,nonce:Ai1wm.Util.findValueByName(a,"storage")})}}catch(t){}if(e>=5)return o.stopImport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_prepare_blogs_on_import,nonce:Ai1wm.Util.findValueByName(a,"storage")});e++,setTimeout(o.blogs.bind(o,t,e),s)})},s.prototype.clean=function(t,e){const o=this;0===(e=e||0)&&this.stopImport(!0),this.setStatus({type:"info",message:ai1wm_locale.please_wait_stopping_the_import});let a=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key}).concat({name:"priority",value:400});t&&(a=a.concat(Ai1wm.Util.list(t))),i.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:a,dataFilter:function(t){return Ai1wm.Util.json(t)}}).done(function(){i(window).off("beforeunload"),o.modal.destroy()}).fail(function(i){const s=1e3*e;try{const t=Ai1wm.Util.json(i.responseText);if(t){const e=JSON.parse(t).errors.pop();if(e.message)return o.stopImport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:e.message,nonce:Ai1wm.Util.findValueByName(a,"storage")})}}catch(t){}if(e>=5)return o.stopImport(!0),void o.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_stop_the_import,nonce:Ai1wm.Util.findValueByName(a,"storage")});e++,setTimeout(o.clean.bind(o,t,e),s)})},s.prototype.getStatus=function(){const t=this;this.isImportStopped()||(this.statusXhr=i.ajax({url:ai1wm_import.status.url,type:"GET",dataType:"json",cache:!1,dataFilter:function(t){return Ai1wm.Util.json(t)}}).done(function(e){if(e)switch(t.setStatus(e),e.type){case"done":case"error":return void i(window).off("beforeunload");case"confirm":case"disk_space_confirm":case"blogs":case"backup_is_encrypted":return}setTimeout(t.getStatus.bind(t),3e3)}).fail(function(){setTimeout(t.getStatus.bind(t),3e3)}))},s.prototype.setStatus=function(t){this.modal.render(t)},s.prototype.onConfirm=function(t){this.confirm(t)},s.prototype.onDecryptPassword=function(t){this.decryptPassword(t)},s.prototype.onBlogs=function(t){this.blogs(t)},s.prototype.onStop=function(t){this.clean(t)},s.prototype.onDiskSpaceConfirm=function(t){this.diskSpaceCallback(t)},s.prototype.stopImport=function(t){try{t&&this.statusXhr&&this.statusXhr.abort()}finally{this.isStopped=t}},s.prototype.isImportStopped=function(){return this.isStopped},t.exports=s},595(t){const e=jQuery,o=function(){const t=this;this.error=function(o){const a=e("
"),i=e("
"),s=e("

"),n=e("

").html(o.message).addClass(o.leftAligned?"ai1wm-left-aligned":""),r=e("
"),p=e("").addClass("ai1wm-title-red").text(o.title),l=e('').on("click",function(){t.destroy()});if(l.append(ai1wm_locale.close_import),r.append(l),s.append(p),i.append(s).append(n),o.nonce){const t=e('');t.text(ai1wm_locale.view_error_log_button),t.prop("href",ai1wm_export.storage.url+"/"+ai1wm_export.error_log.pattern.replace("%s",o.nonce)),i.append(e("
").append(t))}a.append(i).append(r),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.progress=function(o){if(this.progress.progressBarMeter&&this.progress.progressBarMeter.width(o.percent+"%"),this.progress.progressBarPercent)return void this.progress.progressBarPercent.text(o.percent+"%");const a=e("
"),i=e("
"),s=e("

"),n=e("
"),r=e('');this.progress.progressBarMeter=e('').width(o.percent+"%"),this.progress.progressBarPercent=e('').text(o.percent+"%");const p=e('').on("click",function(){p.attr("disabled","disabled"),t.onStop()});p.append(' '+ai1wm_locale.stop_import),r.append(this.progress.progressBarMeter).append(this.progress.progressBarPercent),n.append(p),s.append(r),i.append(s),a.append(i).append(n),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.pro=function(o){const a=e("
"),i=e("
"),s=e("

"),n=e('

').html(o.message),r=e("
"),p=e(''),l=e('').on("click",function(){t.destroy()});l.append(ai1wm_locale.close_import),r.append(l),s.append(p),i.append(s).append(n),a.append(i).append(r),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.confirm=function(o){const a=e("
"),i=e("
"),s=e("

"),n=e('

').html(o.message),r=e('
'),p=e(''),l=e('').on("click",function(){l.attr("disabled","disabled"),t.onStop()}),c=e('').on("click",function(){c.attr("disabled","disabled"),t.onConfirm()});l.append(ai1wm_locale.close_import),c.append(ai1wm_locale.confirm_import+" >"),r.append(l),r.append(c),s.append(p),i.append(s).append(n),a.append(i).append(r),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.diskSpaceConfirm=function(o){const a=e("
"),i=e("
"),s=e("

"),n=e('

').html(o.message),r=e('
'),p=e(''),l=e('').on("click",function(){t.destroy()}),c=e('').on("click",function(){e(this).attr("disabled","disabled"),t.onDiskSpaceConfirm()});l.append(ai1wm_locale.close_import),c.append(ai1wm_locale.confirm_disk_space),r.append(l),r.append(c),s.append(p),i.append(s).append(n),a.append(i).append(r),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.blogs=function(o){const a=e("
").on("submit",function(e){e.preventDefault(),l.attr("disabled","disabled"),t.onBlogs(a.serializeArray())}),i=e("
"),s=e("

"),n=e("

").html(o.message),r=e("
"),p=e("").addClass("ai1wm-title-grey").text(o.title),l=e('');l.append(ai1wm_locale.continue_import),r.append(l),s.append(p),i.append(s).append(n),a.append(i).append(r),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.info=function(o){const a=e("
"),i=e("
"),s=e("

"),n=e("

").html(o.message),r=e("
"),p=e(''),l=e("

").html(ai1wm_locale.please_do_not_close_this_browser),c=e('
');c.append(l),r.append(c),s.append(p),i.append(s).append(n),a.append(i).append(r),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.done=function(o){const a=e("
"),i=e("
"),s=e("

"),n=e('

').html(o.message),r=e('
'),p=e("").addClass("ai1wm-title-green").text(o.title),l=e('').on("click",function(){t.destroy()});l.append(ai1wm_locale.finish_import+" >"),r.append(l),s.append(p),i.append(s).append(n),a.append(i).append(r),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.backupIsEncrypted=function(o){const a=e("
"),i=e('
'),s=e("

").html(ai1wm_locale.backup_encrypted),n=e('

').html(ai1wm_locale.backup_encrypted_message),r=e('
'),p=e('
'),l=e('').prop("placeholder",ai1wm_locale.enter_password).on("keyup",function(){const t=e(this),o=e("#ai1wm-backup-decrypt-password-confirmation");t.val()!==o.val()?(o.parent().addClass("ai1wm-has-error"),t.parent().addClass("ai1wm-has-error")):(t.parent().removeClass("ai1wm-has-error"),o.parent().removeClass("ai1wm-has-error"))}),c=e('').on("click",function(){return e(this).toggleClass("ai1wm-icon-eye ai1wm-icon-eye-blocked"),e(this).prev().prop("type",function(t,e){return"text"===e?"password":"text"}),!1});if(p.append(l).append(c),o.error){p.addClass("ai1wm-has-error");const t=e('
').html(o.error);p.append(t)}const d=e('
'),m=e('').prop("placeholder",ai1wm_locale.repeat_password).on("keyup",function(){const t=e(this),o=e("#ai1wm-backup-decrypt-password");l.val()!==t.val()?(o.parent().addClass("ai1wm-has-error"),t.parent().addClass("ai1wm-has-error")):(o.parent().removeClass("ai1wm-has-error"),t.parent().removeClass("ai1wm-has-error"))}),u=e('').on("click",function(){return e(this).toggleClass("ai1wm-icon-eye ai1wm-icon-eye-blocked"),e(this).prev().prop("type",function(t,e){return"text"===e?"password":"text"}),!1}),w=e('
').html(ai1wm_locale.passwords_do_not_match);d.append(m).append(u).append(w);const f=e('').on("click",function(){const o=e("#ai1wm-backup-decrypt-password"),a=e("#ai1wm-backup-decrypt-password-confirmation");o.val().length&&o.val()===a.val()?(f.attr("disabled","disabled"),t.onDecryptPassword(r.serializeArray())):(a.parent().addClass("ai1wm-has-error"),o.parent().addClass("ai1wm-has-error"))}),h=e('').on("click",function(){h.attr("disabled","disabled"),t.onStop()});f.append(ai1wm_locale.unlock),h.append(ai1wm_locale.close_import);const _=e('
');_.append(h).append(f),r.append(p).append(d),i.append(s).append(n).append(r).append(_),a.append(i),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.serverCannotDecrypt=function(o){const a=e("
"),i=e("
"),s=e("

"),n=e("

").html(o.message),r=e(''),p=e("
"),l=e('').on("click",function(){l.attr("disabled","disabled"),t.onStop()});l.append(ai1wm_locale.close_import),p.append(l),s.append(r),i.append(s).append(n),a.append(i).append(p),t.modal.html(a).show(),t.modal.trigger("focus"),t.overlay.show()},this.overlay=e('
'),this.modal=e(''),e("body").append(this.overlay).append(this.modal)};o.prototype.render=function(t){switch(e(document).trigger("ai1wm-import-status",t),t.type){case"pro":this.pro(t);break;case"error":this.error(t);break;case"confirm":this.confirm(t);break;case"disk_space_confirm":this.diskSpaceConfirm(t);break;case"blogs":this.blogs(t);break;case"progress":this.progress(t);break;case"info":this.info(t);break;case"done":this.done(t);break;case"backup_is_encrypted":this.backupIsEncrypted(t);break;case"server_cannot_decrypt":this.serverCannotDecrypt(t)}},o.prototype.destroy=function(){this.modal.hide(),this.overlay.hide(),this.progress.progressBarMeter=null,this.progress.progressBarPercent=null},t.exports=o}},e={};function o(a){var i=e[a];if(void 0!==i)return i.exports;var s=e[a]={exports:{}};return t[a](s,s.exports,o),s.exports}const a=o(37),i=o(525);jQuery(document).ready(function(t){"use strict";let e;e=Ai1wm.MultisiteExtensionUploader?new Ai1wm.MultisiteExtensionUploader:Ai1wm.UnlimitedExtensionUploader?new Ai1wm.UnlimitedExtensionUploader:Ai1wm.FileExtensionUploader?new Ai1wm.FileExtensionUploader:new Ai1wm.FileUploader,e.init(),t(".ai1wm-expandable > div.ai1wm-button-main").on("click",function(){t(this).parent().toggleClass("ai1wm-open")})}),globalThis.Ai1wm=jQuery.extend({},globalThis.Ai1wm,{FileUploader:i,Import:a})})(); \ No newline at end of file diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/reset.min.js b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/reset.min.js new file mode 100644 index 0000000..1a25c6b --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/reset.min.js @@ -0,0 +1 @@ +jQuery(document).ready(function(t){"use strict";const a=function(a){if(a.preventDefault(),a.stopPropagation(),t(this).hasClass("active"))return;const e=t(this).data("tab");t("[data-tab]").removeClass("active"),t("[data-tab="+e+"]").addClass("active")};t(".ai1wm-reset-container .ai1wm-reset-content aside nav").on("click","a",a),t(".ai1wm-reset-container .ai1wm-reset-content section").on("click"," article>a",a)}); \ No newline at end of file diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/schedules.min.js b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/schedules.min.js new file mode 100644 index 0000000..8fab648 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/schedules.min.js @@ -0,0 +1 @@ +jQuery(document).ready(function(a){"use strict";const t=function(t){if(t.preventDefault(),t.stopPropagation(),a(this).hasClass("active"))return;const e=a(this).data("tab");a("[data-tab]").removeClass("active"),a("[data-tab="+e+"]").addClass("active")};a(".ai1wm-schedules-container .ai1wm-schedules-content aside nav").on("click","a",t),a(".ai1wm-schedules-container .ai1wm-schedules-content section").on("click"," article>a",t)}); \ No newline at end of file diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/servmask.min.js b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/servmask.min.js new file mode 100644 index 0000000..0831c14 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/servmask.min.js @@ -0,0 +1 @@ +(()=>{var e={872(){jQuery(document).ready(function(e){"use strict";e("#ai1wm-feedback-type-link-1").on("click",function(){const a=e("#ai1wm-feedback-type-1");a.is(":checked")?a.attr("checked",!1):a.attr("checked",!0)}),e("#ai1wm-feedback-type-2").on("click",function(){e("#ai1wm-feedback-type-1").closest("li").hide(),e(".ai1wm-feedback-form").fadeIn()}),e("#ai1wm-feedback-cancel").on("click",function(a){e(".ai1wm-feedback-form").fadeOut(function(){e(".ai1wm-feedback-type").attr("checked",!1).closest("li").show()}),a.preventDefault()}),e("#ai1wm-feedback-submit").on("click",function(a){const i=e(this),t=i.next(),c=e(".ai1wm-feedback-type:checked").val(),s=e(".ai1wm-feedback-email").val(),d=e(".ai1wm-feedback-message").val(),n=e(".ai1wm-feedback-terms").is(":checked");i.attr("disabled",!0),t.css("visibility","visible"),e.ajax({url:ai1wm_feedback.ajax.url,type:"POST",dataType:"json",async:!0,data:{secret_key:ai1wm_feedback.secret_key,ai1wm_type:c,ai1wm_email:s,ai1wm_message:d,ai1wm_terms:+n},dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(a){if(i.attr("disabled",!1),t.css("visibility","hidden"),a.errors.length>0){e(".ai1wm-feedback .ai1wm-message").remove();const i=e("
").addClass("ai1wm-message ai1wm-error-message");e.each(a.errors,function(a,t){i.append(e("

").text(t))}),e(".ai1wm-feedback").prepend(i)}else{const a=e("

").addClass("ai1wm-message ai1wm-success-message");a.append(e("

").text(ai1wm_locale.thanks_for_submitting_your_feedback)),e(".ai1wm-feedback").html(a)}}).fail(Ai1wm.Util.handleAuthError),a.preventDefault()})})}},a={};const i=function i(t){var c=a[t];if(void 0!==c)return c.exports;var s=a[t]={exports:{}};return e[t](s,s.exports,i),s.exports}(872);jQuery(document).ready(function(){}),globalThis.Ai1wm=jQuery.extend({},globalThis.Ai1wm,{Feedback:i})})(); \ No newline at end of file diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/settings.min.js b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/settings.min.js new file mode 100644 index 0000000..e69de29 diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/util.min.js b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/util.min.js new file mode 100644 index 0000000..a3e98f0 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/util.min.js @@ -0,0 +1 @@ +(()=>{var t={935(t){const r=jQuery;t.exports={random:function(t,r){let n="";for(let r=0;rt.name===r);return n?n.value:void 0},json:function(t){if("string"==typeof t){const r=t.match(/{[\s\S]+}/);if(null!==r)return r[0]}return!1},handleAuthError:function(t){return(400===t.status||401===t.status||403===t.status)&&(alert(ai1wm_locale.session_expired),window.location.reload(),!0)},sizeFormat:function(t){if(0===parseInt(t))return"0 B";const r=Math.floor(Math.log(t)/Math.log(1024)),n=1*(t/Math.pow(1024,r)).toFixed(2);return isNaN(n)?"0 B":n+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][r]},dirname:function(t){return t.replace(/\\/g,"/").replace(/\/[^/]*\/?$/,"")},basename:function(t){return t.replace(/\\/g,"/").replace(/.*\//,"")}}}},r={};const n=function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}(935);globalThis.Ai1wm=jQuery.extend({},globalThis.Ai1wm,{Util:n})})(); \ No newline at end of file diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/backups/backups-bulk-delete.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/backups/backups-bulk-delete.php new file mode 100644 index 0000000..8981861 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/backups/backups-bulk-delete.php @@ -0,0 +1,40 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +

+ + + + + + +

diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/backups/backups-list.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/backups/backups-list.php new file mode 100644 index 0000000..106371f --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/backups/backups-list.php @@ -0,0 +1,157 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + + + +
+ + + + + + +
+ + +
+ +
+ + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ + + +
+ +
+
+
+ +
+ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/backups/backups-permissions.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/backups/backups-permissions.php new file mode 100644 index 0000000..841646e --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/backups/backups-permissions.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+ Could not restore site +

Please ensure the directory %s has read/write permissions.

+

Technical details

', + 'all-in-one-wp-migration' + ), + AI1WM_BACKUPS_PATH + ), + ai1wm_allowed_html_tags() + ); + ?> +
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/backups/index.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/backups/index.php new file mode 100644 index 0000000..0796c87 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/backups/index.php @@ -0,0 +1,84 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+
+
+
+

+ + +

+ + +
+ +
+ +
+
+

+ + +

+

+ +

+

+ + + + +

+
+ +
+ + + + + + + + +
+ +
+ +
+ +
+ + + +
+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/common/http-authentication.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/common/http-authentication.php new file mode 100644 index 0000000..93d8db5 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/common/http-authentication.php @@ -0,0 +1,30 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/common/leave-feedback.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/common/leave-feedback.php new file mode 100644 index 0000000..f2cac73 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/common/leave-feedback.php @@ -0,0 +1,79 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/common/maintenance-mode.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/common/maintenance-mode.php new file mode 100644 index 0000000..93d8db5 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/common/maintenance-mode.php @@ -0,0 +1,30 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/common/report-problem.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/common/report-problem.php new file mode 100644 index 0000000..93d8db5 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/common/report-problem.php @@ -0,0 +1,30 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/common/share-buttons.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/common/share-buttons.php new file mode 100644 index 0000000..685524f --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/common/share-buttons.php @@ -0,0 +1,60 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/common/sidebar-right.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/common/sidebar-right.php new file mode 100644 index 0000000..481c01f --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/common/sidebar-right.php @@ -0,0 +1,50 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+
+
+ + + + + +

+ + + + +
+ +
+
+ diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/advanced-settings.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/advanced-settings.php new file mode 100644 index 0000000..2a5f247 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/advanced-settings.php @@ -0,0 +1,146 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+
+

+ + + +

+
    +
  • + +
  • + +
    +
    +
    + + +
    +
    +
    + + +
    +
    +
    +
    +
  • + +
  • + + + +
  • + + + + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • + + + + + +
  • +
  • + +
  • +
  • + +
  • + + + +
  • + +
  • + +
  • + +
  • + + + + + + + +
+
+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-azure-storage.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-azure-storage.php new file mode 100644 index 0000000..24e1ba4 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-azure-storage.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Azure Storage diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-b2.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-b2.php new file mode 100644 index 0000000..920e5ab --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-b2.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Backblaze B2 diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-box.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-box.php new file mode 100644 index 0000000..9ec87b3 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-box.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Box diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-digitalocean.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-digitalocean.php new file mode 100644 index 0000000..66fae12 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-digitalocean.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +DigitalOcean diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-dropbox.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-dropbox.php new file mode 100644 index 0000000..9498a74 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-dropbox.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Dropbox diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-file.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-file.php new file mode 100644 index 0000000..3eef22a --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-file.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-ftp.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-ftp.php new file mode 100644 index 0000000..c4d189e --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-ftp.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +FTP diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-gcloud-storage.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-gcloud-storage.php new file mode 100644 index 0000000..5d5c473 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-gcloud-storage.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Google Cloud diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-gdrive.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-gdrive.php new file mode 100644 index 0000000..ee9a310 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-gdrive.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Google Drive diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-glacier.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-glacier.php new file mode 100644 index 0000000..bdc92d0 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-glacier.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Amazon Glacier diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-mega.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-mega.php new file mode 100644 index 0000000..3aa04d9 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-mega.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Mega diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-onedrive.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-onedrive.php new file mode 100644 index 0000000..860b9ec --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-onedrive.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +OneDrive diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-pcloud.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-pcloud.php new file mode 100644 index 0000000..6e3cc68 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-pcloud.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +pCloud diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-s3-client.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-s3-client.php new file mode 100644 index 0000000..d0d0b41 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-s3-client.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +S3 Client diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-s3.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-s3.php new file mode 100644 index 0000000..b1716b3 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-s3.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Amazon S3 diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-webdav.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-webdav.php new file mode 100644 index 0000000..ff5ede3 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-webdav.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +WebDAV diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/export-buttons.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/export-buttons.php new file mode 100644 index 0000000..dfa520b --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/export-buttons.php @@ -0,0 +1,53 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+
+
+
+ + + + + + +
+
    + +
  • + +
  • + +
+
+
+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/export-permissions.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/export-permissions.php new file mode 100644 index 0000000..0f097fe --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/export-permissions.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+ Could not export site +

Please ensure the directory %s has read/write permissions.

+

Technical details

', + 'all-in-one-wp-migration' + ), + AI1WM_STORAGE_PATH + ), + ai1wm_allowed_html_tags() + ); + ?> +
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/find-replace.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/find-replace.php new file mode 100644 index 0000000..fe324c8 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/find-replace.php @@ -0,0 +1,55 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
    +
  • +

    + + + ', 'all-in-one-wp-migration' ) ); ?> + + ', 'all-in-one-wp-migration' ) ); ?> + + + +

    +
    + + +
    +
  • +
+ + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/help-section.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/help-section.php new file mode 100644 index 0000000..357d73b --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/help-section.php @@ -0,0 +1,54 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +

+ +

+ +

+ +

+ +
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/export/index.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/index.php new file mode 100644 index 0000000..7465472 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/export/index.php @@ -0,0 +1,71 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+
+
+
+

+ + +

+ + + +
+ + + + + + + + + + + +
+ + + + + + + + +
+
+ + + +
+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/avada.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/avada.php new file mode 100644 index 0000000..5585be9 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/avada.php @@ -0,0 +1,53 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +if ( $should_reset_permalinks ) { + echo wp_kses( __( '» Permalinks are set to default. Why?
', 'all-in-one-wp-migration' ), ai1wm_allowed_html_tags() ); +} else { + echo wp_kses( + /* translators: Url */ + sprintf( __( '» Save permalinks structure.
', 'all-in-one-wp-migration' ), admin_url( 'options-permalink.php#submit' ) ), + ai1wm_allowed_html_tags() + ); +} + +if ( ai1wm_validate_plugin_basename( 'oxygen/functions.php' ) ) { + echo wp_kses( __( '» Re-sign Oxygen Builder shortcodes.
', 'all-in-one-wp-migration' ), ai1wm_allowed_html_tags() ); +} + +echo wp_kses( __( '» Reset Avada Fusion Builder cache.
', 'all-in-one-wp-migration' ), ai1wm_allowed_html_tags() ); +echo wp_kses( __( '» Review your migration experience.
', 'all-in-one-wp-migration' ), ai1wm_allowed_html_tags() ); + +echo wp_kses( + /* translators: Url */ + sprintf( __( '» Protect your site with real-time threat protection', 'all-in-one-wp-migration' ), 'https://servmask.com/protect' ), + ai1wm_allowed_html_tags() +); diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-azure-storage.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-azure-storage.php new file mode 100644 index 0000000..24e1ba4 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-azure-storage.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Azure Storage diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-b2.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-b2.php new file mode 100644 index 0000000..920e5ab --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-b2.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Backblaze B2 diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-box.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-box.php new file mode 100644 index 0000000..9ec87b3 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-box.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Box diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-digitalocean.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-digitalocean.php new file mode 100644 index 0000000..66fae12 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-digitalocean.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +DigitalOcean diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-dropbox.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-dropbox.php new file mode 100644 index 0000000..9498a74 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-dropbox.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Dropbox diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-file.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-file.php new file mode 100644 index 0000000..e9d9e47 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-file.php @@ -0,0 +1,36 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + + + + + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-ftp.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-ftp.php new file mode 100644 index 0000000..c4d189e --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-ftp.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +FTP diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-gcloud-storage.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-gcloud-storage.php new file mode 100644 index 0000000..5d5c473 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-gcloud-storage.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Google Cloud diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-gdrive.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-gdrive.php new file mode 100644 index 0000000..ee9a310 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-gdrive.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Google Drive diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-glacier.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-glacier.php new file mode 100644 index 0000000..bdc92d0 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-glacier.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Amazon Glacier diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-mega.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-mega.php new file mode 100644 index 0000000..3aa04d9 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-mega.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Mega diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-onedrive.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-onedrive.php new file mode 100644 index 0000000..860b9ec --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-onedrive.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +OneDrive diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-pcloud.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-pcloud.php new file mode 100644 index 0000000..6e3cc68 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-pcloud.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +pCloud diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-s3-client.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-s3-client.php new file mode 100644 index 0000000..d0d0b41 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-s3-client.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +S3 Client diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-s3.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-s3.php new file mode 100644 index 0000000..b1716b3 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-s3.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +Amazon S3 diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-url.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-url.php new file mode 100644 index 0000000..1af9fb8 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-url.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +URL diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-webdav.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-webdav.php new file mode 100644 index 0000000..ff5ede3 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/button-webdav.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +WebDAV diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/done.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/done.php new file mode 100644 index 0000000..70329b2 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/done.php @@ -0,0 +1,61 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +if ( $should_reset_permalinks ) { + echo wp_kses( + sprintf( + /* translators: Url */ + __( + '» Permalinks are set to default. Why?
+ » Review your migration experience.
+ » Protect your site with real-time threat protection', + 'all-in-one-wp-migration' + ), + 'https://servmask.com/protect' + ), + ai1wm_allowed_html_tags() + ); +} else { + echo wp_kses( + sprintf( + /* translators: 1: Admin url, 2: Url */ + __( + '» Save permalinks structure
+ » Review your migration experience
+ » Protect your site with real-time threat protection', + 'all-in-one-wp-migration' + ), + admin_url( 'options-permalink.php#submit' ), + 'https://servmask.com/protect' + ), + ai1wm_allowed_html_tags() + ); +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/import-buttons.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/import-buttons.php new file mode 100644 index 0000000..50c6b45 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/import-buttons.php @@ -0,0 +1,65 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+ +
+
+
+
+

+
+ +

+
+
+ + + + + + +
+
    + +
  • + +
  • + +
+
+
+
+
+
+ +

diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/import-permissions.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/import-permissions.php new file mode 100644 index 0000000..c34fcd5 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/import-permissions.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+ Could not import site +

Please ensure the directory %s has read/write permissions.

+

Technical details

', + 'all-in-one-wp-migration' + ), + AI1WM_STORAGE_PATH + ), + ai1wm_allowed_html_tags() + ); + ?> +
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/index.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/index.php new file mode 100644 index 0000000..4f6207d --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/index.php @@ -0,0 +1,67 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+
+
+
+

+ + +

+ + + +
+ + + + + + + +
+ + + + + + + + +
+
+ + + +
+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/oxygen.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/oxygen.php new file mode 100644 index 0000000..f444351 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/oxygen.php @@ -0,0 +1,63 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +if ( $should_reset_permalinks ) { + echo wp_kses( + sprintf( + /* translators: Url */ + __( + '» Permalinks are set to default. Why?
+ » Re-sign Oxygen Builder shortcodes.
+ » Review your migration experience.
+ » Protect your site with real-time threat protection', + 'all-in-one-wp-migration' + ), + 'https://servmask.com/protect' + ), + ai1wm_allowed_html_tags() + ); +} else { + echo wp_kses( + sprintf( + /* translators: 1: Admin url, 2: Url */ + __( + '» Save permalinks structure.
+ » Re-sign Oxygen Builder shortcodes.
+ » Review your migration experience.
+ » Protect your site with real-time threat protection', + 'all-in-one-wp-migration' + ), + admin_url( 'options-permalink.php#submit' ), + 'https://servmask.com/protect' + ), + ai1wm_allowed_html_tags() + ); +} diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/import/pro.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/pro.php new file mode 100644 index 0000000..1c6f817 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/import/pro.php @@ -0,0 +1,67 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +

+ %s.', 'all-in-one-wp-migration' ), + esc_html( ai1wm_size_format( wp_max_upload_size() ) ) + ), + ai1wm_allowed_html_tags() + ); + ?> + + Unlimited Extension bypasses this!', 'all-in-one-wp-migration' ), + 'https://servmask.com/products/unlimited-extension?utm_source=below-drag-drop&utm_medium=plugin&utm_campaign=ai1wm' + ), + ai1wm_allowed_html_tags() + ); + ?> +

+

+ raising your upload limit.', 'all-in-one-wp-migration' ), + 'https://help.servmask.com/2018/10/27/how-to-increase-maximum-upload-file-size-in-wordpress/' + ), + ai1wm_allowed_html_tags() + ); + ?> +

diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/admin-head.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/admin-head.php new file mode 100644 index 0000000..ddd1b9e --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/admin-head.php @@ -0,0 +1,167 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-htaccess-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-htaccess-notice.php new file mode 100644 index 0000000..fab5a99 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-htaccess-notice.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ %s file. Please ensure the parent folder has read/write permissions.', + 'all-in-one-wp-migration' + ), + AI1WM_BACKUPS_HTACCESS + ), + ai1wm_allowed_html_tags() + ) + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-index-html-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-index-html-notice.php new file mode 100644 index 0000000..b380c8f --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-index-html-notice.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ %s file. Please ensure the parent folder has read/write permissions.', + 'all-in-one-wp-migration' + ), + AI1WM_BACKUPS_INDEX_HTML + ), + ai1wm_allowed_html_tags() + ) + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-index-php-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-index-php-notice.php new file mode 100644 index 0000000..d468195 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-index-php-notice.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ %s file. Please ensure the parent folder has read/write permissions.', + 'all-in-one-wp-migration' + ), + AI1WM_BACKUPS_INDEX_PHP + ), + ai1wm_allowed_html_tags() + ); + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-path-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-path-notice.php new file mode 100644 index 0000000..83f2505 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-path-notice.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ %s folder. Please ensure the parent folder has read/write/execute permissions (0777).', + 'all-in-one-wp-migration' + ), + AI1WM_BACKUPS_PATH + ), + ai1wm_allowed_html_tags() + ) + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-robots-txt-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-robots-txt-notice.php new file mode 100644 index 0000000..956edd4 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-robots-txt-notice.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ %s file. Please ensure the parent folder has read/write permissions.', + 'all-in-one-wp-migration' + ), + AI1WM_BACKUPS_ROBOTS_TXT + ), + ai1wm_allowed_html_tags() + ); + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-webconfig-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-webconfig-notice.php new file mode 100644 index 0000000..8aadd5f --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups-webconfig-notice.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ %s file. Please ensure the parent folder has read/write permissions.', + 'all-in-one-wp-migration' + ), + AI1WM_BACKUPS_WEBCONFIG + ), + ai1wm_allowed_html_tags() + ); + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups.php new file mode 100644 index 0000000..f99251f --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/backups.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +?> + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/contact-support.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/contact-support.php new file mode 100644 index 0000000..d9609c7 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/contact-support.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/missing-auto-increment.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/missing-auto-increment.php new file mode 100644 index 0000000..d47a0bf --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/missing-auto-increment.php @@ -0,0 +1,43 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ Database error: Your site\'s options table is missing its AUTO_INCREMENT attribute and your site will not function correctly without it. Please restore it immediately. + Technical details', + ai1wm_allowed_html_tags() + ); + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/missing-role-capability-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/missing-role-capability-notice.php new file mode 100644 index 0000000..c7da70c --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/missing-role-capability-notice.php @@ -0,0 +1,46 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ Technical details', + 'all-in-one-wp-migration' + ), + ai1wm_allowed_html_tags() + ); + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/multisite-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/multisite-notice.php new file mode 100644 index 0000000..d8ab256 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/multisite-notice.php @@ -0,0 +1,46 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ + + + + +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/premium-badge.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/premium-badge.php new file mode 100644 index 0000000..9290cf5 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/premium-badge.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +?> + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-htaccess-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-htaccess-notice.php new file mode 100644 index 0000000..368c173 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-htaccess-notice.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ %s file. Please ensure the parent folder has read/write permissions.', + 'all-in-one-wp-migration' + ), + AI1WM_STORAGE_HTACCESS + ), + ai1wm_allowed_html_tags() + ) + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-index-html-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-index-html-notice.php new file mode 100644 index 0000000..cd7bbdc --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-index-html-notice.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ %s file. Please ensure the parent folder has read/write permissions.', + 'all-in-one-wp-migration' + ), + AI1WM_STORAGE_INDEX_HTML + ), + ai1wm_allowed_html_tags() + ) + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-index-php-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-index-php-notice.php new file mode 100644 index 0000000..743f309 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-index-php-notice.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ %s file. Please ensure the parent folder has read/write permissions.', + 'all-in-one-wp-migration' + ), + AI1WM_STORAGE_INDEX_PHP + ), + ai1wm_allowed_html_tags() + ) + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-path-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-path-notice.php new file mode 100644 index 0000000..6ec9f1c --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-path-notice.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ %s folder. Please ensure the parent folder has read/write/execute permissions (0777).', + 'all-in-one-wp-migration' + ), + AI1WM_STORAGE_PATH + ), + ai1wm_allowed_html_tags() + ); + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-webconfig-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-webconfig-notice.php new file mode 100644 index 0000000..e12c735 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/storage-webconfig-notice.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ %s file. Please ensure the parent folder has read/write permissions.', + 'all-in-one-wp-migration' + ), + AI1WM_STORAGE_WEBCONFIG + ), + ai1wm_allowed_html_tags() + ); + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/translate.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/translate.php new file mode 100644 index 0000000..6a6785f --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/translate.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/main/wordpress-htaccess-notice.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/wordpress-htaccess-notice.php new file mode 100644 index 0000000..80ef9df --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/main/wordpress-htaccess-notice.php @@ -0,0 +1,49 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+

+ %s file. Please ensure the parent folder has read/write permissions.', + 'all-in-one-wp-migration' + ), + AI1WM_WORDPRESS_HTACCESS + ), + ai1wm_allowed_html_tags() + ); + ?> +

+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/reset/index.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/reset/index.php new file mode 100644 index 0000000..1ee583b --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/reset/index.php @@ -0,0 +1,43 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+
+

+ <?php esc_attr_e( 'Star', 'all-in-one-wp-migration' ); ?> + +

+

upgrade to Premium now! Elevate your website management experience with these exclusive functionalities and priority support.', 'all-in-one-wp-migration' ), ai1wm_allowed_html_tags() ); ?>

+ + <?php esc_attr_e( 'Reset Hub Demo', 'all-in-one-wp-migration' ); ?> +
+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/schedules/index.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/schedules/index.php new file mode 100644 index 0000000..f2328cc --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/schedules/index.php @@ -0,0 +1,168 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
+
+ +
+ + + + + + + + + +
+
+
diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/updater/check.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/updater/check.php new file mode 100644 index 0000000..5001a36 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/updater/check.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/updater/error.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/updater/error.php new file mode 100644 index 0000000..1d5917b --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/updater/error.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + + diff --git a/wp-content/plugins/all-in-one-wp-migration/lib/view/updater/update.php b/wp-content/plugins/all-in-one-wp-migration/lib/view/updater/update.php new file mode 100644 index 0000000..b62dcbd --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/lib/view/updater/update.php @@ -0,0 +1,33 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} +?> + +
diff --git a/wp-content/plugins/all-in-one-wp-migration/loader.php b/wp-content/plugins/all-in-one-wp-migration/loader.php new file mode 100644 index 0000000..b85804a --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/loader.php @@ -0,0 +1,127 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +// Include all the files that you want to load in here +if ( defined( 'WP_CLI' ) ) { + require_once AI1WM_VENDOR_PATH . '/servmask/command/class-ai1wm-wp-cli-command.php'; +} + +require_once AI1WM_VENDOR_PATH . '/bandar/bandar/lib/Bandar.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/cron/class-ai1wm-cron.php'; + +require_once AI1WM_VENDOR_PATH . '/servmask/filesystem/class-ai1wm-directory.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/filesystem/class-ai1wm-file-htaccess.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/filesystem/class-ai1wm-file-index.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/filesystem/class-ai1wm-file-robots.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/filesystem/class-ai1wm-file-webconfig.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/filesystem/class-ai1wm-file.php'; + +require_once AI1WM_VENDOR_PATH . '/servmask/filter/class-ai1wm-recursive-exclude-filter.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/filter/class-ai1wm-recursive-extension-filter.php'; + +require_once AI1WM_VENDOR_PATH . '/servmask/iterator/class-ai1wm-recursive-directory-iterator.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/iterator/class-ai1wm-recursive-iterator-iterator.php'; + +require_once AI1WM_VENDOR_PATH . '/servmask/archiver/class-ai1wm-archiver.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/archiver/class-ai1wm-compressor.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/archiver/class-ai1wm-extractor.php'; + +require_once AI1WM_VENDOR_PATH . '/servmask/checksum/class-ai1wm-crc.php'; + +require_once AI1WM_VENDOR_PATH . '/servmask/database/class-ai1wm-database.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/database/class-ai1wm-database-mysql.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/database/class-ai1wm-database-mysqli.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/database/class-ai1wm-database-sqlite.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/database/class-ai1wm-database-mariadb.php'; +require_once AI1WM_VENDOR_PATH . '/servmask/database/class-ai1wm-database-utility.php'; + +require_once AI1WM_CONTROLLER_PATH . '/class-ai1wm-backups-controller.php'; +require_once AI1WM_CONTROLLER_PATH . '/class-ai1wm-export-controller.php'; +require_once AI1WM_CONTROLLER_PATH . '/class-ai1wm-feedback-controller.php'; +require_once AI1WM_CONTROLLER_PATH . '/class-ai1wm-import-controller.php'; +require_once AI1WM_CONTROLLER_PATH . '/class-ai1wm-main-controller.php'; +require_once AI1WM_CONTROLLER_PATH . '/class-ai1wm-rest-controller.php'; +require_once AI1WM_CONTROLLER_PATH . '/class-ai1wm-reset-controller.php'; +require_once AI1WM_CONTROLLER_PATH . '/class-ai1wm-schedules-controller.php'; +require_once AI1WM_CONTROLLER_PATH . '/class-ai1wm-status-controller.php'; +require_once AI1WM_CONTROLLER_PATH . '/class-ai1wm-updater-controller.php'; + +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-archive.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-archive-crc.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-clean.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-compatibility.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-config-file.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-config.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-content.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-database-file.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-database.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-download.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-enumerate-content.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-enumerate-media.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-enumerate-plugins.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-enumerate-tables.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-enumerate-themes.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-init.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-media.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-plugins.php'; +require_once AI1WM_MODEL_PATH . '/export/class-ai1wm-export-themes.php'; + +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-blogs.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-check-compression.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-check-encryption.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-clean.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-compatibility.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-confirm.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-content.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-database-file.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-database.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-done.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-enumerate.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-mu-plugins.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-options.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-permalinks.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-upload.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-users.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-validate.php'; +require_once AI1WM_MODEL_PATH . '/import/class-ai1wm-import-validate-crc.php'; + +require_once AI1WM_MODEL_PATH . '/class-ai1wm-backups.php'; +require_once AI1WM_MODEL_PATH . '/class-ai1wm-compatibility.php'; +require_once AI1WM_MODEL_PATH . '/class-ai1wm-deprecated.php'; +require_once AI1WM_MODEL_PATH . '/class-ai1wm-extensions.php'; +require_once AI1WM_MODEL_PATH . '/class-ai1wm-feedback.php'; +require_once AI1WM_MODEL_PATH . '/class-ai1wm-handler.php'; +require_once AI1WM_MODEL_PATH . '/class-ai1wm-log.php'; +require_once AI1WM_MODEL_PATH . '/class-ai1wm-message.php'; +require_once AI1WM_MODEL_PATH . '/class-ai1wm-notification.php'; +require_once AI1WM_MODEL_PATH . '/class-ai1wm-status.php'; +require_once AI1WM_MODEL_PATH . '/class-ai1wm-template.php'; +require_once AI1WM_MODEL_PATH . '/class-ai1wm-updater.php'; diff --git a/wp-content/plugins/all-in-one-wp-migration/readme.txt b/wp-content/plugins/all-in-one-wp-migration/readme.txt new file mode 100644 index 0000000..8993cf6 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/readme.txt @@ -0,0 +1,476 @@ +=== All-in-One WP Migration and Backup === +Contributors: yani.iliev, bangelov, pimjitsawang +Tags: backup, clone, migrate, move-wordpress, export-import +Requires at least: 3.3 +Tested up to: 7.1 +Requires PHP: 5.3 +Stable tag: 7.111 +License: GPLv3 or later + +Trusted by 60M+ sites: The gold standard for WordPress migration and backup. Migrate, backup, and restore your WordPress site with one click. + +== Description == +**The Most Trusted WordPress Migration & Backup Plugin Since 2013** + +All-in-One WP Migration is the gold standard for WordPress site migration and backup, used by over 60 million websites worldwide - from small blogs to Fortune 500 companies and government agencies. Whether you need to migrate WordPress to a new host, create a full site backup, or restore a previous backup, our plugin offers enterprise-grade reliability with beginner-friendly simplicity. + +**Why Choose All-in-One WP Migration?** + +* **Effortless Migration**: Migrate your entire site with a single click - including database, media, themes, and plugins +* **One-Click Backup**: Create a complete WordPress backup before you migrate, so you can restore anytime +* **Zero Downtime**: Complete your migration with no service interruptions +* **Universal Compatibility**: Migrate between any hosting providers - from budget shared hosting to high-end dedicated servers +* **Technical Excellence**: Engineered for reliability with memory-efficient processing (512KB chunks), ideal for resource-limited environments +* **No Technical Skills Required**: Intuitive interface lets anyone migrate or backup a WordPress site without technical expertise +* **Cross-Database Support**: Migrate seamlessly between MySQL, MariaDB, and SQLite databases +* **Secure & Reliable**: Trusted by Boeing, NASA, Harvard, Stanford, Automattic, and government agencies worldwide + +**How to Migrate WordPress - Simple as 1-2-3:** + +1. **Install** the migration plugin on your source and destination sites +2. **Backup & Export** your site to a .wpress backup file with one click +3. **Import & Migrate** using our drag-and-drop importer on your destination site + +**For Developers & Power Users:** + +* **Advanced Find & Replace**: Control exactly what changes when you migrate +* **Selective Migration & Backup**: Include or exclude specific content types from your migration or backup +* **PHP 5.3-8.4 Compatibility**: Works across virtually all hosting environments +* **Custom WPress Format**: Our optimized archive format ensures data integrity +* **Hook System**: Extensive API for custom integration and workflows +* **Command-Line Support**: Automate migrations and backups via WP-CLI + +**Premium Extensions:** + +Enhance your migration and backup workflow with our [premium extensions](https://servmask.com/products): + +* **Unlimited Migration Size**: Migrate sites of any size with no file limits +* **Cloud Backup & Migration**: Backup and migrate directly to/from Dropbox, Google Drive, OneDrive, and more +* **Multisite Migration**: Migrate complex WordPress multisite networks +* **Scheduled Backups**: Automated, recurring WordPress backups on your schedule +* **Database Filtering**: Exclude specific tables or data from your migration or backup + +**Features Spotlight:** + +* WCAG 2.1 AA Level accessibility compliance +* Mobile-responsive interface +* [Browse WPRESS files online](https://traktor.servmask.com) or [extract locally](https://traktor.wp-migration.com) +* Automatic URL and path replacement during migration +* WordPress Playground integration - migrate between SQLite and MySQL +* Regular bi-weekly updates ensuring your backup and migration plugin stays compatible +* Available in 50+ languages including Japanese + +**Trusted by the Government and Big Corporations:** + +Many enterprise customers, government organizations, and universities use, love, and trust All-in-One WP Migration. Here are some: Boeing, NASA, VW, IBM, Harvard University, Stanford University, Lego, P&G, Automattic, State of California, State of Hawaii. +This broad adoption demonstrates how **safe, reliable and adaptable** this WordPress migration and backup plugin is for any website migration need. + +**Update Frequency:** +Our team is dedicated to keeping this WordPress migration and backup plugin up-to-date and secure. We release updates every two weeks or at least once a month, ensuring your migration and backup workflows remain compatible with the latest WordPress versions, including beta releases. Our proactive testing and feedback to the WordPress core team help in preemptively addressing any potential issues, so you can always migrate and backup with confidence. + +**Full Compatibility and Support:** + +All-in-One WP Migration has been extensively tested and confirmed to be compatible with most WordPress plugins and themes, so you can migrate and backup without worrying about conflicts. +This means you don't experience cross-plugin compatibility issues that can slow down or break your WordPress site when you migrate. +All-in-One WP Migration has partnered with multiple theme and plugin vendors to distribute their products with us as a single, easy-to-install migration and backup package. +These vendors trust our migration plugin to provide their customers with reliable product delivery, support, migrations, and backups. + +**Cloud Storage Supported:** + +All-in-One WP Migration supports backup and migration to all major cloud storage services. +The plugin comes preinstalled on all Bitnami WordPress sites running on AWS, Google Compute Cloud, and Microsoft Azure - ready to migrate and backup out of the box. + +**Case Studies:** + +* Small Business Migration: A small online retailer used All-in-One WP Migration to migrate to a more robust hosting solution, creating a full backup before the migration and completing the move without downtime during peak shopping season. +* Educational Migration: A prominent university utilized All-in-One WP Migration to migrate and consolidate multiple departmental sites into a single WordPress network, with automated backups ensuring no data was lost during migration. +* Government Migration: Following a directive to improve digital accessibility, a government agency used our migration plugin to migrate their content to a new, compliant platform without impacting public access to critical information. + += Contact us = +* [Report a security vulnerability](https://patchstack.com/database/vdp/all-in-one-wp-migration) +* [Get free help from us here](https://servmask.com/help) +* [Report a bug or request a feature](https://servmask.com/help) +* [Find out more about us](https://servmask.com) + +[youtube http://www.youtube.com/watch?v=BpWxCeUWBOk] + +[youtube http://www.youtube.com/watch?v=mRp7qTFYKgs] + +== Installation == +1. All-in-One WP Migration can be installed directly through your WordPress Plugins dashboard. +1. Click "Add New" and Search for "All-in-One WP Migration" +1. Install and Activate + +Alternatively, you can download the plugin using the download button on this page and then upload the all-in-one-wp-migration folder to the /wp-content/plugins/ directory then activate throught the Plugins dashboard in WordPress + +== Frequently Asked Questions == + += How do I migrate my WordPress site to a new host? = + +Install All-in-One WP Migration on your current site and click **Export**. The plugin creates a single `.wpress` file containing your entire WordPress site - database, media, themes, and plugins. Then install a fresh copy of WordPress on your new host, install the plugin there as well, and use the **Import** feature to upload the `.wpress` file. The plugin will migrate everything automatically, including updating all URL references and handling serialized data safely. You can migrate between any hosting providers - from shared hosting to dedicated servers. + +Before you migrate, we recommend lowering your DNS TTL to 300 seconds at least 48 hours in advance, and keeping your old host active for 7–14 days as a safety net in case you need to roll back. + += How do I backup and restore my WordPress site? = + +To create a backup, go to **All-in-One WP Migration > Export** and choose your backup destination - local download or cloud storage. The plugin creates a complete backup of your entire WordPress site in a single `.wpress` file. To restore a backup, go to **All-in-One WP Migration > Import** and upload or select your `.wpress` backup file. The plugin will restore your database, themes, plugins, and media files automatically. After restoring a backup, clear all caches and re-save your permalink settings under **Settings > Permalinks**. + +For best results, use a hybrid backup strategy: cloud storage for automated daily backups and local copies for fast recovery. Follow the 3-2-1 rule - maintain three copies of your data across two different storage types, with one stored off-site. + += Can I migrate a WordPress multisite network? = + +Yes. The [Multisite Extension](https://servmask.com/products) allows you to migrate an entire WordPress multisite network as a single `.wpress` file. You can also extract a single subsite - when you migrate a subsite, the plugin automatically converts table prefixes and reorganizes media file paths. Multisite migrations require special handling because the network uses shared database tables for users and per-site tables with unique prefixes. We recommend at least 512 MB of PHP memory for large multisite migrations. + += What if my backup file exceeds the upload size limit? = + +If your server rejects a backup file as too large during import, you have several options. You can increase the PHP upload limit by adding `php_value upload_max_filesize 512M` and `php_value post_max_size 512M` to your `.htaccess` file, or set `client_max_body_size 512m` for Nginx servers. For sites that require unlimited upload size, the [Unlimited Extension](https://servmask.com/products) removes all file size restrictions set by your host. + += How do I migrate a WooCommerce store? = + +You can migrate a WooCommerce store the same way you migrate any WordPress site - export on your current host and import on the new one. However, after you migrate a WooCommerce store, you should immediately verify that payment gateway API keys are configured correctly, update any webhook URLs to reference your new domain, and run a small real transaction to confirm checkout works end-to-end. We recommend enabling maintenance mode on your old server after DNS propagation to prevent split orders during the transition. See our full [WooCommerce migration guide](https://blog.servmask.com/woocommerce-migration-guide/) for detailed steps. + += Will my SEO rankings be affected when I migrate? = + +If you migrate to the same domain on a new host, your SEO rankings should remain intact because All-in-One WP Migration preserves all your content, URLs, and metadata exactly as they were. If you migrate to a new domain, set up proper 301 redirects mapping every old URL to its new equivalent and use Google Search Console's "Change of Address" tool. A temporary ranking fluctuation of 10–20% in the first 1–2 weeks after a domain migration is normal. Keep your redirects active for at least one year. See our [SEO migration checklist](https://blog.servmask.com/wordpress-seo-migration-checklist/) for a complete guide to preserving your rankings when you migrate. + += How do I troubleshoot a failed migration or import? = + +The most common issues after you migrate and their solutions: + +* **White screen**: Enable `WP_DEBUG` in `wp-config.php` to see the actual error. Verify PHP version compatibility between your old and new servers. +* **Database connection error**: Check that `DB_NAME`, `DB_USER`, `DB_PASSWORD`, and `DB_HOST` in `wp-config.php` match your new server's settings. +* **404 errors on all pages**: Re-save permalinks under **Settings > Permalinks** to regenerate rewrite rules. +* **Broken images**: Verify the `wp-content/uploads/` directory transferred completely with correct permissions (755 for directories, 644 for files). +* **Import stuck or frozen**: Increase PHP `max_execution_time` and `memory_limit`, or use WP-CLI to migrate from the command line: `wp ai1wm restore backup.wpress`. + +For a comprehensive list of migration troubleshooting tips, see our [migration troubleshooting guide](https://blog.servmask.com/wordpress-migration-troubleshooting/). + += Can I migrate between different database types? = + +Yes, All-in-One WP Migration supports cross-database migration between MySQL, MariaDB, and SQLite. This is especially useful when you migrate sites to or from WordPress Playground, which uses SQLite. The plugin handles all database schema differences automatically - you simply export from one environment and import into the other. + += Can I automate my backups and migrations using WP-CLI? = + +Yes. All-in-One WP Migration includes full WP-CLI support for command-line automation. Use `wp ai1wm backup` to create a backup and `wp ai1wm restore backup.wpress` to restore or migrate from a backup file. This is ideal for developers who need to migrate sites in automated workflows, CI/CD pipelines, or scheduled backup scripts. Combined with cron jobs, WP-CLI lets you automate your entire backup strategy without touching the WordPress dashboard. + +== Screenshots == +1. Mobile Export page +2. Mobile Import page +3. Plugin Menu + +== Privacy Policy == +All-in-One WP Migration is designed to fully respect and protect the personal information of its users. It asks for your consent to collect the user's email address when filling the plugin's contact form. +All-in-One WP Migration is in full compliance with General Data Protection Regulation (GDPR). +See our [GDPR Compliant Privacy Policy here](https://www.iubenda.com/privacy-policy/946881). + +== Changelog == += 7.111 = + +**Security** + +* Export and import now require the administrator capability. This closes a missing-authorization issue that allowed authenticated users without administrator privileges to run migrations. Credits to Charles Vosburgh for reporting it +* Backup actions (list, delete, label, browse, and download) are now restricted to users who can export or import +* HTTP authentication credentials are no longer captured for users who lack permission to run a migration. Credits to Jakub Herman for reporting it +* Backup list, archive browser, and downloads now fail closed with a clear error when the session has expired, instead of failing silently + +**Fixed** + +* Export REST route no longer accepts malformed find-and-replace pairs (previously ignored silently) +* SQLite export no longer removes the substring STRICT from column names that contain it + += 7.110 = +**Fixed** + +* Find and replace on values ending in a backslash. Special thanks to Jack Taylor for responsibly disclosing this issue +* Wrong warning message when leaving the page during export + += 7.109 = +**Fixed** + +* File option in the Import From menu did not open the file picker, which prevented importing a backup from a local file + += 7.108 = +**Fixed** + +* Site import on multisite now requires network-level capabilities. Special thanks to Mohamed Bassia for responsibly disclosing this issue +* CiviCRM attachments, contact images and extensions no longer dropped on import, only config and caches are excluded + += 7.107 = +**Added** + +* Bulk select and delete for backups + +**Fixed** + +* REST export and import now restricted to network super-admins on multisite +* Site import now restricted to users with stronger capabilities + += 7.106 = +**Added** + +* REST API for AI-native WordPress migration + +**Fixed** + +* Unauthenticated path traversal in ai1wm_error_path. Special thanks to Jakub Herman for responsibly disclosing this issue +* SQLite export producing invalid MySQL CREATE TABLE statements +* Stale archive file size caused by a cached stat result in ai1wm_archive_bytes() +* WP-CLI command now registered on cli_init instead of plugins_loaded +* Duplicate import done status dispatch during clean up +* Internationalization issues in export views and the decrypt modal + += 7.105 = +**Fixed** + +* PHP 8.5 "Cannot use bool as array" fatal error in export pipeline when reading past end-of-file +* Database column name replacement incorrectly matching column type keywords (e.g., UUID) in database tables + += 7.104 = +**Added** + +* CRC32 checksum integrity verification for wpress archive file format + +**Fixed** + +* Infinite loop in compressor when timeout fires at exact end-of-file boundary + +**Improved** + +* Minimum required versions enforcement for extensions +* WordPress 7.0 compatibility + += 7.103 = +**Added** + +* MariaDB-specific database driver with support for INET4, INET6, UUID, XMLTYPE, and VECTOR column types +* Server version parsing utility for improved database version detection + +**Fixed** + +* Path traversal vulnerability in download_file() that could allow arbitrary file reads +* Path traversal validation when extracting files from archives +* Stale backups path option after server migration now auto-resets to default + +**Improved** + +* Database export and import refactored for better separation of concerns — column types, column options, table options, and collations are now handled independently +* Expanded collation downgrade support including utf8mb4_0900_as_ci, utf8mb4_0900_as_cs, utf8mb3_* variants +* MariaDB-specific table options now properly handled (Aria engine, page compression, system versioning, encryption) +* Additional MariaDB storage engines (S3, ColumnStore, Spider, CONNECT, Mroonga) now convert to InnoDB on import +* Social share buttons replaced with lightweight static links (removed third-party JavaScript from Facebook, Twitter, and YouTube) +* Cached database server info calls for better performance +* functions.php now loads before constants.php for correct initialization order + += 7.102 = +**Added** + +* Clean storage folder option on backups page +* Archive validation before listing files for improved reliability +* Minimum required versions check + +**Fixed** + +* Offset handling in archiver for correct data processing +* File extractor offset and file read operations +* Missing esc_html() function call for improved security +* FDP must-use plugin disabled to prevent plugin activation issues during import + +**Improved** + +* CSS styling alignment with schedules page +* WordPress 6.9 compatibility + += 7.101 = +**Fixed** + +* File size and modification time type handling in archive for improved compatibility with PHP strict mode +* Post revisions exclusion to properly exclude associated postmeta entries during export + +**Improved** + +* Upgraded to full Vue 3 framework for enhanced performance and reduced bundle size + += 7.100 = +**Improved** + +* Upgraded PHP and JavaScript dependencies to their latest versions + += 7.99 = +**Added** + +* Gzip compression support for file operations to improve backup file handling + +**Fixed** + +* jQuery deprecated bind() method replaced with on() for better compatibility +* File upload security by removing stripslashes_deep on $_FILES input + +**Improved** + +* Stream operations replaced with ai1wm_write() for enhanced reliability +* Update javascript dependencies to use latest versions + += 7.98 = +**Added** + +* WP_IMPORTING constant for better hosting providers compatibility + +**Fixed** + +* Stored Cross-Site Scripting vulnerability in file upload (CVE-2025-8490). Thank you WordFence and Jack Pas for reporting this. [What you need to know](https://help.servmask.com/knowledgebase/cve-2025-8490-what-you-need-to-know). +* File upload exceptions handling for better error reporting + +**Improved** + +* PHP 8 compatibility issues in MySQLi database handler +* File uploader refactored for enhanced security and reliability + += 7.97 = +**Added** + +* SQLite support in AUTO_INCREMENT check + +**Fixed** + +* Database replacement for serialized values to handle edge cases with string length validation + += 7.96 = +**Added** + +* Admin notice warning when AUTO_INCREMENT is missing on wp_options table + += 7.95 = +**Added** + +* New action hook ai1wm_status_export_init for developers on export initialization + +**Fixed** + +* Theme export progress display showing incorrect percentage +* Uninstall.php script functionality +* Export and import button ordering +* Dropdown height styling issues + += 7.94 = +**Added** + +* Refresh Elementor plugin cache on import + += 7.93 = +**Fixed** + +* Compatibility issue with PHP 7 and PHP 5 due to trailing comma in style registration + += 7.92 = +**Improved** + +* Passed Plugin Check Plugin (PCP) validation +* Archive name generation + += 7.91 = +**Added** + +* CiviCRM for WordPress support + += 7.90 = +**Added** + +* Introduced a constant to disable MySQL late row lookups for enhanced database performance + +**Improved** + +* Enhanced SQLite database integration for improved stability and efficiency +* Strengthened serialization replacement mechanism to address an unauthenticated PHP Object Injection vulnerability (CVE-2024-10942). Special thanks to Webbernaut for responsibly disclosing this issue +* Preserved the wp_rocket_settings option during exports for improved user experience + +**Fixed** + +* Resolved PHP 8.4 deprecation warnings + += 7.89 = +**Improved** + +* Upgraded to Node.js 22 for better performance and security +* Updated all plugin dependencies to keep things running smoothly and securely + += 7.88 = +**Fixed** + +* Fixed an issue where the upload progress was stuck at 100% +* Fixed an issue where the upload could not be cancelled before it was completed + +**Improved** + +* Improved user-facing messages to be friendlier, direct, consistent, and more informative. + += 7.87 = +**Fixed** + +* Resolved a vulnerability where error logs were publicly accessible with a known name by appending random affixes to error log filenames, making them unguessable. Error logs are now automatically deleted daily and during plugin updates. Special thanks to villu164 for responsibly disclosing this issue. +* Resolved a vulnerability where an administrator user could inject arbitrary PHP code through specific inputs. This vulnerability requires administrator-level access to exploit, ensuring that unauthorized users cannot perform this action. Special thanks to Ryan Kozak for responsibly disclosing this issue. + += 7.86 = +**Fixed** + +* Resolved an issue with PHP 8.4 compatibility and restoring backup files via WP-CLI + += 7.85 = +**Added** + +* PHP 8.4 compatibility + += 7.84 = +**Added** + +* New hooks during the export and import processes to allow for custom actions and integrations + += 7.83 = +**Fixed** + +* Resolved an issue where downloading backup files was failing on WordPress Playground environments + += 7.82 = +**Added** + +* SQLite support +* WordPress Playground support + += 7.81 = +**Added** + +* Reset Hub Page: Introducing a new reset hub page, providing users with powerful reset tools for efficient site management. This feature allows for easier resets of WordPress environments, facilitating smoother development and testing workflows. + +**Improved** + +* Better W3TC Support +* PHP Compatibility Checks: Display a warning notification, when you move/restore your site to a different PHP version. + += 7.80 = +**Added** + +* Support for update-services plugin +* Domain name conversion to dashes from dots in the backup name for improved hosting providers compatibility + +**Improved** + +* Better support for Multisite to Standalone and Standalone to Multisite exports and imports, streamlining the migration process + += 7.79 = +**Added** + +* Support for WordPress v6.4 + += 7.78 = +**Added** + +* Implemented a new Schedules page within the plugin, displaying various advanced features exclusive to premium extensions + += 7.77 = +**Added** + +* Tested the new version of WordPress 6.3 + += 7.76 = +**Fixed** + +* Removed the [beta] label from advanced settings diff --git a/wp-content/plugins/all-in-one-wp-migration/storage/index.html b/wp-content/plugins/all-in-one-wp-migration/storage/index.html new file mode 100644 index 0000000..cce3445 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/storage/index.html @@ -0,0 +1 @@ +Kangaroos cannot jump here \ No newline at end of file diff --git a/wp-content/plugins/all-in-one-wp-migration/storage/index.php b/wp-content/plugins/all-in-one-wp-migration/storage/index.php new file mode 100644 index 0000000..cce3445 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/storage/index.php @@ -0,0 +1 @@ +Kangaroos cannot jump here \ No newline at end of file diff --git a/wp-content/plugins/all-in-one-wp-migration/storage/web.config b/wp-content/plugins/all-in-one-wp-migration/storage/web.config new file mode 100644 index 0000000..7ec4c66 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/storage/web.config @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wp-content/plugins/all-in-one-wp-migration/uninstall.php b/wp-content/plugins/all-in-one-wp-migration/uninstall.php new file mode 100644 index 0000000..435dc72 --- /dev/null +++ b/wp-content/plugins/all-in-one-wp-migration/uninstall.php @@ -0,0 +1,51 @@ +. + * + * Attribution: This code is part of the All-in-One WP Migration plugin, developed by + * + * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ + * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ + * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ + * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ + * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ + * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + */ + +if ( ! defined( 'ABSPATH' ) ) { + die( 'Kangaroos cannot jump here' ); +} + +// Trigger Uninstall process only if WP_UNINSTALL_PLUGIN is defined +if ( defined( 'WP_UNINSTALL_PLUGIN' ) ) { + global $wpdb; + + // Reset cron schedules + if ( ( $cron = get_option( 'cron', array() ) ) ) { + foreach ( $cron as $timestamp => $hooks ) { + foreach ( $hooks as $key => $value ) { + if ( strpos( $key, 'ai1wm_' ) === 0 ) { + unset( $cron[ $timestamp ][ $key ] ); + } + } + } + + update_option( 'cron', $cron ); + } + + // Delete any options or other data stored in the database here + $wpdb->query( "DELETE FROM `{$wpdb->options}` WHERE `option_name` LIKE 'ai1wm\_%'" ); +}