core: add Joomla 3.8.11 official package (deployed-form source)
Official Joomla_3.8.11-Stable-Full_Package (downloads.joomla.org), installer dir removed. This is the clean deployed core; it byte-matches the live core for the legit files and provides clean versions of the 3 files the attacker trojanized (auth/joomla.php credential-stealer, session/storage.php, event/event.php). Signed-off-by: LÁZÁR Imre <imre@illusion.hu> Assisted-by: claude-code@claude-opus-4-8
This commit is contained in:
parent
32cb5b765b
commit
47ba7facad
339
core/LICENSE.txt
Normal file
339
core/LICENSE.txt
Normal file
@ -0,0 +1,339 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) 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
|
||||
this service 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 make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. 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.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
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
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the 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 a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE 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.
|
||||
|
||||
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
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
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 2 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, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision 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, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This 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.
|
||||
72
core/README.txt
Normal file
72
core/README.txt
Normal file
@ -0,0 +1,72 @@
|
||||
1- What is this?
|
||||
* This is a Joomla! installation/upgrade package to version 3.x
|
||||
* Joomla! Official site: https://www.joomla.org
|
||||
* Joomla! 3.8 version history - https://docs.joomla.org/Special:MyLanguage/Joomla_3.8_version_history
|
||||
* Detailed changes in the Changelog: https://github.com/joomla/joomla-cms/commits/staging
|
||||
|
||||
2- What is Joomla?
|
||||
* Joomla! is a Content Management System (CMS) which enables you to build Web sites and powerful online applications.
|
||||
* It's a free and Open Source software, distributed under the GNU General Public License version 2 or later.
|
||||
* This is a simple and powerful web server application and it requires a server with PHP and either MySQL, PostgreSQL or SQL Server to run.
|
||||
You can find full technical requirements here: https://downloads.joomla.org/technical-requirements.
|
||||
|
||||
3- Is Joomla! for you?
|
||||
* Joomla! is the right solution for most content web projects: https://docs.joomla.org/Special:MyLanguage/Portal:Learn_More
|
||||
* See Joomla's core features - https://www.joomla.org/core-features.html
|
||||
* Try out our online demo: https://demo.joomla.org
|
||||
|
||||
4- How to find a Joomla! translation?
|
||||
* Repository of accredited language packs: https://community.joomla.org/translations.html
|
||||
* You can also add languages directly to your website via your Joomla! administration panel: https://docs.joomla.org/Special:MyLanguage/J3.x:Setup_a_Multilingual_Site/Installing_New_Language
|
||||
* Learn how to setup a Multilingual Joomla! Site: https://docs.joomla.org/Special:MyLanguage/J3.x:Setup_a_Multilingual_Site
|
||||
|
||||
5- Learn Joomla!
|
||||
* Read Getting Started with Joomla to find out the basics: https://docs.joomla.org/Special:MyLanguage/J3.x:Getting_Started_with_Joomla!
|
||||
* Before installing, read the beginners guide: https://docs.joomla.org/Special:MyLanguage/Portal:Beginners
|
||||
|
||||
6- What are the benefits of Joomla?
|
||||
* The functionality of a Joomla! website can be extended by installing extensions that you can create (or download) to suit your needs.
|
||||
* There are many ready-made extensions that you can download and install.
|
||||
* Check out the Joomla! Extensions Directory (JED): https://extensions.joomla.org
|
||||
|
||||
7- Is it easy to change the layout display?
|
||||
* The layout is controlled by templates that you can edit.
|
||||
* There are a lot of ready-made professional templates that you can download.
|
||||
* Check out the template management information: https://docs.joomla.org/Special:MyLanguage/Portal:Template_Management
|
||||
|
||||
8- Ready to install Joomla?
|
||||
* Check the minimum requirements here: https://downloads.joomla.org/technical-requirements
|
||||
* How do you install Joomla - https://docs.joomla.org/Special:MyLanguage/J3.x:Installing_Joomla
|
||||
* You could start your Joomla! experience building your site on a local test server.
|
||||
When ready it can be moved to an online hosting account of your choice.
|
||||
See the tutorial: https://docs.joomla.org/Special:MyLanguage/Installing_Joomla_locally
|
||||
|
||||
9- Updates are free!
|
||||
* Always use the latest version: https://downloads.joomla.org/latest
|
||||
|
||||
10- Where can you get support and help?
|
||||
* The Joomla! Documentation: https://docs.joomla.org/Special:MyLanguage/Main_Page
|
||||
* FAQ Frequently Asked Questions: https://docs.joomla.org/Special:MyLanguage/Category:FAQ
|
||||
* Find the information you need: https://docs.joomla.org/Special:MyLanguage/Start_here
|
||||
* Find help and other users: https://www.joomla.org/about-joomla/create-and-share.html
|
||||
* Post questions at our forums: https://forum.joomla.org
|
||||
* Joomla! Resources Directory (JRD): https://resources.joomla.org/
|
||||
|
||||
11- Do you already have a Joomla! site that's not built with Joomla! 3.x ?
|
||||
* What's new in Joomla! 3.x: https://www.joomla.org/3
|
||||
* What are the main differences from 2.5 to 3? https://docs.joomla.org/Special:MyLanguage/What_are_the_major_differences_between_Joomla!_2.5_and_3.x%3F
|
||||
* How to migrate from 2.5.x to 3.x? Tutorial: https://docs.joomla.org/Special:MyLanguage/Joomla_2.5_to_3.x_Step_by_Step_Migration
|
||||
* How to migrate from 1.5.x to 3.x? Tutorial: https://docs.joomla.org/Special:MyLanguage/Joomla_1.5_to_3.x_Step_by_Step_Migration
|
||||
|
||||
12- Do you want to improve Joomla?
|
||||
* Where to request a feature? https://issues.joomla.org
|
||||
* How do you report a bug? https://docs.joomla.org/Special:MyLanguage/Filing_bugs_and_issues
|
||||
* Get Involved: Joomla! is a community developed software. Join the community at https://volunteers.joomla.org
|
||||
* Documentation for Developers: https://docs.joomla.org/Special:MyLanguage/Portal:Developers
|
||||
* Documentation for Web designers: https://docs.joomla.org/Special:MyLanguage/Web_designers
|
||||
|
||||
Copyright:
|
||||
* Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved.
|
||||
* Special Thanks: https://docs.joomla.org/Special:MyLanguage/Joomla!_Credits_and_Thanks
|
||||
* Distributed under the GNU General Public License version 2 or later
|
||||
* See Licenses details at https://docs.joomla.org/Special:MyLanguage/Joomla_Licenses
|
||||
1
core/administrator/cache/index.html
vendored
Normal file
1
core/administrator/cache/index.html
vendored
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
17
core/administrator/components/com_admin/admin.php
Normal file
17
core/administrator/components/com_admin/admin.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
JHtml::_('behavior.tabstate');
|
||||
|
||||
// No access check.
|
||||
|
||||
$controller = JControllerLegacy::getInstance('Admin');
|
||||
$controller->execute(JFactory::getApplication()->input->get('task'));
|
||||
$controller->redirect();
|
||||
26
core/administrator/components/com_admin/admin.xml
Normal file
26
core/administrator/components/com_admin/admin.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="component" version="3.1" method="upgrade">
|
||||
<name>com_admin</name>
|
||||
<author>Joomla! Project</author>
|
||||
<creationDate>April 2006</creationDate>
|
||||
<copyright>(C) 2005 - 2018 Open Source Matters. All rights reserved.</copyright>
|
||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||
<authorEmail>admin@joomla.org</authorEmail>
|
||||
<authorUrl>www.joomla.org</authorUrl>
|
||||
<version>3.0.0</version>
|
||||
<description>COM_ADMIN_XML_DESCRIPTION</description>
|
||||
<media />
|
||||
<administration>
|
||||
<files folder="admin">
|
||||
<filename>admin.php</filename>
|
||||
<filename>controller.php</filename>
|
||||
<folder>helpers</folder>
|
||||
<folder>models</folder>
|
||||
<folder>views</folder>
|
||||
</files>
|
||||
<languages folder="admin">
|
||||
<language tag="en-GB">language/en-GB.com_admin.ini</language>
|
||||
<language tag="en-GB">language/en-GB.com_admin.sys.ini</language>
|
||||
</languages>
|
||||
</administration>
|
||||
</extension>
|
||||
19
core/administrator/components/com_admin/controller.php
Normal file
19
core/administrator/components/com_admin/controller.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Admin Controller
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
class AdminController extends JControllerLegacy
|
||||
{
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* User profile controller class.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
class AdminControllerProfile extends JControllerForm
|
||||
{
|
||||
/**
|
||||
* Method to check if you can edit a record.
|
||||
*
|
||||
* Extended classes can override this if necessary.
|
||||
*
|
||||
* @param array $data An array of input data.
|
||||
* @param string $key The name of the key for the primary key.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function allowEdit($data = array(), $key = 'id')
|
||||
{
|
||||
return isset($data['id']) && $data['id'] == JFactory::getUser()->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides parent save method to check the submitted passwords match.
|
||||
*
|
||||
* @param string $key The name of the primary key of the URL variable.
|
||||
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
|
||||
*
|
||||
* @return boolean True if successful, false otherwise.
|
||||
*
|
||||
* @since 3.2
|
||||
*/
|
||||
public function save($key = null, $urlVar = null)
|
||||
{
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_admin&view=profile&layout=edit&id=' . JFactory::getUser()->id, false));
|
||||
|
||||
$return = parent::save();
|
||||
|
||||
if ($this->getTask() != 'apply')
|
||||
{
|
||||
// Redirect to the main page.
|
||||
$this->setRedirect(JRoute::_('index.php', false));
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to cancel an edit.
|
||||
*
|
||||
* @param string $key The name of the primary key of the URL variable.
|
||||
*
|
||||
* @return boolean True if access level checks pass, false otherwise.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function cancel($key = null)
|
||||
{
|
||||
$return = parent::cancel($key);
|
||||
|
||||
// Redirect to the main page.
|
||||
$this->setRedirect(JRoute::_('index.php', false));
|
||||
|
||||
return $return;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Utility class working with directory
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
abstract class JHtmlDirectory
|
||||
{
|
||||
/**
|
||||
* Method to generate a (un)writable message for directory
|
||||
*
|
||||
* @param boolean $writable is the directory writable?
|
||||
*
|
||||
* @return string html code
|
||||
*/
|
||||
public static function writable($writable)
|
||||
{
|
||||
if ($writable)
|
||||
{
|
||||
return '<span class="badge badge-success">' . JText::_('COM_ADMIN_WRITABLE') . '</span>';
|
||||
}
|
||||
|
||||
return '<span class="badge badge-important">' . JText::_('COM_ADMIN_UNWRITABLE') . '</span>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to generate a message for a directory
|
||||
*
|
||||
* @param string $dir the directory
|
||||
* @param boolean $message the message
|
||||
* @param boolean $visible is the $dir visible?
|
||||
*
|
||||
* @return string html code
|
||||
*/
|
||||
public static function message($dir, $message, $visible = true)
|
||||
{
|
||||
$output = $visible ? $dir : '';
|
||||
|
||||
if (empty($message))
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
|
||||
return $output . ' <strong>' . JText::_($message) . '</strong>';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Utility class working with phpsetting
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
abstract class JHtmlPhpSetting
|
||||
{
|
||||
/**
|
||||
* Method to generate a boolean message for a value
|
||||
*
|
||||
* @param boolean $val is the value set?
|
||||
*
|
||||
* @return string html code
|
||||
*/
|
||||
public static function boolean($val)
|
||||
{
|
||||
return JText::_($val ? 'JON' : 'JOFF');
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to generate a boolean message for a value
|
||||
*
|
||||
* @param boolean $val is the value set?
|
||||
*
|
||||
* @return string html code
|
||||
*/
|
||||
public static function set($val)
|
||||
{
|
||||
return JText::_($val ? 'JYES' : 'JNO');
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to generate a string message for a value
|
||||
*
|
||||
* @param string $val a php ini value
|
||||
*
|
||||
* @return string html code
|
||||
*/
|
||||
public static function string($val)
|
||||
{
|
||||
return !empty($val) ? $val : JText::_('JNONE');
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to generate an integer from a value
|
||||
*
|
||||
* @param string $val a php ini value
|
||||
*
|
||||
* @return string html code
|
||||
*
|
||||
* @deprecated 4.0 Use intval() or casting instead.
|
||||
*/
|
||||
public static function integer($val)
|
||||
{
|
||||
try
|
||||
{
|
||||
JLog::add(sprintf('%s() is deprecated. Use intval() or casting instead.', __METHOD__), JLog::WARNING, 'deprecated');
|
||||
}
|
||||
catch (RuntimeException $exception)
|
||||
{
|
||||
// Informational log only
|
||||
}
|
||||
|
||||
return (int) $val;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Utility class working with system
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
abstract class JHtmlSystem
|
||||
{
|
||||
/**
|
||||
* Method to generate a string message for a value
|
||||
*
|
||||
* @param string $val a php ini value
|
||||
*
|
||||
* @return string html code
|
||||
*/
|
||||
public static function server($val)
|
||||
{
|
||||
return !empty($val) ? $val : JText::_('COM_ADMIN_NA');
|
||||
}
|
||||
}
|
||||
164
core/administrator/components/com_admin/models/forms/profile.xml
Normal file
164
core/administrator/components/com_admin/models/forms/profile.xml
Normal file
@ -0,0 +1,164 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form>
|
||||
<fieldset name="user_details">
|
||||
<field
|
||||
name="name"
|
||||
type="text"
|
||||
label="COM_ADMIN_USER_HEADING_NAME"
|
||||
description="COM_ADMIN_USER_FIELD_NAME_DESC"
|
||||
required="true"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="username"
|
||||
type="text"
|
||||
label="COM_ADMIN_USER_FIELD_USERNAME_LABEL"
|
||||
description="COM_ADMIN_USER_FIELD_USERNAME_DESC"
|
||||
required="true"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="password2"
|
||||
type="password"
|
||||
label="JGLOBAL_PASSWORD"
|
||||
description="COM_ADMIN_USER_FIELD_PASSWORD_DESC"
|
||||
autocomplete="off"
|
||||
class="validate-password"
|
||||
field="password"
|
||||
filter="raw"
|
||||
message="COM_ADMIN_USER_FIELD_PASSWORD1_MESSAGE"
|
||||
size="30"
|
||||
validate="equals"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="password"
|
||||
type="password"
|
||||
label="COM_ADMIN_USER_FIELD_PASSWORD2_LABEL"
|
||||
description="COM_ADMIN_USER_FIELD_PASSWORD2_DESC"
|
||||
autocomplete="off"
|
||||
class="validate-password"
|
||||
filter="raw"
|
||||
size="30"
|
||||
validate="password"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="email"
|
||||
type="email"
|
||||
label="JGLOBAL_EMAIL"
|
||||
description="COM_ADMIN_USER_FIELD_EMAIL_DESC"
|
||||
class="validate-email"
|
||||
required="true"
|
||||
size="30"
|
||||
validate="email"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="registerDate"
|
||||
type="calendar"
|
||||
label="COM_ADMIN_USER_FIELD_REGISTERDATE_LABEL"
|
||||
description="COM_ADMIN_USER_FIELD_REGISTERDATE_DESC"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
translateformat="true"
|
||||
showtime="true"
|
||||
size="22"
|
||||
filter="user_utc"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="lastvisitDate"
|
||||
type="calendar"
|
||||
label="COM_ADMIN_USER_FIELD_LASTVISIT_LABEL"
|
||||
description="COM_ADMIN_USER_FIELD_LASTVISIT_DESC"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
translateformat="true"
|
||||
showtime="true"
|
||||
size="22"
|
||||
filter="user_utc"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="id"
|
||||
type="number"
|
||||
label="JGLOBAL_FIELD_ID_LABEL"
|
||||
description="JGLOBAL_FIELD_ID_DESC"
|
||||
class="readonly"
|
||||
default="0"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fields name="params">
|
||||
|
||||
<!-- Basic user account settings. -->
|
||||
<fieldset name="settings" label="COM_ADMIN_USER_SETTINGS_FIELDSET_LABEL">
|
||||
|
||||
<field
|
||||
name="admin_style"
|
||||
type="templatestyle"
|
||||
label="COM_ADMIN_USER_FIELD_BACKEND_TEMPLATE_LABEL"
|
||||
description="COM_ADMIN_USER_FIELD_BACKEND_TEMPLATE_DESC"
|
||||
client="administrator"
|
||||
filter="uint"
|
||||
>
|
||||
<option value="">JOPTION_USE_DEFAULT</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="admin_language"
|
||||
type="language"
|
||||
label="COM_ADMIN_USER_FIELD_BACKEND_LANGUAGE_LABEL"
|
||||
description="COM_ADMIN_USER_FIELD_BACKEND_LANGUAGE_DESC"
|
||||
client="administrator"
|
||||
>
|
||||
<option value="">JOPTION_USE_DEFAULT</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="language"
|
||||
type="language"
|
||||
label="COM_ADMIN_USER_FIELD_FRONTEND_LANGUAGE_LABEL"
|
||||
description="COM_ADMIN_USER_FIELD_FRONTEND_LANGUAGE_DESC"
|
||||
client="site"
|
||||
>
|
||||
<option value="">JOPTION_USE_DEFAULT</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="editor"
|
||||
type="plugins"
|
||||
label="COM_ADMIN_USER_FIELD_EDITOR_LABEL"
|
||||
description="COM_ADMIN_USER_FIELD_EDITOR_DESC"
|
||||
folder="editors"
|
||||
useaccess="true"
|
||||
>
|
||||
<option value="">JOPTION_USE_DEFAULT</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="helpsite"
|
||||
type="helpsite"
|
||||
label="COM_ADMIN_USER_FIELD_HELPSITE_LABEL"
|
||||
description="COM_ADMIN_USER_FIELD_HELPSITE_DESC"
|
||||
>
|
||||
<option value="">JOPTION_USE_DEFAULT</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="timezone"
|
||||
type="timezone"
|
||||
label="COM_ADMIN_USER_FIELD_TIMEZONE_LABEL"
|
||||
description="COM_ADMIN_USER_FIELD_TIMEZONE_DESC"
|
||||
>
|
||||
<option value="">JOPTION_USE_DEFAULT</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
</fields>
|
||||
</form>
|
||||
209
core/administrator/components/com_admin/models/help.php
Normal file
209
core/administrator/components/com_admin/models/help.php
Normal file
@ -0,0 +1,209 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\String\StringHelper;
|
||||
|
||||
/**
|
||||
* Admin Component Help Model
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
class AdminModelHelp extends JModelLegacy
|
||||
{
|
||||
/**
|
||||
* The search string
|
||||
*
|
||||
* @var string
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $help_search = null;
|
||||
|
||||
/**
|
||||
* The page to be viewed
|
||||
*
|
||||
* @var string
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $page = null;
|
||||
|
||||
/**
|
||||
* The ISO language tag
|
||||
*
|
||||
* @var string
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $lang_tag = null;
|
||||
|
||||
/**
|
||||
* Table of contents
|
||||
*
|
||||
* @var array
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $toc = null;
|
||||
|
||||
/**
|
||||
* URL for the latest version check
|
||||
*
|
||||
* @var string
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $latest_version_check = null;
|
||||
|
||||
/**
|
||||
* Method to get the help search string
|
||||
*
|
||||
* @return string Help search string
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function &getHelpSearch()
|
||||
{
|
||||
if (is_null($this->help_search))
|
||||
{
|
||||
$this->help_search = JFactory::getApplication()->input->getString('helpsearch');
|
||||
}
|
||||
|
||||
return $this->help_search;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the page
|
||||
*
|
||||
* @return string The page
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function &getPage()
|
||||
{
|
||||
if (is_null($this->page))
|
||||
{
|
||||
$this->page = JHelp::createUrl(JFactory::getApplication()->input->get('page', 'JHELP_START_HERE'));
|
||||
}
|
||||
|
||||
return $this->page;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the lang tag
|
||||
*
|
||||
* @return string lang iso tag
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function getLangTag()
|
||||
{
|
||||
if (is_null($this->lang_tag))
|
||||
{
|
||||
$this->lang_tag = JFactory::getLanguage()->getTag();
|
||||
|
||||
if (!is_dir(JPATH_BASE . '/help/' . $this->lang_tag))
|
||||
{
|
||||
// Use English as fallback
|
||||
$this->lang_tag = 'en-GB';
|
||||
}
|
||||
}
|
||||
|
||||
return $this->lang_tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the table of contents
|
||||
*
|
||||
* @return array Table of contents
|
||||
*/
|
||||
public function &getToc()
|
||||
{
|
||||
if (!is_null($this->toc))
|
||||
{
|
||||
return $this->toc;
|
||||
}
|
||||
|
||||
// Get vars
|
||||
$lang_tag = $this->getLangTag();
|
||||
$help_search = $this->getHelpSearch();
|
||||
|
||||
// New style - Check for a TOC JSON file
|
||||
if (file_exists(JPATH_BASE . '/help/' . $lang_tag . '/toc.json'))
|
||||
{
|
||||
$data = json_decode(file_get_contents(JPATH_BASE . '/help/' . $lang_tag . '/toc.json'));
|
||||
|
||||
// Loop through the data array
|
||||
foreach ($data as $key => $value)
|
||||
{
|
||||
$this->toc[$key] = JText::_('COM_ADMIN_HELP_' . $value);
|
||||
}
|
||||
|
||||
// Sort the Table of Contents
|
||||
asort($this->toc);
|
||||
|
||||
return $this->toc;
|
||||
}
|
||||
|
||||
// Get Help files
|
||||
jimport('joomla.filesystem.folder');
|
||||
$files = JFolder::files(JPATH_BASE . '/help/' . $lang_tag, '\.xml$|\.html$');
|
||||
$this->toc = array();
|
||||
|
||||
foreach ($files as $file)
|
||||
{
|
||||
$buffer = file_get_contents(JPATH_BASE . '/help/' . $lang_tag . '/' . $file);
|
||||
|
||||
if (!preg_match('#<title>(.*?)</title>#', $buffer, $m))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$title = trim($m[1]);
|
||||
|
||||
if (!$title)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Translate the page title
|
||||
$title = JText::_($title);
|
||||
|
||||
// Strip the extension
|
||||
$file = preg_replace('#\.xml$|\.html$#', '', $file);
|
||||
|
||||
if ($help_search && StringHelper::strpos(StringHelper::strtolower(strip_tags($buffer)), StringHelper::strtolower($help_search)) === false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Add an item in the Table of Contents
|
||||
$this->toc[$file] = $title;
|
||||
}
|
||||
|
||||
// Sort the Table of Contents
|
||||
asort($this->toc);
|
||||
|
||||
return $this->toc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the latest version check
|
||||
*
|
||||
* @return string Latest Version Check URL
|
||||
*/
|
||||
public function &getLatestVersionCheck()
|
||||
{
|
||||
if (!$this->latest_version_check)
|
||||
{
|
||||
$override = 'https://help.joomla.org/proxy/index.php?keyref=Help{major}{minor}:'
|
||||
. 'Joomla_Version_{major}_{minor}_{maintenance}/{langcode}&lang={langcode}';
|
||||
$this->latest_version_check = JHelp::createUrl('JVERSION', false, $override);
|
||||
}
|
||||
|
||||
return $this->latest_version_check;
|
||||
}
|
||||
}
|
||||
162
core/administrator/components/com_admin/models/profile.php
Normal file
162
core/administrator/components/com_admin/models/profile.php
Normal file
@ -0,0 +1,162 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JLoader::register('UsersModelUser', JPATH_ADMINISTRATOR . '/components/com_users/models/user.php');
|
||||
|
||||
/**
|
||||
* User model.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
class AdminModelProfile extends UsersModelUser
|
||||
{
|
||||
/**
|
||||
* Method to get the record form.
|
||||
*
|
||||
* @param array $data An optional array of data for the form to interogate.
|
||||
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
|
||||
*
|
||||
* @return JForm A JForm object on success, false on failure
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function getForm($data = array(), $loadData = true)
|
||||
{
|
||||
// Get the form.
|
||||
$form = $this->loadForm('com_admin.profile', 'profile', array('control' => 'jform', 'load_data' => $loadData));
|
||||
|
||||
if (empty($form))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check for username compliance and parameter set
|
||||
$isUsernameCompliant = true;
|
||||
|
||||
if ($this->loadFormData()->username)
|
||||
{
|
||||
$username = $this->loadFormData()->username;
|
||||
$isUsernameCompliant = !(preg_match('#[<>"\'%;()&\\\\]|\\.\\./#', $username) || strlen(utf8_decode($username)) < 2
|
||||
|| trim($username) != $username);
|
||||
}
|
||||
|
||||
$this->setState('user.username.compliant', $isUsernameCompliant);
|
||||
|
||||
if (!JComponentHelper::getParams('com_users')->get('change_login_name') && $isUsernameCompliant)
|
||||
{
|
||||
$form->setFieldAttribute('username', 'required', 'false');
|
||||
$form->setFieldAttribute('username', 'readonly', 'true');
|
||||
$form->setFieldAttribute('username', 'description', 'COM_ADMIN_USER_FIELD_NOCHANGE_USERNAME_DESC');
|
||||
}
|
||||
|
||||
// When multilanguage is set, a user's default site language should also be a Content Language
|
||||
if (JLanguageMultilang::isEnabled())
|
||||
{
|
||||
$form->setFieldAttribute('language', 'type', 'frontend_language', 'params');
|
||||
}
|
||||
|
||||
// If the user needs to change their password, mark the password fields as required
|
||||
if (JFactory::getUser()->requireReset)
|
||||
{
|
||||
$form->setFieldAttribute('password', 'required', 'true');
|
||||
$form->setFieldAttribute('password2', 'required', 'true');
|
||||
}
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the data that should be injected in the form.
|
||||
*
|
||||
* @return mixed The data for the form.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function loadFormData()
|
||||
{
|
||||
// Check the session for previously entered form data.
|
||||
$data = JFactory::getApplication()->getUserState('com_users.edit.user.data', array());
|
||||
|
||||
if (empty($data))
|
||||
{
|
||||
$data = $this->getItem();
|
||||
}
|
||||
|
||||
// Load the users plugins.
|
||||
JPluginHelper::importPlugin('user');
|
||||
|
||||
$this->preprocessData('com_admin.profile', $data);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get a single record.
|
||||
*
|
||||
* @param integer $pk The id of the primary key.
|
||||
*
|
||||
* @return mixed Object on success, false on failure.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function getItem($pk = null)
|
||||
{
|
||||
return parent::getItem(JFactory::getUser()->id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to save the form data.
|
||||
*
|
||||
* @param array $data The form data.
|
||||
*
|
||||
* @return boolean True on success.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function save($data)
|
||||
{
|
||||
$user = JFactory::getUser();
|
||||
|
||||
unset($data['id']);
|
||||
unset($data['groups']);
|
||||
unset($data['sendEmail']);
|
||||
unset($data['block']);
|
||||
|
||||
$isUsernameCompliant = $this->getState('user.username.compliant');
|
||||
|
||||
if (!JComponentHelper::getParams('com_users')->get('change_login_name') && $isUsernameCompliant)
|
||||
{
|
||||
unset($data['username']);
|
||||
}
|
||||
|
||||
// Bind the data.
|
||||
if (!$user->bind($data))
|
||||
{
|
||||
$this->setError($user->getError());
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
$user->groups = null;
|
||||
|
||||
// Store the data.
|
||||
if (!$user->save())
|
||||
{
|
||||
$this->setError($user->getError());
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->setState('user.id', $user->id);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
744
core/administrator/components/com_admin/models/sysinfo.php
Normal file
744
core/administrator/components/com_admin/models/sysinfo.php
Normal file
@ -0,0 +1,744 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\Registry\Registry;
|
||||
|
||||
/**
|
||||
* Model for the display of system information.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
class AdminModelSysInfo extends JModelLegacy
|
||||
{
|
||||
/**
|
||||
* Some PHP settings
|
||||
*
|
||||
* @var array
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $php_settings = array();
|
||||
|
||||
/**
|
||||
* Config values
|
||||
*
|
||||
* @var array
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $config = array();
|
||||
|
||||
/**
|
||||
* Some system values
|
||||
*
|
||||
* @var array
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $info = array();
|
||||
|
||||
/**
|
||||
* PHP info
|
||||
*
|
||||
* @var string
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $php_info = null;
|
||||
|
||||
/**
|
||||
* Array containing the phpinfo() data.
|
||||
*
|
||||
* @var array
|
||||
*
|
||||
* @since 3.5
|
||||
*/
|
||||
protected $phpInfoArray;
|
||||
|
||||
/**
|
||||
* Private/critical data that we don't want to share
|
||||
*
|
||||
* @var array
|
||||
*
|
||||
* @since 3.5
|
||||
*/
|
||||
protected $privateSettings = array(
|
||||
'phpInfoArray' => array(
|
||||
'CONTEXT_DOCUMENT_ROOT',
|
||||
'Cookie',
|
||||
'DOCUMENT_ROOT',
|
||||
'extension_dir',
|
||||
'error_log',
|
||||
'Host',
|
||||
'HTTP_COOKIE',
|
||||
'HTTP_HOST',
|
||||
'HTTP_ORIGIN',
|
||||
'HTTP_REFERER',
|
||||
'HTTP Request',
|
||||
'include_path',
|
||||
'mysql.default_socket',
|
||||
'MYSQL_SOCKET',
|
||||
'MYSQL_INCLUDE',
|
||||
'MYSQL_LIBS',
|
||||
'mysqli.default_socket',
|
||||
'MYSQLI_SOCKET',
|
||||
'PATH',
|
||||
'Path to sendmail',
|
||||
'pdo_mysql.default_socket',
|
||||
'Referer',
|
||||
'REMOTE_ADDR',
|
||||
'SCRIPT_FILENAME',
|
||||
'sendmail_path',
|
||||
'SERVER_ADDR',
|
||||
'SERVER_ADMIN',
|
||||
'Server Administrator',
|
||||
'SERVER_NAME',
|
||||
'Server Root',
|
||||
'session.name',
|
||||
'session.save_path',
|
||||
'upload_tmp_dir',
|
||||
'User/Group',
|
||||
'open_basedir',
|
||||
),
|
||||
'other' => array(
|
||||
'db',
|
||||
'dbprefix',
|
||||
'fromname',
|
||||
'live_site',
|
||||
'log_path',
|
||||
'mailfrom',
|
||||
'memcache_server_host',
|
||||
'memcached_server_host',
|
||||
'open_basedir',
|
||||
'Origin',
|
||||
'proxy_host',
|
||||
'proxy_user',
|
||||
'proxy_pass',
|
||||
'redis_server_host',
|
||||
'redis_server_auth',
|
||||
'secret',
|
||||
'sendmail',
|
||||
'session.save_path',
|
||||
'session_memcache_server_host',
|
||||
'session_memcached_server_host',
|
||||
'session_redis_server_host',
|
||||
'session_redis_server_auth',
|
||||
'sitename',
|
||||
'smtphost',
|
||||
'tmp_path',
|
||||
'open_basedir',
|
||||
)
|
||||
);
|
||||
|
||||
/**
|
||||
* System values that can be "safely" shared
|
||||
*
|
||||
* @var array
|
||||
*
|
||||
* @since 3.5
|
||||
*/
|
||||
protected $safeData;
|
||||
|
||||
/**
|
||||
* Information about writable state of directories
|
||||
*
|
||||
* @var array
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $directories = array();
|
||||
|
||||
/**
|
||||
* The current editor.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $editor = null;
|
||||
|
||||
/**
|
||||
* Remove sections of data marked as private in the privateSettings
|
||||
*
|
||||
* @param array $dataArray Array with data tha may contain private informati
|
||||
* @param string $dataType Type of data to search for a specific section in the privateSettings array
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @since 3.5
|
||||
*/
|
||||
protected function cleanPrivateData($dataArray, $dataType = 'other')
|
||||
{
|
||||
$dataType = isset($this->privateSettings[$dataType]) ? $dataType : 'other';
|
||||
|
||||
$privateSettings = $this->privateSettings[$dataType];
|
||||
|
||||
if (!$privateSettings)
|
||||
{
|
||||
return $dataArray;
|
||||
}
|
||||
|
||||
foreach ($dataArray as $section => $values)
|
||||
{
|
||||
if (is_array($values))
|
||||
{
|
||||
$dataArray[$section] = $this->cleanPrivateData($values, $dataType);
|
||||
}
|
||||
|
||||
if (in_array($section, $privateSettings, true))
|
||||
{
|
||||
$dataArray[$section] = $this->cleanSectionPrivateData($values);
|
||||
}
|
||||
}
|
||||
|
||||
return $dataArray;
|
||||
}
|
||||
|
||||
/**
|
||||
* Obfuscate section values
|
||||
*
|
||||
* @param mixed $sectionValues Section data
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @since 3.5
|
||||
*/
|
||||
protected function cleanSectionPrivateData($sectionValues)
|
||||
{
|
||||
if (!is_array($sectionValues))
|
||||
{
|
||||
if (strstr($sectionValues, JPATH_ROOT))
|
||||
{
|
||||
$sectionValues = 'xxxxxx';
|
||||
}
|
||||
|
||||
return strlen($sectionValues) ? 'xxxxxx' : '';
|
||||
}
|
||||
|
||||
foreach ($sectionValues as $setting => $value)
|
||||
{
|
||||
$sectionValues[$setting] = strlen($value) ? 'xxxxxx' : '';
|
||||
}
|
||||
|
||||
return $sectionValues;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the PHP settings
|
||||
*
|
||||
* @return array Some PHP settings
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function &getPhpSettings()
|
||||
{
|
||||
if (!empty($this->php_settings))
|
||||
{
|
||||
return $this->php_settings;
|
||||
}
|
||||
|
||||
$this->php_settings = array(
|
||||
'safe_mode' => ini_get('safe_mode') == '1',
|
||||
'display_errors' => ini_get('display_errors') == '1',
|
||||
'short_open_tag' => ini_get('short_open_tag') == '1',
|
||||
'file_uploads' => ini_get('file_uploads') == '1',
|
||||
'magic_quotes_gpc' => ini_get('magic_quotes_gpc') == '1',
|
||||
'register_globals' => ini_get('register_globals') == '1',
|
||||
'output_buffering' => (int) ini_get('output_buffering') !== 0,
|
||||
'open_basedir' => ini_get('open_basedir'),
|
||||
'session.save_path' => ini_get('session.save_path'),
|
||||
'session.auto_start' => ini_get('session.auto_start'),
|
||||
'disable_functions' => ini_get('disable_functions'),
|
||||
'xml' => extension_loaded('xml'),
|
||||
'zlib' => extension_loaded('zlib'),
|
||||
'zip' => function_exists('zip_open') && function_exists('zip_read'),
|
||||
'mbstring' => extension_loaded('mbstring'),
|
||||
'iconv' => function_exists('iconv'),
|
||||
'max_input_vars' => ini_get('max_input_vars'),
|
||||
);
|
||||
|
||||
return $this->php_settings;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the config
|
||||
*
|
||||
* @return array config values
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function &getConfig()
|
||||
{
|
||||
if (!empty($this->config))
|
||||
{
|
||||
return $this->config;
|
||||
}
|
||||
|
||||
$registry = new Registry(new JConfig);
|
||||
$this->config = $registry->toArray();
|
||||
$hidden = array('host', 'user', 'password', 'ftp_user', 'ftp_pass', 'smtpuser', 'smtppass',);
|
||||
|
||||
foreach ($hidden as $key)
|
||||
{
|
||||
$this->config[$key] = 'xxxxxx';
|
||||
}
|
||||
|
||||
return $this->config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the system information
|
||||
*
|
||||
* @return array System information values
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function &getInfo()
|
||||
{
|
||||
if (!empty($this->info))
|
||||
{
|
||||
return $this->info;
|
||||
}
|
||||
|
||||
$version = new JVersion;
|
||||
$platform = new JPlatform;
|
||||
$db = $this->getDbo();
|
||||
|
||||
$this->info = array(
|
||||
'php' => php_uname(),
|
||||
'dbserver' => $db->getServerType(),
|
||||
'dbversion' => $db->getVersion(),
|
||||
'dbcollation' => $db->getCollation(),
|
||||
'dbconnectioncollation' => $db->getConnectionCollation(),
|
||||
'phpversion' => phpversion(),
|
||||
'server' => isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : getenv('SERVER_SOFTWARE'),
|
||||
'sapi_name' => php_sapi_name(),
|
||||
'version' => $version->getLongVersion(),
|
||||
'platform' => $platform->getLongVersion(),
|
||||
'useragent' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '',
|
||||
);
|
||||
|
||||
return $this->info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the phpinfo function is enabled
|
||||
*
|
||||
* @return boolean True if enabled
|
||||
*
|
||||
* @since 3.4.1
|
||||
*/
|
||||
public function phpinfoEnabled()
|
||||
{
|
||||
return !in_array('phpinfo', explode(',', ini_get('disable_functions')));
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get filter data from the model
|
||||
*
|
||||
* @param string $dataType Type of data to get safely
|
||||
* @param bool $public If true no sensitive information will be removed
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @since 3.5
|
||||
*/
|
||||
public function getSafeData($dataType, $public = true)
|
||||
{
|
||||
if (isset($this->safeData[$dataType]))
|
||||
{
|
||||
return $this->safeData[$dataType];
|
||||
}
|
||||
|
||||
$methodName = 'get' . ucfirst($dataType);
|
||||
|
||||
if (!method_exists($this, $methodName))
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
$data = $this->$methodName($public);
|
||||
|
||||
$this->safeData[$dataType] = $this->cleanPrivateData($data, $dataType);
|
||||
|
||||
return $this->safeData[$dataType];
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the PHP info
|
||||
*
|
||||
* @return string PHP info
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function &getPHPInfo()
|
||||
{
|
||||
if (!$this->phpinfoEnabled())
|
||||
{
|
||||
$this->php_info = JText::_('COM_ADMIN_PHPINFO_DISABLED');
|
||||
|
||||
return $this->php_info;
|
||||
}
|
||||
|
||||
if (!is_null($this->php_info))
|
||||
{
|
||||
return $this->php_info;
|
||||
}
|
||||
|
||||
ob_start();
|
||||
date_default_timezone_set('UTC');
|
||||
phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
|
||||
$phpInfo = ob_get_contents();
|
||||
ob_end_clean();
|
||||
preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpInfo, $output);
|
||||
$output = preg_replace('#<table[^>]*>#', '<table class="table table-striped adminlist">', $output[1][0]);
|
||||
$output = preg_replace('#(\w),(\w)#', '\1, \2', $output);
|
||||
$output = preg_replace('#<hr />#', '', $output);
|
||||
$output = str_replace('<div class="center">', '', $output);
|
||||
$output = preg_replace('#<tr class="h">(.*)<\/tr>#', '<thead><tr class="h">$1</tr></thead><tbody>', $output);
|
||||
$output = str_replace('</table>', '</tbody></table>', $output);
|
||||
$output = str_replace('</div>', '', $output);
|
||||
$this->php_info = $output;
|
||||
|
||||
return $this->php_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get phpinfo() output as array
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @since 3.5
|
||||
*/
|
||||
public function getPhpInfoArray()
|
||||
{
|
||||
// Already cached
|
||||
if (null !== $this->phpInfoArray)
|
||||
{
|
||||
return $this->phpInfoArray;
|
||||
}
|
||||
|
||||
$phpInfo = $this->getPhpInfo();
|
||||
|
||||
$this->phpInfoArray = $this->parsePhpInfo($phpInfo);
|
||||
|
||||
return $this->phpInfoArray;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get a list of installed extensions
|
||||
*
|
||||
* @return array installed extensions
|
||||
*
|
||||
* @since 3.5
|
||||
*/
|
||||
public function getExtensions()
|
||||
{
|
||||
$installed = array();
|
||||
$db = JFactory::getDbo();
|
||||
$query = $db->getQuery(true)
|
||||
->select('*')
|
||||
->from($db->qn('#__extensions'));
|
||||
$db->setQuery($query);
|
||||
|
||||
try
|
||||
{
|
||||
$extensions = $db->loadObjectList();
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
try
|
||||
{
|
||||
JLog::add(JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED', $e->getCode(), $e->getMessage()), JLog::WARNING, 'jerror');
|
||||
}
|
||||
catch (RuntimeException $exception)
|
||||
{
|
||||
JFactory::getApplication()->enqueueMessage(
|
||||
JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED', $e->getCode(), $e->getMessage()),
|
||||
'warning'
|
||||
);
|
||||
}
|
||||
|
||||
return $installed;
|
||||
}
|
||||
|
||||
if (empty($extensions))
|
||||
{
|
||||
return $installed;
|
||||
}
|
||||
|
||||
foreach ($extensions as $extension)
|
||||
{
|
||||
if (strlen($extension->name) == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$installed[$extension->name] = array(
|
||||
'name' => $extension->name,
|
||||
'type' => $extension->type,
|
||||
'state' => $extension->enabled ? JText::_('JENABLED') : JText::_('JDISABLED'),
|
||||
'author' => 'unknown',
|
||||
'version' => 'unknown',
|
||||
'creationDate' => 'unknown',
|
||||
'authorUrl' => 'unknown',
|
||||
);
|
||||
|
||||
$manifest = new Registry($extension->manifest_cache);
|
||||
|
||||
$extraData = array(
|
||||
'author' => $manifest->get('author', ''),
|
||||
'version' => $manifest->get('version', ''),
|
||||
'creationDate' => $manifest->get('creationDate', ''),
|
||||
'authorUrl' => $manifest->get('authorUrl', '')
|
||||
);
|
||||
|
||||
$installed[$extension->name] = array_merge($installed[$extension->name], $extraData);
|
||||
}
|
||||
|
||||
return $installed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the directory states
|
||||
*
|
||||
* @param bool $public If true no information is going to be removed
|
||||
*
|
||||
* @return array States of directories
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function getDirectory($public = false)
|
||||
{
|
||||
if (!empty($this->directories))
|
||||
{
|
||||
return $this->directories;
|
||||
}
|
||||
|
||||
$this->directories = array();
|
||||
|
||||
$registry = JFactory::getConfig();
|
||||
$cparams = JComponentHelper::getParams('com_media');
|
||||
|
||||
$this->addDirectory('administrator/components', JPATH_ADMINISTRATOR . '/components');
|
||||
$this->addDirectory('administrator/language', JPATH_ADMINISTRATOR . '/language');
|
||||
|
||||
// List all admin languages
|
||||
$admin_langs = new DirectoryIterator(JPATH_ADMINISTRATOR . '/language');
|
||||
|
||||
foreach ($admin_langs as $folder)
|
||||
{
|
||||
if (!$folder->isDir() || $folder->isDot())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->addDirectory(
|
||||
'administrator/language/' . $folder->getFilename(),
|
||||
JPATH_ADMINISTRATOR . '/language/' . $folder->getFilename()
|
||||
);
|
||||
}
|
||||
|
||||
// List all manifests folders
|
||||
$manifests = new DirectoryIterator(JPATH_ADMINISTRATOR . '/manifests');
|
||||
|
||||
foreach ($manifests as $folder)
|
||||
{
|
||||
if (!$folder->isDir() || $folder->isDot())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->addDirectory(
|
||||
'administrator/manifests/' . $folder->getFilename(),
|
||||
JPATH_ADMINISTRATOR . '/manifests/' . $folder->getFilename()
|
||||
);
|
||||
}
|
||||
|
||||
$this->addDirectory('administrator/modules', JPATH_ADMINISTRATOR . '/modules');
|
||||
$this->addDirectory('administrator/templates', JPATH_THEMES);
|
||||
|
||||
$this->addDirectory('components', JPATH_SITE . '/components');
|
||||
|
||||
$this->addDirectory($cparams->get('image_path'), JPATH_SITE . '/' . $cparams->get('image_path'));
|
||||
|
||||
// List all images folders
|
||||
$image_folders = new DirectoryIterator(JPATH_SITE . '/' . $cparams->get('image_path'));
|
||||
|
||||
foreach ($image_folders as $folder)
|
||||
{
|
||||
if (!$folder->isDir() || $folder->isDot())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->addDirectory(
|
||||
'images/' . $folder->getFilename(),
|
||||
JPATH_SITE . '/' . $cparams->get('image_path') . '/' . $folder->getFilename()
|
||||
);
|
||||
}
|
||||
|
||||
$this->addDirectory('language', JPATH_SITE . '/language');
|
||||
|
||||
// List all site languages
|
||||
$site_langs = new DirectoryIterator(JPATH_SITE . '/language');
|
||||
|
||||
foreach ($site_langs as $folder)
|
||||
{
|
||||
if (!$folder->isDir() || $folder->isDot())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->addDirectory('language/' . $folder->getFilename(), JPATH_SITE . '/language/' . $folder->getFilename());
|
||||
}
|
||||
|
||||
$this->addDirectory('libraries', JPATH_LIBRARIES);
|
||||
|
||||
$this->addDirectory('media', JPATH_SITE . '/media');
|
||||
$this->addDirectory('modules', JPATH_SITE . '/modules');
|
||||
$this->addDirectory('plugins', JPATH_PLUGINS);
|
||||
|
||||
$plugin_groups = new DirectoryIterator(JPATH_SITE . '/plugins');
|
||||
|
||||
foreach ($plugin_groups as $folder)
|
||||
{
|
||||
if (!$folder->isDir() || $folder->isDot())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->addDirectory('plugins/' . $folder->getFilename(), JPATH_PLUGINS . '/' . $folder->getFilename());
|
||||
}
|
||||
|
||||
$this->addDirectory('templates', JPATH_SITE . '/templates');
|
||||
$this->addDirectory('configuration.php', JPATH_CONFIGURATION . '/configuration.php');
|
||||
|
||||
// Is there a cache path in configuration.php?
|
||||
if ($cache_path = trim($registry->get('cache_path', '')))
|
||||
{
|
||||
// Frontend and backend use same directory for caching.
|
||||
$this->addDirectory($cache_path, $cache_path, 'COM_ADMIN_CACHE_DIRECTORY');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->addDirectory('cache', JPATH_SITE . '/cache', 'COM_ADMIN_CACHE_DIRECTORY');
|
||||
$this->addDirectory('administrator/cache', JPATH_CACHE, 'COM_ADMIN_CACHE_DIRECTORY');
|
||||
}
|
||||
|
||||
if ($public)
|
||||
{
|
||||
$this->addDirectory(
|
||||
'log',
|
||||
$registry->get('log_path', JPATH_ADMINISTRATOR . '/logs'),
|
||||
'COM_ADMIN_LOG_DIRECTORY'
|
||||
);
|
||||
$this->addDirectory(
|
||||
'tmp',
|
||||
$registry->get('tmp_path', JPATH_ROOT . '/tmp'),
|
||||
'COM_ADMIN_TEMP_DIRECTORY'
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->addDirectory(
|
||||
$registry->get('log_path', JPATH_ADMINISTRATOR . '/logs'),
|
||||
$registry->get('log_path', JPATH_ADMINISTRATOR . '/logs'),
|
||||
'COM_ADMIN_LOG_DIRECTORY'
|
||||
);
|
||||
$this->addDirectory(
|
||||
$registry->get('tmp_path', JPATH_ROOT . '/tmp'),
|
||||
$registry->get('tmp_path', JPATH_ROOT . '/tmp'),
|
||||
'COM_ADMIN_TEMP_DIRECTORY'
|
||||
);
|
||||
}
|
||||
|
||||
return $this->directories;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to add a directory
|
||||
*
|
||||
* @param string $name Directory Name
|
||||
* @param string $path Directory path
|
||||
* @param string $message Message
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
private function addDirectory($name, $path, $message = '')
|
||||
{
|
||||
$this->directories[$name] = array('writable' => is_writable($path), 'message' => $message,);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the editor
|
||||
*
|
||||
* @return string The default editor
|
||||
*
|
||||
* @note Has to be removed (it is present in the config...)
|
||||
* @since 1.6
|
||||
*/
|
||||
public function &getEditor()
|
||||
{
|
||||
if (!is_null($this->editor))
|
||||
{
|
||||
return $this->editor;
|
||||
}
|
||||
|
||||
$this->editor = JFactory::getConfig()->get('editor');
|
||||
|
||||
return $this->editor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse phpinfo output into an array
|
||||
* Source https://gist.github.com/sbmzhcn/6255314
|
||||
*
|
||||
* @param string $html Output of phpinfo()
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @since 3.5
|
||||
*/
|
||||
protected function parsePhpInfo($html)
|
||||
{
|
||||
$html = strip_tags($html, '<h2><th><td>');
|
||||
$html = preg_replace('/<th[^>]*>([^<]+)<\/th>/', '<info>\1</info>', $html);
|
||||
$html = preg_replace('/<td[^>]*>([^<]+)<\/td>/', '<info>\1</info>', $html);
|
||||
$t = preg_split('/(<h2[^>]*>[^<]+<\/h2>)/', $html, -1, PREG_SPLIT_DELIM_CAPTURE);
|
||||
$r = array();
|
||||
$count = count($t);
|
||||
$p1 = '<info>([^<]+)<\/info>';
|
||||
$p2 = '/' . $p1 . '\s*' . $p1 . '\s*' . $p1 . '/';
|
||||
$p3 = '/' . $p1 . '\s*' . $p1 . '/';
|
||||
|
||||
for ($i = 1; $i < $count; $i++)
|
||||
{
|
||||
if (preg_match('/<h2[^>]*>([^<]+)<\/h2>/', $t[$i], $matchs))
|
||||
{
|
||||
$name = trim($matchs[1]);
|
||||
$vals = explode("\n", $t[$i + 1]);
|
||||
|
||||
foreach ($vals AS $val)
|
||||
{
|
||||
// 3cols
|
||||
if (preg_match($p2, $val, $matchs))
|
||||
{
|
||||
$r[$name][trim($matchs[1])] = array(trim($matchs[2]), trim($matchs[3]),);
|
||||
}
|
||||
// 2cols
|
||||
elseif (preg_match($p3, $val, $matchs))
|
||||
{
|
||||
$r[$name][trim($matchs[1])] = trim($matchs[2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $r;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*
|
||||
* This file contains post-installation message handling for eAccelerator compatibility.
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\Registry\Registry;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Checks if the eAccelerator caching method is enabled.
|
||||
*
|
||||
* This check should be done through the 3.x series as the issue impacts migrated sites which will
|
||||
* most often come from the previous LTS release (2.5). Remove for version 4 or when eAccelerator support is added.
|
||||
*
|
||||
* This check returns true when the eAccelerator caching method is user, meaning that the message concerning it should be displayed.
|
||||
*
|
||||
* @return integer
|
||||
*
|
||||
* @since 3.2
|
||||
*/
|
||||
function admin_postinstall_eaccelerator_condition()
|
||||
{
|
||||
$app = JFactory::getApplication();
|
||||
$cacheHandler = $app->get('cacheHandler', '');
|
||||
|
||||
return (ucfirst($cacheHandler) == 'Eaccelerator');
|
||||
}
|
||||
|
||||
/**
|
||||
* Disables the unsupported eAccelerator caching method, replacing it with the "file" caching method.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 3.2
|
||||
*/
|
||||
function admin_postinstall_eaccelerator_action()
|
||||
{
|
||||
$prev = ArrayHelper::fromObject(new JConfig);
|
||||
$data = array_merge($prev, array('cacheHandler' => 'file'));
|
||||
|
||||
$config = new Registry($data);
|
||||
|
||||
jimport('joomla.filesystem.path');
|
||||
jimport('joomla.filesystem.file');
|
||||
|
||||
// Set the configuration file path.
|
||||
$file = JPATH_CONFIGURATION . '/configuration.php';
|
||||
|
||||
// Get the new FTP credentials.
|
||||
$ftp = JClientHelper::getCredentials('ftp', true);
|
||||
|
||||
// Attempt to make the file writeable if using FTP.
|
||||
if (!$ftp['enabled'] && JPath::isOwner($file) && !JPath::setPermissions($file, '0644'))
|
||||
{
|
||||
JError::raiseNotice(500, JText::_('COM_CONFIG_ERROR_CONFIGURATION_PHP_NOTWRITABLE'));
|
||||
}
|
||||
|
||||
// Attempt to write the configuration file as a PHP class named JConfig.
|
||||
$configuration = $config->toString('PHP', array('class' => 'JConfig', 'closingtag' => false));
|
||||
|
||||
if (!JFile::write($file, $configuration))
|
||||
{
|
||||
JFactory::getApplication()->enqueueMessage(JText::_('COM_CONFIG_ERROR_WRITE_FAILED'), 'error');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Attempt to make the file unwriteable if using FTP.
|
||||
if (!$ftp['enabled'] && JPath::isOwner($file) && !JPath::setPermissions($file, '0444'))
|
||||
{
|
||||
JError::raiseNotice(500, JText::_('COM_CONFIG_ERROR_CONFIGURATION_PHP_NOTUNWRITABLE'));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*
|
||||
* This file contains post-installation message handling for notifying users of a change
|
||||
* in the default .htaccess and web.config files.
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Notifies users of a change in the default .htaccess or web.config file
|
||||
*
|
||||
* This check returns true regardless of condition.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 3.4
|
||||
*/
|
||||
function admin_postinstall_htaccess_condition()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*
|
||||
* This file contains post-installation message handling for Joomla 4.0 pre checks
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Checks if the installation meets the current requirements for Joomla 4
|
||||
*
|
||||
* @return boolean True if any check fails.
|
||||
*
|
||||
* @since 3.7
|
||||
*
|
||||
* @link https://developer.joomla.org/news/658-joomla4-manifesto.html
|
||||
* @link https://developer.joomla.org/news/704-looking-forward-with-joomla-4.html
|
||||
*/
|
||||
function admin_postinstall_joomla40checks_condition()
|
||||
{
|
||||
$db = JFactory::getDbo();
|
||||
$serverType = $db->getServerType();
|
||||
$serverVersion = $db->getVersion();
|
||||
|
||||
if ($serverType == 'mssql')
|
||||
{
|
||||
// MS SQL support will be dropped
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($serverType == 'postgresql' && version_compare($serverVersion, '9.2', 'lt'))
|
||||
{
|
||||
// PostgreSQL minimum version is 9.2
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($serverType == 'mysql' && version_compare($serverVersion, '5.5.3', 'lt'))
|
||||
{
|
||||
// MySQL minimum version is 5.5.3
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($db->name === 'mysql')
|
||||
{
|
||||
// Using deprecated MySQL driver
|
||||
return true;
|
||||
}
|
||||
|
||||
// PHP minimum version is 7.0
|
||||
return version_compare(PHP_VERSION, '7.0', 'lt');
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*
|
||||
* This file contains post-installation message handling for the checks if the installation is
|
||||
* affected by the issue with content languages access in 3.4.0
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Checks if the installation is affected by the issue with content languages access in 3.4.0
|
||||
*
|
||||
* @link https://github.com/joomla/joomla-cms/pull/6172
|
||||
* @link https://github.com/joomla/joomla-cms/pull/6194
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 3.4.1
|
||||
*/
|
||||
function admin_postinstall_languageaccess340_condition()
|
||||
{
|
||||
$db = JFactory::getDbo();
|
||||
$query = $db->getQuery(true)
|
||||
->select($db->quoteName('access'))
|
||||
->from($db->quoteName('#__languages'))
|
||||
->where($db->quoteName('access') . ' = ' . $db->quote('0'));
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
$numRows = $db->getNumRows();
|
||||
|
||||
if (isset($numRows) && $numRows != 0)
|
||||
{
|
||||
// We have rows here so we have at minumum one row with access set to 0
|
||||
return true;
|
||||
}
|
||||
|
||||
// All good the query return nothing.
|
||||
return false;
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*
|
||||
* This file contains post-installation message handling for the checking minimum PHP version support
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Alerts the user we are collecting anonymous data as of Joomla 3.5.0.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 3.5
|
||||
*/
|
||||
function admin_postinstall_statscollection_condition()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*
|
||||
* This file contains post-installation message handling for notifying users of a change
|
||||
* in various default settings.
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Notifies users of a change in various default settings
|
||||
*
|
||||
* This check returns true regardless of condition.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 3.8.8
|
||||
*/
|
||||
function admin_postinstall_updatedefaultsettings_condition()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
2543
core/administrator/components/com_admin/script.php
Normal file
2543
core/administrator/components/com_admin/script.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@
|
||||
--
|
||||
-- Step 1 of the UTF-8 Multibyte (utf8mb4) conversion for MySQL
|
||||
--
|
||||
-- Drop indexes which will be added again in step 2, utf8mb4-conversion-02.sql.
|
||||
--
|
||||
-- Do not rename this file or any other of the utf8mb4-conversion-*.sql
|
||||
-- files unless you want to change PHP code, too.
|
||||
--
|
||||
-- This file here will be processed ignoring any exceptions caused by indexes
|
||||
-- to be dropped do not exist.
|
||||
--
|
||||
-- The file for step 2 will the be processed with reporting exceptions.
|
||||
--
|
||||
|
||||
ALTER TABLE `#__banners` DROP KEY `idx_metakey_prefix`;
|
||||
ALTER TABLE `#__banner_clients` DROP KEY `idx_metakey_prefix`;
|
||||
ALTER TABLE `#__categories` DROP KEY `idx_path`;
|
||||
ALTER TABLE `#__categories` DROP KEY `idx_alias`;
|
||||
ALTER TABLE `#__content` DROP KEY `idx_alias`;
|
||||
ALTER TABLE `#__content_types` DROP KEY `idx_alias`;
|
||||
ALTER TABLE `#__fields` DROP KEY `idx_context`;
|
||||
ALTER TABLE `#__fields_groups` DROP KEY `idx_context`;
|
||||
ALTER TABLE `#__fields_values` DROP KEY `idx_item_id`;
|
||||
ALTER TABLE `#__finder_links` DROP KEY `idx_title`;
|
||||
ALTER TABLE `#__menu` DROP KEY `idx_alias`;
|
||||
ALTER TABLE `#__menu` DROP KEY `idx_client_id_parent_id_alias_language`;
|
||||
ALTER TABLE `#__menu` DROP KEY `idx_path`;
|
||||
ALTER TABLE `#__redirect_links` DROP KEY `idx_old_url`;
|
||||
ALTER TABLE `#__tags` DROP KEY `idx_path`;
|
||||
ALTER TABLE `#__tags` DROP KEY `idx_alias`;
|
||||
ALTER TABLE `#__ucm_content` DROP KEY `idx_alias`;
|
||||
ALTER TABLE `#__ucm_content` DROP KEY `idx_title`;
|
||||
ALTER TABLE `#__ucm_content` DROP KEY `idx_content_type`;
|
||||
ALTER TABLE `#__users` DROP KEY `idx_name`;
|
||||
@ -0,0 +1,242 @@
|
||||
--
|
||||
-- Step 2 of the UTF-8 Multibyte (utf8mb4) conversion for MySQL
|
||||
--
|
||||
-- Enlarge some database columns to avoid data losses, then convert all tables
|
||||
-- to utf8mb4 or utf8, then set default character sets and collations for all
|
||||
-- tables, then add back indexes previosly dropped with step 1,
|
||||
-- utf8mb4-conversion-01.sql, but add them back with limited lenghts of
|
||||
-- columns.
|
||||
--
|
||||
-- Do not rename this file or any other of the utf8mb4-conversion-*.sql
|
||||
-- files unless you want to change PHP code, too.
|
||||
--
|
||||
-- IMPORTANT: When adding an index modification to this file for limiting the
|
||||
-- length by which one or more columns go into that index,
|
||||
--
|
||||
-- 1. remember to add the statement to drop the index to the file for step 1,
|
||||
-- utf8mb4-conversion-01.sql, and
|
||||
--
|
||||
-- 2. check if the index is created created or modified in some old schema
|
||||
-- update sql in an "ALTER TABLE" statement and limit the column length
|
||||
-- there, too ("CREATE TABLE" is ok, no need to modify those).
|
||||
--
|
||||
-- This file here will the be processed with reporting exceptions, in opposite
|
||||
-- to the file for step 1.
|
||||
--
|
||||
|
||||
--
|
||||
-- Step 2.1: Enlarge columns to avoid data loss on later conversion to utf8mb4
|
||||
--
|
||||
|
||||
ALTER TABLE `#__banners` MODIFY `alias` varchar(400) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__banners` MODIFY `metakey_prefix` varchar(400) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__categories` MODIFY `path` varchar(400) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__categories` MODIFY `alias` varchar(400) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__content_types` MODIFY `type_alias` varchar(400) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__finder_links` MODIFY `title` varchar(400) DEFAULT NULL;
|
||||
ALTER TABLE `#__contact_details` MODIFY `alias` varchar(400) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__content` MODIFY `alias` varchar(400) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__menu` MODIFY `alias` varchar(400) NOT NULL COMMENT 'The SEF alias of the menu item.';
|
||||
ALTER TABLE `#__newsfeeds` MODIFY `alias` varchar(400) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__tags` MODIFY `path` varchar(400) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__tags` MODIFY `alias` varchar(400) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__ucm_content` MODIFY `core_type_alias` varchar(400) NOT NULL DEFAULT '' COMMENT 'FK to the content types table';
|
||||
ALTER TABLE `#__ucm_content` MODIFY `core_title` varchar(400) NOT NULL;
|
||||
ALTER TABLE `#__ucm_content` MODIFY `core_alias` varchar(400) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__users` MODIFY `name` varchar(400) NOT NULL DEFAULT '';
|
||||
|
||||
--
|
||||
-- Step 2.2: Convert all tables to utf8mb4 chracter set with utf8mb4_unicode_ci collation
|
||||
-- except #__finder_xxx tables, those will have utf8mb4_general_ci collation.
|
||||
-- Note: The database driver for mysql will change utf8mb4 to utf8 if utf8mb4 is not supported
|
||||
--
|
||||
|
||||
ALTER TABLE `#__assets` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__associations` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__banners` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__banner_clients` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__banner_tracks` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__categories` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__contact_details` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__content` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__content_frontpage` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__content_rating` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__content_types` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__contentitem_tag_map` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__core_log_searches` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__extensions` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__fields` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__fields_categories` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__fields_groups` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__fields_values` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__finder_filters` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms0` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms1` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms2` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms3` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms4` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms5` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms6` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms7` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms8` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms9` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_termsa` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_termsb` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_termsc` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_termsd` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_termse` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_termsf` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_taxonomy` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_taxonomy_map` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_terms` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_terms_common` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_tokens` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_tokens_aggregate` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_types` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__languages` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__menu` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__menu_types` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__messages` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__messages_cfg` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__modules` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__modules_menu` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__newsfeeds` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__overrider` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__postinstall_messages` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__redirect_links` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__schemas` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__session` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__tags` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__template_styles` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__ucm_base` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__ucm_content` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__ucm_history` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__updates` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__update_sites` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__update_sites_extensions` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__usergroups` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__users` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__user_keys` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__user_notes` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__user_profiles` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__user_usergroup_map` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__utf8_conversion` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__viewlevels` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Step 2.3: Set collation to utf8mb4_bin for formerly utf8_bin collated columns
|
||||
-- and for the lang_code column of the languages table
|
||||
--
|
||||
|
||||
ALTER TABLE `#__banners` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__categories` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__contact_details` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__content` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__languages` MODIFY `lang_code` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL;
|
||||
ALTER TABLE `#__menu` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'The SEF alias of the menu item.';
|
||||
ALTER TABLE `#__newsfeeds` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__tags` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__ucm_content` MODIFY `core_alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';
|
||||
|
||||
--
|
||||
-- Step 2.4: Set default character set and collation for all tables
|
||||
--
|
||||
|
||||
ALTER TABLE `#__assets` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__associations` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__banners` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__banner_clients` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__banner_tracks` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__categories` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__contact_details` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__content` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__content_frontpage` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__content_rating` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__content_types` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__contentitem_tag_map` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__core_log_searches` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__extensions` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__fields` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__fields_categories` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__fields_groups` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__fields_values` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__finder_filters` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms0` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms1` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms2` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms3` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms4` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms5` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms6` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms7` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms8` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_terms9` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_termsa` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_termsb` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_termsc` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_termsd` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_termse` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_links_termsf` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_taxonomy` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_taxonomy_map` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_terms` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_terms_common` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_tokens` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_tokens_aggregate` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__finder_types` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
ALTER TABLE `#__languages` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__menu` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__menu_types` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__messages` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__messages_cfg` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__modules` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__modules_menu` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__newsfeeds` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__overrider` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__postinstall_messages` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__redirect_links` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__schemas` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__session` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__tags` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__template_styles` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__ucm_base` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__ucm_content` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__ucm_history` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__updates` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__update_sites` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__update_sites_extensions` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__usergroups` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__users` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__user_keys` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__user_notes` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__user_profiles` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__user_usergroup_map` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__utf8_conversion` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
ALTER TABLE `#__viewlevels` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Step 2.5: Limit indexes to first 100 so their max allowed lengths would not get exceeded with utf8mb4
|
||||
--
|
||||
|
||||
ALTER TABLE `#__banners` ADD KEY `idx_metakey_prefix` (`metakey_prefix`(100));
|
||||
ALTER TABLE `#__banner_clients` ADD KEY `idx_metakey_prefix` (`metakey_prefix`(100));
|
||||
ALTER TABLE `#__categories` ADD KEY `idx_path` (`path`(100));
|
||||
ALTER TABLE `#__categories` ADD KEY `idx_alias` (`alias`(100));
|
||||
ALTER TABLE `#__content` ADD KEY `idx_alias` (`alias`(191));
|
||||
ALTER TABLE `#__content_types` ADD KEY `idx_alias` (`type_alias`(100));
|
||||
ALTER TABLE `#__fields` ADD KEY `idx_context` (`context`(191));
|
||||
ALTER TABLE `#__fields_groups` ADD KEY `idx_context` (`context`(191));
|
||||
ALTER TABLE `#__fields_values` ADD KEY `idx_item_id` (`item_id`(191));
|
||||
ALTER TABLE `#__finder_links` ADD KEY `idx_title` (`title`(100));
|
||||
ALTER TABLE `#__menu` ADD KEY `idx_alias` (`alias`(100));
|
||||
ALTER TABLE `#__menu` ADD UNIQUE `idx_client_id_parent_id_alias_language` (`client_id`,`parent_id`,`alias`(100),`language`);
|
||||
ALTER TABLE `#__menu` ADD KEY `idx_path` (`path`(100));
|
||||
ALTER TABLE `#__redirect_links` ADD KEY `idx_old_url` (`old_url`(100));
|
||||
ALTER TABLE `#__tags` ADD KEY `idx_path` (`path`(100));
|
||||
ALTER TABLE `#__tags` ADD KEY `idx_alias` (`alias`(100));
|
||||
ALTER TABLE `#__ucm_content` ADD KEY `idx_alias` (`core_alias`(100));
|
||||
ALTER TABLE `#__ucm_content` ADD KEY `idx_title` (`core_title`(100));
|
||||
ALTER TABLE `#__ucm_content` ADD KEY `idx_content_type` (`core_type_alias`(100));
|
||||
ALTER TABLE `#__users` ADD KEY `idx_name` (`name`(100));
|
||||
@ -0,0 +1,9 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(437, 'plg_quickicon_joomlaupdate', 'plugin', 'joomlaupdate', 'quickicon', 0, 1, 1, 1, '', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(438, 'plg_quickicon_extensionupdate', 'plugin', 'extensionupdate', 'quickicon', 0, 1, 1, 1, '', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
|
||||
ALTER TABLE `#__update_sites` ADD COLUMN `last_check_timestamp` bigint(20) DEFAULT '0' AFTER `enabled`;
|
||||
|
||||
REPLACE INTO `#__update_sites` VALUES
|
||||
(1, 'Joomla Core', 'collection', 'https://update.joomla.org/core/list.xml', 1, 0),
|
||||
(2, 'Joomla Extension Directory', 'collection', 'https://update.joomla.org/jed/list.xml', 1, 0);
|
||||
@ -0,0 +1,7 @@
|
||||
CREATE TABLE IF NOT EXISTS `#__overrider` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',
|
||||
`constant` varchar(255) NOT NULL,
|
||||
`string` text NOT NULL,
|
||||
`file` varchar(255) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
@ -0,0 +1,20 @@
|
||||
CREATE TABLE IF NOT EXISTS `#__user_notes` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`catid` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`subject` varchar(100) NOT NULL DEFAULT '',
|
||||
`body` text NOT NULL,
|
||||
`state` tinyint(3) NOT NULL DEFAULT '0',
|
||||
`checked_out` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`created_user_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`modified_user_id` int(10) unsigned NOT NULL,
|
||||
`modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`review_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`publish_up` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`publish_down` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_user_id` (`user_id`),
|
||||
KEY `idx_category_id` (`catid`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
@ -0,0 +1,7 @@
|
||||
SELECT @old_params:= CONCAT(SUBSTRING_INDEX(SUBSTRING(params, LOCATE('"filters":', params)), '}}', 1), '}}') as filters
|
||||
FROM `#__extensions`
|
||||
WHERE name="com_content";
|
||||
|
||||
UPDATE `#__extensions`
|
||||
SET params=CONCAT('{',SUBSTRING(params, 2, CHAR_LENGTH(params)-2),IF(params='','',','),@old_params,'}')
|
||||
WHERE name="com_config";
|
||||
@ -0,0 +1,11 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(27, 'com_finder', 'component', 'com_finder', '', 1, 1, 0, 0, '', '{"show_description":"1","description_length":255,"allow_empty_query":"0","show_url":"1","show_advanced":"1","expand_advanced":"0","show_date_filters":"0","highlight_terms":"1","opensearch_name":"","opensearch_description":"","batch_size":"50","memory_table_limit":30000,"title_multiplier":"1.7","text_multiplier":"0.7","meta_multiplier":"1.2","path_multiplier":"2.0","misc_multiplier":"0.3","stemmer":"porter_en"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(439, 'plg_captcha_recaptcha', 'plugin', 'recaptcha', 'captcha', 0, 1, 1, 0, '{}', '{"public_key":"","private_key":"","theme":"clean"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(440, 'plg_system_highlight', 'plugin', 'highlight', 'system', 0, 1, 1, 0, '', '{}', '', '', 0, '0000-00-00 00:00:00', 7, 0),
|
||||
(441, 'plg_content_finder', 'plugin', 'finder', 'content', 0, 0, 1, 0, '{"legacy":false,"name":"plg_content_finder","type":"plugin","creationDate":"December 2011","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"1.7.0","description":"PLG_CONTENT_FINDER_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(442, 'plg_finder_categories', 'plugin', 'categories', 'finder', 0, 1, 1, 0, '', '{}', '', '', 0, '0000-00-00 00:00:00', 1, 0),
|
||||
(443, 'plg_finder_contacts', 'plugin', 'contacts', 'finder', 0, 1, 1, 0, '', '{}', '', '', 0, '0000-00-00 00:00:00', 2, 0),
|
||||
(444, 'plg_finder_content', 'plugin', 'content', 'finder', 0, 1, 1, 0, '', '{}', '', '', 0, '0000-00-00 00:00:00', 3, 0),
|
||||
(445, 'plg_finder_newsfeeds', 'plugin', 'newsfeeds', 'finder', 0, 1, 1, 0, '', '{}', '', '', 0, '0000-00-00 00:00:00', 4, 0),
|
||||
(446, 'plg_finder_weblinks', 'plugin', 'weblinks', 'finder', 0, 1, 1, 0, '', '{}', '', '', 0, '0000-00-00 00:00:00', 5, 0),
|
||||
(223, 'mod_finder', 'module', 'mod_finder', '', 0, 1, 0, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
@ -0,0 +1,244 @@
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_terms0` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_terms1` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_terms2` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_terms3` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_terms4` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_terms5` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_terms6` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_terms7` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_terms8` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_terms9` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_termsa` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_termsb` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_termsc` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_termsd` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_termse` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links_termsf` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`weight` float unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`term_id`),
|
||||
KEY `idx_term_weight` (`term_id`,`weight`),
|
||||
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_taxonomy` (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`parent_id` int(10) unsigned NOT NULL default '0',
|
||||
`title` varchar(255) NOT NULL,
|
||||
`state` tinyint(1) unsigned NOT NULL default '1',
|
||||
`access` tinyint(1) unsigned NOT NULL default '0',
|
||||
`ordering` tinyint(1) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `parent_id` (`parent_id`),
|
||||
KEY `state` (`state`),
|
||||
KEY `ordering` (`ordering`),
|
||||
KEY `access` (`access`),
|
||||
KEY `idx_parent_published` (`parent_id`,`state`,`access`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_taxonomy_map` (
|
||||
`link_id` int(10) unsigned NOT NULL,
|
||||
`node_id` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`link_id`,`node_id`),
|
||||
KEY `link_id` (`link_id`),
|
||||
KEY `node_id` (`node_id`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_terms` (
|
||||
`term_id` int(10) unsigned NOT NULL auto_increment,
|
||||
`term` varchar(75) NOT NULL,
|
||||
`stem` varchar(75) NOT NULL,
|
||||
`common` tinyint(1) unsigned NOT NULL default '0',
|
||||
`phrase` tinyint(1) unsigned NOT NULL default '0',
|
||||
`weight` float unsigned NOT NULL default '0',
|
||||
`soundex` varchar(75) NOT NULL,
|
||||
`links` int(10) NOT NULL default '0',
|
||||
PRIMARY KEY (`term_id`),
|
||||
UNIQUE KEY `idx_term` (`term`),
|
||||
KEY `idx_term_phrase` (`term`,`phrase`),
|
||||
KEY `idx_stem_phrase` (`stem`,`phrase`),
|
||||
KEY `idx_soundex_phrase` (`soundex`,`phrase`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_terms_common` (
|
||||
`term` varchar(75) NOT NULL,
|
||||
`language` varchar(3) NOT NULL,
|
||||
KEY `idx_word_lang` (`term`,`language`),
|
||||
KEY `idx_lang` (`language`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_tokens` (
|
||||
`term` varchar(75) NOT NULL,
|
||||
`stem` varchar(75) NOT NULL,
|
||||
`common` tinyint(1) unsigned NOT NULL default '0',
|
||||
`phrase` tinyint(1) unsigned NOT NULL default '0',
|
||||
`weight` float unsigned NOT NULL default '1',
|
||||
`context` tinyint(1) unsigned NOT NULL default '2',
|
||||
KEY `idx_word` (`term`),
|
||||
KEY `idx_context` (`context`)
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_tokens_aggregate` (
|
||||
`term_id` int(10) unsigned NOT NULL,
|
||||
`map_suffix` char(1) NOT NULL,
|
||||
`term` varchar(75) NOT NULL,
|
||||
`stem` varchar(75) NOT NULL,
|
||||
`common` tinyint(1) unsigned NOT NULL default '0',
|
||||
`phrase` tinyint(1) unsigned NOT NULL default '0',
|
||||
`term_weight` float unsigned NOT NULL,
|
||||
`context` tinyint(1) unsigned NOT NULL default '2',
|
||||
`context_weight` float unsigned NOT NULL,
|
||||
`total_weight` float unsigned NOT NULL,
|
||||
KEY `token` (`term`),
|
||||
KEY `keyword_id` (`term_id`)
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_types` (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`title` varchar(100) NOT NULL,
|
||||
`mime` varchar(100) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `title` (`title`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
@ -0,0 +1,123 @@
|
||||
REPLACE INTO `#__finder_taxonomy` (`id`, `parent_id`, `title`, `state`, `access`, `ordering`) VALUES
|
||||
(1, 0, 'ROOT', 0, 0, 0);
|
||||
|
||||
REPLACE INTO `#__finder_terms_common` (`term`, `language`) VALUES
|
||||
('a', 'en'),
|
||||
('about', 'en'),
|
||||
('after', 'en'),
|
||||
('ago', 'en'),
|
||||
('all', 'en'),
|
||||
('am', 'en'),
|
||||
('an', 'en'),
|
||||
('and', 'en'),
|
||||
('ani', 'en'),
|
||||
('any', 'en'),
|
||||
('are', 'en'),
|
||||
('aren''t', 'en'),
|
||||
('as', 'en'),
|
||||
('at', 'en'),
|
||||
('be', 'en'),
|
||||
('but', 'en'),
|
||||
('by', 'en'),
|
||||
('for', 'en'),
|
||||
('from', 'en'),
|
||||
('get', 'en'),
|
||||
('go', 'en'),
|
||||
('how', 'en'),
|
||||
('if', 'en'),
|
||||
('in', 'en'),
|
||||
('into', 'en'),
|
||||
('is', 'en'),
|
||||
('isn''t', 'en'),
|
||||
('it', 'en'),
|
||||
('its', 'en'),
|
||||
('me', 'en'),
|
||||
('more', 'en'),
|
||||
('most', 'en'),
|
||||
('must', 'en'),
|
||||
('my', 'en'),
|
||||
('new', 'en'),
|
||||
('no', 'en'),
|
||||
('none', 'en'),
|
||||
('not', 'en'),
|
||||
('noth', 'en'),
|
||||
('nothing', 'en'),
|
||||
('of', 'en'),
|
||||
('off', 'en'),
|
||||
('often', 'en'),
|
||||
('old', 'en'),
|
||||
('on', 'en'),
|
||||
('onc', 'en'),
|
||||
('once', 'en'),
|
||||
('onli', 'en'),
|
||||
('only', 'en'),
|
||||
('or', 'en'),
|
||||
('other', 'en'),
|
||||
('our', 'en'),
|
||||
('ours', 'en'),
|
||||
('out', 'en'),
|
||||
('over', 'en'),
|
||||
('page', 'en'),
|
||||
('she', 'en'),
|
||||
('should', 'en'),
|
||||
('small', 'en'),
|
||||
('so', 'en'),
|
||||
('some', 'en'),
|
||||
('than', 'en'),
|
||||
('thank', 'en'),
|
||||
('that', 'en'),
|
||||
('the', 'en'),
|
||||
('their', 'en'),
|
||||
('theirs', 'en'),
|
||||
('them', 'en'),
|
||||
('then', 'en'),
|
||||
('there', 'en'),
|
||||
('these', 'en'),
|
||||
('they', 'en'),
|
||||
('this', 'en'),
|
||||
('those', 'en'),
|
||||
('thus', 'en'),
|
||||
('time', 'en'),
|
||||
('times', 'en'),
|
||||
('to', 'en'),
|
||||
('too', 'en'),
|
||||
('true', 'en'),
|
||||
('under', 'en'),
|
||||
('until', 'en'),
|
||||
('up', 'en'),
|
||||
('upon', 'en'),
|
||||
('use', 'en'),
|
||||
('user', 'en'),
|
||||
('users', 'en'),
|
||||
('veri', 'en'),
|
||||
('version', 'en'),
|
||||
('very', 'en'),
|
||||
('via', 'en'),
|
||||
('want', 'en'),
|
||||
('was', 'en'),
|
||||
('way', 'en'),
|
||||
('were', 'en'),
|
||||
('what', 'en'),
|
||||
('when', 'en'),
|
||||
('where', 'en'),
|
||||
('whi', 'en'),
|
||||
('which', 'en'),
|
||||
('who', 'en'),
|
||||
('whom', 'en'),
|
||||
('whose', 'en'),
|
||||
('why', 'en'),
|
||||
('wide', 'en'),
|
||||
('will', 'en'),
|
||||
('with', 'en'),
|
||||
('within', 'en'),
|
||||
('without', 'en'),
|
||||
('would', 'en'),
|
||||
('yes', 'en'),
|
||||
('yet', 'en'),
|
||||
('you', 'en'),
|
||||
('your', 'en'),
|
||||
('yours', 'en');
|
||||
|
||||
|
||||
INSERT INTO `#__menu` (`menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `ordering`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`) VALUES
|
||||
('menu', 'com_finder', 'Smart Search', '', 'Smart Search', 'index.php?option=com_finder', 'component', 0, 1, 1, 27, 0, 0, '0000-00-00 00:00:00', 0, 0, 'class:finder', 0, '', 41, 42, 0, '*', 1);
|
||||
@ -0,0 +1,47 @@
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_filters` (
|
||||
`filter_id` int(10) unsigned NOT NULL auto_increment,
|
||||
`title` varchar(255) NOT NULL,
|
||||
`alias` varchar(255) NOT NULL,
|
||||
`state` tinyint(1) NOT NULL default '1',
|
||||
`created` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`created_by` int(10) unsigned NOT NULL,
|
||||
`created_by_alias` varchar(255) NOT NULL,
|
||||
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`modified_by` int(10) unsigned NOT NULL default '0',
|
||||
`checked_out` int(10) unsigned NOT NULL default '0',
|
||||
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`map_count` int(10) unsigned NOT NULL default '0',
|
||||
`data` text NOT NULL,
|
||||
`params` mediumtext,
|
||||
PRIMARY KEY (`filter_id`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__finder_links` (
|
||||
`link_id` int(10) unsigned NOT NULL auto_increment,
|
||||
`url` varchar(255) NOT NULL,
|
||||
`route` varchar(255) NOT NULL,
|
||||
`title` varchar(255) default NULL,
|
||||
`description` varchar(255) default NULL,
|
||||
`indexdate` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`md5sum` varchar(32) default NULL,
|
||||
`published` tinyint(1) NOT NULL default '1',
|
||||
`state` int(5) default '1',
|
||||
`access` int(5) default '0',
|
||||
`language` varchar(8) NOT NULL,
|
||||
`publish_start_date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`publish_end_date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`start_date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`end_date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`list_price` double unsigned NOT NULL default '0',
|
||||
`sale_price` double unsigned NOT NULL default '0',
|
||||
`type_id` int(11) NOT NULL,
|
||||
`object` mediumblob NOT NULL,
|
||||
PRIMARY KEY (`link_id`),
|
||||
KEY `idx_type` (`type_id`),
|
||||
KEY `idx_title` (`title`),
|
||||
KEY `idx_md5` (`md5sum`),
|
||||
KEY `idx_url` (`url`(75)),
|
||||
KEY `idx_published_list` (`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`list_price`),
|
||||
KEY `idx_published_sale` (`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`sale_price`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
@ -0,0 +1,8 @@
|
||||
ALTER TABLE `#__menu` DROP INDEX `idx_client_id_parent_id_alias`;
|
||||
|
||||
--
|
||||
-- The following statment had to be modified for utf8mb4 in Joomla! 3.5.1, changing
|
||||
-- `alias` to `alias`(100)
|
||||
--
|
||||
|
||||
ALTER TABLE `#__menu` ADD UNIQUE `idx_client_id_parent_id_alias_language` ( `client_id` , `parent_id` , `alias`(100) , `language` );
|
||||
@ -0,0 +1 @@
|
||||
ALTER TABLE `#__updates` ADD COLUMN `infourl` text NOT NULL AFTER `detailsurl`;
|
||||
@ -0,0 +1,2 @@
|
||||
ALTER TABLE `#__languages` CHANGE `sitename` `sitename` VARCHAR( 1024 ) NOT NULL DEFAULT '';
|
||||
|
||||
@ -0,0 +1,8 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(314, 'mod_version', 'module', 'mod_version', '', 1, 1, 1, 0, '{"legacy":false,"name":"mod_version","type":"module","creationDate":"January 2012","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"2.5.0","description":"MOD_VERSION_XML_DESCRIPTION","group":""}', '{"format":"short","product":"1","cache":"0"}', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
|
||||
INSERT INTO `#__modules` (`title`, `note`, `content`, `ordering`, `position`, `checked_out`, `checked_out_time`, `publish_up`, `publish_down`, `published`, `module`, `access`, `showtitle`, `params`, `client_id`, `language`) VALUES
|
||||
('Joomla Version', '', '', 1, 'footer', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, 'mod_version', 3, 1, '{"format":"short","product":"1","layout":"_:default","moduleclass_sfx":"","cache":"0"}', 1, '*');
|
||||
|
||||
INSERT INTO `#__modules_menu` (`moduleid`, `menuid`) VALUES
|
||||
(LAST_INSERT_ID(), 0);
|
||||
@ -0,0 +1 @@
|
||||
# Dummy SQL file to set schema version
|
||||
@ -0,0 +1 @@
|
||||
# Dummy SQL file to set schema version
|
||||
@ -0,0 +1,5 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(28, 'com_joomlaupdate', 'component', 'com_joomlaupdate', '', 1, 1, 0, 1, '{"legacy":false,"name":"com_joomlaupdate","type":"component","creationDate":"February 2012","author":"Joomla! Project","copyright":"(C) 2005 - 2018 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"2.5.2","description":"COM_JOOMLAUPDATE_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
|
||||
INSERT INTO `#__menu` (`menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `ordering`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`) VALUES
|
||||
('menu', 'com_joomlaupdate', 'Joomla! Update', '', 'Joomla! Update', 'index.php?option=com_joomlaupdate', 'component', 0, 1, 1, 28, 0, 0, '0000-00-00 00:00:00', 0, 0, 'class:joomlaupdate', 0, '', 41, 42, 0, '*', 1);
|
||||
@ -0,0 +1,7 @@
|
||||
ALTER TABLE `#__languages` ADD COLUMN `access` integer unsigned NOT NULL default 0 AFTER `published`;
|
||||
|
||||
ALTER TABLE `#__languages` ADD INDEX `idx_access` (`access`);
|
||||
|
||||
UPDATE `#__categories` SET `extension` = 'com_users.notes' WHERE `extension` = 'com_users';
|
||||
|
||||
UPDATE `#__extensions` SET `enabled` = '1' WHERE `protected` = '1' AND `type` <> 'plugin';
|
||||
@ -0,0 +1,3 @@
|
||||
ALTER TABLE `#__redirect_links` ADD COLUMN `hits` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `comment`;
|
||||
ALTER TABLE `#__users` ADD COLUMN `lastResetTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Date of last password reset';
|
||||
ALTER TABLE `#__users` ADD COLUMN `resetCount` int(11) NOT NULL DEFAULT '0' COMMENT 'Count of password resets since lastResetTime';
|
||||
@ -0,0 +1 @@
|
||||
# Placeholder file for database changes for version 2.5.6
|
||||
@ -0,0 +1 @@
|
||||
INSERT INTO `#__update_sites` (`name`, `type`, `location`, `enabled`, `last_check_timestamp`) VALUES('Accredited Joomla! Translations','collection','https://update.joomla.org/language/translationlist.xml',1,0);INSERT INTO `#__update_sites_extensions` (`update_site_id`, `extension_id`) VALUES(LAST_INSERT_ID(),600);UPDATE `#__assets` SET name=REPLACE( name, 'com_user.notes.category','com_users.category' );UPDATE `#__categories` SET extension=REPLACE( extension, 'com_user.notes.category','com_users.category' );
|
||||
@ -0,0 +1,147 @@
|
||||
ALTER TABLE `#__users` DROP INDEX `usertype`;
|
||||
ALTER TABLE `#__session` DROP INDEX `whosonline`;
|
||||
|
||||
DROP TABLE IF EXISTS `#__update_categories`;
|
||||
|
||||
ALTER TABLE `#__contact_details` DROP `imagepos`;
|
||||
ALTER TABLE `#__content` DROP COLUMN `title_alias`;
|
||||
ALTER TABLE `#__content` DROP COLUMN `sectionid`;
|
||||
ALTER TABLE `#__content` DROP COLUMN `mask`;
|
||||
ALTER TABLE `#__content` DROP COLUMN `parentid`;
|
||||
ALTER TABLE `#__newsfeeds` DROP COLUMN `filename`;
|
||||
ALTER TABLE `#__menu` DROP COLUMN `ordering`;
|
||||
ALTER TABLE `#__session` DROP COLUMN `usertype`;
|
||||
ALTER TABLE `#__users` DROP COLUMN `usertype`;
|
||||
ALTER TABLE `#__updates` DROP COLUMN `categoryid`;
|
||||
|
||||
UPDATE `#__extensions` SET protected = 0 WHERE
|
||||
`name` = 'com_search' OR
|
||||
`name` = 'mod_articles_archive' OR
|
||||
`name` = 'mod_articles_latest' OR
|
||||
`name` = 'mod_banners' OR
|
||||
`name` = 'mod_feed' OR
|
||||
`name` = 'mod_footer' OR
|
||||
`name` = 'mod_users_latest' OR
|
||||
`name` = 'mod_articles_category' OR
|
||||
`name` = 'mod_articles_categories' OR
|
||||
`name` = 'plg_content_pagebreak' OR
|
||||
`name` = 'plg_content_pagenavigation' OR
|
||||
`name` = 'plg_content_vote' OR
|
||||
`name` = 'plg_editors_tinymce' OR
|
||||
`name` = 'plg_system_p3p' OR
|
||||
`name` = 'plg_user_contactcreator' OR
|
||||
`name` = 'plg_user_profile';
|
||||
|
||||
DELETE FROM `#__extensions` WHERE `extension_id` = 800;
|
||||
|
||||
ALTER TABLE `#__assets` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__associations` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__banners` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__banner_clients` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__banner_tracks` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__categories` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__contact_details` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__content` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__content_frontpage` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__content_rating` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__core_log_searches` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__extensions` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_filters` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_terms0` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_terms1` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_terms2` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_terms3` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_terms4` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_terms5` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_terms6` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_terms7` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_terms8` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_terms9` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_termsa` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_termsb` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_termsc` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_termsd` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_termse` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_links_termsf` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_taxonomy` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_taxonomy_map` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_terms` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_terms_common` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__finder_types` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__languages` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__menu` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__menu_types` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__messages` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__messages_cfg` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__modules` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__modules_menu` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__newsfeeds` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__overrider` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__redirect_links` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__schemas` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__session` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__template_styles` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__updates` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__update_sites` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__update_sites_extensions` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__users` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__usergroups` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__user_notes` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__user_profiles` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__user_usergroup_map` ENGINE=InnoDB;
|
||||
ALTER TABLE `#__viewlevels` ENGINE=InnoDB;
|
||||
|
||||
ALTER TABLE `#__newsfeeds` ADD COLUMN `description` text NOT NULL;
|
||||
ALTER TABLE `#__newsfeeds` ADD COLUMN `version` int(10) unsigned NOT NULL DEFAULT '1';
|
||||
ALTER TABLE `#__newsfeeds` ADD COLUMN `hits` int(10) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `#__newsfeeds` ADD COLUMN `images` text NOT NULL;
|
||||
ALTER TABLE `#__contact_details` ADD COLUMN `version` int(10) unsigned NOT NULL DEFAULT '1';
|
||||
ALTER TABLE `#__contact_details` ADD COLUMN `hits` int(10) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `#__banners` ADD COLUMN `created_by` int(10) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `#__banners` ADD COLUMN `created_by_alias` varchar(255) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__banners` ADD COLUMN `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
|
||||
ALTER TABLE `#__banners` ADD COLUMN `modified_by` int(10) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `#__banners` ADD COLUMN `version` int(10) unsigned NOT NULL DEFAULT '1';
|
||||
ALTER TABLE `#__categories` ADD COLUMN `version` int(10) unsigned NOT NULL DEFAULT '1';
|
||||
UPDATE `#__assets` SET name=REPLACE( name, 'com_user.notes.category','com_users.category' );
|
||||
UPDATE `#__categories` SET extension=REPLACE( extension, 'com_user.notes.category','com_users.category' );
|
||||
|
||||
ALTER TABLE `#__finder_terms` ADD COLUMN `language` char(3) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__finder_tokens` ADD COLUMN `language` char(3) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__finder_tokens_aggregate` ADD COLUMN `language` char(3) NOT NULL DEFAULT '';
|
||||
|
||||
INSERT INTO `#__extensions`
|
||||
(`name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`)
|
||||
VALUES
|
||||
('isis', 'template', 'isis', '', 1, 1, 1, 0, '{"name":"isis","type":"template","creationDate":"3\\/30\\/2012","author":"Kyle Ledbetter","copyright":"Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"","version":"1.0","description":"TPL_ISIS_XML_DESCRIPTION","group":""}', '{"templateColor":"","logoFile":""}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
('protostar', 'template', 'protostar', '', 0, 1, 1, 0, '{"name":"protostar","type":"template","creationDate":"4\\/30\\/2012","author":"Kyle Ledbetter","copyright":"Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"","version":"1.0","description":"TPL_PROTOSTAR_XML_DESCRIPTION","group":""}', '{"templateColor":"","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
('beez3', 'template', 'beez3', '', 0, 1, 1, 0, '{"legacy":false,"name":"beez3","type":"template","creationDate":"25 November 2009","author":"Angie Radtke","copyright":"Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.","authorEmail":"a.radtke@derauftritt.de","authorUrl":"http:\\/\\/www.der-auftritt.de","version":"1.6.0","description":"TPL_BEEZ3_XML_DESCRIPTION","group":""}', '{"wrapperSmall":"53","wrapperLarge":"72","sitetitle":"","sitedescription":"","navposition":"center","templatecolor":"nature"}', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
|
||||
INSERT INTO `#__template_styles` (`template`, `client_id`, `home`, `title`, `params`) VALUES
|
||||
('protostar', 0, '0', 'protostar - Default', '{"templateColor":"","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"}'),
|
||||
('isis', 1, '1', 'isis - Default', '{"templateColor":"","logoFile":""}'),
|
||||
('beez3', 0, '0', 'beez3 - Default', '{"wrapperSmall":53,"wrapperLarge":72,"logo":"","sitetitle":"","sitedescription":"","navposition":"center","bootstrap":"","templatecolor":"nature","headerImage":"","backgroundcolor":"#eee"}');
|
||||
|
||||
UPDATE `#__template_styles`
|
||||
SET home = (CASE WHEN (SELECT count FROM (SELECT count(`id`) AS count
|
||||
FROM `#__template_styles`
|
||||
WHERE home = '1'
|
||||
AND client_id = 1) as c) = 0
|
||||
THEN '1'
|
||||
ELSE '0'
|
||||
END)
|
||||
WHERE template = 'isis'
|
||||
AND home != '1';
|
||||
|
||||
UPDATE `#__template_styles`
|
||||
SET home = 0
|
||||
WHERE template = 'bluestork';
|
||||
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(315, 'mod_stats_admin', 'module', 'mod_stats_admin', '', 1, 1, 1, 0, '{"name":"mod_stats_admin","type":"module","creationDate":"September 2012","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_STATS_XML_DESCRIPTION","group":""}', '{"serverinfo":"0","siteinfo":"0","counter":"0","increase":"0","cache":"1","cache_time":"900","cachemode":"static"}', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
|
||||
UPDATE `#__update_sites`
|
||||
SET location = 'https://update.joomla.org/language/translationlist_3.xml'
|
||||
WHERE location = 'https://update.joomla.org/language/translationlist.xml'
|
||||
AND name = 'Accredited Joomla! Translations';
|
||||
@ -0,0 +1 @@
|
||||
# Placeholder file for database changes for version 3.0.1
|
||||
@ -0,0 +1 @@
|
||||
# Placeholder file for database changes for version 3.0.2
|
||||
@ -0,0 +1 @@
|
||||
ALTER TABLE `#__associations` CHANGE `id` `id` INT(11) NOT NULL COMMENT 'A reference to the associated item.';
|
||||
@ -0,0 +1,165 @@
|
||||
--
|
||||
-- Table structure for table `#__content_types`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__content_types` (
|
||||
`type_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`type_title` varchar(255) NOT NULL DEFAULT '',
|
||||
`type_alias` varchar(255) NOT NULL DEFAULT '',
|
||||
`table` varchar(255) NOT NULL DEFAULT '',
|
||||
`rules` text NOT NULL,
|
||||
`field_mappings` text NOT NULL,
|
||||
`router` varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`type_id`),
|
||||
KEY `idx_alias` (`type_alias`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10000;
|
||||
|
||||
--
|
||||
-- Dumping data for table `#__content_types`
|
||||
--
|
||||
|
||||
INSERT INTO `#__content_types` (`type_id`, `type_title`, `type_alias`, `table`, `rules`, `field_mappings`,`router`) VALUES
|
||||
(1, 'Article', 'com_content.article', '{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"attribs", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"asset_id"}], "special": [{"fulltext":"fulltext"}]}','ContentHelperRoute::getArticleRoute'),
|
||||
(2, 'Contact', 'com_contact.contact', '{"special":{"dbtable":"#__contact_details","key":"id","type":"Contact","prefix":"ContactTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":[{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"image", "core_urls":"webpage", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}], "special": [{"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}]}','ContactHelperRoute::getContactRoute'),
|
||||
(3, 'Newsfeed', 'com_newsfeeds.newsfeed', '{"special":{"dbtable":"#__newsfeeds","key":"id","type":"Newsfeed","prefix":"NewsfeedsTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":[{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"link", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}], "special": [{"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}]}','NewsfeedsHelperRoute::getNewsfeedRoute'),
|
||||
(4, 'User', 'com_users.user', '{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":[{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerdate","core_modified_time":"lastvisitDate","core_body":"null", "core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null", "core_params":"params", "core_featured":"null", "core_metadata":"null", "core_language":"null", "core_images":"null", "core_urls":"null", "core_version":"null", "core_ordering":"null", "core_metakey":"null", "core_metadesc":"null", "core_catid":"null", "core_xreference":"null", "asset_id":"null"}], "special": [{}]}','UsersHelperRoute::getUserRoute'),
|
||||
(5, 'Article Category', 'com_content.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}], "special": [{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}]}','ContentHelperRoute::getCategoryRoute'),
|
||||
(6, 'Contact Category', 'com_contact.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}], "special": [{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}]}','ContactHelperRoute::getCategoryRoute'),
|
||||
(7, 'Newsfeeds Category', 'com_newsfeeds.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}], "special": [{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}]}','NewsfeedsHelperRoute::getCategoryRoute'),
|
||||
(8, 'Tag', 'com_tags.tag', '{"special":{"dbtable":"#__tags","key":"tag_id","type":"Tag","prefix":"TagsTable","config":"array()"},"common":{"dbtable":"#__core_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":[{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"null", "core_xreference":"null", "asset_id":"null"}], "special": [{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}]}','TagsHelperRoute::getTagRoute');
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__contentitem_tag_map` (
|
||||
`type_alias` varchar(255) NOT NULL DEFAULT '',
|
||||
`core_content_id` int(10) unsigned NOT NULL COMMENT 'PK from the core content table',
|
||||
`content_item_id` int(11) NOT NULL COMMENT 'PK from the content type table',
|
||||
`tag_id` int(10) unsigned NOT NULL COMMENT 'PK from the tag table',
|
||||
`tag_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date of most recent save for this tag-item',
|
||||
`type_id` mediumint(8) NOT NULL COMMENT 'PK from the content_type table',
|
||||
UNIQUE KEY `uc_ItemnameTagid` (`type_id`,`content_item_id`,`tag_id`),
|
||||
KEY `idx_tag_type` (`tag_id`,`type_id`),
|
||||
KEY `idx_date_id` (`tag_date`,`tag_id`),
|
||||
KEY `idx_tag` (`tag_id`),
|
||||
KEY `idx_type` (`type_id`),
|
||||
KEY `idx_core_content_id` (`core_content_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Maps items from content tables to tags';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__tags` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`parent_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`lft` int(11) NOT NULL DEFAULT '0',
|
||||
`rgt` int(11) NOT NULL DEFAULT '0',
|
||||
`level` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`path` varchar(255) NOT NULL DEFAULT '',
|
||||
`title` varchar(255) NOT NULL,
|
||||
`alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
|
||||
`note` varchar(255) NOT NULL DEFAULT '',
|
||||
`description` mediumtext NOT NULL,
|
||||
`published` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`checked_out` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`access` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`params` text NOT NULL,
|
||||
`metadesc` varchar(1024) NOT NULL COMMENT 'The meta description for the page.',
|
||||
`metakey` varchar(1024) NOT NULL COMMENT 'The meta keywords for the page.',
|
||||
`metadata` varchar(2048) NOT NULL COMMENT 'JSON encoded metadata properties.',
|
||||
`created_user_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`created_by_alias` varchar(255) NOT NULL DEFAULT '',
|
||||
`modified_user_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`images` text NOT NULL,
|
||||
`urls` text NOT NULL,
|
||||
`hits` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`language` char(7) NOT NULL,
|
||||
`version` int(10) unsigned NOT NULL DEFAULT '1',
|
||||
`publish_up` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`publish_down` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `tag_idx` (`published`,`access`),
|
||||
KEY `idx_access` (`access`),
|
||||
KEY `idx_checkout` (`checked_out`),
|
||||
KEY `idx_path` (`path`),
|
||||
KEY `idx_left_right` (`lft`,`rgt`),
|
||||
KEY `idx_alias` (`alias`),
|
||||
KEY `idx_language` (`language`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `#__tags`
|
||||
--
|
||||
|
||||
INSERT INTO `#__tags` (`id`, `parent_id`, `lft`, `rgt`, `level`, `path`, `title`, `alias`, `note`, `description`, `published`, `checked_out`, `checked_out_time`, `access`, `params`, `metadesc`, `metakey`, `metadata`, `created_user_id`, `created_time`,`created_by_alias`, `modified_user_id`, `modified_time`, `images`, `urls`, `hits`, `language`, `version`)
|
||||
VALUES (1, 0, 0, 1, 0, '', 'ROOT', 'root', '', '', 1, 0, '0000-00-00 00:00:00', 1, '{}', '', '', '', '', '2011-01-01 00:00:01','', 0, '0000-00-00 00:00:00', '', '', 0, '*', 1);
|
||||
|
||||
--
|
||||
-- Table structure for table `#__ucm_base`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__ucm_base` (
|
||||
`ucm_id` int(10) unsigned NOT NULL,
|
||||
`ucm_item_id` int(10) NOT NULL,
|
||||
`ucm_type_id` int(11) NOT NULL,
|
||||
`ucm_language_id` int(11) NOT NULL,
|
||||
PRIMARY KEY (`ucm_id`),
|
||||
KEY `idx_ucm_item_id` (`ucm_item_id`),
|
||||
KEY `idx_ucm_type_id` (`ucm_type_id`),
|
||||
KEY `idx_ucm_language_id` (`ucm_language_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__ucm_content` (
|
||||
`core_content_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`core_type_alias` varchar(255) NOT NULL DEFAULT '' COMMENT 'FK to the content types table',
|
||||
`core_title` varchar(255) NOT NULL,
|
||||
`core_alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
|
||||
`core_body` mediumtext NOT NULL,
|
||||
`core_state` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`core_checked_out_time` varchar(255) NOT NULL DEFAULT '',
|
||||
`core_checked_out_user_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`core_access` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`core_params` text NOT NULL,
|
||||
`core_featured` tinyint(4) unsigned NOT NULL DEFAULT '0',
|
||||
`core_metadata` varchar(2048) NOT NULL COMMENT 'JSON encoded metadata properties.',
|
||||
`core_created_user_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`core_created_by_alias` varchar(255) NOT NULL DEFAULT '',
|
||||
`core_created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`core_modified_user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Most recent user that modified',
|
||||
`core_modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`core_language` char(7) NOT NULL,
|
||||
`core_publish_up` datetime NOT NULL,
|
||||
`core_publish_down` datetime NOT NULL,
|
||||
`core_content_item_id` int(10) unsigned COMMENT 'ID from the individual type table',
|
||||
`asset_id` int(10) unsigned COMMENT 'FK to the #__assets table.',
|
||||
`core_images` text NOT NULL,
|
||||
`core_urls` text NOT NULL,
|
||||
`core_hits` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`core_version` int(10) unsigned NOT NULL DEFAULT '1',
|
||||
`core_ordering` int(11) NOT NULL DEFAULT '0',
|
||||
`core_metakey` text NOT NULL,
|
||||
`core_metadesc` text NOT NULL,
|
||||
`core_catid` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`core_xreference` varchar(50) NOT NULL COMMENT 'A reference to enable linkages to external data sets.',
|
||||
`core_type_id` int(10) unsigned,
|
||||
PRIMARY KEY (`core_content_id`),
|
||||
KEY `tag_idx` (`core_state`,`core_access`),
|
||||
KEY `idx_access` (`core_access`),
|
||||
KEY `idx_alias` (`core_alias`),
|
||||
KEY `idx_language` (`core_language`),
|
||||
KEY `idx_title` (`core_title`),
|
||||
KEY `idx_modified_time` (`core_modified_time`),
|
||||
KEY `idx_created_time` (`core_created_time`),
|
||||
KEY `idx_content_type` (`core_type_alias`),
|
||||
KEY `idx_core_modified_user_id` (`core_modified_user_id`),
|
||||
KEY `idx_core_checked_out_user_id` (`core_checked_out_user_id`),
|
||||
KEY `idx_core_created_user_id` (`core_created_user_id`),
|
||||
KEY `idx_core_type_id` (`core_type_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Contains core content data in name spaced fields';
|
||||
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(29, 'com_tags', 'component', 'com_tags', '', 1, 1, 1, 1, '{"legacy":false,"name":"com_tags","type":"component","creationDate":"March 2013","author":"Joomla! Project","copyright":"(C) 2005 - 2018 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_TAGS_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(316, 'mod_tags_popular', 'module', 'mod_tags_popular', '', 0, 1, 1, 0, '{"name":"mod_tags_popular","type":"module","creationDate":"January 2013","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.0","description":"MOD_TAGS_POPULAR_XML_DESCRIPTION","group":""}', '{"maximum":"5","timeframe":"alltime","owncache":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(317, 'mod_tags_similar', 'module', 'mod_tags_similar', '', 0, 1, 1, 0, '{"name":"mod_tags_similar","type":"module","creationDate":"January 2013","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.0","description":"MOD_TAGS_SIMILAR_XML_DESCRIPTION","group":""}', '{"maximum":"5","matchtype":"any","owncache":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(447, 'plg_finder_tags', 'plugin', 'tags', 'finder', 0, 1, 1, 0, '{"name":"plg_finder_tags","type":"plugin","creationDate":"February 2013","author":"Joomla! Project","copyright":"(C) 2005 - 2018 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_FINDER_TAGS_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
|
||||
INSERT INTO `#__menu` (`menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`) VALUES
|
||||
('main', 'com_tags', 'Tags', '', 'Tags', 'index.php?option=com_tags', 'component', 0, 1, 1, 29, 0, '0000-00-00 00:00:00', 0, 1, 'class:tags', 0, '', 45, 46, 0, '', 1);
|
||||
@ -0,0 +1 @@
|
||||
# Placeholder file for database changes for version 3.1.1
|
||||
@ -0,0 +1,16 @@
|
||||
UPDATE `#__content_types` SET `table` = '{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}' WHERE `type_title` = 'Article';
|
||||
UPDATE `#__content_types` SET `table` = '{"special":{"dbtable":"#__contact_details","key":"id","type":"Contact","prefix":"ContactTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}' WHERE `type_title` = 'Contact';
|
||||
UPDATE `#__content_types` SET `table` = '{"special":{"dbtable":"#__newsfeeds","key":"id","type":"Newsfeed","prefix":"NewsfeedsTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}' WHERE `type_title` = 'Newsfeed';
|
||||
UPDATE `#__content_types` SET `table` = '{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}' WHERE `type_title` = 'User';
|
||||
UPDATE `#__content_types` SET `table` = '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}' WHERE `type_title` = 'Article Category';
|
||||
UPDATE `#__content_types` SET `table` = '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}' WHERE `type_title` = 'Contact Category';
|
||||
UPDATE `#__content_types` SET `table` = '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}' WHERE `type_title` = 'Newsfeeds Category';
|
||||
UPDATE `#__content_types` SET `table` = '{"special":{"dbtable":"#__tags","key":"tag_id","type":"Tag","prefix":"TagsTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}' WHERE `type_title` = 'Tag';
|
||||
UPDATE `#__content_types` SET `field_mappings` = '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"attribs", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"asset_id"}, "special": {"fulltext":"fulltext"}}' WHERE `type_title` = 'Article';
|
||||
UPDATE `#__content_types` SET `field_mappings` = '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"image", "core_urls":"webpage", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}, "special": {"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}}' WHERE `type_title` = 'Contact';
|
||||
UPDATE `#__content_types` SET `field_mappings` = '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"link", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}, "special": {"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}}' WHERE `type_title` = 'Newsfeed';
|
||||
UPDATE `#__content_types` SET `field_mappings` = '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerdate","core_modified_time":"lastvisitDate","core_body":"null", "core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null", "core_params":"params", "core_featured":"null", "core_metadata":"null", "core_language":"null", "core_images":"null", "core_urls":"null", "core_version":"null", "core_ordering":"null", "core_metakey":"null", "core_metadesc":"null", "core_catid":"null", "core_xreference":"null", "asset_id":"null"}, "special": {}}' WHERE `type_title` = 'User';
|
||||
UPDATE `#__content_types` SET `field_mappings` = '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}' WHERE `type_title` = 'Article Category';
|
||||
UPDATE `#__content_types` SET `field_mappings` = '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}' WHERE `type_title` = 'Contact Category';
|
||||
UPDATE `#__content_types` SET `field_mappings` = '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}' WHERE `type_title` = 'Newsfeeds Category';
|
||||
UPDATE `#__content_types` SET `field_mappings` = '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"null", "core_xreference":"null", "asset_id":"null"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}}' WHERE `type_title` = 'Tag';
|
||||
@ -0,0 +1 @@
|
||||
# Placeholder file for database changes for version 3.1.3
|
||||
@ -0,0 +1,2 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(104, 'IDNA Convert', 'library', 'idna_convert', '', 0, 1, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
@ -0,0 +1 @@
|
||||
# Placeholder file for database changes for version 3.1.5
|
||||
@ -0,0 +1,93 @@
|
||||
/* Core 3.2 schema updates */
|
||||
|
||||
ALTER TABLE `#__content_types` ADD COLUMN `content_history_options` VARCHAR(5120) NOT NULL COMMENT 'JSON string for com_contenthistory options';
|
||||
|
||||
UPDATE `#__content_types` SET `content_history_options` = '{"formFile":"administrator\\/components\\/com_content\\/models\\/forms\\/article.xml", "hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ]}' WHERE `type_alias` = 'com_content.article';
|
||||
UPDATE `#__content_types` SET `content_history_options` = '{"formFile":"administrator\\/components\\/com_contact\\/models\\/forms\\/contact.xml","hideFields":["default_con","checked_out","checked_out_time","version","xreference"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"], "displayLookup":[ {"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"} ] }' WHERE `type_alias` = 'com_contact.contact';
|
||||
UPDATE `#__content_types` SET `content_history_options` = '{"formFile":"administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}' WHERE `type_alias` IN ('com_content.category', 'com_contact.category', 'com_newsfeeds.category');
|
||||
UPDATE `#__content_types` SET `content_history_options` = '{"formFile":"administrator\\/components\\/com_newsfeeds\\/models\\/forms\\/newsfeed.xml","hideFields":["asset_id","checked_out","checked_out_time","version"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "hits"],"convertToInt":["publish_up", "publish_down", "featured", "ordering"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}' WHERE `type_alias` = 'com_newsfeeds.newsfeed';
|
||||
UPDATE `#__content_types` SET `content_history_options` = '{"formFile":"administrator\\/components\\/com_tags\\/models\\/forms\\/tag.xml", "hideFields":["checked_out","checked_out_time","version", "lft", "rgt", "level", "path", "urls", "publish_up", "publish_down"],"ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}' WHERE `type_alias` = 'com_tags.tag';
|
||||
|
||||
INSERT INTO `#__content_types` (`type_title`, `type_alias`, `table`, `rules`, `field_mappings`, `router`, `content_history_options`) VALUES
|
||||
('Banner', 'com_banners.banner', '{"special":{"dbtable":"#__banners","key":"id","type":"Banner","prefix":"BannersTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"null","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"link", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"null", "asset_id":"null"}, "special":{"imptotal":"imptotal", "impmade":"impmade", "clicks":"clicks", "clickurl":"clickurl", "custombannercode":"custombannercode", "cid":"cid", "purchase_type":"purchase_type", "track_impressions":"track_impressions", "track_clicks":"track_clicks"}}', '', '{"formFile":"administrator\\/components\\/com_banners\\/models\\/forms\\/banner.xml", "hideFields":["checked_out","checked_out_time","version", "reset"],"ignoreChanges":["modified_by", "modified", "checked_out", "checked_out_time", "version", "imptotal", "impmade", "reset"], "convertToInt":["publish_up", "publish_down", "ordering"], "displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"cid","targetTable":"#__banner_clients","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"created_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"modified_by","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'),
|
||||
('Banners Category', 'com_banners.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', '', '{"formFile":"administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"], "convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}'),
|
||||
('Banner Client', 'com_banners.client', '{"special":{"dbtable":"#__banner_clients","key":"id","type":"Client","prefix":"BannersTable"}}', '', '', '', '{"formFile":"administrator\\/components\\/com_banners\\/models\\/forms\\/client.xml", "hideFields":["checked_out","checked_out_time"], "ignoreChanges":["checked_out", "checked_out_time"], "convertToInt":[], "displayLookup":[]}'),
|
||||
('User Notes', 'com_users.note', '{"special":{"dbtable":"#__user_notes","key":"id","type":"Note","prefix":"UsersTable"}}', '', '', '', '{"formFile":"administrator\\/components\\/com_users\\/models\\/forms\\/note.xml", "hideFields":["checked_out","checked_out_time", "publish_up", "publish_down"],"ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time"], "convertToInt":["publish_up", "publish_down"],"displayLookup":[{"sourceColumn":"catid","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}, {"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}]}'),
|
||||
('User Notes Category', 'com_users.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special":{"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', '', '{"formFile":"administrator\\/components\\/com_categories\\/models\\/forms\\/category.xml", "hideFields":["checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"], "convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"}, {"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}');
|
||||
|
||||
UPDATE `#__extensions` SET `params` = '{"template_positions_display":"0","upload_limit":"2","image_formats":"gif,bmp,jpg,jpeg,png","source_formats":"txt,less,ini,xml,js,php,css","font_formats":"woff,ttf,otf","compressed_formats":"zip"}' WHERE `extension_id` = 20;
|
||||
UPDATE `#__extensions` SET `params` = '{"lineNumbers":"1","lineWrapping":"1","matchTags":"1","matchBrackets":"1","marker-gutter":"1","autoCloseTags":"1","autoCloseBrackets":"1","autoFocus":"1","theme":"default","tabmode":"indent"}' WHERE `extension_id` = 410;
|
||||
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(30, 'com_contenthistory', 'component', 'com_contenthistory', '', 1, 1, 1, 0, '{"name":"com_contenthistory","type":"component","creationDate":"May 2013","author":"Joomla! Project","copyright":"(C) 2005 - 2018 Open Source Matters. All rights reserved.\\n\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.2.0","description":"COM_CONTENTHISTORY_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(31, 'com_ajax', 'component', 'com_ajax', '', 1, 1, 1, 0, '{"name":"com_ajax","type":"component","creationDate":"August 2013","author":"Joomla! Project","copyright":"(C) 2005 - 2018 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.2.0","description":"COM_AJAX_DESC","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(32, 'com_postinstall', 'component', 'com_postinstall', '', 1, 1, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(105, 'FOF', 'library', 'fof', '', 0, 1, 1, 1, '{"legacy":false,"name":"FOF","type":"library","creationDate":"2013-10-08","author":"Nicholas K. Dionysopoulos \/ Akeeba Ltd","copyright":"(C)2011-2013 Nicholas K. Dionysopoulos","authorEmail":"nicholas@akeebabackup.com","authorUrl":"https:\/\/www.akeebabackup.com","version":"2.1.rc4","description":"Framework-on-Framework (FOF) - A rapid component development framework for Joomla!","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(448, 'plg_twofactorauth_totp', 'plugin', 'totp', 'twofactorauth', 0, 0, 1, 0, '{"name":"plg_twofactorauth_totp","type":"plugin","creationDate":"August 2013","author":"Joomla! Project","copyright":"(C) 2005 - 2018 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.2.0","description":"PLG_TWOFACTORAUTH_TOTP_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(449, 'plg_authentication_cookie', 'plugin', 'cookie', 'authentication', 0, 1, 1, 0, '{"name":"plg_authentication_cookie","type":"plugin","creationDate":"July 2013","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_AUTH_COOKIE_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(450, 'plg_twofactorauth_yubikey', 'plugin', 'yubikey', 'twofactorauth', 0, 0, 1, 0, '{"name":"plg_twofactorauth_yubikey","type":"plugin","creationDate":"Se[ptember 2013","author":"Joomla! Project","copyright":"(C) 2005 - 2018 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.2.0","description":"PLG_TWOFACTORAUTH_YUBIKEY_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
|
||||
INSERT INTO `#__menu` (`menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`) VALUES
|
||||
('main', 'com_postinstall', 'Post-installation messages', '', 'Post-installation messages', 'index.php?option=com_postinstall', 'component', 0, 1, 1, 32, 0, '0000-00-00 00:00:00', 0, 1, 'class:postinstall', 0, '', 45, 46, 0, '*', 1);
|
||||
|
||||
ALTER TABLE `#__modules` ADD COLUMN `asset_id` INT(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'FK to the #__assets table.' AFTER `id`;
|
||||
|
||||
CREATE TABLE `#__postinstall_messages` (
|
||||
`postinstall_message_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`extension_id` bigint(20) NOT NULL DEFAULT '700' COMMENT 'FK to #__extensions',
|
||||
`title_key` varchar(255) NOT NULL DEFAULT '' COMMENT 'Lang key for the title',
|
||||
`description_key` varchar(255) NOT NULL DEFAULT '' COMMENT 'Lang key for description',
|
||||
`action_key` varchar(255) NOT NULL DEFAULT '',
|
||||
`language_extension` varchar(255) NOT NULL DEFAULT 'com_postinstall' COMMENT 'Extension holding lang keys',
|
||||
`language_client_id` tinyint(3) NOT NULL DEFAULT '1',
|
||||
`type` varchar(10) NOT NULL DEFAULT 'link' COMMENT 'Message type - message, link, action',
|
||||
`action_file` varchar(255) DEFAULT '' COMMENT 'RAD URI to the PHP file containing action method',
|
||||
`action` varchar(255) DEFAULT '' COMMENT 'Action method name or URL',
|
||||
`condition_file` varchar(255) DEFAULT NULL COMMENT 'RAD URI to file holding display condition method',
|
||||
`condition_method` varchar(255) DEFAULT NULL COMMENT 'Display condition method, must return boolean',
|
||||
`version_introduced` varchar(50) NOT NULL DEFAULT '3.2.0' COMMENT 'Version when this message was introduced',
|
||||
`enabled` tinyint(3) NOT NULL DEFAULT '1',
|
||||
PRIMARY KEY (`postinstall_message_id`)
|
||||
) DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) VALUES
|
||||
(700, 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_TITLE', 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_BODY', 'PLG_TWOFACTORAUTH_TOTP_POSTINSTALL_ACTION', 'plg_twofactorauth_totp', 1, 'action', 'site://plugins/twofactorauth/totp/postinstall/actions.php', 'twofactorauth_postinstall_action', 'site://plugins/twofactorauth/totp/postinstall/actions.php', 'twofactorauth_postinstall_condition', '3.2.0', 1),
|
||||
(700, 'COM_CPANEL_MSG_EACCELERATOR_TITLE', 'COM_CPANEL_MSG_EACCELERATOR_BODY', 'COM_CPANEL_MSG_EACCELERATOR_BUTTON', 'com_cpanel', 1, 'action', 'admin://components/com_admin/postinstall/eaccelerator.php', 'admin_postinstall_eaccelerator_action', 'admin://components/com_admin/postinstall/eaccelerator.php', 'admin_postinstall_eaccelerator_condition', '3.2.0', 1);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__ucm_history` (
|
||||
`version_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`ucm_item_id` int(10) unsigned NOT NULL,
|
||||
`ucm_type_id` int(10) unsigned NOT NULL,
|
||||
`version_note` varchar(255) NOT NULL DEFAULT '' COMMENT 'Optional version name',
|
||||
`save_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`editor_user_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`character_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Number of characters in this version.',
|
||||
`sha1_hash` varchar(50) NOT NULL DEFAULT '' COMMENT 'SHA1 hash of the version_data column.',
|
||||
`version_data` mediumtext NOT NULL COMMENT 'json-encoded string of version data',
|
||||
`keep_forever` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0=auto delete; 1=keep',
|
||||
PRIMARY KEY (`version_id`),
|
||||
KEY `idx_ucm_item_id` (`ucm_type_id`,`ucm_item_id`),
|
||||
KEY `idx_save_date` (`save_date`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE `#__users` ADD COLUMN `otpKey` varchar(1000) NOT NULL DEFAULT '' COMMENT 'Two factor authentication encrypted keys';
|
||||
ALTER TABLE `#__users` ADD COLUMN `otep` varchar(1000) NOT NULL DEFAULT '' COMMENT 'One time emergency passwords';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__user_keys` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user_id` varchar(255) NOT NULL,
|
||||
`token` varchar(255) NOT NULL,
|
||||
`series` varchar(255) NOT NULL,
|
||||
`invalid` tinyint(4) NOT NULL,
|
||||
`time` varchar(200) NOT NULL,
|
||||
`uastring` varchar(255) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `series` (`series`),
|
||||
UNIQUE KEY `series_2` (`series`),
|
||||
UNIQUE KEY `series_3` (`series`),
|
||||
KEY `user_id` (`user_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
/* Update bad params for two cpanel modules */
|
||||
|
||||
UPDATE `#__modules` SET `params` = REPLACE(`params`, '"bootstrap_size":"1"', '"bootstrap_size":"0"') WHERE `id` IN (3,4);
|
||||
@ -0,0 +1 @@
|
||||
DELETE FROM `#__postinstall_messages` WHERE `title_key` = 'PLG_USER_JOOMLA_POSTINSTALL_STRONGPW_TITLE';
|
||||
@ -0,0 +1,2 @@
|
||||
ALTER TABLE `#__update_sites` ADD COLUMN `extra_query` VARCHAR(1000) DEFAULT '';
|
||||
ALTER TABLE `#__updates` ADD COLUMN `extra_query` VARCHAR(1000) DEFAULT '';
|
||||
@ -0,0 +1 @@
|
||||
UPDATE `#__menu` SET `component_id` = (SELECT `extension_id` FROM `#__extensions` WHERE `element` = 'com_joomlaupdate') WHERE `link` = 'index.php?option=com_joomlaupdate';
|
||||
@ -0,0 +1,2 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(403, 'plg_content_contact', 'plugin', 'contact', 'content', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 1, 0);
|
||||
@ -0,0 +1,2 @@
|
||||
INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) VALUES
|
||||
(700, 'COM_CPANEL_MSG_PHPVERSION_TITLE', 'COM_CPANEL_MSG_PHPVERSION_BODY', '', 'com_cpanel', 1, 'message', '', '', 'admin://components/com_admin/postinstall/phpversion.php', 'admin_postinstall_phpversion_condition', '3.2.2', 1);
|
||||
@ -0,0 +1,2 @@
|
||||
/* Update updates version length */
|
||||
ALTER TABLE `#__updates` MODIFY `version` varchar(32) DEFAULT '';
|
||||
@ -0,0 +1,2 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(106, 'PHPass', 'library', 'phpass', '', 0, 1, 1, 1, '{"legacy":false,"name":"PHPass","type":"library","creationDate":"2004-2006","author":"Solar Designer","authorEmail":"solar@openwall.com","authorUrl":"http:\/\/www.openwall.com/phpass","version":"0.3","description":"LIB_PHPASS_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
@ -0,0 +1 @@
|
||||
UPDATE `#__extensions` ext1, `#__extensions` ext2 SET ext1.`params` = ext2.`params` WHERE ext1.`name` = 'plg_authentication_cookie' AND ext2.`name` = 'plg_system_remember';
|
||||
@ -0,0 +1 @@
|
||||
ALTER TABLE `#__users` ADD COLUMN `requireReset` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Require user to reset password on next login' AFTER `otep`;
|
||||
@ -0,0 +1,3 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(451, 'plg_search_tags', 'plugin', 'tags', 'search', 0, 0, 1, 0, '', '{"search_limit":"50","show_tagged_items":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
|
||||
@ -0,0 +1 @@
|
||||
ALTER TABLE `#__user_profiles` CHANGE `profile_value` `profile_value` TEXT NOT NULL;
|
||||
@ -0,0 +1,5 @@
|
||||
INSERT INTO `#__update_sites` (`name`, `type`, `location`, `enabled`) VALUES
|
||||
('Joomla! Update Component Update Site', 'extension', 'https://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1);
|
||||
|
||||
INSERT INTO `#__update_sites_extensions` (`update_site_id`, `extension_id`) VALUES
|
||||
((SELECT `update_site_id` FROM `#__update_sites` WHERE `name` = 'Joomla! Update Component Update Site'), (SELECT `extension_id` FROM `#__extensions` WHERE `name` = 'com_joomlaupdate'));
|
||||
@ -0,0 +1,3 @@
|
||||
INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`)
|
||||
VALUES
|
||||
(700, 'COM_CPANEL_MSG_HTACCESS_TITLE', 'COM_CPANEL_MSG_HTACCESS_BODY', '', 'com_cpanel', 1, 'message', '', '', 'admin://components/com_admin/postinstall/htaccess.php', 'admin_postinstall_htaccess_condition', '3.4.0', 1);
|
||||
@ -0,0 +1,8 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(801, 'weblinks', 'package', 'pkg_weblinks', '', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
|
||||
INSERT INTO `#__update_sites` (`name`, `type`, `location`, `enabled`) VALUES
|
||||
('Weblinks Update Site', 'extension', 'https://raw.githubusercontent.com/joomla-extensions/weblinks/master/manifest.xml', 1);
|
||||
|
||||
INSERT INTO `#__update_sites_extensions` (`update_site_id`, `extension_id`) VALUES
|
||||
((SELECT `update_site_id` FROM `#__update_sites` WHERE `name` = 'Weblinks Update Site'), 801);
|
||||
@ -0,0 +1,6 @@
|
||||
ALTER TABLE `#__redirect_links` ADD COLUMN `header` smallint(3) NOT NULL DEFAULT 301;
|
||||
--
|
||||
-- The following statement has to be disabled because it conflicts with
|
||||
-- a later change added with Joomla! 3.5.0 for long URLs in this table
|
||||
--
|
||||
-- ALTER TABLE `#__redirect_links` MODIFY `new_url` varchar(255);
|
||||
@ -0,0 +1 @@
|
||||
DELETE FROM `#__extensions` WHERE `extension_id` = 100;
|
||||
@ -0,0 +1 @@
|
||||
UPDATE `#__extensions` SET `protected` = '0' WHERE `name` = 'plg_editors-xtd_article' AND `type` = "plugin" AND `element` = "article" AND `folder` = "editors-xtd";
|
||||
@ -0,0 +1,2 @@
|
||||
INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) VALUES
|
||||
(700, 'COM_CPANEL_MSG_ROBOTS_TITLE', 'COM_CPANEL_MSG_ROBOTS_BODY', '', 'com_cpanel', 1, 'message', '', '', '', '', '3.3.0', 1);
|
||||
@ -0,0 +1,2 @@
|
||||
INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) VALUES
|
||||
(700, 'COM_CPANEL_MSG_LANGUAGEACCESS340_TITLE', 'COM_CPANEL_MSG_LANGUAGEACCESS340_BODY', '', 'com_cpanel', 1, 'message', '', '', 'admin://components/com_admin/postinstall/languageaccess340.php', 'admin_postinstall_languageaccess340_condition', '3.4.1', 1);
|
||||
@ -0,0 +1,2 @@
|
||||
ALTER TABLE `#__session` MODIFY `session_id` varchar(191) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `#__user_keys` MODIFY `series` varchar(191) NOT NULL;
|
||||
@ -0,0 +1,2 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(453, 'plg_editors-xtd_module', 'plugin', 'module', 'editors-xtd', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
@ -0,0 +1,2 @@
|
||||
ALTER TABLE `#__contentitem_tag_map` DROP INDEX `idx_tag`;
|
||||
ALTER TABLE `#__contentitem_tag_map` DROP INDEX `idx_type`;
|
||||
@ -0,0 +1 @@
|
||||
UPDATE `#__menu` SET `title` = 'com_contact_contacts' WHERE `client_id` = 1 AND `level` = 2 AND `title` = 'com_contact';
|
||||
@ -0,0 +1,4 @@
|
||||
DELETE FROM `#__menu` WHERE `title` = 'com_messages_read' AND `client_id` = 1;
|
||||
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(452, 'plg_system_updatenotification', 'plugin', 'updatenotification', 'system', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
@ -0,0 +1,6 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(454, 'plg_system_stats', 'plugin', 'stats', 'system', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
|
||||
INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`)
|
||||
VALUES
|
||||
(700, 'COM_CPANEL_MSG_STATS_COLLECTION_TITLE', 'COM_CPANEL_MSG_STATS_COLLECTION_BODY', '', 'com_cpanel', 1, 'message', '', '', 'admin://components/com_admin/postinstall/statscollection.php', 'admin_postinstall_statscollection_condition', '3.5.0', 1);
|
||||
@ -0,0 +1,14 @@
|
||||
--
|
||||
-- Create a table for UTF-8 Multibyte (utf8mb4) conversion for MySQL in
|
||||
-- order to check if the conversion has been performed and if not show a
|
||||
-- message about database problem in the database schema view.
|
||||
--
|
||||
-- The value of `converted` can be 0 (not converted yet after update),
|
||||
-- 1 (converted to utf8), or 2 (converted to utf8mb4).
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__utf8_conversion` (
|
||||
`converted` tinyint(4) NOT NULL DEFAULT 0
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
INSERT INTO `#__utf8_conversion` (`converted`) VALUES (0);
|
||||
@ -0,0 +1,12 @@
|
||||
ALTER TABLE `#__redirect_links` DROP INDEX `idx_link_old`;
|
||||
ALTER TABLE `#__redirect_links` MODIFY `old_url` VARCHAR(2048) NOT NULL;
|
||||
|
||||
--
|
||||
-- The following statement had to be modified for 3.6.0 by removing the
|
||||
-- NOT NULL, which was wrong because not consistent with new install.
|
||||
-- See also 3.6.0-2016-04-06.sql for updating 3.5.0 or 3.5.1
|
||||
--
|
||||
ALTER TABLE `#__redirect_links` MODIFY `new_url` VARCHAR(2048);
|
||||
|
||||
ALTER TABLE `#__redirect_links` MODIFY `referer` VARCHAR(2048) NOT NULL;
|
||||
ALTER TABLE `#__redirect_links` ADD INDEX `idx_old_url` (`old_url`(100));
|
||||
@ -0,0 +1,5 @@
|
||||
--
|
||||
-- Make #__user_keys.user_id fit to #__users.username
|
||||
--
|
||||
|
||||
ALTER TABLE `#__user_keys` MODIFY `user_id` varchar(150) NOT NULL;
|
||||
@ -0,0 +1,7 @@
|
||||
--
|
||||
-- Reset UTF-8 Multibyte (utf8mb4) or UTF-8 conversion status
|
||||
-- to force a new conversion when updating from version 3.5.0
|
||||
--
|
||||
|
||||
UPDATE `#__utf8_conversion` SET `converted` = 0
|
||||
WHERE (SELECT COUNT(*) FROM `#__schemas` WHERE `extension_id`=700 AND `version_id` LIKE '3.5.0%') = 1;
|
||||
@ -0,0 +1,8 @@
|
||||
-- Rename update site names
|
||||
UPDATE `#__update_sites` SET `name` = 'Joomla! Core' WHERE `name` = 'Joomla Core' AND `type` = 'collection';
|
||||
UPDATE `#__update_sites` SET `name` = 'Joomla! Extension Directory' WHERE `name` = 'Joomla Extension Directory' AND `type` = 'collection';
|
||||
|
||||
UPDATE `#__update_sites` SET `location` = 'https://update.joomla.org/core/list.xml' WHERE `name` = 'Joomla! Core' AND `type` = 'collection';
|
||||
UPDATE `#__update_sites` SET `location` = 'https://update.joomla.org/jed/list.xml' WHERE `name` = 'Joomla! Extension Directory' AND `type` = 'collection';
|
||||
UPDATE `#__update_sites` SET `location` = 'https://update.joomla.org/language/translationlist_3.xml' WHERE `name` = 'Accredited Joomla! Translations' AND `type` = 'collection';
|
||||
UPDATE `#__update_sites` SET `location` = 'https://update.joomla.org/core/extensions/com_joomlaupdate.xml' WHERE `name` = 'Joomla! Update Component Update Site' AND `type` = 'extension';
|
||||
@ -0,0 +1 @@
|
||||
ALTER TABLE `#__redirect_links` MODIFY `new_url` VARCHAR(2048);
|
||||
@ -0,0 +1,14 @@
|
||||
-- Insert the missing en-GB package extension.
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`)
|
||||
VALUES (802, 'English (United Kingdom)', 'package', 'pkg_en-GB', '', 0, 1, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
|
||||
-- Change update site extension id to the new extension.
|
||||
UPDATE `#__update_sites_extensions`
|
||||
SET `extension_id` = 802
|
||||
WHERE `update_site_id` IN (
|
||||
SELECT `update_site_id`
|
||||
FROM `#__update_sites`
|
||||
WHERE `name` = 'Accredited Joomla! Translations'
|
||||
AND `type` = 'collection'
|
||||
)
|
||||
AND `extension_id` = 600;
|
||||
@ -0,0 +1,5 @@
|
||||
--
|
||||
-- Add ACL check for to #__menu_types
|
||||
--
|
||||
|
||||
ALTER TABLE `#__menu_types` ADD COLUMN `asset_id` INT(11) NOT NULL AFTER `id`;
|
||||
@ -0,0 +1,5 @@
|
||||
DELETE FROM `#__extensions` WHERE `type` = 'library' AND `element` = 'simplepie';
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(455, 'plg_installer_packageinstaller', 'plugin', 'packageinstaller', 'installer', 0, 1, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 1, 0),
|
||||
(456, 'plg_installer_folderinstaller', 'plugin', 'folderinstaller', 'installer', 0, 1, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 2, 0),
|
||||
(457, 'plg_installer_urlinstaller', 'plugin', 'urlinstaller', 'installer', 0, 1, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 3, 0);
|
||||
@ -0,0 +1 @@
|
||||
UPDATE `#__extensions` SET `protected` = 1, `enabled` = 1 WHERE `name` = 'com_ajax';
|
||||
@ -0,0 +1,5 @@
|
||||
--
|
||||
-- Add ACL check for to #__languages
|
||||
--
|
||||
|
||||
ALTER TABLE `#__languages` ADD COLUMN `asset_id` INT(11) NOT NULL AFTER `lang_id`;
|
||||
@ -0,0 +1,5 @@
|
||||
--
|
||||
-- Increasing size of the URL field in com_newsfeeds
|
||||
--
|
||||
|
||||
ALTER TABLE `#__newsfeeds` MODIFY `link` VARCHAR(2048) NOT NULL;
|
||||
@ -0,0 +1,2 @@
|
||||
INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) VALUES
|
||||
(700, 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME', 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_BODY', 'PLG_SYSTEM_UPDATENOTIFICATION_POSTINSTALL_UPDATECACHETIME_ACTION', 'plg_system_updatenotification', 1, 'action', 'site://plugins/system/updatenotification/postinstall/updatecachetime.php', 'updatecachetime_postinstall_action', 'site://plugins/system/updatenotification/postinstall/updatecachetime.php', 'updatecachetime_postinstall_condition', '3.6.3', 1);
|
||||
@ -0,0 +1,2 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(458, 'plg_quickicon_phpversioncheck', 'plugin', 'phpversioncheck', 'quickicon', 0, 1, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
@ -0,0 +1,2 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(459, 'plg_editors-xtd_menu', 'plugin', 'menu', 'editors-xtd', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
@ -0,0 +1,93 @@
|
||||
CREATE TABLE IF NOT EXISTS `#__fields` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`asset_id` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`context` varchar(255) NOT NULL DEFAULT '',
|
||||
`group_id` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`title` varchar(255) NOT NULL DEFAULT '',
|
||||
`name` varchar(255) NOT NULL DEFAULT '',
|
||||
`label` varchar(255) NOT NULL DEFAULT '',
|
||||
`default_value` text NOT NULL DEFAULT '',
|
||||
`type` varchar(255) NOT NULL DEFAULT 'text',
|
||||
`note` varchar(255) NOT NULL DEFAULT '',
|
||||
`description` text NOT NULL,
|
||||
`state` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`required` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`checked_out` int(11) NOT NULL DEFAULT '0',
|
||||
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`ordering` int(11) NOT NULL DEFAULT '0',
|
||||
`params` text NOT NULL,
|
||||
`fieldparams` text NOT NULL,
|
||||
`language` char(7) NOT NULL DEFAULT '',
|
||||
`created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`created_user_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`modified_by` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`access` int(11) NOT NULL DEFAULT '1',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_checkout` (`checked_out`),
|
||||
KEY `idx_state` (`state`),
|
||||
KEY `idx_created_user_id` (`created_user_id`),
|
||||
KEY `idx_access` (`access`),
|
||||
KEY `idx_context` (`context`(191)),
|
||||
KEY `idx_language` (`language`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__fields_categories` (
|
||||
`field_id` int(11) NOT NULL DEFAULT 0,
|
||||
`category_id` int(11) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`field_id`,`category_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__fields_groups` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`asset_id` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`context` varchar(255) NOT NULL DEFAULT '',
|
||||
`title` varchar(255) NOT NULL DEFAULT '',
|
||||
`note` varchar(255) NOT NULL DEFAULT '',
|
||||
`description` text NOT NULL,
|
||||
`state` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`checked_out` int(11) NOT NULL DEFAULT '0',
|
||||
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`ordering` int(11) NOT NULL DEFAULT '0',
|
||||
`language` char(7) NOT NULL DEFAULT '',
|
||||
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`created_by` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`modified_by` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`access` int(11) NOT NULL DEFAULT '1',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_checkout` (`checked_out`),
|
||||
KEY `idx_state` (`state`),
|
||||
KEY `idx_created_by` (`created_by`),
|
||||
KEY `idx_access` (`access`),
|
||||
KEY `idx_context` (`context`(191)),
|
||||
KEY `idx_language` (`language`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `#__fields_values` (
|
||||
`field_id` int(10) unsigned NOT NULL,
|
||||
`item_id` varchar(255) NOT NULL COMMENT 'Allow references to items which have strings as ids, eg. none db systems.',
|
||||
`value` text NOT NULL DEFAULT '',
|
||||
KEY `idx_field_id` (`field_id`),
|
||||
KEY `idx_item_id` (`item_id`(191))
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(33, 'com_fields', 'component', 'com_fields', '', 1, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(461, 'plg_system_fields', 'plugin', 'fields', 'system', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(462, 'plg_fields_calendar', 'plugin', 'calendar', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(463, 'plg_fields_checkboxes', 'plugin', 'checkboxes', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(464, 'plg_fields_color', 'plugin', 'color', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(465, 'plg_fields_editor', 'plugin', 'editor', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(466, 'plg_fields_imagelist', 'plugin', 'imagelist', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(467, 'plg_fields_integer', 'plugin', 'integer', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(468, 'plg_fields_list', 'plugin', 'list', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(469, 'plg_fields_media', 'plugin', 'media', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(470, 'plg_fields_radio', 'plugin', 'radio', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(471, 'plg_fields_sql', 'plugin', 'sql', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(472, 'plg_fields_text', 'plugin', 'text', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(473, 'plg_fields_textarea', 'plugin', 'textarea', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(474, 'plg_fields_url', 'plugin', 'url', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(475, 'plg_fields_user', 'plugin', 'user', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
|
||||
(476, 'plg_fields_usergrouplist', 'plugin', 'usergrouplist', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
@ -0,0 +1,3 @@
|
||||
INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`)
|
||||
VALUES
|
||||
(700, 'COM_CPANEL_MSG_JOOMLA40_PRE_CHECKS_TITLE', 'COM_CPANEL_MSG_JOOMLA40_PRE_CHECKS_BODY', '', 'com_cpanel', 1, 'message', '', '', 'admin://components/com_admin/postinstall/joomla40checks.php', 'admin_postinstall_joomla40checks_condition', '3.7.0', 1);
|
||||
@ -0,0 +1,2 @@
|
||||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
|
||||
(460, 'plg_editors-xtd_contact', 'plugin', 'contact', 'editors-xtd', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
|
||||
@ -0,0 +1 @@
|
||||
ALTER TABLE `#__session` MODIFY `client_id` tinyint(3) unsigned DEFAULT NULL;
|
||||
@ -0,0 +1 @@
|
||||
ALTER TABLE `#__extensions` CHANGE `enabled` `enabled` TINYINT(3) NOT NULL DEFAULT '0';
|
||||
@ -0,0 +1,3 @@
|
||||
ALTER TABLE `#__menu_types` ADD COLUMN `client_id` int(11) NOT NULL DEFAULT 0;
|
||||
|
||||
UPDATE `#__menu` SET `published` = 1 WHERE `menutype` = 'main' OR `menutype` = 'menu';
|
||||
@ -0,0 +1,2 @@
|
||||
-- Replace language image UNIQUE index for a normal INDEX.
|
||||
ALTER TABLE `#__languages` DROP INDEX `idx_image`;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user