first commit
This commit is contained in:
commit
10eb3340ad
340
LICENSE.txt
Normal file
340
LICENSE.txt
Normal file
@ -0,0 +1,340 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 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 Library 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 Library General
|
||||
Public License instead of this License.
|
71
README.txt
Normal file
71
README.txt
Normal file
@ -0,0 +1,71 @@
|
||||
1- What is this?
|
||||
* This is a Joomla! installation/upgrade package to version 3.x
|
||||
* Joomla! Official site: http://www.joomla.org
|
||||
* Joomla 3.1 version history - http://docs.joomla.org/Joomla_3.1_version_history
|
||||
* Detailed changes in the Changelog: http://joomlacode.org/gf/project/joomla/scmsvn/?action=browse&path=/development/trunk/administrator/&view=log
|
||||
|
||||
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 OpenSource 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 it.
|
||||
More details here: http://www.joomla.org/about-joomla.html
|
||||
|
||||
3- Is Joomla for you?
|
||||
* Joomla is the right solution for any content web project: http://docs.joomla.org/Joomla_Is_it_for_me%3F
|
||||
* See Features - http://www.joomla.org/core-features.html
|
||||
* Try out our online demo: http://demo.joomla.org/
|
||||
|
||||
4- How to find a Joomla! translation?
|
||||
* Repository of accredited language packs: http://community.joomla.org/translations.html
|
||||
* Directory of non-accredited language packs (see above for accredited): http://extensions.joomla.org/extensions/languages/translations-for-joomla
|
||||
|
||||
5- Learn Joomla!
|
||||
* Read Getting Started with Joomla to find out the basics: http://docs.joomla.org/Getting_Started_with_Joomla!
|
||||
* Before installing, read the beginners guide: http://docs.joomla.org/Beginners
|
||||
|
||||
6- What are the limits of Joomla?
|
||||
* Joomla sites can be extended in functionalities with Extensions that you can create (or download) to suite your needs.
|
||||
* There are lots of ready made extensions that you can download and install.
|
||||
* See the Joomla! Extensions Directory (JED): http://extensions.joomla.org
|
||||
|
||||
7- Is it easy to change the layout display?
|
||||
* The layout is controlled by templates that you can edit.
|
||||
* There are lots of ready made templates that you can download.
|
||||
|
||||
8- Ready to install Joomla?
|
||||
* See minimum requirements here: http://www.joomla.org/technical-requirements.html
|
||||
* How do you install Joomla! ? - http://docs.joomla.org/Installing_Joomla!
|
||||
* Start your Joomla experience building your site with a local test server.
|
||||
When ready it can be moved to an on-line hosting account of your choice.
|
||||
See the tutorial: http://docs.joomla.org/Tutorial:Joomla_Local_install
|
||||
|
||||
9- Updates are free!
|
||||
* Always use the latest version: http://www.joomla.org/download.html
|
||||
|
||||
10- Where can you get support and help?
|
||||
* FAQ Frequently Asked Questions: http://docs.joomla.org/Category:FAQ
|
||||
* Find the information you need: http://docs.joomla.org/Start_here
|
||||
* Find help and other users: http://www.joomla.org/about-joomla/create-and-share.html
|
||||
* Post questions at our forums: http://forum.joomla.org
|
||||
* Joomla Resources Directory (JRD): http://resources.joomla.org/tos.html
|
||||
|
||||
11- Do you already have a Joomla site that's not built with Joomla 3.x ?
|
||||
* What's new in Joomla 3.x - http://www.joomla.org/3
|
||||
* What are the main differences from 2.5 to 3? Table of contents: http://docs.joomla.org/Differences_from_Joomla_2.5_to_Joomla_3.0
|
||||
* How to migrate from 2.5.x to 3.x? Tutorial: http://docs.joomla.org/Migrating_from_Joomla_2.5_to_Joomla_3.0
|
||||
* What are the main differences from 1.5 to 2.5? Table of contents: http://docs.joomla.org/Differences_from_Joomla_1.5_to_Joomla_2.5
|
||||
* How to migrate from 1.5.x to 3.x? Tutorial: http://docs.joomla.org/Migrating_from_Joomla_1.5_to_Joomla_3.0
|
||||
* Convert an existing Web site to Joomla - http://docs.joomla.org/How_to_Convert_an_existing_Web_site_to_a_Joomla!_Web_site
|
||||
|
||||
12- Do you want to improve Joomla?
|
||||
* How do you request a feature? http://docs.joomla.org/How_do_you_request_a_feature%3F
|
||||
* How do you report a bug? http://docs.joomla.org/Filing_bugs_and_issues
|
||||
* Get Involved: Joomla! is a community developed software. Join the community at http://www.joomla.org
|
||||
* Are you a Developer? http://docs.joomla.org/Developers
|
||||
* Are you a Web designer? http://docs.joomla.org/Web_designers
|
||||
|
||||
Copyright:
|
||||
* Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
|
||||
* Credits: http://docs.joomla.org/Joomla_3_Credits
|
||||
* Distributed under the GNU General Public License version 2 or later
|
||||
* See Licenses details at http://docs.joomla.org/Joomla_Licenses
|
1
administrator/cache/index.html
vendored
Normal file
1
administrator/cache/index.html
vendored
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
16
administrator/components/com_admin/admin.php
Normal file
16
administrator/components/com_admin/admin.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// No access check.
|
||||
|
||||
$controller = JControllerLegacy::getInstance('Admin');
|
||||
$controller->execute(JFactory::getApplication()->input->get('task'));
|
||||
$controller->redirect();
|
29
administrator/components/com_admin/admin.xml
Normal file
29
administrator/components/com_admin/admin.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<?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 - 2013 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>
|
||||
<filename>index.html</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>
|
21
administrator/components/com_admin/controller.php
Normal file
21
administrator/components/com_admin/controller.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 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
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
* @since 1.6
|
||||
*/
|
||||
class AdminController extends JControllerLegacy
|
||||
{
|
||||
}
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
89
administrator/components/com_admin/controllers/profile.php
Normal file
89
administrator/components/com_admin/controllers/profile.php
Normal file
@ -0,0 +1,89 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 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.
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
* @since 1.6
|
||||
*/
|
||||
class AdminControllerProfile extends JControllerForm
|
||||
{
|
||||
/**
|
||||
* Method to check if you can add a new record.
|
||||
*
|
||||
* Extended classes can override this if necessary.
|
||||
*
|
||||
* @param array An array of input data.
|
||||
* @param string 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.
|
||||
*
|
||||
* @return mixed Boolean or JError.
|
||||
* @since 1.6
|
||||
*/
|
||||
public function save($key = null, $urlVar = null)
|
||||
{
|
||||
$data = $this->input->post->get('jform', array(), 'array');
|
||||
|
||||
// TODO: JForm should really have a validation handler for this.
|
||||
if (isset($data['password']) && isset($data['password2']))
|
||||
{
|
||||
// Check the passwords match.
|
||||
if ($data['password'] != $data['password2'])
|
||||
{
|
||||
$this->setMessage(JText::_('JLIB_USER_ERROR_PASSWORD_NOT_MATCH'), 'warning');
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_admin&view=profile&layout=edit&id='.JFactory::getUser()->id, false));
|
||||
return false;
|
||||
}
|
||||
|
||||
unset($data['password2']);
|
||||
}
|
||||
|
||||
$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,68 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 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
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
* @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>';
|
||||
}
|
||||
else
|
||||
{
|
||||
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)
|
||||
{
|
||||
if ($visible)
|
||||
{
|
||||
$output = $dir;
|
||||
}
|
||||
else
|
||||
{
|
||||
$output = '';
|
||||
}
|
||||
if (empty($message))
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
else
|
||||
{
|
||||
return $output.' <strong>'.JText::_($message).'</strong>';
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1,92 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 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
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
* @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)
|
||||
{
|
||||
if ($val)
|
||||
{
|
||||
return JText::_('JON');
|
||||
}
|
||||
else
|
||||
{
|
||||
return JText::_('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)
|
||||
{
|
||||
if ($val)
|
||||
{
|
||||
return JText::_('JYES');
|
||||
}
|
||||
else
|
||||
{
|
||||
return JText::_('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)
|
||||
{
|
||||
if (empty($val))
|
||||
{
|
||||
return JText::_('JNONE');
|
||||
}
|
||||
else
|
||||
{
|
||||
return $val;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
JLog::add('JHtmlPhpSetting::integer() is deprecated. Use intval() or casting instead.', JLog::WARNING, 'deprecated');
|
||||
return (int) $val;
|
||||
}
|
||||
}
|
39
administrator/components/com_admin/helpers/html/system.php
Normal file
39
administrator/components/com_admin/helpers/html/system.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 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
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
* @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)
|
||||
{
|
||||
if (empty($val))
|
||||
{
|
||||
return JText::_('COM_ADMIN_NA');
|
||||
}
|
||||
else
|
||||
{
|
||||
return $val;
|
||||
}
|
||||
}
|
||||
}
|
1
administrator/components/com_admin/helpers/index.html
Normal file
1
administrator/components/com_admin/helpers/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
1
administrator/components/com_admin/index.html
Normal file
1
administrator/components/com_admin/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
139
administrator/components/com_admin/models/forms/profile.xml
Normal file
139
administrator/components/com_admin/models/forms/profile.xml
Normal file
@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form>
|
||||
<fieldset name="user_details">
|
||||
<field name="name" type="text"
|
||||
class="inputbox"
|
||||
description="COM_ADMIN_USER_FIELD_NAME_DESC"
|
||||
label="COM_ADMIN_USER_HEADING_NAME"
|
||||
required="true"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field name="username" type="text"
|
||||
class="inputbox"
|
||||
description="COM_ADMIN_USER_FIELD_USERNAME_DESC"
|
||||
label="COM_ADMIN_USER_FIELD_USERNAME_LABEL"
|
||||
required="true"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field name="password2" type="password"
|
||||
autocomplete="off"
|
||||
class="validate-password"
|
||||
description="COM_ADMIN_USER_FIELD_PASSWORD_DESC"
|
||||
field="password1"
|
||||
filter="raw"
|
||||
label="JGLOBAL_PASSWORD"
|
||||
message="COM_ADMIN_USER_FIELD_PASSWORD1_MESSAGE"
|
||||
size="30"
|
||||
validate="equals"
|
||||
/>
|
||||
|
||||
<field name="password1" type="password"
|
||||
autocomplete="off"
|
||||
class="validate-password"
|
||||
description="COM_ADMIN_USER_FIELD_PASSWORD2_DESC"
|
||||
filter="raw"
|
||||
label="COM_ADMIN_USER_FIELD_PASSWORD2_LABEL"
|
||||
size="30"
|
||||
validate="password"
|
||||
/>
|
||||
|
||||
<field name="email" type="email"
|
||||
class="inputbox"
|
||||
description="COM_ADMIN_USER_FIELD_EMAIL_DESC"
|
||||
label="JGLOBAL_EMAIL"
|
||||
required="true"
|
||||
size="30"
|
||||
validate="email"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="registerDate"
|
||||
type="calendar"
|
||||
class="readonly"
|
||||
label="COM_ADMIN_USER_FIELD_REGISTERDATE_LABEL"
|
||||
description="COM_ADMIN_USER_FIELD_REGISTERDATE_DESC"
|
||||
readonly="true"
|
||||
format="%Y-%m-%d %H:%M:%S"
|
||||
size="22"
|
||||
filter="user_utc"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="lastvisitDate"
|
||||
type="calendar"
|
||||
class="readonly"
|
||||
label="COM_ADMIN_USER_FIELD_LASTVISIT_LABEL"
|
||||
description="COM_ADMIN_USER_FIELD_LASTVISIT_DESC"
|
||||
readonly="true"
|
||||
format="%Y-%m-%d %H:%M:%S"
|
||||
size="22"
|
||||
filter="user_utc"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="id"
|
||||
type="text"
|
||||
class="readonly"
|
||||
label="JGLOBAL_FIELD_ID_LABEL"
|
||||
description ="JGLOBAL_FIELD_ID_DESC"
|
||||
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"
|
||||
client="administrator"
|
||||
description="COM_ADMIN_USER_FIELD_BACKEND_TEMPLATE_DESC"
|
||||
label="COM_ADMIN_USER_FIELD_BACKEND_TEMPLATE_LABEL"
|
||||
>
|
||||
<option value="">JOPTION_USE_DEFAULT</option>
|
||||
</field>
|
||||
|
||||
<field name="admin_language" type="language"
|
||||
client="administrator"
|
||||
description="COM_ADMIN_USER_FIELD_BACKEND_LANGUAGE_DESC"
|
||||
label="COM_ADMIN_USER_FIELD_BACKEND_LANGUAGE_LABEL"
|
||||
>
|
||||
<option value="">JOPTION_USE_DEFAULT</option>
|
||||
</field>
|
||||
|
||||
<field name="language" type="language"
|
||||
client="site"
|
||||
description="COM_ADMIN_USER_FIELD_FRONTEND_LANGUAGE_DESC"
|
||||
label="COM_ADMIN_USER_FIELD_FRONTEND_LANGUAGE_LABEL"
|
||||
>
|
||||
<option value="">JOPTION_USE_DEFAULT</option>
|
||||
</field>
|
||||
|
||||
<field name="editor" type="plugins" folder="editors"
|
||||
description="COM_ADMIN_USER_FIELD_EDITOR_DESC"
|
||||
label="COM_ADMIN_USER_FIELD_EDITOR_LABEL"
|
||||
>
|
||||
<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>
|
186
administrator/components/com_admin/models/help.php
Normal file
186
administrator/components/com_admin/models/help.php
Normal file
@ -0,0 +1,186 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Admin Component Help Model
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
* @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))
|
||||
{
|
||||
$page = JFactory::getApplication()->input->get('page', 'JHELP_START_HERE');
|
||||
$this->page = JHelp::createUrl($page);
|
||||
}
|
||||
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))
|
||||
{
|
||||
$lang = JFactory::getLanguage();
|
||||
$this->lang_tag = $lang->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 toc
|
||||
*
|
||||
* @return array Table of contents
|
||||
*/
|
||||
public function &getToc()
|
||||
{
|
||||
if (is_null($this->toc))
|
||||
{
|
||||
// Get vars
|
||||
$lang_tag = $this->getLangTag();
|
||||
$help_search = $this->getHelpSearch();
|
||||
|
||||
// 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))
|
||||
{
|
||||
$title = trim($m[1]);
|
||||
if ($title)
|
||||
{
|
||||
// Translate the page title
|
||||
$title = JText::_($title);
|
||||
// strip the extension
|
||||
$file = preg_replace('#\.xml$|\.html$#', '', $file);
|
||||
if ($help_search)
|
||||
{
|
||||
if (JString::strpos(JString::strtolower(strip_tags($buffer)), JString::strtolower($help_search)) !== false)
|
||||
{
|
||||
// Add an item in the Table of Contents
|
||||
$this->toc[$file] = $title;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// 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 = 'http://help.joomla.org/proxy/index.php?option=com_help&keyref=Help{major}{minor}:Joomla_Version_{major}_{minor}_{maintenance}';
|
||||
$this->latest_version_check = JHelp::createUrl('JVERSION', false, $override);
|
||||
}
|
||||
|
||||
return $this->latest_version_check;
|
||||
}
|
||||
}
|
1
administrator/components/com_admin/models/index.html
Normal file
1
administrator/components/com_admin/models/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
130
administrator/components/com_admin/models/profile.php
Normal file
130
administrator/components/com_admin/models/profile.php
Normal file
@ -0,0 +1,130 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR.'/components/com_users/models/user.php';
|
||||
|
||||
/**
|
||||
* User model.
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
* @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;
|
||||
}
|
||||
if (!JComponentHelper::getParams('com_users')->get('change_login_name'))
|
||||
{
|
||||
$form->setFieldAttribute('username', 'required', 'false');
|
||||
$form->setFieldAttribute('username', 'readonly', 'true');
|
||||
$form->setFieldAttribute('username', 'description', 'COM_ADMIN_USER_FIELD_NOCHANGE_USERNAME_DESC');
|
||||
}
|
||||
|
||||
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.
|
||||
*
|
||||
* @return mixed Object on success, false on failure.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function getItem($pk = null)
|
||||
{
|
||||
$user = JFactory::getUser();
|
||||
|
||||
return parent::getItem($user->get('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']);
|
||||
|
||||
// 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;
|
||||
}
|
||||
}
|
315
administrator/components/com_admin/models/sysinfo.php
Normal file
315
administrator/components/com_admin/models/sysinfo.php
Normal file
@ -0,0 +1,315 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Model for the display of system information.
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
* @since 1.6
|
||||
*/
|
||||
class AdminModelSysInfo extends JModelLegacy
|
||||
{
|
||||
/**
|
||||
* @var array Some PHP settings
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $php_settings = null;
|
||||
|
||||
/**
|
||||
* @var array Config values
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $config = null;
|
||||
|
||||
/**
|
||||
* @var array Some system values
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $info = null;
|
||||
|
||||
/**
|
||||
* @var string PHP info
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $php_info = null;
|
||||
|
||||
/**
|
||||
* Information about writable state of directories
|
||||
*
|
||||
* @var array
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $directories = null;
|
||||
|
||||
/**
|
||||
* The current editor.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $editor = null;
|
||||
|
||||
/**
|
||||
* Method to get the ChangeLog
|
||||
*
|
||||
* @return array some php settings
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function &getPhpSettings()
|
||||
{
|
||||
if (is_null($this->php_settings))
|
||||
{
|
||||
$this->php_settings = array();
|
||||
$this->php_settings['safe_mode'] = ini_get('safe_mode') == '1';
|
||||
$this->php_settings['display_errors'] = ini_get('display_errors') == '1';
|
||||
$this->php_settings['short_open_tag'] = ini_get('short_open_tag') == '1';
|
||||
$this->php_settings['file_uploads'] = ini_get('file_uploads') == '1';
|
||||
$this->php_settings['magic_quotes_gpc'] = ini_get('magic_quotes_gpc') == '1';
|
||||
$this->php_settings['register_globals'] = ini_get('register_globals') == '1';
|
||||
$this->php_settings['output_buffering'] = (bool) ini_get('output_buffering');
|
||||
$this->php_settings['open_basedir'] = ini_get('open_basedir');
|
||||
$this->php_settings['session.save_path'] = ini_get('session.save_path');
|
||||
$this->php_settings['session.auto_start'] = ini_get('session.auto_start');
|
||||
$this->php_settings['disable_functions'] = ini_get('disable_functions');
|
||||
$this->php_settings['xml'] = extension_loaded('xml');
|
||||
$this->php_settings['zlib'] = extension_loaded('zlib');
|
||||
$this->php_settings['zip'] = function_exists('zip_open') && function_exists('zip_read');
|
||||
$this->php_settings['mbstring'] = extension_loaded('mbstring');
|
||||
$this->php_settings['iconv'] = function_exists('iconv');
|
||||
}
|
||||
|
||||
return $this->php_settings;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the config
|
||||
*
|
||||
* @return array config values
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function &getConfig()
|
||||
{
|
||||
if (is_null($this->config))
|
||||
{
|
||||
$registry = new JRegistry(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 (is_null($this->info))
|
||||
{
|
||||
$this->info = array();
|
||||
$version = new JVersion;
|
||||
$platform = new JPlatform;
|
||||
$db = JFactory::getDbo();
|
||||
if (isset($_SERVER['SERVER_SOFTWARE']))
|
||||
{
|
||||
$sf = $_SERVER['SERVER_SOFTWARE'];
|
||||
}
|
||||
else {
|
||||
$sf = getenv('SERVER_SOFTWARE');
|
||||
}
|
||||
$this->info['php'] = php_uname();
|
||||
$this->info['dbversion'] = $db->getVersion();
|
||||
$this->info['dbcollation'] = $db->getCollation();
|
||||
$this->info['phpversion'] = phpversion();
|
||||
$this->info['server'] = $sf;
|
||||
$this->info['sapi_name'] = php_sapi_name();
|
||||
$this->info['version'] = $version->getLongVersion();
|
||||
$this->info['platform'] = $platform->getLongVersion();
|
||||
$this->info['useragent'] = $_SERVER['HTTP_USER_AGENT'];
|
||||
}
|
||||
return $this->info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the PHP info
|
||||
*
|
||||
* @return string PHP info
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function &getPHPInfo()
|
||||
{
|
||||
if (is_null($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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the directory states
|
||||
*
|
||||
* @return array States of directories
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function getDirectory()
|
||||
{
|
||||
if (is_null($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');
|
||||
$this->_addDirectory('cache', JPATH_SITE . '/cache', 'COM_ADMIN_CACHE_DIRECTORY');
|
||||
$this->_addDirectory('administrator/cache', JPATH_CACHE, 'COM_ADMIN_CACHE_DIRECTORY');
|
||||
|
||||
$this->_addDirectory($registry->get('log_path', JPATH_ROOT . '/log'), $registry->get('log_path', JPATH_ROOT . '/log'), '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
|
||||
*
|
||||
* @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))
|
||||
{
|
||||
$config = JFactory::getConfig();
|
||||
$this->editor = $config->get('editor');
|
||||
}
|
||||
return $this->editor;
|
||||
}
|
||||
}
|
673
administrator/components/com_admin/script.php
Normal file
673
administrator/components/com_admin/script.php
Normal file
@ -0,0 +1,673 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Script file of Joomla CMS
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
* @since 1.6.4
|
||||
*/
|
||||
class JoomlaInstallerScript
|
||||
{
|
||||
/**
|
||||
* Method to update Joomla!
|
||||
*
|
||||
* @param JInstallerFile $installer The class calling this method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function update($installer)
|
||||
{
|
||||
$this->deleteUnexistingFiles();
|
||||
$this->updateManifestCaches();
|
||||
$this->updateDatabase();
|
||||
}
|
||||
|
||||
protected function updateDatabase()
|
||||
{
|
||||
$db = JFactory::getDbo();
|
||||
if (substr($db->name, 0, 5) == 'mysql')
|
||||
{
|
||||
$db->setQuery('SHOW ENGINES');
|
||||
$results = $db->loadObjectList();
|
||||
if ($db->getErrorNum())
|
||||
{
|
||||
echo JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED', $db->getErrorNum(), $db->getErrorMsg()) . '<br />';
|
||||
return;
|
||||
}
|
||||
foreach ($results as $result)
|
||||
{
|
||||
if ($result->Support == 'DEFAULT')
|
||||
{
|
||||
$db->setQuery('ALTER TABLE #__update_sites_extensions ENGINE = ' . $result->Engine);
|
||||
$db->execute();
|
||||
if ($db->getErrorNum())
|
||||
{
|
||||
echo JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED', $db->getErrorNum(), $db->getErrorMsg()) . '<br />';
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected function updateManifestCaches()
|
||||
{
|
||||
$extensions = array();
|
||||
// Components
|
||||
|
||||
//`type`, `element`, `folder`, `client_id`
|
||||
$extensions[] = array('component', 'com_mailto', '', 0);
|
||||
$extensions[] = array('component', 'com_wrapper', '', 0);
|
||||
$extensions[] = array('component', 'com_admin', '', 1);
|
||||
$extensions[] = array('component', 'com_banners', '', 1);
|
||||
$extensions[] = array('component', 'com_cache', '', 1);
|
||||
$extensions[] = array('component', 'com_categories', '', 1);
|
||||
$extensions[] = array('component', 'com_checkin', '', 1);
|
||||
$extensions[] = array('component', 'com_contact', '', 1);
|
||||
$extensions[] = array('component', 'com_cpanel', '', 1);
|
||||
$extensions[] = array('component', 'com_installer', '', 1);
|
||||
$extensions[] = array('component', 'com_languages', '', 1);
|
||||
$extensions[] = array('component', 'com_login', '', 1);
|
||||
$extensions[] = array('component', 'com_media', '', 1);
|
||||
$extensions[] = array('component', 'com_menus', '', 1);
|
||||
$extensions[] = array('component', 'com_messages', '', 1);
|
||||
$extensions[] = array('component', 'com_modules', '', 1);
|
||||
$extensions[] = array('component', 'com_newsfeeds', '', 1);
|
||||
$extensions[] = array('component', 'com_plugins', '', 1);
|
||||
$extensions[] = array('component', 'com_search', '', 1);
|
||||
$extensions[] = array('component', 'com_templates', '', 1);
|
||||
$extensions[] = array('component', 'com_weblinks', '', 1);
|
||||
$extensions[] = array('component', 'com_content', '', 1);
|
||||
$extensions[] = array('component', 'com_config', '', 1);
|
||||
$extensions[] = array('component', 'com_redirect', '', 1);
|
||||
$extensions[] = array('component', 'com_users', '', 1);
|
||||
$extensions[] = array('component', 'com_tags', '', 1);
|
||||
|
||||
// Libraries
|
||||
$extensions[] = array('library', 'phpmailer', '', 0);
|
||||
$extensions[] = array('library', 'simplepie', '', 0);
|
||||
$extensions[] = array('library', 'phputf8', '', 0);
|
||||
$extensions[] = array('library', 'joomla', '', 0);
|
||||
$extensions[] = array('library', 'idna_convert', '', 0);
|
||||
|
||||
// Modules site
|
||||
// Site
|
||||
$extensions[] = array('module', 'mod_articles_archive', '', 0);
|
||||
$extensions[] = array('module', 'mod_articles_latest', '', 0);
|
||||
$extensions[] = array('module', 'mod_articles_popular', '', 0);
|
||||
$extensions[] = array('module', 'mod_banners', '', 0);
|
||||
$extensions[] = array('module', 'mod_breadcrumbs', '', 0);
|
||||
$extensions[] = array('module', 'mod_custom', '', 0);
|
||||
$extensions[] = array('module', 'mod_feed', '', 0);
|
||||
$extensions[] = array('module', 'mod_footer', '', 0);
|
||||
$extensions[] = array('module', 'mod_login', '', 0);
|
||||
$extensions[] = array('module', 'mod_menu', '', 0);
|
||||
$extensions[] = array('module', 'mod_articles_news', '', 0);
|
||||
$extensions[] = array('module', 'mod_random_image', '', 0);
|
||||
$extensions[] = array('module', 'mod_related_items', '', 0);
|
||||
$extensions[] = array('module', 'mod_search', '', 0);
|
||||
$extensions[] = array('module', 'mod_stats', '', 0);
|
||||
$extensions[] = array('module', 'mod_syndicate', '', 0);
|
||||
$extensions[] = array('module', 'mod_users_latest', '', 0);
|
||||
$extensions[] = array('module', 'mod_weblinks', '', 0);
|
||||
$extensions[] = array('module', 'mod_whosonline', '', 0);
|
||||
$extensions[] = array('module', 'mod_wrapper', '', 0);
|
||||
$extensions[] = array('module', 'mod_articles_category', '', 0);
|
||||
$extensions[] = array('module', 'mod_articles_categories', '', 0);
|
||||
$extensions[] = array('module', 'mod_languages', '', 0);
|
||||
$extensions[] = array('module', 'mod_tags_popular', '', 0);
|
||||
$extensions[] = array('module', 'mod_tags_similar', '', 0);
|
||||
|
||||
// Administrator
|
||||
$extensions[] = array('module', 'mod_custom', '', 1);
|
||||
$extensions[] = array('module', 'mod_feed', '', 1);
|
||||
$extensions[] = array('module', 'mod_latest', '', 1);
|
||||
$extensions[] = array('module', 'mod_logged', '', 1);
|
||||
$extensions[] = array('module', 'mod_login', '', 1);
|
||||
$extensions[] = array('module', 'mod_menu', '', 1);
|
||||
$extensions[] = array('module', 'mod_popular', '', 1);
|
||||
$extensions[] = array('module', 'mod_quickicon', '', 1);
|
||||
$extensions[] = array('module', 'mod_stats_admin', '', 1);
|
||||
$extensions[] = array('module', 'mod_status', '', 1);
|
||||
$extensions[] = array('module', 'mod_submenu', '', 1);
|
||||
$extensions[] = array('module', 'mod_title', '', 1);
|
||||
$extensions[] = array('module', 'mod_toolbar', '', 1);
|
||||
$extensions[] = array('module', 'mod_multilangstatus', '', 1);
|
||||
|
||||
// Plug-ins
|
||||
$extensions[] = array('plugin', 'gmail', 'authentication', 0);
|
||||
$extensions[] = array('plugin', 'joomla', 'authentication', 0);
|
||||
$extensions[] = array('plugin', 'ldap', 'authentication', 0);
|
||||
$extensions[] = array('plugin', 'emailcloak', 'content', 0);
|
||||
$extensions[] = array('plugin', 'loadmodule', 'content', 0);
|
||||
$extensions[] = array('plugin', 'pagebreak', 'content', 0);
|
||||
$extensions[] = array('plugin', 'pagenavigation', 'content', 0);
|
||||
$extensions[] = array('plugin', 'vote', 'content', 0);
|
||||
$extensions[] = array('plugin', 'codemirror', 'editors', 0);
|
||||
$extensions[] = array('plugin', 'none', 'editors', 0);
|
||||
$extensions[] = array('plugin', 'tinymce', 'editors', 0);
|
||||
$extensions[] = array('plugin', 'article', 'editors-xtd', 0);
|
||||
$extensions[] = array('plugin', 'image', 'editors-xtd', 0);
|
||||
$extensions[] = array('plugin', 'pagebreak', 'editors-xtd', 0);
|
||||
$extensions[] = array('plugin', 'readmore', 'editors-xtd', 0);
|
||||
$extensions[] = array('plugin', 'categories', 'search', 0);
|
||||
$extensions[] = array('plugin', 'contacts', 'search', 0);
|
||||
$extensions[] = array('plugin', 'content', 'search', 0);
|
||||
$extensions[] = array('plugin', 'newsfeeds', 'search', 0);
|
||||
$extensions[] = array('plugin', 'weblinks', 'search', 0);
|
||||
$extensions[] = array('plugin', 'languagefilter', 'system', 0);
|
||||
$extensions[] = array('plugin', 'p3p', 'system', 0);
|
||||
$extensions[] = array('plugin', 'cache', 'system', 0);
|
||||
$extensions[] = array('plugin', 'debug', 'system', 0);
|
||||
$extensions[] = array('plugin', 'log', 'system', 0);
|
||||
$extensions[] = array('plugin', 'redirect', 'system', 0);
|
||||
$extensions[] = array('plugin', 'remember', 'system', 0);
|
||||
$extensions[] = array('plugin', 'sef', 'system', 0);
|
||||
$extensions[] = array('plugin', 'logout', 'system', 0);
|
||||
$extensions[] = array('plugin', 'contactcreator', 'user', 0);
|
||||
$extensions[] = array('plugin', 'joomla', 'user', 0);
|
||||
$extensions[] = array('plugin', 'profile', 'user', 0);
|
||||
$extensions[] = array('plugin', 'joomla', 'extension', 0);
|
||||
$extensions[] = array('plugin', 'joomla', 'content', 0);
|
||||
$extensions[] = array('plugin', 'languagecode', 'system', 0);
|
||||
$extensions[] = array('plugin', 'joomlaupdate', 'quickicon', 0);
|
||||
$extensions[] = array('plugin', 'extensionupdate', 'quickicon', 0);
|
||||
$extensions[] = array('plugin', 'recaptcha', 'captcha', 0);
|
||||
$extensions[] = array('plugin', 'categories', 'finder', 0);
|
||||
$extensions[] = array('plugin', 'contacts', 'finder', 0);
|
||||
$extensions[] = array('plugin', 'content', 'finder', 0);
|
||||
$extensions[] = array('plugin', 'newsfeeds', 'finder', 0);
|
||||
$extensions[] = array('plugin', 'weblinks', 'finder', 0);
|
||||
$extensions[] = array('plugin', 'tags', 'finder', 0);
|
||||
|
||||
// Templates
|
||||
$extensions[] = array('template', 'beez3', '', 0);
|
||||
$extensions[] = array('template', 'hathor', '', 1);
|
||||
$extensions[] = array('template', 'protostar', '', 0);
|
||||
$extensions[] = array('template', 'isis', '', 1);
|
||||
|
||||
// Languages
|
||||
$extensions[] = array('language', 'en-GB', '', 0);
|
||||
$extensions[] = array('language', 'en-GB', '', 1);
|
||||
|
||||
// Files
|
||||
$extensions[] = array('file', 'joomla', '', 0);
|
||||
|
||||
// Packages
|
||||
// None in core at this time
|
||||
|
||||
// Attempt to refresh manifest caches
|
||||
$db = JFactory::getDbo();
|
||||
$query = $db->getQuery(true)
|
||||
->select('*')
|
||||
->from('#__extensions');
|
||||
foreach ($extensions as $extension)
|
||||
{
|
||||
$query->where('type=' . $db->quote($extension[0]) . ' AND element=' . $db->quote($extension[1]) . ' AND folder=' . $db->quote($extension[2]) . ' AND client_id=' . $extension[3], 'OR');
|
||||
}
|
||||
$db->setQuery($query);
|
||||
$extensions = $db->loadObjectList();
|
||||
$installer = new JInstaller;
|
||||
// Check for a database error.
|
||||
if ($db->getErrorNum())
|
||||
{
|
||||
echo JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED', $db->getErrorNum(), $db->getErrorMsg()) . '<br />';
|
||||
return;
|
||||
}
|
||||
foreach ($extensions as $extension)
|
||||
{
|
||||
if (!$installer->refreshManifestCache($extension->extension_id))
|
||||
{
|
||||
echo JText::sprintf('FILES_JOOMLA_ERROR_MANIFEST', $extension->type, $extension->element, $extension->name, $extension->client_id) . '<br />';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteUnexistingFiles()
|
||||
{
|
||||
$files = array(
|
||||
'/libraries/cms/cmsloader.php',
|
||||
'/libraries/joomla/form/fields/templatestyle.php',
|
||||
'/libraries/joomla/form/fields/user.php',
|
||||
'/libraries/joomla/form/fields/menu.php',
|
||||
'/libraries/joomla/form/fields/helpsite.php',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.0.sql',
|
||||
'/administrator/components/com_admin/sql/updates/sqlsrv/2.5.2-2012-03-05.sql',
|
||||
'/administrator/components/com_admin/sql/updates/sqlsrv/2.5.3-2012-03-13.sql',
|
||||
'/administrator/components/com_admin/sql/updates/sqlsrv/index.html',
|
||||
'/administrator/components/com_users/controllers/config.php',
|
||||
'/administrator/language/en-GB/en-GB.plg_system_finder.ini',
|
||||
'/administrator/language/en-GB/en-GB.plg_system_finder.sys.ini',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/themes/simple/editor_template_src.js',
|
||||
'/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js',
|
||||
'/media/com_finder/images/calendar.png',
|
||||
'/media/com_finder/images/mime/index.html',
|
||||
'/media/com_finder/images/mime/pdf.png',
|
||||
'/components/com_media/controller.php',
|
||||
'/components/com_media/helpers/index.html',
|
||||
'/components/com_media/helpers/media.php',
|
||||
// Joomla 3.0
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.0-2011-06-06-2.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.0-2011-06-06.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.0.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-15-2.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-15-3.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-15-4.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-15.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-17.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.1-2011-09-20.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.3-2011-10-15.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.3-2011-10-19.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.3-2011-11-10.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.4-2011-11-19.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.4-2011-11-23.sql',
|
||||
'/administrator/components/com_admin/sql/updates/mysql/1.7.4-2011-12-12.sql',
|
||||
'/administrator/components/com_admin/views/sysinfo/tmpl/default_navigation.php',
|
||||
'/administrator/components/com_categories/config.xml',
|
||||
'/administrator/components/com_categories/helpers/categoriesadministrator.php',
|
||||
'/administrator/components/com_contact/elements/contact.php',
|
||||
'/administrator/components/com_contact/elements/index.html',
|
||||
'/administrator/components/com_content/elements/article.php',
|
||||
'/administrator/components/com_content/elements/author.php',
|
||||
'/administrator/components/com_content/elements/index.html',
|
||||
'/administrator/components/com_installer/models/fields/client.php',
|
||||
'/administrator/components/com_installer/models/fields/group.php',
|
||||
'/administrator/components/com_installer/models/fields/index.html',
|
||||
'/administrator/components/com_installer/models/fields/search.php',
|
||||
'/administrator/components/com_installer/models/fields/type.php',
|
||||
'/administrator/components/com_installer/models/forms/index.html',
|
||||
'/administrator/components/com_installer/models/forms/manage.xml',
|
||||
'/administrator/components/com_installer/views/install/tmpl/default_form.php',
|
||||
'/administrator/components/com_installer/views/manage/tmpl/default_filter.php',
|
||||
'/administrator/components/com_languages/views/installed/tmpl/default_ftp.php',
|
||||
'/administrator/components/com_languages/views/installed/tmpl/default_navigation.php',
|
||||
'/administrator/components/com_modules/models/fields/index.html',
|
||||
'/administrator/components/com_modules/models/fields/moduleorder.php',
|
||||
'/administrator/components/com_modules/models/fields/moduleposition.php',
|
||||
'/administrator/components/com_newsfeeds/elements/index.html',
|
||||
'/administrator/components/com_newsfeeds/elements/newsfeed.php',
|
||||
'/administrator/components/com_templates/views/prevuuw/index.html',
|
||||
'/administrator/components/com_templates/views/prevuuw/tmpl/default.php',
|
||||
'/administrator/components/com_templates/views/prevuuw/tmpl/index.html',
|
||||
'/administrator/components/com_templates/views/prevuuw/view.html.php',
|
||||
'/administrator/includes/menu.php',
|
||||
'/administrator/includes/router.php',
|
||||
'/administrator/manifests/packages/pkg_joomla.xml',
|
||||
'/administrator/modules/mod_submenu/helper.php',
|
||||
'/administrator/templates/hathor/css/ie6.css',
|
||||
'/administrator/templates/hathor/html/mod_submenu/index.html',
|
||||
'/administrator/templates/hathor/html/mod_submenu/default.php',
|
||||
'/components/com_media/controller.php',
|
||||
'/components/com_media/helpers/index.html',
|
||||
'/components/com_media/helpers/media.php',
|
||||
'/includes/menu.php',
|
||||
'/includes/pathway.php',
|
||||
'/includes/router.php',
|
||||
'/language/en-GB/en-GB.pkg_joomla.sys.ini',
|
||||
'/libraries/cms/controller/index.html',
|
||||
'/libraries/cms/controller/legacy.php',
|
||||
'/libraries/cms/model/index.html',
|
||||
'/libraries/cms/model/legacy.php',
|
||||
'/libraries/cms/schema/changeitemmysql.php',
|
||||
'/libraries/cms/schema/changeitemsqlazure.php',
|
||||
'/libraries/cms/schema/changeitemsqlsrv.php',
|
||||
'/libraries/cms/view/index.html',
|
||||
'/libraries/cms/view/legacy.php',
|
||||
'/libraries/joomla/application/application.php',
|
||||
'/libraries/joomla/application/categories.php',
|
||||
'/libraries/joomla/application/cli/daemon.php',
|
||||
'/libraries/joomla/application/cli/index.html',
|
||||
'/libraries/joomla/application/component/controller.php',
|
||||
'/libraries/joomla/application/component/controlleradmin.php',
|
||||
'/libraries/joomla/application/component/controllerform.php',
|
||||
'/libraries/joomla/application/component/helper.php',
|
||||
'/libraries/joomla/application/component/index.html',
|
||||
'/libraries/joomla/application/component/model.php',
|
||||
'/libraries/joomla/application/component/modeladmin.php',
|
||||
'/libraries/joomla/application/component/modelform.php',
|
||||
'/libraries/joomla/application/component/modelitem.php',
|
||||
'/libraries/joomla/application/component/modellist.php',
|
||||
'/libraries/joomla/application/component/view.php',
|
||||
'/libraries/joomla/application/helper.php',
|
||||
'/libraries/joomla/application/input.php',
|
||||
'/libraries/joomla/application/input/cli.php',
|
||||
'/libraries/joomla/application/input/cookie.php',
|
||||
'/libraries/joomla/application/input/files.php',
|
||||
'/libraries/joomla/application/input/index.html',
|
||||
'/libraries/joomla/application/menu.php',
|
||||
'/libraries/joomla/application/module/helper.php',
|
||||
'/libraries/joomla/application/module/index.html',
|
||||
'/libraries/joomla/application/pathway.php',
|
||||
'/libraries/joomla/application/web/webclient.php',
|
||||
'/libraries/joomla/base/node.php',
|
||||
'/libraries/joomla/base/object.php',
|
||||
'/libraries/joomla/base/observable.php',
|
||||
'/libraries/joomla/base/observer.php',
|
||||
'/libraries/joomla/base/tree.php',
|
||||
'/libraries/joomla/cache/storage/eaccelerator.php',
|
||||
'/libraries/joomla/cache/storage/helpers/helper.php',
|
||||
'/libraries/joomla/cache/storage/helpers/index.html',
|
||||
'/libraries/joomla/database/database/index.html',
|
||||
'/libraries/joomla/database/database/mysql.php',
|
||||
'/libraries/joomla/database/database/mysqlexporter.php',
|
||||
'/libraries/joomla/database/database/mysqli.php',
|
||||
'/libraries/joomla/database/database/mysqliexporter.php',
|
||||
'/libraries/joomla/database/database/mysqliimporter.php',
|
||||
'/libraries/joomla/database/database/mysqlimporter.php',
|
||||
'/libraries/joomla/database/database/mysqliquery.php',
|
||||
'/libraries/joomla/database/database/mysqlquery.php',
|
||||
'/libraries/joomla/database/database/sqlazure.php',
|
||||
'/libraries/joomla/database/database/sqlazurequery.php',
|
||||
'/libraries/joomla/database/database/sqlsrv.php',
|
||||
'/libraries/joomla/database/database/sqlsrvquery.php',
|
||||
'/libraries/joomla/database/exception.php',
|
||||
'/libraries/joomla/database/table.php',
|
||||
'/libraries/joomla/database/table/asset.php',
|
||||
'/libraries/joomla/database/table/category.php',
|
||||
'/libraries/joomla/database/table/content.php',
|
||||
'/libraries/joomla/database/table/extension.php',
|
||||
'/libraries/joomla/database/table/index.html',
|
||||
'/libraries/joomla/database/table/language.php',
|
||||
'/libraries/joomla/database/table/menu.php',
|
||||
'/libraries/joomla/database/table/menutype.php',
|
||||
'/libraries/joomla/database/table/module.php',
|
||||
'/libraries/joomla/database/table/session.php',
|
||||
'/libraries/joomla/database/table/update.php',
|
||||
'/libraries/joomla/database/table/user.php',
|
||||
'/libraries/joomla/database/table/usergroup.php',
|
||||
'/libraries/joomla/database/table/viewlevel.php',
|
||||
'/libraries/joomla/database/tablenested.php',
|
||||
'/libraries/joomla/environment/request.php',
|
||||
'/libraries/joomla/environment/uri.php',
|
||||
'/libraries/joomla/error/error.php',
|
||||
'/libraries/joomla/error/exception.php',
|
||||
'/libraries/joomla/error/index.html',
|
||||
'/libraries/joomla/error/log.php',
|
||||
'/libraries/joomla/error/profiler.php',
|
||||
'/libraries/joomla/filesystem/archive.php',
|
||||
'/libraries/joomla/filesystem/archive/bzip2.php',
|
||||
'/libraries/joomla/filesystem/archive/gzip.php',
|
||||
'/libraries/joomla/filesystem/archive/index.html',
|
||||
'/libraries/joomla/filesystem/archive/tar.php',
|
||||
'/libraries/joomla/filesystem/archive/zip.php',
|
||||
'/libraries/joomla/form/fields/category.php',
|
||||
'/libraries/joomla/form/fields/componentlayout.php',
|
||||
'/libraries/joomla/form/fields/contentlanguage.php',
|
||||
'/libraries/joomla/form/fields/editor.php',
|
||||
'/libraries/joomla/form/fields/editors.php',
|
||||
'/libraries/joomla/form/fields/media.php',
|
||||
'/libraries/joomla/form/fields/menuitem.php',
|
||||
'/libraries/joomla/form/fields/modulelayout.php',
|
||||
'/libraries/joomla/html/editor.php',
|
||||
'/libraries/joomla/html/html/access.php',
|
||||
'/libraries/joomla/html/html/batch.php',
|
||||
'/libraries/joomla/html/html/behavior.php',
|
||||
'/libraries/joomla/html/html/category.php',
|
||||
'/libraries/joomla/html/html/content.php',
|
||||
'/libraries/joomla/html/html/contentlanguage.php',
|
||||
'/libraries/joomla/html/html/date.php',
|
||||
'/libraries/joomla/html/html/email.php',
|
||||
'/libraries/joomla/html/html/form.php',
|
||||
'/libraries/joomla/html/html/grid.php',
|
||||
'/libraries/joomla/html/html/image.php',
|
||||
'/libraries/joomla/html/html/index.html',
|
||||
'/libraries/joomla/html/html/jgrid.php',
|
||||
'/libraries/joomla/html/html/list.php',
|
||||
'/libraries/joomla/html/html/menu.php',
|
||||
'/libraries/joomla/html/html/number.php',
|
||||
'/libraries/joomla/html/html/rules.php',
|
||||
'/libraries/joomla/html/html/select.php',
|
||||
'/libraries/joomla/html/html/sliders.php',
|
||||
'/libraries/joomla/html/html/string.php',
|
||||
'/libraries/joomla/html/html/tabs.php',
|
||||
'/libraries/joomla/html/html/tel.php',
|
||||
'/libraries/joomla/html/html/user.php',
|
||||
'/libraries/joomla/html/pagination.php',
|
||||
'/libraries/joomla/html/pane.php',
|
||||
'/libraries/joomla/html/parameter.php',
|
||||
'/libraries/joomla/html/parameter/element.php',
|
||||
'/libraries/joomla/html/parameter/element/calendar.php',
|
||||
'/libraries/joomla/html/parameter/element/category.php',
|
||||
'/libraries/joomla/html/parameter/element/componentlayouts.php',
|
||||
'/libraries/joomla/html/parameter/element/contentlanguages.php',
|
||||
'/libraries/joomla/html/parameter/element/editors.php',
|
||||
'/libraries/joomla/html/parameter/element/filelist.php',
|
||||
'/libraries/joomla/html/parameter/element/folderlist.php',
|
||||
'/libraries/joomla/html/parameter/element/helpsites.php',
|
||||
'/libraries/joomla/html/parameter/element/hidden.php',
|
||||
'/libraries/joomla/html/parameter/element/imagelist.php',
|
||||
'/libraries/joomla/html/parameter/element/index.html',
|
||||
'/libraries/joomla/html/parameter/element/languages.php',
|
||||
'/libraries/joomla/html/parameter/element/list.php',
|
||||
'/libraries/joomla/html/parameter/element/menu.php',
|
||||
'/libraries/joomla/html/parameter/element/menuitem.php',
|
||||
'/libraries/joomla/html/parameter/element/modulelayouts.php',
|
||||
'/libraries/joomla/html/parameter/element/password.php',
|
||||
'/libraries/joomla/html/parameter/element/radio.php',
|
||||
'/libraries/joomla/html/parameter/element/spacer.php',
|
||||
'/libraries/joomla/html/parameter/element/sql.php',
|
||||
'/libraries/joomla/html/parameter/element/templatestyle.php',
|
||||
'/libraries/joomla/html/parameter/element/text.php',
|
||||
'/libraries/joomla/html/parameter/element/textarea.php',
|
||||
'/libraries/joomla/html/parameter/element/timezones.php',
|
||||
'/libraries/joomla/html/parameter/element/usergroup.php',
|
||||
'/libraries/joomla/html/parameter/index.html',
|
||||
'/libraries/joomla/html/toolbar.php',
|
||||
'/libraries/joomla/html/toolbar/button.php',
|
||||
'/libraries/joomla/html/toolbar/button/confirm.php',
|
||||
'/libraries/joomla/html/toolbar/button/custom.php',
|
||||
'/libraries/joomla/html/toolbar/button/help.php',
|
||||
'/libraries/joomla/html/toolbar/button/index.html',
|
||||
'/libraries/joomla/html/toolbar/button/link.php',
|
||||
'/libraries/joomla/html/toolbar/button/popup.php',
|
||||
'/libraries/joomla/html/toolbar/button/separator.php',
|
||||
'/libraries/joomla/html/toolbar/button/standard.php',
|
||||
'/libraries/joomla/html/toolbar/index.html',
|
||||
'/libraries/joomla/image/filters/brightness.php',
|
||||
'/libraries/joomla/image/filters/contrast.php',
|
||||
'/libraries/joomla/image/filters/edgedetect.php',
|
||||
'/libraries/joomla/image/filters/emboss.php',
|
||||
'/libraries/joomla/image/filters/grayscale.php',
|
||||
'/libraries/joomla/image/filters/index.html',
|
||||
'/libraries/joomla/image/filters/negate.php',
|
||||
'/libraries/joomla/image/filters/sketchy.php',
|
||||
'/libraries/joomla/image/filters/smooth.php',
|
||||
'/libraries/joomla/language/help.php',
|
||||
'/libraries/joomla/language/latin_transliterate.php',
|
||||
'/libraries/joomla/log/logexception.php',
|
||||
'/libraries/joomla/log/loggers/database.php',
|
||||
'/libraries/joomla/log/loggers/echo.php',
|
||||
'/libraries/joomla/log/loggers/formattedtext.php',
|
||||
'/libraries/joomla/log/loggers/index.html',
|
||||
'/libraries/joomla/log/loggers/messagequeue.php',
|
||||
'/libraries/joomla/log/loggers/syslog.php',
|
||||
'/libraries/joomla/log/loggers/w3c.php',
|
||||
'/libraries/joomla/methods.php',
|
||||
'/libraries/joomla/session/storage/eaccelerator.php',
|
||||
'/libraries/joomla/string/stringnormalize.php',
|
||||
'/libraries/joomla/utilities/date.php',
|
||||
'/libraries/joomla/utilities/simplecrypt.php',
|
||||
'/libraries/joomla/utilities/simplexml.php',
|
||||
'/libraries/joomla/utilities/string.php',
|
||||
'/libraries/joomla/utilities/xmlelement.php',
|
||||
'/media/plg_quickicon_extensionupdate/extensionupdatecheck.js',
|
||||
'/media/plg_quickicon_joomlaupdate/jupdatecheck.js',
|
||||
// Joomla! 3.1
|
||||
'/libraries/joomla/form/rules/boolean.php',
|
||||
'/libraries/joomla/form/rules/color.php',
|
||||
'/libraries/joomla/form/rules/email.php',
|
||||
'/libraries/joomla/form/rules/equals.php',
|
||||
'/libraries/joomla/form/rules/index.html',
|
||||
'/libraries/joomla/form/rules/options.php',
|
||||
'/libraries/joomla/form/rules/rules.php',
|
||||
'/libraries/joomla/form/rules/tel.php',
|
||||
'/libraries/joomla/form/rules/url.php',
|
||||
'/libraries/joomla/form/rules/username.php',
|
||||
'/libraries/joomla/html/access.php',
|
||||
'/libraries/joomla/html/behavior.php',
|
||||
'/libraries/joomla/html/content.php',
|
||||
'/libraries/joomla/html/date.php',
|
||||
'/libraries/joomla/html/email.php',
|
||||
'/libraries/joomla/html/form.php',
|
||||
'/libraries/joomla/html/grid.php',
|
||||
'/libraries/joomla/html/html.php',
|
||||
'/libraries/joomla/html/index.html',
|
||||
'/libraries/joomla/html/jgrid.php',
|
||||
'/libraries/joomla/html/list.php',
|
||||
'/libraries/joomla/html/number.php',
|
||||
'/libraries/joomla/html/rules.php',
|
||||
'/libraries/joomla/html/select.php',
|
||||
'/libraries/joomla/html/sliders.php',
|
||||
'/libraries/joomla/html/string.php',
|
||||
'/libraries/joomla/html/tabs.php',
|
||||
'/libraries/joomla/html/tel.php',
|
||||
'/libraries/joomla/html/user.php',
|
||||
'/libraries/joomla/html/language/index.html',
|
||||
'/libraries/joomla/html/language/en-GB/en-GB.jhtmldate.ini',
|
||||
'/libraries/joomla/html/language/en-GB/index.html',
|
||||
'/libraries/joomla/installer/adapters/component.php',
|
||||
'/libraries/joomla/installer/adapters/file.php',
|
||||
'/libraries/joomla/installer/adapters/index.html',
|
||||
'/libraries/joomla/installer/adapters/language.php',
|
||||
'/libraries/joomla/installer/adapters/library.php',
|
||||
'/libraries/joomla/installer/adapters/module.php',
|
||||
'/libraries/joomla/installer/adapters/package.php',
|
||||
'/libraries/joomla/installer/adapters/plugin.php',
|
||||
'/libraries/joomla/installer/adapters/template.php',
|
||||
'/libraries/joomla/installer/extension.php',
|
||||
'/libraries/joomla/installer/helper.php',
|
||||
'/libraries/joomla/installer/index.html',
|
||||
'/libraries/joomla/installer/librarymanifest.php',
|
||||
'/libraries/joomla/installer/packagemanifest.php',
|
||||
'/libraries/joomla/pagination/index.html',
|
||||
'/libraries/joomla/pagination/object.php',
|
||||
'/libraries/joomla/pagination/pagination.php',
|
||||
'/libraries/legacy/html/contentlanguage.php',
|
||||
'/libraries/legacy/html/index.html',
|
||||
'/libraries/legacy/html/menu.php',
|
||||
'/media/system/css/mooRainbow.css',
|
||||
'/media/system/js/mooRainbow-uncompressed.js',
|
||||
'/media/system/js/mooRainbow.js',
|
||||
'/media/system/js/swf-uncompressed.js',
|
||||
'/media/system/js/swf.js',
|
||||
'/media/system/js/uploader-uncompressed.js',
|
||||
'/media/system/js/uploader.js',
|
||||
'/media/system/swf/index.html',
|
||||
'/media/system/swf/uploader.swf',
|
||||
// Joomla! 3.2
|
||||
'/administrator/components/com_contact/models/fields/modal/contacts.php',
|
||||
'/administrator/components/com_newsfeeds/models/fields/modal/newsfeeds.php',
|
||||
);
|
||||
|
||||
// TODO There is an issue while deleting folders using the ftp mode
|
||||
$folders = array(
|
||||
'/administrator/components/com_admin/sql/updates/sqlsrv',
|
||||
'/media/com_finder/images/mime',
|
||||
'/media/com_finder/images',
|
||||
'/components/com_media/helpers',
|
||||
// Joomla 3.0
|
||||
'/administrator/components/com_contact/elements',
|
||||
'/administrator/components/com_content/elements',
|
||||
'/administrator/components/com_installer/models/fields',
|
||||
'/administrator/components/com_installer/models/forms',
|
||||
'/administrator/components/com_modules/models/fields',
|
||||
'/administrator/components/com_newsfeeds/elements',
|
||||
'/administrator/components/com_templates/views/prevuuw/tmpl',
|
||||
'/administrator/components/com_templates/views/prevuuw',
|
||||
'/libraries/cms/controller',
|
||||
'/libraries/cms/model',
|
||||
'/libraries/cms/view',
|
||||
'/libraries/joomla/application/cli',
|
||||
'/libraries/joomla/application/component',
|
||||
'/libraries/joomla/application/input',
|
||||
'/libraries/joomla/application/module',
|
||||
'/libraries/joomla/cache/storage/helpers',
|
||||
'/libraries/joomla/database/table',
|
||||
'/libraries/joomla/database/database',
|
||||
'/libraries/joomla/error',
|
||||
'/libraries/joomla/filesystem/archive',
|
||||
'/libraries/joomla/html/html',
|
||||
'/libraries/joomla/html/toolbar',
|
||||
'/libraries/joomla/html/toolbar/button',
|
||||
'/libraries/joomla/html/parameter',
|
||||
'/libraries/joomla/html/parameter/element',
|
||||
'/libraries/joomla/image/filters',
|
||||
'/libraries/joomla/log/loggers',
|
||||
// Joomla! 3.1
|
||||
'/libraries/joomla/form/rules',
|
||||
'/libraries/joomla/html/language/en-GB',
|
||||
'/libraries/joomla/html/language',
|
||||
'/libraries/joomla/html',
|
||||
'/libraries/joomla/installer/adapters',
|
||||
'/libraries/joomla/installer',
|
||||
'/libraries/joomla/pagination',
|
||||
'/libraries/legacy/html',
|
||||
'/media/system/swf/',
|
||||
);
|
||||
|
||||
jimport('joomla.filesystem.file');
|
||||
foreach ($files as $file)
|
||||
{
|
||||
if (JFile::exists(JPATH_ROOT . $file) && !JFile::delete(JPATH_ROOT . $file))
|
||||
{
|
||||
echo JText::sprintf('FILES_JOOMLA_ERROR_FILE_FOLDER', $file) . '<br />';
|
||||
}
|
||||
}
|
||||
|
||||
jimport('joomla.filesystem.folder');
|
||||
foreach ($folders as $folder)
|
||||
{
|
||||
if (JFolder::exists(JPATH_ROOT . $folder) && !JFolder::delete(JPATH_ROOT . $folder))
|
||||
{
|
||||
echo JText::sprintf('FILES_JOOMLA_ERROR_FILE_FOLDER', $folder) . '<br />';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1
administrator/components/com_admin/sql/index.html
Normal file
1
administrator/components/com_admin/sql/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -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', 'http://update.joomla.org/core/list.xml', 1, 0),
|
||||
(2, 'Joomla Extension Directory', 'collection', 'http://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 - 2012 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` (`id`, `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
|
||||
(21, '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,3 @@
|
||||
ALTER TABLE `#__menu` DROP INDEX `idx_client_id_parent_id_alias`;
|
||||
|
||||
ALTER TABLE `#__menu` ADD UNIQUE `idx_client_id_parent_id_alias_language` ( `client_id` , `parent_id` , `alias` , `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 - 2012 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 - 2012 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` (`id`, `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
|
||||
(22, '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 KEY `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','http://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' );
|
154
administrator/components/com_admin/sql/updates/mysql/3.0.0.sql
Normal file
154
administrator/components/com_admin/sql/updates/mysql/3.0.0.sql
Normal file
@ -0,0 +1,154 @@
|
||||
ALTER TABLE `#__users` DROP KEY `usertype`;
|
||||
ALTER TABLE `#__session` DROP KEY `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 `#__weblinks` DROP COLUMN `sid`;
|
||||
ALTER TABLE `#__weblinks` DROP COLUMN `date`;
|
||||
ALTER TABLE `#__weblinks` DROP COLUMN `archived`;
|
||||
ALTER TABLE `#__weblinks` DROP COLUMN `approved`;
|
||||
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 `#__weblinks` ENGINE=InnoDB;
|
||||
|
||||
ALTER TABLE `#__weblinks` ADD COLUMN `version` int(10) unsigned NOT NULL DEFAULT '1';
|
||||
ALTER TABLE `#__weblinks` ADD COLUMN `images` text NOT NULL;
|
||||
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 - 2012 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 - 2012 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 - 2012 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 - 2012 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 = 'http://update.joomla.org/language/translationlist_3.xml'
|
||||
WHERE location = 'http://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.';
|
167
administrator/components/com_admin/sql/updates/mysql/3.1.0.sql
Normal file
167
administrator/components/com_admin/sql/updates/mysql/3.1.0.sql
Normal file
@ -0,0 +1,167 @@
|
||||
--
|
||||
-- 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, 'Weblink', 'com_weblinks.weblink', '{"special":{"dbtable":"#__weblinks","key":"id","type":"Weblink","prefix":"WeblinksTable","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":"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":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}], "special": []}','WeblinksHelperRoute::getWeblinkRoute'),
|
||||
(3, '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'),
|
||||
(4, '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'),
|
||||
(5, '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'),
|
||||
(6, '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'),
|
||||
(7, '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'),
|
||||
(8, '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'),
|
||||
(9, 'Weblinks Category', 'com_weblinks.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"}]}','WeblinksHelperRoute::getCategoryRoute'),
|
||||
(10, '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 - 2013 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 - 2013 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 - 2013 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 - 2013 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` (`id`, `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
|
||||
(23, '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,11 @@
|
||||
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":"#__weblinks","key":"id","type":"Weblink","prefix":"WeblinksTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}' WHERE `type_title` = 'Weblink';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":"#__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` = 'Weblinks 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_id` = '1';
|
||||
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":"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":"url", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}, "special": {}}' WHERE `type_id` = '2';
|
||||
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_id` = '3';
|
||||
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_id` = '4';
|
||||
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_id` = '5';
|
||||
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_id` = '6';
|
||||
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_id` = '7';
|
||||
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_id` = '8';
|
||||
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_id` = '9';
|
||||
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_id` = '10';
|
@ -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 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1 @@
|
||||
-- Placeholder file for database changes for version 3.0.0
|
@ -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" ALTER COLUMN id TYPE INT(11);
|
@ -0,0 +1,198 @@
|
||||
/* Changes to tables where data type conflicts exist with MySQL (mainly dealing with null values */
|
||||
ALTER TABLE "#__modules" ALTER COLUMN "content" SET DEFAULT '';
|
||||
ALTER TABLE "#__updates" ALTER COLUMN "data" SET DEFAULT '';
|
||||
|
||||
/* Tags database schema */
|
||||
|
||||
--
|
||||
-- Table: #__content_types
|
||||
--
|
||||
CREATE TABLE "#__content_types" (
|
||||
"type_id" serial NOT NULL,
|
||||
"type_title" character varying(255) NOT NULL DEFAULT '',
|
||||
"type_alias" character varying(255) NOT NULL DEFAULT '',
|
||||
"table" character varying(255) NOT NULL DEFAULT '',
|
||||
"rules" text NOT NULL,
|
||||
"field_mappings" text NOT NULL,
|
||||
"router" character varying(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY ("type_id")
|
||||
);
|
||||
CREATE INDEX "#__content_types_idx_alias" ON "#__content_types" ("type_alias");
|
||||
|
||||
--
|
||||
-- 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, 'Weblink', 'com_weblinks.weblink', '{"special":{"dbtable":"#__weblinks","key":"id","type":"Weblink","prefix":"WeblinksTable","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":"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":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}], "special": []}','WeblinksHelperRoute::getWeblinkRoute'),
|
||||
(3, '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'),
|
||||
(4, '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'),
|
||||
(5, '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'),
|
||||
(6, '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'),
|
||||
(7, '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'),
|
||||
(8, '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'),
|
||||
(9, 'Weblinks Category', 'com_weblinks.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"}]}','WeblinksHelperRoute::getCategoryRoute'),
|
||||
(10, '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');
|
||||
|
||||
SELECT nextval('#__content_types_type_id_seq');
|
||||
SELECT setval('#__content_types_type_id_seq', 10000, false);
|
||||
|
||||
--
|
||||
-- Table: #__contentitem_tag_map
|
||||
--
|
||||
CREATE TABLE "#__contentitem_tag_map" (
|
||||
"type_alias" character varying(255) NOT NULL DEFAULT '',
|
||||
"core_content_id" integer NOT NULL,
|
||||
"content_item_id" integer NOT NULL,
|
||||
"tag_id" integer NOT NULL,
|
||||
"tag_date" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
CONSTRAINT "uc_ItemnameTagid" UNIQUE ("type_alias", "content_item_id", "tag_id")
|
||||
);
|
||||
|
||||
CREATE INDEX "#__contentitem_tag_map_idx_tag_name" ON "#__contentitem_tag_map" ("tag_id", "type_alias");
|
||||
CREATE INDEX "#__contentitem_tag_map_idx_date_id" ON "#__contentitem_tag_map" ("tag_date", "tag_id");
|
||||
CREATE INDEX "#__contentitem_tag_map_idx_tag" ON "#__contentitem_tag_map" ("tag_id");
|
||||
CREATE INDEX "#__contentitem_tag_map_idx_core_content_id" ON "#__contentitem_tag_map" ("core_content_id");
|
||||
|
||||
COMMENT ON COLUMN "#__contentitem_tag_map"."core_content_id" IS 'PK from the core content table';
|
||||
COMMENT ON COLUMN "#__contentitem_tag_map"."content_item_id" IS 'PK from the content type table';
|
||||
COMMENT ON COLUMN "#__contentitem_tag_map"."tag_id" IS 'PK from the tag table';
|
||||
COMMENT ON COLUMN "#__contentitem_tag_map"."tag_date" IS 'Date of most recent save for this tag-item';
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table: #__tags
|
||||
--
|
||||
CREATE TABLE "#__tags" (
|
||||
"id" serial NOT NULL,
|
||||
"parent_id" bigint DEFAULT 0 NOT NULL,
|
||||
"lft" bigint DEFAULT 0 NOT NULL,
|
||||
"rgt" bigint DEFAULT 0 NOT NULL,
|
||||
"level" integer DEFAULT 0 NOT NULL,
|
||||
"path" character varying(255) DEFAULT '' NOT NULL,
|
||||
"title" character varying(255) NOT NULL,
|
||||
"alias" character varying(255) DEFAULT '' NOT NULL,
|
||||
"note" character varying(255) DEFAULT '' NOT NULL,
|
||||
"description" text DEFAULT '' NOT NULL,
|
||||
"published" smallint DEFAULT 0 NOT NULL,
|
||||
"checked_out" bigint DEFAULT 0 NOT NULL,
|
||||
"checked_out_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
"access" bigint DEFAULT 0 NOT NULL,
|
||||
"params" text NOT NULL,
|
||||
"metadesc" character varying(1024) NOT NULL,
|
||||
"metakey" character varying(1024) NOT NULL,
|
||||
"metadata" character varying(2048) NOT NULL,
|
||||
"created_user_id" integer DEFAULT 0 NOT NULL,
|
||||
"created_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
"created_by_alias" character varying(255) DEFAULT '' NOT NULL,
|
||||
"modified_user_id" integer DEFAULT 0 NOT NULL,
|
||||
"modified_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
"images" text NOT NULL,
|
||||
"urls" text NOT NULL,
|
||||
"hits" integer DEFAULT 0 NOT NULL,
|
||||
"language" character varying(7) DEFAULT '' NOT NULL,
|
||||
"version" bigint DEFAULT 1 NOT NULL,
|
||||
"publish_up" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
"publish_down" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
PRIMARY KEY ("id")
|
||||
);
|
||||
CREATE INDEX "#__tags_cat_idx" ON "#__tags" ("published", "access");
|
||||
CREATE INDEX "#__tags_idx_access" ON "#__tags" ("access");
|
||||
CREATE INDEX "#__tags_idx_checkout" ON "#__tags" ("checked_out");
|
||||
CREATE INDEX "#__tags_idx_path" ON "#__tags" ("path");
|
||||
CREATE INDEX "#__tags_idx_left_right" ON "#__tags" ("lft", "rgt");
|
||||
CREATE INDEX "#__tags_idx_alias" ON "#__tags" ("alias");
|
||||
CREATE INDEX "#__tags_idx_language" ON "#__tags" ("language");
|
||||
|
||||
--
|
||||
-- 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, '1970-01-01 00:00:00', 1, '{}', '', '', '', 42, '1970-01-01 00:00:00', '', 0, '1970-01-01 00:00:00', '', '', 0, '*', 1);
|
||||
|
||||
SELECT nextval('#__tags_id_seq');
|
||||
SELECT setval('#__tags_id_seq', 2, false);
|
||||
|
||||
--
|
||||
-- Table: #__ucm_base
|
||||
--
|
||||
CREATE TABLE "#__ucm_base" (
|
||||
"ucm_id" serial NOT NULL,
|
||||
"ucm_item_id" bigint NOT NULL,
|
||||
"ucm_type_id" bigint NOT NULL,
|
||||
"ucm_language_id" bigint NOT NULL,
|
||||
PRIMARY KEY ("ucm_id")
|
||||
);
|
||||
CREATE INDEX "#__ucm_base_ucm_item_id" ON "#__ucm_base" ("ucm_item_id");
|
||||
CREATE INDEX "#__ucm_base_ucm_type_id" ON "#__ucm_base" ("ucm_type_id");
|
||||
CREATE INDEX "#__ucm_base_ucm_language_id" ON "#__ucm_base" ("ucm_language_id");
|
||||
|
||||
--
|
||||
-- Table: #__ucm_content
|
||||
--
|
||||
CREATE TABLE "#__ucm_content" (
|
||||
"core_content_id" serial NOT NULL,
|
||||
"core_type_alias" character varying(255) DEFAULT '' NOT NULL,
|
||||
"core_title" character varying(255) NOT NULL,
|
||||
"core_alias" character varying(255) DEFAULT '' NOT NULL,
|
||||
"core_body" text NOT NULL,
|
||||
"core_state" smallint DEFAULT 0 NOT NULL,
|
||||
"core_checked_out_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
"core_checked_out_user_id" bigint DEFAULT 0 NOT NULL,
|
||||
"core_access" bigint DEFAULT 0 NOT NULL,
|
||||
"core_params" text NOT NULL,
|
||||
"core_featured" smallint DEFAULT 0 NOT NULL,
|
||||
"core_metadata" text NOT NULL,
|
||||
"core_created_user_id" bigint DEFAULT 0 NOT NULL,
|
||||
"core_created_by_alias" character varying(255) DEFAULT '' NOT NULL,
|
||||
"core_created_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
"core_modified_user_id" bigint DEFAULT 0 NOT NULL,
|
||||
"core_modified_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
"core_language" character varying(7) DEFAULT '' NOT NULL,
|
||||
"core_publish_up" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
"core_publish_down" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
"core_content_item_id" bigint DEFAULT 0 NOT NULL,
|
||||
"asset_id" bigint DEFAULT 0 NOT NULL,
|
||||
"core_images" text NOT NULL,
|
||||
"core_urls" text NOT NULL,
|
||||
"core_hits" bigint DEFAULT 0 NOT NULL,
|
||||
"core_version" bigint DEFAULT 1 NOT NULL,
|
||||
"core_ordering" bigint DEFAULT 0 NOT NULL,
|
||||
"core_metakey" text NOT NULL,
|
||||
"core_metadesc" text NOT NULL,
|
||||
"core_catid" bigint DEFAULT 0 NOT NULL,
|
||||
"core_xreference" character varying(50) DEFAULT '' NOT NULL,
|
||||
"core_type_id" bigint DEFAULT 0 NOT NULL,
|
||||
PRIMARY KEY ("core_content_id"),
|
||||
CONSTRAINT "#__ucm_content_idx_type_alias_item_id" UNIQUE ("core_type_alias", "core_content_item_id")
|
||||
);
|
||||
CREATE INDEX "#__ucm_content_tag_idx" ON "#__ucm_content" ("core_state", "core_access");
|
||||
CREATE INDEX "#__ucm_content_idx_access" ON "#__ucm_content" ("core_access");
|
||||
CREATE INDEX "#__ucm_content_idx_alias" ON "#__ucm_content" ("core_alias");
|
||||
CREATE INDEX "#__ucm_content_idx_language" ON "#__ucm_content" ("core_language");
|
||||
CREATE INDEX "#__ucm_content_idx_title" ON "#__ucm_content" ("core_title");
|
||||
CREATE INDEX "#__ucm_content_idx_modified_time" ON "#__ucm_content" ("core_modified_time");
|
||||
CREATE INDEX "#__ucm_content_idx_created_time" ON "#__ucm_content" ("core_created_time");
|
||||
CREATE INDEX "#__ucm_content_idx_content_type" ON "#__ucm_content" ("core_type_alias");
|
||||
CREATE INDEX "#__ucm_content_idx_core_modified_user_id" ON "#__ucm_content" ("core_modified_user_id");
|
||||
CREATE INDEX "#__ucm_content_idx_core_checked_out_user_id" ON "#__ucm_content" ("core_checked_out_user_id");
|
||||
CREATE INDEX "#__ucm_content_idx_core_created_user_id" ON "#__ucm_content" ("core_created_user_id");
|
||||
CREATE INDEX "#__ucm_content_idx_core_type_id" ON "#__ucm_content" ("core_type_id");
|
||||
|
||||
--
|
||||
-- Add extensions table records
|
||||
--
|
||||
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 - 2013 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, '1970-01-01 00:00:00', 0, 0),
|
||||
(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 - 2013 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, '1970-01-01 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 - 2013 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, '1970-01-01 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 - 2013 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, '1970-01-01 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 - 2013 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, '1970-01-01 00:00:00', 0, 0);
|
||||
|
||||
--
|
||||
-- Add menu table records
|
||||
--
|
||||
INSERT INTO "#__menu" ( "id", "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
|
||||
(23, 'main', 'com_tags', 'Tags', '', 'Tags', 'index.php?option=com_tags', 'component', 0, 1, 1, 29, 0, '1970-01-01 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,11 @@
|
||||
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":"#__weblinks","key":"id","type":"Weblink","prefix":"WeblinksTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}' WHERE "type_title" = 'Weblink';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":"#__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" = 'Weblinks 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_id" = '1';
|
||||
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":"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":"url", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}, "special": {}}' WHERE "type_id" = '2';
|
||||
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_id" = '3';
|
||||
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_id" = '4';
|
||||
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_id" = '5';
|
||||
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_id" = '6';
|
||||
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_id" = '7';
|
||||
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_id" = '8';
|
||||
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_id" = '9';
|
||||
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_id" = '10';
|
@ -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, '1970-01-01 00:00:00', 0, 0);
|
@ -0,0 +1 @@
|
||||
# Placeholder file for database changes for version 3.1.5
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1 @@
|
||||
# Dummy SQL file to set schema version
|
@ -0,0 +1 @@
|
||||
# Dummy SQL file to set schema version
|
@ -0,0 +1,13 @@
|
||||
SET IDENTITY_INSERT #__extensions ON;
|
||||
|
||||
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)
|
||||
SELECT 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 - 2012 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, '1900-01-01 00:00:00', 0, 0;
|
||||
|
||||
SET IDENTITY_INSERT #__extensions OFF;
|
||||
|
||||
SET IDENTITY_INSERT #__menu ON;
|
||||
|
||||
INSERT INTO #__menu (id, 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)
|
||||
SELECT 22, 'menu', 'com_joomlaupdate', 'Joomla! Update', '', 'Joomla! Update', 'index.php?option=com_joomlaupdate', 'component', 0, 1, 1, 28, 0, 0, '1900-01-01 00:00:00', 0, 0, 'class:joomlaupdate', 0, '', 41, 42, 0, '*', 1;
|
||||
|
||||
SET IDENTITY_INSERT #__menu OFF;
|
@ -0,0 +1,7 @@
|
||||
ALTER TABLE [#__languages] ADD [access] INTEGER CONSTRAINT DF_languages_access DEFAULT '' NOT NULL
|
||||
|
||||
CREATE UNIQUE INDEX idx_access ON [jos_languages] (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 [hits] INTEGER CONSTRAINT DF_redirect_links_hits DEFAULT '' NOT NULL;
|
||||
ALTER TABLE [#__users] ADD [lastResetTime] [datetime] NOT NULL;
|
||||
ALTER TABLE [#__users] ADD [resetCount] [int] NOT NULL;
|
@ -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', 'http://update.joomla.org/language/translationlist.xml', 1, 0);INSERT INTO #__update_sites_extensions (update_site_id, extension_id) VALUES (SCOPE_IDENTITY(), 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 @@
|
||||
# Placeholder file for database changes for version 3.0.0
|
@ -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 ALTER COLUMN id INT;
|
@ -0,0 +1,336 @@
|
||||
/* Changes to Smart Search tables for driver compatibility */
|
||||
ALTER TABLE [#__finder_tokens_aggregate] ALTER COLUMN [term_id] [bigint] NULL;
|
||||
ALTER TABLE [#__finder_tokens_aggregate] ALTER COLUMN [map_suffix] [nchar](1) NULL;
|
||||
ALTER TABLE [#__finder_tokens_aggregate] ADD DEFAULT ((0)) FOR [term_id];
|
||||
ALTER TABLE [#__finder_tokens_aggregate] ADD DEFAULT ((0)) FOR [total_weight];
|
||||
|
||||
/* Changes to tables where data type conflicts exist with MySQL (mainly dealing with null values */
|
||||
ALTER TABLE [#__extensions] ADD DEFAULT (N'') FOR [system_data];
|
||||
ALTER TABLE [#__modules] ADD DEFAULT (N'') FOR [content];
|
||||
ALTER TABLE [#__updates] ADD DEFAULT (N'') FOR [data];
|
||||
|
||||
/* Tags database schema */
|
||||
|
||||
/****** Object: Table [#__content_types] ******/
|
||||
SET QUOTED_IDENTIFIER ON;
|
||||
|
||||
CREATE TABLE [#__content_types](
|
||||
[type_id] [bigint] IDENTITY(1,1) NOT NULL,
|
||||
[type_title] [nvarchar](255) NOT NULL DEFAULT '',
|
||||
[type_alias] [nvarchar](255) NOT NULL DEFAULT '',
|
||||
[table] [nvarchar](255) NOT NULL DEFAULT '',
|
||||
[rules] [nvarchar](max) NOT NULL,
|
||||
[field_mappings] [nvarchar](max) NOT NULL,
|
||||
[router] [nvarchar](255) NOT NULL DEFAULT '',
|
||||
CONSTRAINT [PK_#__content_types_type_id] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[type_id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY];
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_alias] ON [#__content_types]
|
||||
(
|
||||
[type_alias] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
SET IDENTITY_INSERT #__content_types ON;
|
||||
|
||||
INSERT INTO #__content_types ([type_id],[type_title],[type_alias],[table],[rules],[field_mappings],[router])
|
||||
SELECT 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'
|
||||
UNION ALL
|
||||
SELECT 2,'Weblink','com_weblinks.weblink','{"special":{"dbtable":"#__weblinks","key":"id","type":"Weblink","prefix":"WeblinksTable","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":"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":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}], "special": []}','WeblinksHelperRoute::getWeblinkRoute'
|
||||
UNION ALL
|
||||
SELECT 3,'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'
|
||||
UNION ALL
|
||||
SELECT 4,'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'
|
||||
UNION ALL
|
||||
SELECT 5,'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'
|
||||
UNION ALL
|
||||
SELECT 6,'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'
|
||||
UNION ALL
|
||||
SELECT 7,'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'
|
||||
UNION ALL
|
||||
SELECT 8,'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'
|
||||
UNION ALL
|
||||
SELECT 9,'Weblinks Category','com_weblinks.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"}]}','WeblinksHelperRoute::getCategoryRoute'
|
||||
UNION ALL
|
||||
SELECT 10,'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';
|
||||
|
||||
SET IDENTITY_INSERT #__content_types OFF;
|
||||
|
||||
|
||||
/****** Object: Table [#__contentitem_tag_map] ******/
|
||||
SET QUOTED_IDENTIFIER ON;
|
||||
|
||||
CREATE TABLE [#__contentitem_tag_map](
|
||||
[type_alias] [nvarchar](255) NOT NULL DEFAULT '',
|
||||
[core_content_id] [bigint] NOT NULL,
|
||||
[content_item_id] [int] NOT NULL,
|
||||
[tag_id] [bigint] NOT NULL,
|
||||
[tag_date] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
|
||||
CONSTRAINT [#__contentitem_tag_map$uc_ItemnameTagid] UNIQUE NONCLUSTERED
|
||||
(
|
||||
[type_alias] ASC,
|
||||
[content_item_id] ASC,
|
||||
[tag_id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY];
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_tag_name] ON [#__contentitem_tag_map]
|
||||
(
|
||||
[tag_id] ASC,
|
||||
[type_alias] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_date_id] ON [#__contentitem_tag_map]
|
||||
(
|
||||
[tag_date] ASC,
|
||||
[tag_id] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_tag] ON [#__contentitem_tag_map]
|
||||
(
|
||||
[tag_id] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_core_content_id] ON [#__contentitem_tag_map]
|
||||
(
|
||||
[core_content_id] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
|
||||
/****** Object: Table [#__tags] ******/
|
||||
SET QUOTED_IDENTIFIER ON;
|
||||
|
||||
CREATE TABLE [#__tags](
|
||||
[id] [int] IDENTITY(1,1) NOT NULL ,
|
||||
[parent_id] [bigint] NOT NULL DEFAULT '0',
|
||||
[lft] [int] NOT NULL DEFAULT '0',
|
||||
[rgt] [int] NOT NULL DEFAULT '0',
|
||||
[level] [bigint] NOT NULL DEFAULT '0',
|
||||
[path] [nvarchar](255) NOT NULL DEFAULT '',
|
||||
[title] [nvarchar](255) NOT NULL,
|
||||
[alias] [nvarchar](255) NOT NULL DEFAULT '',
|
||||
[note] [nvarchar](255) NOT NULL DEFAULT '',
|
||||
[description] [nvarchar](max) NOT NULL,
|
||||
[published] [smallint] NOT NULL DEFAULT '0',
|
||||
[checked_out] [bigint] NOT NULL DEFAULT '0',
|
||||
[checked_out_time] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
|
||||
[access] [int] NOT NULL DEFAULT '0',
|
||||
[params] [nvarchar](max) NOT NULL,
|
||||
[metadesc] [nvarchar](1024) NOT NULL,
|
||||
[metakey] [nvarchar](1024) NOT NULL,
|
||||
[metadata] [nvarchar](2048) NOT NULL,
|
||||
[created_user_id] [bigint] NOT NULL DEFAULT '0',
|
||||
[created_time] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
|
||||
[created_by_alias] [nvarchar](255) NOT NULL DEFAULT '',
|
||||
[modified_user_id] [bigint] NOT NULL DEFAULT '0',
|
||||
[modified_time] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
|
||||
[images] [nvarchar](max) NOT NULL,
|
||||
[urls] [nvarchar](max) NOT NULL,
|
||||
[hits] [bigint] NOT NULL DEFAULT '0',
|
||||
[language] [nvarchar](7) NOT NULL,
|
||||
[version] [bigint] NOT NULL DEFAULT '1',
|
||||
[publish_up] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
|
||||
[publish_down] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
|
||||
CONSTRAINT [PK_#__tags_id] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY];
|
||||
|
||||
CREATE NONCLUSTERED INDEX [tag_idx] ON [#__tags]
|
||||
(
|
||||
[published] ASC,
|
||||
[access] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_access] ON [#__tags]
|
||||
(
|
||||
[access] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_checkout] ON [#__tags]
|
||||
(
|
||||
[checked_out] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_path] ON [#__tags]
|
||||
(
|
||||
[path] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_left_right] ON [#__tags]
|
||||
(
|
||||
[lft] ASC,
|
||||
[rgt] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_alias] ON [#__tags]
|
||||
(
|
||||
[alias] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_language] ON [#__tags]
|
||||
(
|
||||
[language] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
SET IDENTITY_INSERT #__tags ON;
|
||||
|
||||
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,modified_user_id,modified_time,images,urls,hits,language)
|
||||
SELECT 1,0,0,1,0,'','ROOT','root','','',1,0,'1900-01-01 00:00:00',1,'{}','','','',0,'2009-10-18 16:07:09',0,'1900-01-01 00:00:00','','',0,'*';
|
||||
|
||||
SET IDENTITY_INSERT #__tags OFF;
|
||||
|
||||
/****** Object: Table [#__ucm_base] ******/
|
||||
SET QUOTED_IDENTIFIER ON;
|
||||
|
||||
CREATE TABLE [#__ucm_base](
|
||||
[ucm_id] [bigint] IDENTITY(1,1) NOT NULL,
|
||||
[ucm_item_id] [bigint] NOT NULL,
|
||||
[ucm_type_id] [bigint] NOT NULL,
|
||||
[ucm_language_id] [bigint] NOT NULL,
|
||||
CONSTRAINT [PK_#__ucm_base_ucm_id] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[ucm_id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
|
||||
) ON [PRIMARY];
|
||||
|
||||
CREATE NONCLUSTERED INDEX [ucm_item_id] ON [#__ucm_base]
|
||||
(
|
||||
[ucm_item_id] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [ucm_type_id] ON [#__ucm_base]
|
||||
(
|
||||
[ucm_type_id] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [ucm_language_id] ON [#__ucm_base]
|
||||
(
|
||||
[ucm_language_id] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
/****** Object: Table [#__ucm_content] ******/
|
||||
SET QUOTED_IDENTIFIER ON;
|
||||
|
||||
CREATE TABLE [#__ucm_content](
|
||||
[core_content_id] [bigint] IDENTITY(1,1) NOT NULL,
|
||||
[core_type_alias] [nvarchar](255) NOT NULL,
|
||||
[core_title] [nvarchar](255) NOT NULL DEFAULT '',
|
||||
[core_alias] [nvarchar](255) NOT NULL DEFAULT '',
|
||||
[core_body] [nvarchar](max) NOT NULL,
|
||||
[core_state] [smallint] NOT NULL DEFAULT '0',
|
||||
[core_checked_out_time] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
|
||||
[core_checked_out_user_id] [bigint] NOT NULL DEFAULT '0',
|
||||
[core_access] [bigint] NOT NULL DEFAULT '0',
|
||||
[core_params] [nvarchar](max) NOT NULL,
|
||||
[core_featured] [tinyint] NOT NULL DEFAULT '0',
|
||||
[core_metadata] [nvarchar](max) NOT NULL,
|
||||
[core_created_user_id] [bigint] NOT NULL DEFAULT '0',
|
||||
[core_created_by_alias] [nvarchar](255) NOT NULL DEFAULT '',
|
||||
[core_created_time] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
|
||||
[core_modified_user_id] [bigint] NOT NULL DEFAULT '0',
|
||||
[core_modified_time] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
|
||||
[core_language] [nvarchar](7) NOT NULL,
|
||||
[core_publish_up] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
|
||||
[core_publish_down] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
|
||||
[core_content_item_id] [bigint] NOT NULL DEFAULT '0',
|
||||
[asset_id] [bigint] NOT NULL DEFAULT '0',
|
||||
[core_images] [nvarchar](max) NOT NULL,
|
||||
[core_urls] [nvarchar](max) NOT NULL,
|
||||
[core_hits] [bigint] NOT NULL DEFAULT '0',
|
||||
[core_version] [bigint] NOT NULL DEFAULT '1',
|
||||
[core_ordering] [int] NOT NULL DEFAULT '0',
|
||||
[core_metakey] [nvarchar](max) NOT NULL,
|
||||
[core_metadesc] [nvarchar](max) NOT NULL,
|
||||
[core_catid] [bigint] NOT NULL DEFAULT '0',
|
||||
[core_xreference] [nvarchar](50) NOT NULL,
|
||||
[core_type_id] [bigint] NOT NULL DEFAULT '0',
|
||||
CONSTRAINT [PK_#__ucm_content_core_content_id] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[core_content_id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
|
||||
CONSTRAINT [#__ucm_content_core_content_id$idx_type_alias_item_id] UNIQUE NONCLUSTERED
|
||||
(
|
||||
[core_type_alias] ASC,
|
||||
[core_content_item_id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY];
|
||||
|
||||
CREATE NONCLUSTERED INDEX [tag_idx] ON [#__ucm_content]
|
||||
(
|
||||
[core_state] ASC,
|
||||
[core_access] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_access] ON [#__ucm_content]
|
||||
(
|
||||
[core_access] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_alias] ON [#__ucm_content]
|
||||
(
|
||||
[core_alias] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_language] ON [#__ucm_content]
|
||||
(
|
||||
[core_language] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_title] ON [#__ucm_content]
|
||||
(
|
||||
[core_title] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_modified_time] ON [#__ucm_content]
|
||||
(
|
||||
[core_modified_time] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_created_time] ON [#__ucm_content]
|
||||
(
|
||||
[core_created_time] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_content_type] ON [#__ucm_content]
|
||||
(
|
||||
[core_type_alias] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_core_modified_user_id] ON [#__ucm_content]
|
||||
(
|
||||
[core_modified_user_id] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_core_checked_out_user_id] ON [#__ucm_content]
|
||||
(
|
||||
[core_checked_out_user_id] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_core_created_user_id] ON [#__ucm_content]
|
||||
(
|
||||
[core_created_user_id] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
CREATE NONCLUSTERED INDEX [idx_core_type_id] ON [#__ucm_content]
|
||||
(
|
||||
[core_type_id] ASC
|
||||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
|
||||
|
||||
|
||||
SET IDENTITY_INSERT #__extensions ON;
|
||||
|
||||
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)
|
||||
SELECT 29, 'com_tags', 'component', 'com_tags', '', 1, 1, 1, 1, '{"name":"com_joomlaupdate","type":"component","creationDate":"March 2013","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.0","description":"COM_TAGS_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '1900-01-01 00:00:00', 0, 0;
|
||||
|
||||
SET IDENTITY_INSERT #__extensions OFF;
|
||||
|
||||
SET IDENTITY_INSERT #__menu ON;
|
||||
|
||||
INSERT INTO #__menu (id, 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)
|
||||
SELECT 23, 'menu', 'com_tags', 'Tags', '', 'Tags', 'index.php?option=com_tags', 'component', 0, 1, 1, 29, 0, '1900-01-01 00:00:00', 0, 0, 'class:tags', 0, '', 43, 44, 0, '*', 1
|
||||
|
||||
SET IDENTITY_INSERT #__menu OFF;
|
@ -0,0 +1 @@
|
||||
# Placeholder file for database changes for version 3.1.1
|
@ -0,0 +1,11 @@
|
||||
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":"#__weblinks","key":"id","type":"Weblink","prefix":"WeblinksTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}' WHERE [type_title] = 'Weblink';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":"#__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] = 'Weblinks 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_id] = '1';
|
||||
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":"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":"url", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}, "special": {}}' WHERE [type_id] = '2';
|
||||
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_id] = '3';
|
||||
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_id] = '4';
|
||||
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_id] = '5';
|
||||
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_id] = '6';
|
||||
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_id] = '7';
|
||||
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_id] = '8';
|
||||
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_id] = '9';
|
||||
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_id] = '10';
|
@ -0,0 +1 @@
|
||||
# Placeholder file for database changes for version 3.1.3
|
@ -0,0 +1,6 @@
|
||||
SET IDENTITY_INSERT #__extensions ON;
|
||||
|
||||
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)
|
||||
SELECT 104, 'IDNA Convert', 'library', 'idna_convert', '', 0, 1, 1, 1, '', '', '', '', 0, '1900-01-01 00:00:00', 0, 0;
|
||||
|
||||
SET IDENTITY_INSERT #__extensions OFF;
|
@ -0,0 +1 @@
|
||||
# Placeholder file for database changes for version 3.1.5
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
1
administrator/components/com_admin/views/help/index.html
Normal file
1
administrator/components/com_admin/views/help/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('bootstrap.tooltip');
|
||||
?>
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_admin&view=help'); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<div class="row-fluid">
|
||||
<div id="sidebar" class="span3">
|
||||
<div id="filter-bar" class="btn-toolbar">
|
||||
<div class="filter-search input-append">
|
||||
<label for="helpsearch" class="element-invisible"><?php echo JText::_('COM_ADMIN_SEARCH'); ?></label>
|
||||
<input type="text" name="helpsearch" id="helpsearch" placeholder="<?php echo JText::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->help_search); ?>" class="input-small hasTooltip" title="<?php echo JHtml::tooltipText('COM_ADMIN_SEARCH'); ?>" />
|
||||
<button type="submit" class="btn hasTooltip" title="<?php JHtml::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>">
|
||||
<i class="icon-search"></i></button>
|
||||
<button type="button" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="f=document.adminForm;f.helpsearch.value='';f.submit()">
|
||||
<i class="icon-remove"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"> </div>
|
||||
<div class="sidebar-nav">
|
||||
<ul class="nav nav-list">
|
||||
<li><?php echo JHtml::_('link', JHelp::createUrl('JHELP_START_HERE'), JText::_('COM_ADMIN_START_HERE'), array('target' => 'helpFrame')) ?></li>
|
||||
<li><?php echo JHtml::_('link', $this->latest_version_check, JText::_('COM_ADMIN_LATEST_VERSION_CHECK'), array('target' => 'helpFrame')) ?></li>
|
||||
<li><?php echo JHtml::_('link', 'http://www.gnu.org/licenses/gpl-2.0.html', JText::_('COM_ADMIN_LICENSE'), array('target' => 'helpFrame')) ?></li>
|
||||
<li><?php echo JHtml::_('link', JHelp::createUrl('JHELP_GLOSSARY'), JText::_('COM_ADMIN_GLOSSARY'), array('target' => 'helpFrame')) ?></li>
|
||||
<hr class="hr-condensed" />
|
||||
<li class="nav-header"><?php echo JText::_('COM_ADMIN_ALPHABETICAL_INDEX'); ?></li>
|
||||
<?php foreach ($this->toc as $k => $v):?>
|
||||
<li>
|
||||
<?php $url = JHelp::createUrl('JHELP_'.strtoupper($k)); ?>
|
||||
<?php echo JHtml::_('link', $url, $v, array('target' => 'helpFrame'));?>
|
||||
</li>
|
||||
<?php endforeach;?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<iframe name="helpFrame" height="2100px" src="<?php echo $this->page;?>" class="helpFrame table table-bordered"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<input class="textarea" type="hidden" name="option" value="com_admin" />
|
||||
</form>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
74
administrator/components/com_admin/views/help/view.html.php
Normal file
74
administrator/components/com_admin/views/help/view.html.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* HTML View class for the Admin component
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
* @since 1.6
|
||||
*/
|
||||
class AdminViewHelp extends JViewLegacy
|
||||
{
|
||||
/**
|
||||
* @var string the search string
|
||||
*/
|
||||
protected $help_search = null;
|
||||
|
||||
/**
|
||||
* @var string the page to be viewed
|
||||
*/
|
||||
protected $page = null;
|
||||
|
||||
/**
|
||||
* @var string the iso language tag
|
||||
*/
|
||||
protected $lang_tag = null;
|
||||
|
||||
/**
|
||||
* @var array Table of contents
|
||||
*/
|
||||
protected $toc = null;
|
||||
|
||||
/**
|
||||
* @var string url for the latest version check
|
||||
*/
|
||||
protected $latest_version_check = 'http://www.joomla.org/download.html';
|
||||
|
||||
/**
|
||||
* @var string url for the start here link.
|
||||
*/
|
||||
protected $start_here = null;
|
||||
|
||||
/**
|
||||
* Display the view
|
||||
*/
|
||||
public function display($tpl = null)
|
||||
{
|
||||
$this->help_search = $this->get('HelpSearch');
|
||||
$this->page = $this->get('Page');
|
||||
$this->toc = $this->get('Toc');
|
||||
$this->lang_tag = $this->get('LangTag');
|
||||
$this->latest_version_check = $this->get('LatestVersionCheck');
|
||||
|
||||
$this->addToolbar();
|
||||
parent::display($tpl);
|
||||
}
|
||||
/**
|
||||
* Setup the Toolbar
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function addToolbar()
|
||||
{
|
||||
JToolbarHelper::title(JText::_('COM_ADMIN_HELP'), 'help_header.png');
|
||||
}
|
||||
}
|
1
administrator/components/com_admin/views/index.html
Normal file
1
administrator/components/com_admin/views/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Include the component HTML helpers.
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
|
||||
JHtml::_('behavior.formvalidation');
|
||||
|
||||
// Load chosen.css
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
|
||||
// Get the form fieldsets.
|
||||
$fieldsets = $this->form->getFieldsets();
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
Joomla.submitbutton = function(task)
|
||||
{
|
||||
if (task == 'profile.cancel' || document.formvalidator.isValid(document.id('profile-form')))
|
||||
{
|
||||
Joomla.submitform(task, document.getElementById('profile-form'));
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_admin&view=profile&layout=edit&id='.$this->item->id); ?>" method="post" name="adminForm" id="profile-form" class="form-validate form-horizontal" enctype="multipart/form-data">
|
||||
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'account')); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'account', JText::_('COM_ADMIN_USER_ACCOUNT_DETAILS', true)); ?>
|
||||
<?php foreach ($this->form->getFieldset('user_details') as $field) : ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $field->label; ?></div>
|
||||
<div class="controls"><?php echo $field->input; ?></div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php
|
||||
foreach ($fieldsets as $fieldset) :
|
||||
if ($fieldset->name == 'user_details') :
|
||||
continue;
|
||||
endif;
|
||||
?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', $fieldset->name, JText::_($fieldset->label, true)); ?>
|
||||
<?php foreach ($this->form->getFieldset($fieldset->name) as $field) : ?>
|
||||
<?php if ($field->hidden) : ?>
|
||||
<div class="control-group">
|
||||
<div class="controls"><?php echo $field->input; ?></div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $field->label; ?></div>
|
||||
<div class="controls"><?php echo $field->input; ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* View class to allow users edit their own profile.
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
* @since 1.6
|
||||
*/
|
||||
class AdminViewProfile extends JViewLegacy
|
||||
{
|
||||
protected $form;
|
||||
|
||||
protected $item;
|
||||
|
||||
protected $state;
|
||||
|
||||
/**
|
||||
* Display the view
|
||||
*/
|
||||
public function display($tpl = null)
|
||||
{
|
||||
$this->form = $this->get('Form');
|
||||
$this->item = $this->get('Item');
|
||||
$this->state = $this->get('State');
|
||||
|
||||
// Check for errors.
|
||||
if (count($errors = $this->get('Errors')))
|
||||
{
|
||||
JError::raiseError(500, implode("\n", $errors));
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->form->setValue('password', null);
|
||||
$this->form->setValue('password2', null);
|
||||
|
||||
parent::display($tpl);
|
||||
$this->addToolbar();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the page title and toolbar.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function addToolbar()
|
||||
{
|
||||
JFactory::getApplication()->input->set('hidemainmenu', 1);
|
||||
|
||||
JToolbarHelper::title(JText::_('COM_ADMIN_VIEW_PROFILE_TITLE'), 'user-profile');
|
||||
JToolbarHelper::apply('profile.apply');
|
||||
JToolbarHelper::save('profile.save');
|
||||
JToolbarHelper::cancel('profile.cancel', 'JTOOLBAR_CLOSE');
|
||||
JToolbarHelper::divider();
|
||||
JToolbarHelper::help('JHELP_ADMIN_USER_PROFILE_EDIT');
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Add specific helper files for html generation
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
|
||||
?>
|
||||
|
||||
<form action="<?php echo JRoute::_('index.php'); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<div class="row-fluid">
|
||||
<!-- Begin Content -->
|
||||
<div class="span10">
|
||||
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'site')); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'site', JText::_('COM_ADMIN_SYSTEM_INFORMATION', true)); ?>
|
||||
<?php echo $this->loadTemplate('system'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'phpsettings', JText::_('COM_ADMIN_PHP_SETTINGS', true)); ?>
|
||||
<?php echo $this->loadTemplate('phpsettings'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'config', JText::_('COM_ADMIN_CONFIGURATION_FILE', true)); ?>
|
||||
<?php echo $this->loadTemplate('config'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'directory', JText::_('COM_ADMIN_DIRECTORY_PERMISSIONS', true)); ?>
|
||||
<?php echo $this->loadTemplate('directory'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'phpinfo', JText::_('COM_ADMIN_PHP_INFORMATION', true)); ?>
|
||||
<?php echo $this->loadTemplate('phpinfo'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
|
||||
</div>
|
||||
<!-- End Content -->
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<fieldset class="adminform">
|
||||
<legend><?php echo JText::_('COM_ADMIN_CONFIGURATION_FILE'); ?></legend>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="300">
|
||||
<?php echo JText::_('COM_ADMIN_SETTING'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo JText::_('COM_ADMIN_VALUE'); ?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php foreach ($this->config as $key => $value):?>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo $key;?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo htmlspecialchars($value, ENT_QUOTES);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<fieldset class="adminform">
|
||||
<legend><?php echo JText::_('COM_ADMIN_DIRECTORY_PERMISSIONS'); ?></legend>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="650">
|
||||
<?php echo JText::_('COM_ADMIN_DIRECTORY'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo JText::_('COM_ADMIN_STATUS'); ?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php foreach ($this->directory as $dir => $info) : ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JHtml::_('directory.message', $dir, $info['message']);?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('directory.writable', $info['writable']);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<fieldset class="adminform">
|
||||
<legend><?php echo JText::_('COM_ADMIN_PHP_INFORMATION'); ?></legend>
|
||||
<?php echo $this->php_info;?>
|
||||
</fieldset>
|
@ -0,0 +1,162 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<fieldset class="adminform">
|
||||
<legend><?php echo JText::_('COM_ADMIN_RELEVANT_PHP_SETTINGS'); ?></legend>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="250">
|
||||
<?php echo JText::_('COM_ADMIN_SETTING'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo JText::_('COM_ADMIN_VALUE'); ?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2"> 
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_SAFE_MODE'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['safe_mode']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_OPEN_BASEDIR'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.string', $this->php_settings['open_basedir']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_DISPLAY_ERRORS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['display_errors']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_SHORT_OPEN_TAGS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['short_open_tag']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_FILE_UPLOADS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['file_uploads']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_MAGIC_QUOTES'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['magic_quotes_gpc']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_REGISTER_GLOBALS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['register_globals']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_OUTPUT_BUFFERING'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['output_buffering']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_SESSION_SAVE_PATH'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.string', $this->php_settings['session.save_path']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_SESSION_AUTO_START'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.integer', $this->php_settings['session.auto_start']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_XML_ENABLED'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.set', $this->php_settings['xml']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_ZLIB_ENABLED'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.set', $this->php_settings['zlib']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_ZIP_ENABLED'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.set', $this->php_settings['zip']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_DISABLED_FUNCTIONS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.string', $this->php_settings['disable_functions']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_MBSTRING_ENABLED'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.set', $this->php_settings['mbstring']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo JText::_('COM_ADMIN_ICONV_AVAILABLE'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('phpsetting.set', $this->php_settings['iconv']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
@ -0,0 +1,105 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<fieldset class="adminform">
|
||||
<legend><?php echo JText::_('COM_ADMIN_SYSTEM_INFORMATION'); ?></legend>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="25%">
|
||||
<?php echo JText::_('COM_ADMIN_SETTING'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo JText::_('COM_ADMIN_VALUE'); ?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('COM_ADMIN_PHP_BUILT_ON'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->info['php'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('COM_ADMIN_DATABASE_VERSION'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->info['dbversion'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('COM_ADMIN_DATABASE_COLLATION'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->info['dbcollation'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('COM_ADMIN_PHP_VERSION'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->info['phpversion'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('COM_ADMIN_WEB_SERVER'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo JHtml::_('system.server', $this->info['server']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('COM_ADMIN_WEBSERVER_TO_PHP_INTERFACE'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->info['sapi_name'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('COM_ADMIN_JOOMLA_VERSION'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->info['version'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('COM_ADMIN_PLATFORM_VERSION'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->info['platform'];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('COM_ADMIN_USER_AGENT'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo htmlspecialchars($this->info['useragent']);?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user