Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding modx

  • Loading branch information...
commit b542432ce6a47bfc57d976874a8bf29af7911ef5 1 parent 343c1d7
@igorw igorw authored
Showing with 2,343 additions and 0 deletions.
  1. +340 −0 license.txt
  2. +2,003 −0 modx.prosilver.en.xsl
View
340 license.txt
@@ -0,0 +1,340 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Library General
+Public License instead of this License.
View
2,003 modx.prosilver.en.xsl
@@ -0,0 +1,2003 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- MODX by the phpBB MOD Team XSL file v1.2.2 copyright 2005-2009 the phpBB MOD Team.
+ This file is released under the GNU GPL version 2. See license.txt.
+ $Id: modx.prosilver.en.xsl 2937 2009-04-28 00:13:55Z jelly_doughnut $ -->
+<!DOCTYPE xsl:stylesheet[
+ <!ENTITY nbsp "&#160;">
+]>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:mod="http://www.phpbb.com/mods/xml/modx-1.2.2.xsd">
+ <xsl:output method="html" omit-xml-declaration="no" indent="yes" />
+ <xsl:variable name="title" select="mod:mod/mod:header/mod:title" />
+ <xsl:variable name="version">
+ <xsl:for-each select="mod:mod/mod:header/mod:mod-version">
+ <xsl:value-of select="current()" />
+ </xsl:for-each>
+ </xsl:variable>
+ <xsl:template match="mod:mod">
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Language" content="en" />
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <style type="text/css">
+/* phpBB 3.0 Admin Style Sheet
+ –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
+ Original author: subBlue ( http://www.subblue.com/ )
+ Copyright 2007 phpBB Group ( http://www.phpbb.com/ )
+ –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
+*/
+
+/* General markup styles
+––––––––––––––––––––––––––––––*/
+* {
+ /* Reset browsers default margin, padding and font sizes */
+ margin:0;
+ padding:0;
+ font-size:100%;
+}
+
+body, div, p, th, td, li, dd {
+ font-size:x-small;
+ voice-family:"\"}\"";
+ voice-family:inherit;
+ font-size:100%;
+}
+
+html>body, html>div, html>p, html>th, html>td, html>li, html>dd {
+ font-size:small
+}
+
+html {
+ color:#536482;
+ background:#DBD7D1;
+ /* Always show a scrollbar for short pages - stops the jump when the scrollbar appears. non-ie browsers */
+ height:100%;
+ margin-bottom:1px;
+}
+
+body {
+ /* Text-Sizing with ems:http://www.clagnut.com/blog/348/ */
+ font-family:"Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
+ color:#536482;
+ background:#DBD7D1;
+ font-size:82.5%; /* This sets the default font size to be equivalent to 10px */
+ margin:10px 15px;
+}
+
+img {
+ border:0;
+}
+
+h1 {
+ font-family:"Trebuchet MS", Helvetica, sans-serif;
+ font-size:1.70em;
+ font-weight:normal;
+ color:#333333;
+}
+
+h2, caption {
+ font-family:"Trebuchet MS", Helvetica, sans-serif;
+ font-size:1.40em;
+ font-weight:normal;
+ color:#115098;
+ text-align:left;
+ margin-top:25px;
+}
+
+.rtl h2, .rtl caption {
+ text-align:right;
+}
+
+h3, h4, h5 {
+ font-family:"Trebuchet MS", Helvetica, sans-serif;
+ font-size:1.20em;
+ text-decoration:none;
+ line-height:1.20em;
+ margin-top:10px;
+}
+
+p {
+ margin-bottom:0.7em;
+ line-height:1.40em;
+ font-size:1.0em;
+}
+
+ul {
+ list-style:disc;
+ margin:0 0 1em 2em;
+}
+
+.rtl ul {
+ margin:0 2em 1em 0;
+}
+
+hr {
+ border:0 none;
+ border-top:1px dashed #999999;
+ margin-bottom:5px;
+ padding-bottom:5px;
+ height:1px;
+}
+
+.small {
+ font-size:0.85em;
+}
+
+/* General links */
+a:link, a:visited {
+ color:#105289;
+ text-decoration:none;
+}
+
+a:link:hover {
+ color:#BC2A4D;
+ text-decoration:underline;
+}
+
+a:active {
+ color:#368AD2;
+ text-decoration:none;
+}
+
+/* Main blocks
+––––––––––––––––––––––––––––––––––––––––*/
+#wrap {
+ padding:0 0 15px 0;
+ min-width:615px;
+}
+
+#page-header {
+ clear:both;
+ text-align:right;
+ background:url(data:image/gif;base64,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) top left no-repeat;
+ height:69px;
+ font-size:0.85em;
+ margin-bottom:10px;
+}
+
+.rtl #page-header {
+ text-align:left;
+ background:top right no-repeat;
+}
+
+#page-header h1 {
+ color:#767676;
+ font-family:"Trebuchet MS",Helvetica,sans-serif;
+ font-size:1.70em;
+ padding-top:10px;
+}
+
+#page-header p {
+ font-size:1.00em;
+}
+
+#page-body {
+ clear:both;
+ min-width:700px;
+}
+
+#page-footer {
+ clear:both;
+ font-size:0.75em;
+ text-align:center;
+}
+
+#content {
+ padding:0px 10px 10px 10px;
+ position:relative;
+}
+
+#content h1 {
+ color:#115098;
+ line-height:1.2em;
+ margin-bottom:0px;
+}
+
+#main {
+ width:100%;
+ margin:0;
+ min-height:350px;
+}
+
+.rtl #main {
+ float:right;
+ margin:0;
+}
+
+* html #main {
+ height:350px;
+}
+
+/* Main Panel
+–––––––––––––––––––––––––––––––––––––––– */
+#acp {
+ margin:4px 0;
+ padding:3px 1px;
+ min-width:550px;
+ background-color:#FFFFFF;
+ border:1px #999999 solid;
+}
+
+.panel {
+ background:#F3F3F3 url(data:image/gif;base64,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) repeat-x top;
+ padding:0;
+}
+
+span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span {
+ font-size:1px;
+ line-height:1px;
+ display:block;
+ height:5px;
+ background-repeat:no-repeat;
+}
+
+span.corners-top, span.corners-bottom {
+ background-image:url(data:image/gif;base64,R0lGODlhiBMMAMQSAP///5mZmfPz89vX0cvIw9zc3PX19bKysqmopvb29pqamvn5+Z2dnLy6t62sqp+fnqCgn/T09P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABIALAAAAACIEwwAAAX/4DAQDhScaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKDhIWGh4hSAw0HBREAkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PG7BAoCAAkCEvr7/P3+/wADChxIsKDBgwgTKlzIsKHDhxAjSpxIsaLFixgzatzIsaPHjyBDihxJsqTJkyhT/6pcybKly5cwY8qcSbOmzZs4c+rcybOnz59AgwodSrSo0aNIkypdyrSp06dQo0qdSrWq1atYs2rdShJBAQBcw4odS7as2bNo06pdy7at27dw48qdS7eu3bt48+rdy7ev37+AAwseTLiw4cOIizJYYCCx48eQI0ueTLmy5cuYM2vezLmz58+gQ4seTbq06dOoU6teHToAgHysY8ueTbu27du4c+vezbu379/AgwsfTry48ePIkyuX4Br28ufQo0ufTr269evYs2vfzr279+/gw4sfT7704sbl06tfz769+/fw48ufT7++/fv48+vfzx+vV7D9BSjggAQWaOCBCCao4JmCDDbo4IMQRijhdfTYg8+EGGao4YYcdujhhyCGKOKIJJZo4oko5rVIIwbI4+KLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJMNunkk1BGKeWUVFaZjQgkPJDIllx26eWXYIYp5phklmnmmWimqeaabLbp5ptwxinnnHTWaeedeOap55589unnn4AGKigcIQAAOw==);
+}
+
+span.corners-top span, span.corners-bottom span {
+ background-image:url(data:image/gif;base64,R0lGODlhBgAMAMQWAP///9vX0fPz85mZmdzc3Jqamtvb28vIw7y6t62sqsvIxPX19bKysqmop/T09Pb29pycnJ+fnp2dnKCgn/n5+fr6+v///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABYALAAAAAAGAAwAAAUs4DAlRxAADsEggfAAQqFYNGA0tLVQUi4AAx8w56hAcraGCyYDLFSsQYRkCgEAOw==);
+}
+
+span.corners-top {
+ background-position:0 0;
+ margin:-4px -2px 0;
+}
+
+span.corners-top span {
+ background-position:100% 0;
+}
+
+span.corners-bottom {
+ background-position:0 100%;
+ margin:0 -2px -4px;
+ clear:both;
+}
+
+span.corners-bottom span {
+ background-position:100% 100%;
+}
+
+/* General form styles
+––––––––––––––––––––––––––––––––––––––––*/
+fieldset {
+ margin:15px 0;
+ padding:1px;
+ border-top:1px solid #D7D7D7;
+ border-right:1px solid #CCCCCC;
+ border-bottom:1px solid #CCCCCC;
+ border-left:1px solid #D7D7D7;
+ background-color:#FFFFFF;
+ /*position:relative;*/
+}
+
+.rtl fieldset {
+ border-top:1px solid #D7D7D7;
+ border-right:1px solid #D7D7D7;
+ border-bottom:1px solid #CCCCCC;
+ border-left:1px solid #CCCCCC;
+}
+
+* html fieldset {
+ padding:0 10px 5px 10px;
+}
+
+fieldset p {
+ font-size:1.0em;
+}
+
+legend {
+ padding:1px 3px;
+ font-family:Tahoma,arial,Verdana,Sans-serif;
+ font-size:1.06em;
+ font-weight:bold;
+ color:#115098;
+/* position:relative;*/
+ text-transform:capitalize;
+ line-height:1.00em;
+ top:0em;
+ vertical-align:middle;
+}
+
+/* Hide from macIE \*/
+legend { top:-1.2em; }
+/* end */
+
+* html legend {
+ margin-bottom:-10px;
+ margin-left:-7px;
+}
+
+/* Holly hack, .rtl comes after html */
+* html .rtl legend {
+ margin:0;
+ margin-right:-7px;
+}
+
+optgroup, select {
+ font-family: Verdana, Helvetica, Arial, sans-serif;
+ font-size: 0.85em;
+ font-weight: normal;
+ font-style: normal;
+ cursor: pointer;
+ vertical-align: middle;
+ width: auto;
+}
+
+optgroup {
+ font-size: 1.00em;
+ font-weight: bold;
+}
+
+option {
+ padding:0 1em 0 0;
+}
+
+.rtl option {
+ padding:0 0 0 1em;
+}
+
+fieldset.nobg {
+ margin:15px 0 0 0;
+ padding:0;
+ border:none;
+ background-color:transparent;
+}
+
+/* MOD-ABOUT STUFFS ~smithy_dll */
+
+.mod-about {
+ background-color:#CADCEB;
+ /*width:100%;*/
+}
+
+.mod-about span.corners-top, .mod-about span.corners-bottom, .mod-about span.corners-top span, .mod-about span.corners-bottom span {
+ font-size:1px;
+ line-height:1px;
+ display:block;
+ height:5px;
+ background-repeat:no-repeat;
+}
+
+.mod-about span.corners-top, .mod-about span.corners-bottom {
+ background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAMCAYAAABBV8wuAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAABVSURBVHjaYviPAD+BeDIQ2wMxGwNU8AkQGwAxAwwzQFXqIgvCJCajC8IkbLBJMIItYmD4xYAGmBhwAJCEMS6JcKxa8DkX5kFdbBKwIJkADRIGgAADAGtyotIvyqGpAAAAAElFTkSuQmCC);
+}
+
+.mod-about span.corners-top span, .mod-about span.corners-bottom span {
+ background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAMCAYAAABBV8wuAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAABbSURBVHjaYvr//z8bENsD8WQg/vkfChjQsAEQPwFJMDGgggtA7AnEv9AlQOAyEM/CJgECK3FJnMIlwYZLQheXRDg2CV0gzmTCIrgd2Q4bIJ4AxGeAWBokABBgAE4XMoXm9S+UAAAAAElFTkSuQmCC);
+}
+
+.mod-about span.corners-top {
+ background-position:0 0;
+ margin:0 0;
+}
+
+.mod-about span.corners-top span {
+ background-position:100% 0;
+}
+
+.mod-about span.corners-bottom {
+ background-position:0 100%;
+ margin:0 0;
+ clear:both;
+}
+
+.mod-about span.corners-bottom span {
+ background-position:100% 100%;
+}
+
+.mod-about-padding { 0px 8px; }
+.mod-about { margin:10px 4px; }
+.mod-about dt { font-weight:bold; padding-right:4px; }
+.mod-about dl { margin:0px 8px; }
+.mod-about div { margin:3px 8px; }
+/*div.inner .mod-about dl { margin:0px 0px; }*/
+/*.nopadding { margin:0px 0px; }*/
+
+.mod-history {font-size:82.5%; } /* Mod histories can get pretty long, so I'm making that font a bit smaller */
+#language { width:130px; }
+#modDisclaimer .mod-about, #other-notes.mod-about { background-color:#EECCCC; }
+#other-notes.mod-about strong.red { color:#DD3333; }
+span.key { font-size:12px; line-height:14px; padding-bottom:2px; width:20px; border:outset 2px #999999; background-color:#EEEECC; display:block; float:left; text-align:center; margin-right:5px; }
+.mod-edit { background-color:#D6E6F6; border:solid 1px #336699; margin:10px 0; padding:0 10px; }
+.mod-inlineedit { background-color:#DDEEFF; border:solid 1px #6699CC; margin:10px 0; padding:0 10px; }
+
+dl.author-info dd { margin-left:112px; margin-bottom:8px; }
+ol#file-copy { padding:5px; margin-left:20px; margin-bottom:10px; }
+ol#file-copy li { margin-left:30px; vertical-align:top;}
+ol#file-copy span { font-weight:bold; }
+ol#file-copy dt {margin-right:5px; float:none !important }
+ol#file-copy dl {width:100%}
+h2#lang-fca, h2#lang-edts, h2#lang-diy, h2#lang-sql { margin-left:5px; }
+
+/* Code block */
+div.codebox {
+ padding:3px;
+ background-color:#FFFFFF;
+ border:1px solid #d8d8d8;
+ font-size:1em;
+}
+
+div.codebox div.codeHead {
+ text-transform:uppercase;
+ border-bottom:1px solid #CCCCCC;
+ margin-bottom:3px;
+ font-size:0.8em;
+ font-weight:bold;
+ display:block;
+}
+
+div.codebox div.codeHead a.codeSelect {
+ padding-left:5px;
+}
+
+blockquote div.codebox {
+ margin-left:0;
+}
+
+div.codebox pre {
+ /* Also see tweaks.css */
+ width:100%;
+ overflow-x:scroll;
+ display:block;
+ height:auto;
+ max-height:200px;
+ /*white-space:normal;*/
+ padding-top:5px;
+ font:0.9em Monaco, "Andale Mono","Courier New", Courier, mono;
+ line-height:1.3em;
+ color:#606060;
+ margin:2px 0;
+}
+
+dt {
+ float:left;
+ width:auto;
+}
+
+.rtl dt {
+ float:right;
+}
+
+dd {color:#666666;}
+dd + dd {padding-top:5px;}
+dt span {padding:0 5px 0 0;}
+.rtl dt span {padding:0 0 0 5px;}
+div.endMOD {padding:0 5px;}
+
+#history_toggle_link {
+ display:block;
+}
+.edit_toggle_link {
+ display:block;
+ text-align:right;
+ margin-bottom:2px;
+}
+ </style>
+ <title>phpBB MOD &#187; <xsl:value-of select="$title" /></title>
+ <script type="text/javascript">
+ var i = 0;
+
+ /* passed from xslt */
+ <xsl:for-each select="mod:header">
+ <xsl:for-each select="mod:author-group">
+ var authors_ll = [];
+ <xsl:for-each select="mod:author">
+ authors_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:for-each>
+ </xsl:for-each>
+
+ var mhes_ll = [];
+ var mhcls_ll = [];
+ <xsl:for-each select="mod:history/mod:entry">
+ mhes_ll.push('<xsl:value-of select="generate-id()"/>');
+ <xsl:if test="count(mod:changelog) > 1">
+ mhcls_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:for-each>
+
+ var opens_ll = [];
+ <xsl:for-each select="mod:action-group/mod:open">
+ opens_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:for-each>
+
+ var codes_ll = [];
+ <xsl:for-each select="mod:action-group/mod:sql">
+ codes_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:for-each>
+
+ var edits_ll = [];
+ <xsl:for-each select="mod:action-group/mod:open/mod:edit">
+ edits_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:for-each>
+
+ var finds_ll = [];
+ var regex_ll = [];
+ var ifinds_ll = [];
+ var iregex_ll = [];
+ var addafters_ll = [];
+ var iaddafters_ll = [];
+ var addbefores_ll = [];
+ var iaddbefores_ll = [];
+ var replacewiths_ll = [];
+ var ireplacewiths_ll = [];
+ var increments_ll = [];
+ var iincrements_ll = [];
+ var comments_ll = [];
+ <xsl:for-each select="mod:action-group/mod:open/mod:edit">
+ <xsl:for-each select="mod:find">
+ finds_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:for-each>
+ <xsl:if test="count(mod:comment) > 0">
+ comments_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:if>
+ <xsl:for-each select="mod:find|mod:action">
+ codes_ll.push('<xsl:value-of select="generate-id()"/>');
+ <xsl:if test="name() = 'action'">
+ <xsl:if test="@type = 'after-add'">
+ addafters_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:if>
+ <xsl:if test="@type = 'before-add'">
+ addbefores_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:if>
+ <xsl:if test="@type = 'replace-with'">
+ replacewiths_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:if>
+ <xsl:if test="@type = 'operation'">
+ increments_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:if>
+ </xsl:if>
+ </xsl:for-each>
+ <xsl:for-each select="mod:inline-edit">
+ <xsl:for-each select="mod:inline-find">
+ ifinds_ll.push('<xsl:value-of select="generate-id()"/>');
+ <xsl:if test="@type = 'regex'">
+ iregex_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:if>
+ </xsl:for-each>
+ <xsl:for-each select="mod:inline-find|mod:inline-action">
+ codes_ll.push('<xsl:value-of select="generate-id()"/>');
+ <xsl:if test="name() = 'inline-action'">
+ <xsl:if test="@type = 'after-add'">
+ iaddafters_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:if>
+ <xsl:if test="@type = 'before-add'">
+ iaddbefores_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:if>
+ <xsl:if test="@type = 'replace-with'">
+ ireplacewiths_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:if>
+ <xsl:if test="@type = 'operation'">
+ iincrements_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:if>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:for-each>
+
+ <xsl:for-each select="mod:action-group/mod:diy-instructions">
+ codes_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:for-each>
+
+ var copies_ll = [];
+ <xsl:for-each select="mod:action-group/mod:copy/mod:file">
+ copies_ll.push('<xsl:value-of select="generate-id()"/>');
+ </xsl:for-each>
+
+ <xsl:text disable-output-escaping="yes">
+<![CDATA[
+// The following line from http://www.ryancooper.com/resources/keycode.asp
+document.onkeydown = mod_do_keypress;
+
+var host = "http://www.phpbb.com/mods/modx/i18n/";
+
+var enStrings = "h1=Installation Instructions for\n" +
+"edt-show=Show&nbsp;&gt;&gt;\n" +
+"edt-hide=&lt;&lt;&nbsp;Hide\n" +
+"V=Version\n" +
+"t=Title:\n" +
+"d=Description:\n" +
+"aV=Version:\n" +
+"mint=minutes\n" +
+"it=Installation Time:\n" +
+"il=Installation Level:\n" +
+"ile=Easy\n" +
+"ili=Intermediate\n" +
+"ila=Advanced\n" +
+"au=Author\n" +
+"aus=Authors\n" +
+"a-un=Username:\n" +
+"a-e=Email:\n" +
+"a-n=Name:\n" +
+"a-h=WWW:\n" +
+"a-c=Contributions:\n" +
+"a-c-f=From\n" +
+"a-c-t=to\n" +
+"a-c-s=Since\n" +
+"fte=Files to Edit\n" +
+"icf=Included Files\n" +
+"icfn=No files have been included with this MOD.\n" +
+"dcl=Disclaimer\n" +
+"dclt=For security purposes, please check: <a href=\"http://www.phpbb.com/mods/\">http://www.phpbb.com/mods/</a> for the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered in our MODs database, located at: <a href=\"http://www.phpbb.com/mods/\">http://www.phpbb.com/mods/</a>\n" +
+"isp=English Support\n" +
+"ispt=English support can be obtained at <a href=\"http://www.phpbb.com/mods/\">http://www.phpbb.com/mods/</a> for released MODs.\n" +
+"ant=Author Notes:\n" +
+"lic=License\n" +
+"lict=This MOD has been licensed under the following license:\n" +
+"ont=Other Notes\n" +
+"ontt1=Before adding this MOD to your forum, you should back up all files related to this MOD.\n" +
+"ontt2=This MOD was designed for phpBB\n" +
+"ontt3=and may not function as stated on other phpBB versions. MODs for phpBB 3.0 will <strong>not</strong> work on phpBB 2.0 and vice versa.\n" +
+"onttq=This MOD is development quality. It is not recommended that you install it on a live forum.\n" +
+"sql=SQL\n" +
+"fca=File Copy\n" +
+"c-copy=Copy:\n" +
+"c-to=To:\n" +
+"cde-c=Code:\n" +
+"cde-sa=Select All\n" +
+"edts=Edits\n" +
+"edtt=Use your keyboard to navigate the code boxes. You may also hit '<em>s</em>' on your keyboard to go to the first code box.\n" +
+"opn=Open:\n" +
+"cm-cmt=Comments\n" +
+"fnd=Find\n" +
+"fndt=<strong>Tip:</strong> This may be a partial find and not the whole line.\n" +
+"rplw=Replace With\n" +
+"rplwt=<strong>Tip:</strong> Replace the preceding line(s) to find with the following lines.\n" +
+"aft=Add after\n" +
+"aftt=<strong>Tip:</strong> Add these lines on a new blank line after the preceding line(s) to find.\n" +
+"bef=Add before\n" +
+"beft=<strong>Tip:</strong> Add these lines on a new blank line before the preceding line(s) to find.\n" +
+"inc=Increment\n" +
+"inct=<strong>Tip:</strong> This allows you to alter integers. For help on what each operator means, click here.\n" +
+"ifnd=In-line Find\n" +
+"ifndt=<strong>Tip:</strong> This is a partial match of a line for in-line operations.\n" +
+"irplw=In-line Replace With\n" +
+"irplwt=\n" +
+"iaft=In-line Add after\n" +
+"iaftt=\n" +
+"ibef=In-line Add before\n" +
+"ibeft=\n" +
+"iinc=In-line Increment\n" +
+"iinct=<strong>Tip:</strong> This allows you to alter integers. For help on what each operator means, click here.\n" +
+"diy=DIY Instructions\n" +
+"diyt=These are manual instructions that cannot be performed automatically. You should follow these instructions carefully.\n" +
+"eom=Save all files. End of MOD.\n" +
+"eomt=You have finished the installation for this MOD. Upload all changed files to your website. If the installation went bad, simply restore your backed up files.\n" +
+"slg=Select Language:\n" +
+"dbms=Select Database Type:\n" +
+"foot=MOD UA XSLT File Copyright &#169; 2007 The phpBB Group, this MOD is copyright to the authors listed above.\n" +
+"regex=This find contains an advanced feature known as regular expressions, click here to learn more.\n" +
+"mhe-v=- Version\n" +
+"mh=MOD History\n" +
+"addtl-modx=Additional MODX Files\n" +
+"imn=This MOD has no additional MODX files.\n"+
+"atm=About this MOD";
+
+var box = codes_ll;
+var currentLanguage = "en";
+var languagesLoaded = false;
+var languages = ['en'];
+var arrClasCnt = [
+ ['a-' , authors_ll ],
+ ['c-' , copies_ll ],
+ ['cm-' , comments_ll ],
+ ['opn' , opens_ll ],
+ ['cde-' , codes_ll ],
+ ['edt-' , edits_ll ],
+ ['fnd' , finds_ll ],
+ ['regex', regex_ll ],
+ ['rplw' , replacewiths_ll ],
+ ['aft' , addafters_ll ],
+ ['bef' , addbefores_ll ],
+ ['inc' , increments_ll ],
+ ['ifnd' , ifinds_ll ],
+ ['regex', iregex_ll ],
+ ['irplw', ireplacewiths_ll ],
+ ['iaft' , iaddafters_ll ],
+ ['ibef' , iaddbefores_ll ],
+ ['iinc' , iincrements_ll ],
+ ['mhe' , mhes_ll ]
+];
+
+function startup()
+{
+ sql_dropdown();
+ change_dbms();
+ changeLanguage(currentLanguage);
+ document.getElementById('lang-selector').style.display = "block";
+ init_mod_history();
+}
+
+function changeLanguage(langCode)
+{
+ langCode = langCode.toLowerCase();
+ currentLanguage = langCode.split('-')[0];
+ if (currentLanguage.toLowerCase() != 'en') // if change, only include up to first dash
+ {
+ load_language();
+ }
+ else
+ {
+ applyLanguage(enStrings.split("\n"));
+ }
+ xslLanguage(langCode);
+}
+
+function load_languages()
+{
+ if (languagesLoaded)
+ {
+ return;
+ }
+ languagesLoaded = true;
+
+ $divname = document.getElementById('language');
+ var loadingItem = document.createElement('option');
+ $divname.appendChild(loadingItem);
+ loadingItem.innerHTML = 'Loading...';
+ $divname.remove(0);
+
+ $output = 'load_languages';
+ cachernd = parseInt(Math.random() * 99999999); // cache
+ send('', host + 'languages.txt?rnd=' + cachernd);
+}
+
+function load_language()
+{
+ $output = 'load_language';
+ cachernd = parseInt(Math.random() * 99999999); // cache
+ send('', host + currentLanguage + '.txt?rnd=' + cachernd);
+}
+
+/*****************
+* AJAX Functions *
+*****************/
+var $xmlhttp = http_object();
+var $finished = 0;
+var $send_queue = [];
+var $running = false;
+var $divname;
+var $newform;
+var $newurl;
+var $output;
+
+function http_object()
+{
+ if (window.XMLHttpRequest)
+ {
+ return new XMLHttpRequest();
+ }
+ else if (window.ActiveXObject)
+ {
+ return new ActiveXObject("Microsoft.XMLHTTP");
+ }
+}
+
+function send($action, $url, $form, $div, $clear)
+{
+ $newform = $form;
+ $newurl = $url;
+
+ $send_queue.push("handle_send($newurl, $newform)");
+
+ if (!$running)
+ {
+ run_ajax();
+ }
+ return;
+}
+
+function run_ajax()
+{
+ $running = true;
+ for ($i = 0; $i < $send_queue.length; $i++)
+ {
+ if ($xmlhttp.readyState == 4 || $xmlhttp.readyState == 0)
+ {
+ eval($send_queue[$i]);
+ }
+ else
+ {
+ $xmlhttp.onreadystatechange = check_state;
+ }
+ }
+}
+
+function check_state()
+{
+ if ($xmlhttp.readyState == 4 || $xmlhtt.readyState == 0)
+ {
+ eval($send_queue[$finished]);
+ }
+ else
+ {
+ $xmlhttp.onreadystatechange = check_state;
+ }
+}
+
+function handle_send($url, $f)
+{
+ if ($xmlhttp.readyState == 4 || $xmlhttp.readyState == 0)
+ {
+ $param = '';
+
+ try
+ {
+ netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
+ $allowed = true;
+ }
+ catch (e)
+ {}
+
+ try
+ {
+ $xmlhttp.open('POST', $url, true);
+ $xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
+ $xmlhttp.onreadystatechange = handle_return;
+ $xmlhttp.send($param);
+ }
+ catch (e)
+ {
+ $divname = document.getElementById('language');
+ var loadingItem = document.createElement('option');
+ $divname.appendChild(loadingItem);
+ loadingItem.innerHTML = 'Unavailable';
+ $divname.remove(0);
+ $divname.disabled = true;
+ }
+ }
+ return;
+}
+
+function handle_return()
+{
+ if ($xmlhttp.readyState == 4)
+ {
+ ajax_output($xmlhttp.responseText);
+
+ $finished++;
+
+ if ($send_queue[$finished])
+ {
+ check_state();
+ }
+ else
+ {
+ $send_queue = [];
+ $finished = 0;
+ $running = false;
+ }
+ }
+ return;
+}
+/*********************
+* END AJAX Functions *
+*********************/
+
+function ajax_output($response)
+{
+ switch ($output)
+ {
+ case 'load_language':
+ var texts = $response.replace("\r\n", "\n").split("\n");
+ applyLanguage(texts);
+ break;
+
+ case 'load_languages':
+ languages = $response.replace("\r", "").split("\n");
+
+ var i, l, s = 0;
+ for (i in languages)
+ {
+ languages[i] = languages[i].replace("\r", "");
+ languages[i] = languages[i].split("=");
+
+ var langItem = document.createElement('option');
+ $divname.appendChild(langItem);
+ langItem.value = languages[i][0];
+ var iso = languages[i][0].split('-');
+ langItem.innerHTML = languages[i][1];
+ if (iso.length == 2)
+ {
+ langItem.innerHTML += ' [' + iso[1].toUpperCase() + ']';
+ }
+ if (languages[i][0] == currentLanguage)
+ {
+ $divname.selectedIndex = s;
+ $divname.text = languages[i][1];
+ }
+ s++;
+ }
+
+ $divname.focus();
+ $divname.onchange =
+ function()
+ {
+ changeLanguage(this.value.replace(" ", ""));
+ };
+ $divname.remove(0);
+ break;
+ }
+}
+
+function xslLangEl(langCode, obj_id)
+{
+ var i, c, a, k, m = [], show = [], o = document.getElementById(obj_id);
+ var lang_c = langCode.replace('_','-'), lang_s = langCode.substr(0, 2);
+ var nodes = (o && o.childNodes) ? o.childNodes : '';
+
+ for (i = 0; i < nodes.length; i++)
+ {
+ c = nodes[i];
+ if (c.nodeType != 1)
+ {
+ continue;
+ }
+ a = (obj_id == 'link-group') ? c.getElementsByTagName('a') : null;
+ k = (a && a[0].href) ? a[0].href : c.tagName;
+ if (!c.lang || m[k] === true)
+ {
+ c.style.display = 'none';
+ continue;
+ }
+ c.lang = c.lang.replace('_', '-').toLowerCase();
+
+ if (m[k]) // Already have a partial match
+ {
+ if (c.lang != lang_c) // This isn't an exact match
+ {
+ c.style.display = 'none'; // So hide it and keep looking
+ continue;
+ }
+ m[k] = true; // An exact match
+ }
+ else
+ {
+ m[k] = (c.lang == lang_c) ? true : (c.lang.substr(0, 2) == lang_s ? 1 : false);
+ }
+ if (!show[k] || m[k] || c.lang == 'en')
+ {
+ if (show[k])
+ {
+ show[k].style.display = 'none';
+ }
+ show[k] = c;
+ c.style.display = '';
+ if (a)
+ {
+ c.getElementsByTagName('span')[0].style.display = 'none';
+ //c.firstChild.style.display = 'none'; // This line doesn't work in Safari
+ }
+ }
+ else
+ {
+ c.style.display = 'none';
+ }
+ }
+}
+
+function xslLanguage(langCode)
+{
+ i18nedEls = new Array('title','description','author-notes','diy','link-group');
+ var c, h, i;
+ for (c in comments_ll)
+ {
+ i18nedEls.push('mod-comment[' + comments_ll[c] + ']');
+ }
+
+ for (h in mhcls_ll)
+ {
+ i18nedEls.push('mhcl[' + mhcls_ll[h] + ']');
+ }
+
+ for (i in i18nedEls)
+ {
+ xslLangEl(langCode, i18nedEls[i]);
+ }
+}
+
+function in_array(array, value, position)
+{
+ for (var i = 0; i < array.length; i++)
+ {
+ // Matches identical (===), not just similar (==).
+ if (array[i] === value)
+ {
+ return (position ? i : true);
+ }
+ }
+ return false;
+};
+
+function applyLanguage(texts)
+{
+ var i;
+ for (i in texts)
+ {
+ var lang = texts[i].split("=", 2), done = 0;
+ if (lang.length == 2 && (lang[0] == 'edt-show' || lang[0] == 'edt-hide'))
+ {
+ toggle_strings[lang[0].replace('edt-', '')] = lang[1];
+ if (++done >= 2)
+ {
+ break;
+ }
+ }
+ }
+
+ for (i in texts)
+ {
+ var lang = texts[i].split("=");
+ if (lang.length < 2)
+ {
+ continue;
+ }
+ try
+ {
+ var jflag = false;
+ for (var j = 0; j < arrClasCnt.length; j++)
+ {
+ var sw = '-' + lang[0];
+ if (sw.match('-' + arrClasCnt[j][0]))
+ {
+ for (var k = 0; k < arrClasCnt[j][1].length; k++)
+ {
+ try
+ {
+ var o = document.getElementById('lang-' + lang[0] + '[' + arrClasCnt[j][1][k] + ']');
+ o.innerHTML = lang[1];
+ if (o.rel && (o.rel == 'show' || o.rel == 'hide') && (lang[0] == 'edt-show' || lang[0] == 'edt-hide'))
+ {
+ o.innerHTML = toggle_strings[o.rel];
+ }
+ }
+ catch (e){}
+ }
+ jflag = true;
+ }
+ }
+ if (!jflag)
+ {
+ var append = '';
+ for (var p = 1; p < lang.length; p++)
+ {
+ append += (p > 1 ? '=' : '') + lang[p];
+ }
+ document.getElementById('lang-' + lang[0]).innerHTML = append;
+ }
+ }
+ catch (o){}
+ }
+ try
+ {
+ document.getElementById('history_toggle_link').innerHTML = toggle_strings[(document.getElementById('mod_history_content').style.display == '' ? 'hide' : 'show')];
+ } catch(o) {}
+}
+
+function select_code(a)
+{
+ // Get ID of code block
+ var e = a.parentNode.parentNode.getElementsByTagName('PRE')[0];
+ select_text(e.id);
+}
+
+var selectedElement = -1;
+var boxes = box.length;
+var pre_count = 0;
+
+function select_text(id)
+{
+ var o = document.getElementById(id);
+ if(!o)
+ {
+ return;
+ }
+
+ // Not IE
+ if (window.getSelection)
+ {
+ var s = window.getSelection();
+ // Safari
+ if (s.setBaseAndExtent)
+ {
+ s.setBaseAndExtent(o, 0, o, o.innerText.length - 1);
+ }
+ // Firefox and Opera
+ else
+ {
+ var r = document.createRange();
+ r.selectNodeContents(o);
+ s.removeAllRanges();
+ s.addRange(r);
+ }
+ }
+ // Some older browsers
+ else if (document.getSelection)
+ {
+ var s = document.getSelection();
+ var r = document.createRange();
+ r.selectNodeContents(o);
+ s.removeAllRanges();
+ s.addRange(r);
+ }
+ // IE
+ else if (document.selection)
+ {
+ var r = document.body.createTextRange();
+ r.moveToElementText(o);
+ r.select();
+ }
+
+ for(x = 0; x < box.length; x++)
+ {
+ if (box[x] == id)
+ {
+ selectedElement = x;
+ break;
+ }
+ }
+ return o;
+}
+
+/**
+* Determines if an object is hidden. If a class is specified, checking will stop when that class is encountered.
+*/
+function is_hidden(o, className)
+{
+ o = typeof(o) == 'String' ? document.getElementById(o) : o;
+ while (o)
+ {
+ if (o.style && o.style.display == 'none')
+ {
+ return true;
+ }
+ o = (o.parentNode && !(className && o.className == className)) ? o.parentNode : null;
+ }
+ return false;
+}
+
+// function findPosY taken from http://www.quirksmode.org/js/findpos.html
+function findPosY(obj)
+{
+ var curtop = 0;
+ if (obj.offsetParent)
+ {
+ while (obj.offsetParent)
+ {
+ curtop += obj.offsetTop
+ obj = obj.offsetParent;
+ }
+ }
+ else if (obj.y)
+ {
+ curtop += obj.y;
+ }
+ return curtop;
+}
+
+function selectBox()
+{
+ obj = select_text(box[selectedElement]);
+ window.scrollTo(0, findPosY(obj) - 100);
+}
+
+function selectNextBox()
+{
+ // Find the next box that is not hidden
+ for (var i = 0; i < boxes; i++)
+ {
+ selectedElement = (selectedElement + 1 >= boxes) ? 0 : selectedElement + 1;
+ if (!is_hidden(document.getElementById(box[selectedElement]), 'mod-edit-contents'))
+ {
+ break;
+ }
+ }
+ selectBox();
+}
+
+function selectPrevBox()
+{
+ // Find the previos box that is not hidden
+ for (var i = 0; i < boxes; i++)
+ {
+ selectedElement = (selectedElement - 1 < 0) ? boxes - 1 : selectedElement - 1;
+ if (!is_hidden(document.getElementById(box[selectedElement]), 'mod-edit-contents'))
+ {
+ break;
+ }
+ }
+ selectBox();
+}
+
+function selectFirstBox()
+{
+ // Find the first box that is not hidden
+ for (selectedElement = 0; selectedElement < boxes; selectedElement++)
+ {
+ if (!is_hidden(document.getElementById(box[selectedElement]), 'mod-edit-contents'))
+ {
+ break;
+ }
+ }
+ selectBox();
+}
+
+function mod_do_keypress(e)
+{
+ var key = (window.event && !window.event.ctrlKey) ? window.event.keyCode : ((e && !e.ctrlKey) ? e.which : null);
+
+ switch (key)
+ {
+ case 88: // X
+ case 187: // plus (+)
+ case 190: // period/greater-than (.>)
+ selectNextBox();
+ return false;
+ break;
+
+ case 87: // W
+ case 189: // minus (-)
+ case 188: // comma/less-than (,<)
+ selectPrevBox();
+ return false;
+ break;
+
+ case 83: // S
+ case 37:
+ selectFirstBox();
+ return false;
+ break;
+ }
+ return true; // true allows browser to take care of any further key press combinations such as (ctrl|cmd) + c
+}
+
+/**
+ * Update the MODX with the selected dbms
+ *
+ */
+function change_dbms($form)
+{
+ $type = [
+ '',
+ 'mysql',
+ 'mysql_41',
+ 'mysql_40',
+ 'firebird',
+ 'mssql',
+ 'oracle',
+ 'postgres',
+ 'sqllite'
+ ];
+ $exists = 0;
+ $tags = document.getElementsByTagName('dbms');
+
+ if ($form)
+ {
+ sql_display($form.value);
+ return;
+ }
+
+ if ($tags.length > 0)
+ {
+ for ($i = 0; $i < $tags.length; $i++)
+ {
+ if (!($dbms = $tags[$i].attributes['type'].nodeValue))
+ {
+ continue;
+ }
+ $position = in_array($type, $dbms, true);
+ if ($position !== false)
+ {
+ $exists = (($exists > 0 && $position < $exists) || $exists == 0) ? $position : $exists;
+ }
+ }
+ if ($exists > 0)
+ {
+ sql_display($type[$exists]);
+ }
+ }
+}
+
+/**
+ * Display the dbms specific sql data with the dbms we have selected
+ */
+function sql_display($value)
+{
+ $tags = document.getElementsByTagName('dbms');
+
+ // show the dbms of type we have selected, hide all others except for non dbms specific
+ for ($i = 0; $i < $tags.length; $i++)
+ {
+ if (!($dbms = $tags[$i].attributes['type'].nodeValue))
+ {
+ continue;
+ }
+ $tags[$i].style.display = ($dbms == $value) ? '' : 'none';
+ }
+}
+
+/**
+ * Load the sql dropdown with all the database types supported by this MODX file
+*/
+function sql_dropdown()
+{
+ var $dbms_element = document.getElementById('dbms');
+ var $dbms_selector = document.getElementById('dbms-selector');
+ if (!$dbms_element || !$dbms_selector)
+ {
+ return;
+ }
+
+ $type = [
+ 'mysql',
+ 'mysql_41',
+ 'mysql_40',
+ 'firebird',
+ 'mssql',
+ 'oracle',
+ 'postgres',
+ 'sqllite'
+ ];
+ $options = [];
+ $tags = document.getElementsByTagName('dbms');
+
+ // Show the dbms of type we have selected, hide all others except for non dbms specific
+ for ($i = 0; $i < $tags.length; $i++)
+ {
+ if (!($dbms = $tags[$i].attributes['type'].nodeValue))
+ {
+ continue;
+ }
+ if (($position = in_array($type, $dbms, true)) !== false)
+ {
+ $options[$position] = '<option value=' + $dbms + '>' + $dbms + '</option>';
+ }
+ }
+
+ if ($options.length > 0)
+ {
+ $selects = '';
+
+ // sort options and output in the correct order
+ for ($i = 0; $i < $type.length; $i++)
+ {
+ if ($options[$i])
+ {
+ $selects += $options[$i];
+ }
+ }
+ $dbms_element.innerHTML = $selects;
+ }
+ else
+ {
+ $dbms_selector.style.display = 'none';
+ }
+}
+ //-->]]>
+ </xsl:text>
+/**
+* Toggle the visibility of certain sections.
+*/
+var toggle_strings = {
+ 'show' : (enStrings.match(/^|\n(?:edt-show=)([^\n]*)\n|$/))[1],
+ 'hide' : (enStrings.match(/^|\n(?:edt-hide=)([^\n]*)\n|$/))[1]
+}
+function init_mod_history()
+{
+<xsl:if test="count(mod:header/mod:history/mod:entry) > 1">
+ document.getElementById('mod_history_content').style.display = 'none';
+ document.getElementById('history_toggle_area').style.display = '';
+ document.getElementById('history_toggle_link').innerHTML = toggle_strings['show'];
+</xsl:if>
+}
+
+function toggle_display(o, n)
+{
+ var v = o.rel == 'hide';
+ n.style.display = n.style.display == '' ? 'none' : '';
+ o.rel = v ? 'show' : 'hide';
+ o.innerHTML = toggle_strings[o.rel];
+ if (o.id.indexOf('lang-edt-') == 0)
+ {
+ o.style.textAlign = v ? 'left' : 'right';
+ }
+ return false;
+}
+
+function toggle_history(o)
+{
+ return toggle_display(o, document.getElementById("mod_history_content"));
+}
+
+function toggle_edit(o)
+{
+ var s = o.previousSibling;
+ while (s.nodeType != 1)
+ {
+ s = s.previousSibling;
+ }
+ return toggle_display(o, s);
+}
+ </script>
+ </head>
+ <body class="ltr" onload="startup()">
+ <div id="debug"></div>
+ <div id="wrap">
+ <div id="page-header">
+ <h1><span id="lang-h1">Installation Instructions for</span> '<xsl:value-of select="$title" />' <span id="lang-V">Version</span>&nbsp;<xsl:value-of select="$version" /></h1>
+ <form method="post" action="" id="lang-selector" style="display: none;">
+ <fieldset class="nobg">
+ <label for="language"><span id="lang-slg">Select Language:</span></label>&nbsp;<select id="language" name="language" onclick="load_languages()"><option value="en" selected="selected">English</option></select>
+ </fieldset>
+ </form>
+ </div>
+ <div id="page-body">
+ <div id="acp">
+ <div class="panel"><span class="corners-top"><span></span></span>
+ <div id="content">
+ <div id="main">
+ <xsl:for-each select="mod:header">
+ <xsl:call-template name="give-header"></xsl:call-template>
+ </xsl:for-each>
+
+ <div class="permissions" id="Fieldset1">
+ <xsl:for-each select="mod:action-group">
+ <xsl:call-template name="give-actions"></xsl:call-template>
+ </xsl:for-each>
+ <hr style="margin-bottom:0;" />
+ <div class="endMOD">
+ <h2 id="lang-eom">Save all files. End of MOD.</h2>
+ <p id="lang-eomt">You have finished the installation for this MOD. Upload all changed files to your website. If the installation went bad, simply restore your backed up files.</p>
+ </div>
+ </div>
+ </div>
+ </div>
+ <span class="corners-bottom"><span></span></span></div>
+ </div>
+ </div>
+ <div id="page-footer">
+ <p class="copyright" style="text-align: center; font-size: 10px;" id="lang-foot">MOD UA XSLT File Copyright &#169; 2008 The phpBB Group. This MOD is copyright to the authors listed above.</p>
+ </div>
+ </div>
+ </body>
+ </html>
+ </xsl:template>
+ <xsl:template name="give-header">
+ <fieldset>
+ <legend id="lang-atm">About this MOD</legend>
+ <div class="mod-about">
+ <span class="corners-top"><span></span></span>
+ <dl>
+ <dt id="lang-t">Title:</dt>
+ <dd>
+ <xsl:if test="count(mod:title) > 1">
+ <dl id="title" class="nopadding">
+ <xsl:for-each select="mod:title">
+ <dt><xsl:value-of select="@lang" /></dt>
+ <dd style='white-space:pre;' lang="{@lang}">
+ <p><xsl:value-of select="current()" /></p>
+ </dd>
+ </xsl:for-each>
+ </dl>
+ </xsl:if>
+ <xsl:if test="count(mod:title) = 1">
+ <p lang="{@lang}" style='white-space:pre;'><xsl:value-of select="mod:title" /></p>
+ </xsl:if>
+ </dd>
+ <dt id="lang-d">Description:</dt>
+ <dd>
+ <xsl:if test="count(mod:description) > 1">
+ <dl id="description" class="nopadding">
+ <xsl:for-each select="mod:description">
+ <dt><xsl:value-of select="@lang" /></dt>
+ <dd lang="{@lang}">
+ <p>
+ <xsl:call-template name="add-line-breaks">
+ <xsl:with-param name="string"><xsl:value-of select="current()" /></xsl:with-param>
+ </xsl:call-template>
+ </p>
+ </dd>
+ </xsl:for-each>
+ </dl>
+ </xsl:if>
+ <xsl:if test="count(mod:description) = 1">
+ <p lang="{@lang}">
+ <xsl:call-template name="add-line-breaks">
+ <xsl:with-param name="string"><xsl:value-of select="mod:description" /></xsl:with-param>
+ </xsl:call-template>
+ </p>
+ </xsl:if>
+ </dd>
+ <dt id="lang-aV">Version:</dt>
+ <dd class="mod-about">
+ <p>
+ <xsl:for-each select="mod:mod-version">
+ <xsl:value-of select="$version" />
+ </xsl:for-each>
+ </p>
+ </dd>
+ <xsl:for-each select="mod:installation">
+ <xsl:call-template name="give-installation"></xsl:call-template>
+ </xsl:for-each>
+ <xsl:if test="mod:author-notes != 'N/A' and mod:author-notes != 'n/a' and mod:author-notes != ''">
+ <dt id="lang-ant">Author Notes:</dt>
+ <dd>
+ <xsl:if test="count(mod:author-notes) > 1">
+ <dl id="author-notes" class="nopadding">
+ <xsl:for-each select="mod:author-notes">
+ <dt><xsl:value-of select="@lang" /></dt>
+ <dd lang="{@lang}">
+ <p>
+ <xsl:call-template name="add-line-breaks">
+ <xsl:with-param name="string"><xsl:value-of select="current()" /></xsl:with-param>
+ </xsl:call-template>
+ </p>
+ </dd>
+ </xsl:for-each>
+ </dl>
+ </xsl:if>
+ <xsl:if test="count(mod:author-notes) = 1">
+ <p lang="{@lang}">
+ <xsl:call-template name="add-line-breaks">
+ <xsl:with-param name="string"><xsl:value-of select="mod:author-notes" /></xsl:with-param>
+ </xsl:call-template>
+ </p>
+ </xsl:if>
+ </dd>
+ </xsl:if>
+ </dl>
+ <span class="corners-bottom"><span></span></span>
+ </div>
+ </fieldset>
+ <fieldset>
+ <xsl:for-each select="mod:author-group">
+ <xsl:if test="count(mod:author) > 1">
+ <legend id="lang-aus">Authors</legend>
+ </xsl:if>
+ <xsl:if test="count(mod:author) = 1">
+ <legend id="lang-au">Author</legend>
+ </xsl:if>
+ <xsl:call-template name="give-authors"></xsl:call-template>
+ </xsl:for-each>
+ </fieldset>
+ <xsl:if test="count(../mod:action-group/mod:open) > 0">
+ <h3 id="lang-fte">Files to Edit</h3>
+ <xsl:for-each select="../mod:action-group">
+ <xsl:call-template name="give-files-to-edit"></xsl:call-template>
+ </xsl:for-each>
+ </xsl:if>
+ <h3 id="lang-icf">Included Files</h3>
+ <xsl:if test="count(../mod:action-group/mod:copy/mod:file) = 0">
+ <p id="lang-icfn">No files have been included with this MOD.</p>
+ </xsl:if>
+ <xsl:for-each select="../mod:action-group">
+ <xsl:call-template name="give-files-included"></xsl:call-template>
+ </xsl:for-each>
+ <h3 id="lang-addtl-modx">Additional MODX Files</h3>
+ <xsl:if test="count(mod:link-group/mod:link) = 0">
+ <p id="lang-imn">This MOD has no additional MODX files.</p>
+ </xsl:if>
+ <ul class="link-group" id="link-group">
+ <xsl:for-each select="mod:link-group/mod:link">
+ <li lang="{@lang}"><span class="link-group-lang"><xsl:value-of select="@lang" />&nbsp;</span><strong style="text-transform: capitalize;"><xsl:value-of select="@type" />:</strong>&nbsp;<a href="{@href}"><xsl:value-of select="current()" /></a></li>
+ </xsl:for-each>
+ </ul>
+ <hr />
+ <div id="modDisclaimer">
+ <h3><span id="lang-dcl">Disclaimer</span> &amp; <span id="lang-ont">Other Notes</span></h3>
+ <div class="mod-about">
+ <span class="corners-top"><span></span></span>
+ <div class="mod-about-padding">
+ <p><span id="lang-dclt">For security purposes, please check: <a href="http://www.phpbb.com/mods/">http://www.phpbb.com/mods/</a> for the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered in our MODs database, located at: <a href="http://www.phpbb.com/mods/">http://www.phpbb.com/mods/</a></span></p>
+ <p><span id="lang-ontt1">Before adding this MOD to your forum, you should back up all files related to this MOD.</span></p>
+ <p><span id="lang-ontt2">This MOD was designed for phpBB</span><xsl:text> </xsl:text><xsl:value-of select="mod:installation/mod:target-version" /><xsl:text> </xsl:text><span id="lang-ontt3"> and may not function as stated on other phpBB versions. MODs for phpBB 3.0 will <strong>not</strong> work on phpBB 2.0 and vice versa.</span></p>
+ <xsl:for-each select="./mod:mod-version">
+ <xsl:if test="substring-before(substring-after(current(), '.'), '.') mod 2 != 0 or substring-before(current(), '.') = 0">
+ <p><strong class="red"><span id="lang-onttq">This MOD is development quality. It is not recommended that you install it on a live forum.</span></strong></p>
+ </xsl:if>
+ </xsl:for-each>
+ </div>
+ <span class="corners-bottom"><span></span></span>
+ </div>
+ </div>
+ <div>
+ <h3><span id="lang-lic">License</span> &amp; <span id="lang-isp">English Support</span></h3>
+ <div class="mod-about">
+ <span class="corners-top"><span></span></span>
+ <div class="mod-about-padding">
+ <p><span id="lang-lict">This MOD has been licensed under the following license:</span></p>
+ <p style='white-space:pre;'><a href="license.txt"><xsl:value-of select="mod:license" /></a></p>
+ <p><span id="lang-ispt">English support can be obtained at <a href="http://www.phpbb.com/mods/">http://www.phpbb.com/mods/</a> for released MODs.</span></p>
+ </div>
+ <span class="corners-bottom"><span></span></span>
+ </div>
+ <xsl:for-each select="mod:history">
+ <xsl:call-template name="give-mod-history"></xsl:call-template>
+ </xsl:for-each>
+ </div>
+ </xsl:template>
+ <xsl:template name="give-authors">
+ <xsl:for-each select="mod:author">
+ <div class="mod-about">
+ <span class="corners-top"><span></span></span>
+ <xsl:call-template name="give-author"></xsl:call-template>
+ <span class="corners-bottom"><span></span></span>
+ </div>
+ </xsl:for-each>
+ </xsl:template>
+ <xsl:template name="give-author">
+ <dl class="author-info">
+ <dt id="lang-a-un[{generate-id()}]">Username:</dt>
+ <dd><a href="http://www.phpbb.com/phpBB/profile.php?mode=viewprofile&amp;un={translate(mod:username, ' ', '+')}"><xsl:value-of select="mod:username" /></a></dd>
+ <xsl:if test="mod:email != 'N/A' and mod:email != 'n/a' and mod:email != ''">
+ <dt id="lang-a-e[{generate-id()}]">Email:</dt>
+
+ <dd><a href="mailto:{mod:email}"><xsl:value-of select="mod:email" /></a></dd>
+ </xsl:if>
+ <xsl:if test="mod:realname != 'N/A' and mod:realname != 'n/a' and mod:realname != ''">
+ <dt id="lang-a-n[{generate-id()}]">Name:</dt>
+ <dd><xsl:value-of select="mod:realname" /></dd>
+ </xsl:if>
+ <xsl:if test="mod:homepage != 'N/A' and mod:homepage != 'n/a' and mod:homepage!=''">
+ <dt id="lang-a-h[{generate-id()}]">WWW:</dt>
+
+ <dd><a href="{mod:homepage}"><xsl:value-of select="mod:homepage" /></a></dd>
+ </xsl:if>
+
+ <xsl:if test="count(mod:contributions-group) > 0">
+ <dt id="lang-a-c[{generate-id()}]">Contributions:</dt>
+ <xsl:for-each select="mod:contributions-group/mod:contributions">
+ <dd>
+ <strong style="text-transform: capitalize;"><xsl:value-of select="@position" /></strong>&nbsp;
+ <xsl:if test="@status = 'past' and @from != 'N/A' and @from != 'n/a' and @from!=''">
+ <xsl:if test="@to != 'N/A' and @to != 'n/a' and @to!=''">
+ (<span id="lang-a-c-f[{generate-id()}]]">From</span>:&nbsp;<xsl:value-of select="@from" />&nbsp;<span id="lang-a-c-t[{generate-id()}]]">to</span>:&nbsp;<xsl:value-of select="@to" />)
+ </xsl:if>
+
+ </xsl:if>
+ <xsl:if test="@status = 'current' and @from != 'N/A' and @from != 'n/a' and @from!=''">
+ (<span id="lang-a-c-s[{generate-id()}]]">Since</span>:&nbsp;<xsl:value-of select="@from" />)
+ </xsl:if>
+ </dd>
+ </xsl:for-each>
+ </xsl:if>
+ </dl>
+ </xsl:template>
+ <xsl:template name="give-installation">
+ <dt id="lang-il">Installation Level:</dt>
+ <dd class="mod-about">
+ <div class="inner">
+ <xsl:if test="mod:level='easy'">
+ <p id="lang-ile">Easy</p>
+ </xsl:if>
+ <xsl:if test="mod:level='intermediate'">
+ <p id="lang-ili">Intermediate</p>
+ </xsl:if>
+ <xsl:if test="mod:level='advanced'">
+ <p id="lang-ila">Advanced</p>
+ </xsl:if>
+ </div>
+ </dd>
+ <dt id="lang-it">Installation Time:</dt>
+ <dd class="mod-about">
+ <div class="inner">
+ <p>~<xsl:value-of select="floor(mod:time div 60)" />&nbsp;<span id="lang-mint">minutes</span></p>
+ </div>
+ </dd>
+ </xsl:template>
+ <xsl:template name="give-mod-history">
+ <xsl:if test="count(mod:entry) > 0">
+ <fieldset>
+ <legend id="lang-mh">MOD History</legend>
+ <div class="mod-about" id="history_toggle_area" style="display:none;">
+ <span class="corners-top"><span></span></span>
+ <div class="mod-about-padding">
+ <a href="#" id="history_toggle_link" rel="show" onclick="return toggle_history(this);"></a>
+ </div>
+ <span class="corners-bottom"><span></span></span>
+ </div>
+ <div id="mod_history_content">
+ <xsl:for-each select="mod:entry">
+ <xsl:call-template name="give-history-entry"></xsl:call-template>
+ </xsl:for-each>
+ </div>
+ </fieldset>
+ </xsl:if>
+ </xsl:template>
+ <xsl:template name="give-history-entry">
+ <div class="mod-about">
+ <span class="corners-top"><span></span></span>
+ <dl class="mod-history">
+ <dt>
+ <p><strong><xsl:value-of select="substring(mod:date,1,10)" />&nbsp;<span id="lang-mhe-v[{generate-id()}]">- Version</span>
+ <xsl:for-each select="mod:rev-version">
+ <xsl:value-of select="current()" />
+ </xsl:for-each>
+ </strong></p>
+ </dt>
+ <dd><br clear="all" />
+ <xsl:if test="count(mod:changelog) > 1">
+ <dl id="mhcl[{generate-id()}]">
+ <xsl:for-each select="mod:changelog">
+ <xsl:call-template name="give-history-entry-changelog"></xsl:call-template>
+ </xsl:for-each>
+ </dl>
+ </xsl:if>
+ <xsl:if test="count(mod:changelog) = 1">
+ <xsl:for-each select="mod:changelog">
+ <xsl:call-template name="give-history-entry-changelog-single"></xsl:call-template>
+ </xsl:for-each>
+ </xsl:if>
+ </dd>
+ </dl>
+ <span class="corners-bottom"><span></span></span>
+ </div>
+ </xsl:template>
+ <xsl:template name="give-history-entry-changelog">
+ <dt><xsl:value-of select="@lang" /></dt>
+ <dd lang="{@lang}">
+ <ul>
+ <xsl:for-each select="mod:change">
+ <li>
+ <p><xsl:value-of select="current()" /></p>
+ </li>
+ </xsl:for-each>
+ </ul>
+ </dd>
+ </xsl:template>
+ <xsl:template name="give-history-entry-changelog-single">
+ <ul>
+ <xsl:for-each select="mod:change">
+ <li>
+ <p><xsl:value-of select="current()" /></p>
+ </li>
+ </xsl:for-each>
+ </ul>
+ </xsl:template>
+ <xsl:template name="give-files-to-edit">
+ <ul>
+ <xsl:for-each select="mod:open">
+ <xsl:call-template name="give-file"></xsl:call-template>
+ </xsl:for-each>
+ </ul>
+ </xsl:template>
+ <xsl:template name="give-files-included">
+ <ul>
+ <xsl:for-each select="mod:copy">
+ <xsl:call-template name="give-file-copy"></xsl:call-template>
+ </xsl:for-each>
+ </ul>
+ </xsl:template>
+ <xsl:template name="give-file">
+ <li><a href="#{@src}"><xsl:value-of select="@src" /></a><xsl:if test="position()!=last()">,</xsl:if></li>
+ </xsl:template>
+ <xsl:template name="give-file-copy">
+ <xsl:for-each select="mod:file">
+ <li><xsl:value-of select="@from" />
+ <xsl:if test="position()!=last()">,
+ </xsl:if>
+ </li>
+ </xsl:for-each>
+ </xsl:template>
+ <xsl:template name="give-actions">
+ <xsl:if test="count(mod:sql) > 0 or count(mod:copy) > 0 or count(mod:open) > 0">
+ <hr />
+ </xsl:if>
+ <xsl:if test="count(mod:sql) > 0">
+ <form method="post" action="" id="dbms-selector">
+ <fieldset class="nobg">
+ <label for="dbms"> <span id="lang-dbms">Select Database Type:</span> </label>
+ <select id="dbms" name="dbms" onchange="change_dbms(this)">
+ <option value="mysql_41" selected="selected">MySQL 41</option>
+ <option value="mysql_40">MySQL 40</option>
+ <option value="firebird">Firebird</option>
+ <option value="mssql">MSSQL</option>
+ <option value="oracle">Oracle</option>
+ <option value="postgres">Postgres</option>
+ <option value="sqllite">SQLLite</option>
+ </select>
+ </fieldset>
+ </form>
+ <h2 id="lang-sql">SQL</h2>
+ <div id="sql" class="mod-about">
+ <span class="corners-top"><span></span></span>
+ <xsl:for-each select="mod:sql">
+ <xsl:call-template name="give-sql"></xsl:call-template>
+ </xsl:for-each>
+ <span class="corners-bottom"><span></span></span></div>
+ </xsl:if>
+ <xsl:if test="count(mod:copy) > 0">
+ <xsl:for-each select="mod:copy">
+ <xsl:call-template name="give-filez"></xsl:call-template>
+ </xsl:for-each>
+ </xsl:if>
+ <xsl:if test="count(mod:open) > 0">
+ <h2 id="lang-edts">Edits</h2>
+ <p><span class="key">s</span><span class="key">w</span><span class="key">x</span><span id="lang-edtt">Use your keyboard to navigate the code boxes. You may also hit '<em>s</em>' on your keyboard to go to the first code box.</span></p>
+ <div id="edits">
+ <div class="inner">
+ <xsl:for-each select="mod:open">
+ <xsl:call-template name="give-fileo"></xsl:call-template>
+ </xsl:for-each>
+ </div>
+ </div>
+ </xsl:if>
+ <xsl:call-template name="give-manual"></xsl:call-template>
+ </xsl:template>
+ <xsl:template name="give-sql">
+ <dbms type="{@dbms}">
+ <div class="content">
+ <xsl:if test="@dbms != ''">
+ <xsl:value-of select="@dbms" />:
+ </xsl:if>
+ <div class="codebox">
+ <div class="codeHead"><span id="lang-cde-c[{generate-id()}]">Code:</span><a href="#" onclick="select_code(this); return false;" class="codeSelect"><span id="lang-cde-sa[{generate-id()}]">Select All</span></a></div>
+ <div class="codePre"><pre id="{generate-id()}"><xsl:value-of select="current()" /></pre></div>
+ </div>
+ </div>
+ </dbms>
+ </xsl:template>
+ <xsl:template name="give-manual">
+ <xsl:if test="count(mod:diy-instructions) > 0">
+ <h2 id="lang-diy">DIY Instructions</h2>
+ <div class="mod-about">
+ <span class="corners-top"><span></span></span>
+ <div class="mod-about-padding">
+ <p><span id="lang-diyt">These are manual instructions that cannot be performed automatically. You should follow these instructions carefully.</span></p>
+ </div>
+ <div id="diy">
+ <xsl:for-each select="mod:diy-instructions">
+ <div lang="{@lang}" style="margin:0;">
+ <div class="content">
+ <div class="codebox">
+ <div class="codeHead"><span id="lang-cde-c[{generate-id()}]">Code:</span><a href="#" onclick="select_code(this); return false;" class="codeSelect"><span id="lang-cde-sa[{generate-id()}]">Select All</span></a></div>
+ <div class="codePre"><pre id="{generate-id()}"><xsl:value-of select="current()" /></pre></div>
+ </div>
+ </div>
+ </div>
+ </xsl:for-each>
+ </div>
+ <span class="corners-bottom"><span></span></span>
+ </div>
+ </xsl:if>
+ </xsl:template>
+ <xsl:template name="give-fileo">
+ <div class="mod-about">
+ <span class="corners-top"><span></span></span>
+ <div class="editFile">
+ <h3><span id="lang-opn[{generate-id()}]">Open:</span>&nbsp;<a name="{@src}"><xsl:value-of select="@src" /></a></h3>
+ <xsl:for-each select="mod:edit">
+ <div class="mod-edit">
+ <div class="mod-edit-contents">
+ <xsl:if test="count(mod:comment) > 0">
+ <div class="mod-comment" style="margin:0;">
+ <h4 id="lang-cm-cmt[{generate-id()}]">Comments</h4>
+ <dl id="mod-comment[{generate-id()}]">
+ <xsl:for-each select="mod:comment">
+ <dt><span>
+ <xsl:if test="count(../mod:comment) > 1">
+ <xsl:value-of select="@lang" />
+ </xsl:if>
+ </span></dt>
+ <dd lang="{@lang}"><xsl:value-of select="current()" /></dd>
+ </xsl:for-each>
+ </dl>
+ </div>
+ </xsl:if>
+ <xsl:for-each select="mod:find|mod:action|mod:inline-edit">
+ <xsl:if test="name() = 'find'">
+ <h4 id="lang-fnd[{generate-id()}]">Find</h4>
+ <p><span id="lang-fndt[{generate-id()}]"><strong>Tip:</strong> This may be a partial find and not the whole line.</span>
+ <xsl:if test="@type = 'regex'">
+ <br /><em id="lang-regex[{generate-id()}]">This find contains an advanced feature known as regular expressions, click here to learn more.</em>
+ </xsl:if>
+ </p>
+ <div class="codebox">
+ <div class="codeHead"><span id="lang-cde-c[{generate-id()}]">Code:</span><a href="#" onclick="select_code(this); return false;" class="codeSelect"><span id="lang-cde-sa[{generate-id()}]">Select All</span></a></div>
+ <div class="codePre"><pre id="{generate-id()}"><xsl:value-of select="current()" /></pre></div>
+ </div>
+ </xsl:if>
+ <xsl:if test="name() = 'action'">
+ <xsl:if test="@type = 'after-add'">
+ <h4 id="lang-aft[{generate-id()}]">Add after</h4>
+ <p><span id="lang-aftt[{generate-id()}]"><strong>Tip:</strong> Add these lines on a new blank line after the preceding line(s) to find.</span></p>
+ </xsl:if>
+ <xsl:if test="@type = 'before-add'">
+ <h4 id="lang-bef[{generate-id()}]">Add before</h4>
+ <p><span id="lang-beft[{generate-id()}]"><strong>Tip:</strong> Add these lines on a new blank line before the preceding line(s) to find.</span></p>
+ </xsl:if>
+ <xsl:if test="@type = 'replace-with'">
+ <h4 id="lang-rplw[{generate-id()}]">Replace With</h4>
+ <p><span id="lang-rplwt[{generate-id()}]"><strong>Tip:</strong> Replace the preceding line(s) to find with the following lines.</span></p>
+ </xsl:if>
+ <xsl:if test="@type = 'operation'">
+ <h4 id="lang-inc[{generate-id()}]">Increment</h4>
+ <p><span id="lang-inct[{generate-id()}]"><strong>Tip:</strong> This allows you to alter integers. For help on what each operator means, click here.</span></p>
+ </xsl:if>
+ <div class="codebox">
+ <div class="codeHead"><span id="lang-cde-c[{generate-id()}]">Code:</span><a href="#" onclick="select_code(this); return false;" class="codeSelect"><span id="lang-cde-sa[{generate-id()}]">Select All</span></a></div>
+ <div class="codePre"><pre id="{generate-id()}"><xsl:value-of select="current()" /></pre></div>
+ </div>
+ </xsl:if>
+ <xsl:if test="name() = 'inline-edit'">
+ <div class="mod-inlineedit">
+ <xsl:for-each select="mod:inline-find|mod:inline-action|mod:inline-comment">
+ <xsl:if test="name() = 'inline-find'">
+ <h5 id="lang-ifnd[{generate-id()}]">In-line Find</h5>
+ <p><span id="lang-ifndt[{generate-id()}]"><strong>Tip:</strong> This is a partial match of a line for in-line operations.</span>
+ <xsl:if test="@type = 'regex'">
+ <br /><em id="lang-regex[{generate-id()}]">This find contains an advanced feature known as regular expressions, click here to learn more.</em>
+ </xsl:if>
+ </p>
+ <div class="codebox">
+ <div class="codeHead"><span id="lang-cde-c[{generate-id()}]">Code:</span><a href="#" onclick="select_code(this); return false;" class="codeSelect"><span id="lang-cde-sa[{generate-id()}]">Select All</span></a></div>
+ <div class="codePre"><pre id="{generate-id()}"><xsl:value-of select="current()" /></pre></div>
+ </div>
+ </xsl:if>
+ <xsl:if test="name() = 'inline-action'">
+ <xsl:if test="@type = 'after-add'">
+ <h5 id="lang-iaft[{generate-id()}]">In-line Add after</h5>
+ <p><span id="lang-iaftt[{generate-id()}]"></span></p>
+ </xsl:if>
+ <xsl:if test="@type = 'before-add'">
+ <h5 id="lang-ibef[{generate-id()}]">In-line Add before</h5>
+ <p><span id="lang-ibeft[{generate-id()}]"></span></p>
+ </xsl:if>
+ <xsl:if test="@type = 'replace-with'">
+ <h5 id="lang-irplw[{generate-id()}]">In-line Replace With</h5>
+ <p><span id="lang-irplwt[{generate-id()}]"></span></p>
+ </xsl:if>
+ <xsl:if test="@type = 'operation'">
+ <h5 id="lang-iinc[{generate-id()}]">In-line Increment</h5>
+ <p><span id="lang-iinct[{generate-id()}]"><strong>Tip:</strong> This allows you to alter integers. For help on what each operator means, click here.</span></p>
+ </xsl:if>
+ <div class="codebox">
+ <div class="codeHead"><span id="lang-cde-c[{generate-id()}]">Code:</span><a href="#" onclick="select_code(this); return false;" class="codeSelect"><span id="lang-cde-sa[{generate-id()}]">Select All</span></a></div>
+ <div class="codePre"><pre id="{generate-id()}"><xsl:value-of select="current()" /></pre></div>
+ </div>
+ </xsl:if>
+ <xsl:if test="name() = 'inline-comment'">
+ <dl id="comment[{generate-id()}]">
+ <dt><span id="lang-cm-cmt[{generate-id()}]">Comments</span>&nbsp;<span><xsl:value-of select="@lang" /></span></dt>
+ <dd lang="{@lang}"><xsl:value-of select="current()" /></dd>
+ </dl>
+ </xsl:if>
+ </xsl:for-each>
+ </div>
+ </xsl:if>
+ </xsl:for-each>
+ </div>
+ <a href="#" id="lang-edt-hide[{generate-id()}]" class="edit_toggle_link" rel="hide" onclick="return toggle_edit(this);">&lt;&lt;&nbsp;Hide</a>
+ </div>
+ </xsl:for-each>
+ </div>
+ <span class="corners-bottom"><span></span></span>
+ </div>
+ </xsl:template>
+ <xsl:template name="give-filez">
+ <h2 id="lang-fca">File Copy</h2>
+ <ol id="file-copy">
+ <xsl:for-each select="mod:file">
+ <li><dl>
+ <dt><span id="lang-c-copy[{generate-id()}]">Copy:</span>&nbsp;<xsl:value-of select="@from" /></dt>
+ <dd><span id="lang-c-to[{generate-id()}]">To:</span>&nbsp;<xsl:value-of select="@to" /></dd>
+ </dl>
+ </li>
+ </xsl:for-each>
+ </ol>
+ </xsl:template>
+ <!-- add-line-breaks borrowed from http://www.stylusstudio.com/xsllist/200103/post40180.html -->
+ <xsl:template name="add-line-breaks">
+ <xsl:param name="string" select="." />
+ <xsl:choose>
+ <xsl:when test="contains($string, '&#xA;')">
+ <xsl:value-of select="substring-before($string, '&#xA;')" /><br />
+ <xsl:call-template name="add-line-breaks"><xsl:with-param name="string" select="substring-after($string, '&#xA;')" /></xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$string" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet>
Please sign in to comment.
Something went wrong with that request. Please try again.