elracodelangela/0000755000176700017710000000000011073161126014417 5ustar essawireessawireelracodelangela/LICENSE.php0000755000176700017710000004263011061563507016230 0ustar essawireessawireGNU 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. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 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. , 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. elracodelangela/LICENSES.php0000755000176700017710000007375711061563507016371 0ustar essawireessawire Joomla! includes or is derivative of works distributed under the licenses listed below. This file includes the full text of the following licenses: ------------------------------------------------------------------ * BSD License * GNU Lesser General Public License (GNU LGPL) version 2.1 * MIT License * PHP License version 3.0 BSD License: --------------------- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the "XML-RPC for PHP" nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------ GNU LGPL: --------------------- GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, 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 and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, 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 library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete 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 distribute a copy of this License along with the Library. 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 Library or any portion of it, thus forming a work based on the Library, 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) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, 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 Library, 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 Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you 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. If distribution of 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 satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be 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. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library 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. 9. 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 Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library 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 with this License. 11. 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 Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library 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 Library. 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. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library 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. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser 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 Library 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 Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, 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 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "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 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. 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 LIBRARY 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 LIBRARY (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 LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. ------------------------------------------------------------------ MIT License: --------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------ PHP License: --------------------- The PHP License, version 3.0 Copyright (c) 1999 - 2006 The PHP Group. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name "PHP" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact group@php.net. 4. Products derived from this software may not be called "PHP", nor may "PHP" appear in their name, without prior written permission from group@php.net. You may indicate that your software works in conjunction with PHP by saying "Foo for PHP" instead of calling it "PHP Foo" or "phpfoo" 5. The PHP Group may publish revised and/or new versions of the license from time to time. Each version will be given a distinguishing version number. Once covered code has been published under a particular version of the license, you may always continue to use it under the terms of that version. You may also choose to use such covered code under the terms of any subsequent version of the license published by the PHP Group. No one other than the PHP Group has the right to modify the terms applicable to covered code created under this License. 6. Redistributions of any form whatsoever must retain the following acknowledgment: "This product includes PHP, freely available from ". THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------elracodelangela/htaccess.txt0000755000176700017710000000514711061563454016776 0ustar essawireessawire## # @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $ # @package Joomla # @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL # Joomla! is Free Software ## ##################################################### # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE # # The line just below this section: 'Options +FollowSymLinks' may cause problems # with some server configurations. It is required for use of mod_rewrite, but may already # be set by your server administrator in a way that dissallows changing it in # your .htaccess file. If using it causes your server to error out, comment it out (add # to # beginning of line), reload your site in your browser and test your sef url's. If they work, # it has been set by your server administrator and you do not need it set here. # ##################################################### ## Can be commented out if causes errors, see notes above. Options +FollowSymLinks # # mod_rewrite in use RewriteEngine On ########## Begin - Rewrite rules to block out some common exploits ## If you experience problems on your site block out the operations listed below ## This attempts to block the most common type of exploit `attempts` to Joomla! # # Block out any script trying to set a mosConfig value through the URL RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] # Block out any script trying to base64_encode crap to send via URL RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] # Block out any script that includes a
me->authorize( 'com_users', 'block user' )) { ?> me->authorize( 'com_users', 'email_events' )) { ?> user->get('id') ) { ?>
user->get('password')) : ?>
user->get('password')) : ?>
lists['gid']; ?>
lists['block']; ?>
lists['sendEmail']; ?>
user->get('registerDate'), '%Y-%m-%d %H:%M:%S');?>
user->getParameters(true); echo $params->render( 'params' ); ?>
contact ) { ?>

:
.


contact[0]->image) { ?>
contact[0]->name;?>
contact[0]->con_position;?>
contact[0]->telephone;?>
contact[0]->fax;?>
contact[0]->misc;?>
<?php echo JText::_( 'Contact' ); ?>
 



' Contact -> Manage Contacts' ); ?>'
me->authorize( 'com_users', 'email_events' )) { ?>
elracodelangela/administrator/components/com_users/views/user/tmpl/index.html0000755000176700017710000000005411061563415030555 0ustar essawireessawireelracodelangela/administrator/components/com_users/views/user/view.html.php0000755000176700017710000001041611061563415030235 0ustar essawireessawirebind($post); } if ( $user->get('id')) { $query = 'SELECT *' . ' FROM #__contact_details' . ' WHERE user_id = '.(int) $cid[0] ; $db->setQuery( $query ); $contact = $db->loadObjectList(); } else { $contact = NULL; // Get the default group id for a new user $config = &JComponentHelper::getParams( 'com_users' ); $newGrp = $config->get( 'new_usertype' ); $user->set( 'gid', $acl->get_group_id( $newGrp, null, 'ARO' ) ); } $userObjectID = $acl->get_object_id( 'users', $user->get('id'), 'ARO' ); $userGroups = $acl->get_object_groups( $userObjectID, 'ARO' ); $userGroupName = strtolower( $acl->get_group_name( $userGroups[0], 'ARO' ) ); $myObjectID = $acl->get_object_id( 'users', $myuser->get('id'), 'ARO' ); $myGroups = $acl->get_object_groups( $myObjectID, 'ARO' ); $myGroupName = strtolower( $acl->get_group_name( $myGroups[0], 'ARO' ) );; // ensure user can't add/edit group higher than themselves /* NOTE : This check doesn't work commented out for the time being if ( is_array( $myGroups ) && count( $myGroups ) > 0 ) { $excludeGroups = (array) $acl->get_group_children( $myGroups[0], 'ARO', 'RECURSE' ); } else { $excludeGroups = array(); } if ( in_array( $userGroups[0], $excludeGroups ) ) { echo 'not auth'; $mainframe->redirect( 'index.php?option=com_users', JText::_('NOT_AUTH') ); } */ /* if ( $userGroupName == 'super administrator' ) { // super administrators can't change $lists['gid'] = ''. JText::_( 'Super Administrator' ) .''; } else if ( $userGroupName == $myGroupName && $myGroupName == 'administrator' ) { */ if ( $userGroupName == $myGroupName && $myGroupName == 'administrator' ) { // administrators can't change each other $lists['gid'] = ''. JText::_( 'Administrator' ) .''; } else { $gtree = $acl->get_group_children_tree( null, 'USERS', false ); // remove users 'above' me //$i = 0; //while ($i < count( $gtree )) { // if ( in_array( $gtree[$i]->value, (array)$excludeGroups ) ) { // array_splice( $gtree, $i, 1 ); // } else { // $i++; // } //} $lists['gid'] = JHTML::_('select.genericlist', $gtree, 'gid', 'size="10"', 'value', 'text', $user->get('gid') ); } // build the html select list $lists['block'] = JHTML::_('select.booleanlist', 'block', 'class="inputbox" size="1"', $user->get('block') ); // build the html select list $lists['sendEmail'] = JHTML::_('select.booleanlist', 'sendEmail', 'class="inputbox" size="1"', $user->get('sendEmail') ); $this->assignRef('me', $me); $this->assignRef('lists', $lists); $this->assignRef('user', $user); $this->assignRef('contact', $contact); parent::display($tpl); } } elracodelangela/administrator/components/com_users/views/index.html0000755000176700017710000000005411061563415026623 0ustar essawireessawireelracodelangela/administrator/components/com_users/controller.php0000755000176700017710000003035611061563414026374 0ustar essawireessawireregisterTask( 'add' , 'display' ); $this->registerTask( 'edit' , 'display' ); $this->registerTask( 'apply', 'save' ); $this->registerTask( 'flogout', 'logout'); $this->registerTask( 'unblock', 'block' ); } /** * Displays a view */ function display( ) { switch($this->getTask()) { case 'add' : { JRequest::setVar( 'hidemainmenu', 1 ); JRequest::setVar( 'layout', 'form' ); JRequest::setVar( 'view', 'user' ); JRequest::setVar( 'edit', false ); } break; case 'edit' : { JRequest::setVar( 'hidemainmenu', 1 ); JRequest::setVar( 'layout', 'form' ); JRequest::setVar( 'view', 'user' ); JRequest::setVar( 'edit', true ); } break; } parent::display(); } /** * Saves the record */ function save() { global $mainframe; // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $option = JRequest::getCmd( 'option'); // Initialize some variables $db = & JFactory::getDBO(); $me = & JFactory::getUser(); $acl =& JFactory::getACL(); $MailFrom = $mainframe->getCfg('mailfrom'); $FromName = $mainframe->getCfg('fromname'); $SiteName = $mainframe->getCfg('sitename'); // Create a new JUser object $user = new JUser(JRequest::getVar( 'id', 0, 'post', 'int')); $original_gid = $user->get('gid'); $post = JRequest::get('post'); $post['username'] = JRequest::getVar('username', '', 'post', 'username'); $post['password'] = JRequest::getVar('password', '', 'post', 'string', JREQUEST_ALLOWRAW); $post['password2'] = JRequest::getVar('password2', '', 'post', 'string', JREQUEST_ALLOWRAW); if (!$user->bind($post)) { $mainframe->enqueueMessage(JText::_('CANNOT SAVE THE USER INFORMATION'), 'message'); $mainframe->enqueueMessage($user->getError(), 'error'); //$mainframe->redirect( 'index.php?option=com_users', $user->getError() ); //return false; return $this->execute('edit'); } $objectID = $acl->get_object_id( 'users', $user->get('id'), 'ARO' ); $groups = $acl->get_object_groups( $objectID, 'ARO' ); $this_group = strtolower( $acl->get_group_name( $groups[0], 'ARO' ) ); if ( $user->get('id') == $me->get( 'id' ) && $user->get('block') == 1 ) { $msg = JText::_( 'You cannot block Yourself!' ); $mainframe->enqueueMessage($msg, 'message'); return $this->execute('edit'); } else if ( ( $this_group == 'super administrator' ) && $user->get('block') == 1 ) { $msg = JText::_( 'You cannot block a Super Administrator' ); $mainframe->enqueueMessage($msg, 'message'); return $this->execute('edit'); } else if ( ( $this_group == 'administrator' ) && ( $me->get( 'gid' ) == 24 ) && $user->get('block') == 1 ) { $msg = JText::_( 'WARNBLOCK' ); $mainframe->enqueueMessage($msg, 'message'); return $this->execute('edit'); } else if ( ( $this_group == 'super administrator' ) && ( $me->get( 'gid' ) != 25 ) ) { $msg = JText::_( 'You cannot edit a super administrator account' ); $mainframe->enqueueMessage($msg, 'message'); return $this->execute('edit'); } // Are we dealing with a new user which we need to create? $isNew = ($user->get('id') < 1); if (!$isNew) { // if group has been changed and where original group was a Super Admin if ( $user->get('gid') != $original_gid && $original_gid == 25 ) { // count number of active super admins $query = 'SELECT COUNT( id )' . ' FROM #__users' . ' WHERE gid = 25' . ' AND block = 0' ; $db->setQuery( $query ); $count = $db->loadResult(); if ( $count <= 1 ) { // disallow change if only one Super Admin exists $this->setRedirect( 'index.php?option=com_users', JText::_('WARN_ONLY_SUPER') ); return false; } } } /* * Lets save the JUser object */ if (!$user->save()) { $mainframe->enqueueMessage(JText::_('CANNOT SAVE THE USER INFORMATION'), 'message'); $mainframe->enqueueMessage($user->getError(), 'error'); return $this->execute('edit'); } /* * Time for the email magic so get ready to sprinkle the magic dust... */ if ($isNew) { $adminEmail = $me->get('email'); $adminName = $me->get('name'); $subject = JText::_('NEW_USER_MESSAGE_SUBJECT'); $message = sprintf ( JText::_('NEW_USER_MESSAGE'), $user->get('name'), $SiteName, JURI::root(), $user->get('username'), $user->password_clear ); if ($MailFrom != '' && $FromName != '') { $adminName = $FromName; $adminEmail = $MailFrom; } JUtility::sendMail( $adminEmail, $adminName, $user->get('email'), $subject, $message ); } // If updating self, load the new user object into the session if ($user->get('id') == $me->get('id')) { // Get an ACL object $acl = &JFactory::getACL(); // Get the user group from the ACL $grp = $acl->getAroGroup($user->get('id')); // Mark the user as logged in $user->set('guest', 0); $user->set('aid', 1); // Fudge Authors, Editors, Publishers and Super Administrators into the special access group if ($acl->is_group_child_of($grp->name, 'Registered') || $acl->is_group_child_of($grp->name, 'Public Backend')) { $user->set('aid', 2); } // Set the usertype based on the ACL group name $user->set('usertype', $grp->name); $session = &JFactory::getSession(); $session->set('user', $user); } switch ( $this->getTask() ) { case 'apply': $msg = JText::sprintf( 'Successfully Saved changes to User', $user->get('name') ); $this->setRedirect( 'index.php?option=com_users&view=user&task=edit&cid[]='. $user->get('id'), $msg ); break; case 'save': default: $msg = JText::sprintf( 'Successfully Saved User', $user->get('name') ); $this->setRedirect( 'index.php?option=com_users', $msg ); break; } } /** * Removes the record(s) from the database */ function remove() { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $db =& JFactory::getDBO(); $currentUser =& JFactory::getUser(); $acl =& JFactory::getACL(); $cid = JRequest::getVar( 'cid', array(), '', 'array' ); JArrayHelper::toInteger( $cid ); if (count( $cid ) < 1) { JError::raiseError(500, JText::_( 'Select a User to delete', true ) ); } foreach ($cid as $id) { // check for a super admin ... can't delete them $objectID = $acl->get_object_id( 'users', $id, 'ARO' ); $groups = $acl->get_object_groups( $objectID, 'ARO' ); $this_group = strtolower( $acl->get_group_name( $groups[0], 'ARO' ) ); $success = false; if ( $this_group == 'super administrator' ) { $msg = JText::_( 'You cannot delete a Super Administrator' ); } else if ( $id == $currentUser->get( 'id' ) ) { $msg = JText::_( 'You cannot delete Yourself!' ); } else if ( ( $this_group == 'administrator' ) && ( $currentUser->get( 'gid' ) == 24 ) ) { $msg = JText::_( 'WARNDELETE' ); } else { $user =& JUser::getInstance((int)$id); $count = 2; if ( $user->get( 'gid' ) == 25 ) { // count number of active super admins $query = 'SELECT COUNT( id )' . ' FROM #__users' . ' WHERE gid = 25' . ' AND block = 0' ; $db->setQuery( $query ); $count = $db->loadResult(); } if ( $count <= 1 && $user->get( 'gid' ) == 25 ) { // cannot delete Super Admin where it is the only one that exists $msg = "You cannot delete this Super Administrator as it is the only active Super Administrator for your site"; } else { // delete user $user->delete(); $msg = ''; JRequest::setVar( 'task', 'remove' ); JRequest::setVar( 'cid', $id ); // delete user acounts active sessions $this->logout(); } } } $this->setRedirect( 'index.php?option=com_users', $msg); } /** * Cancels an edit operation */ function cancel( ) { $this->setRedirect( 'index.php?option=com_users' ); } /** * Disables the user account */ function block( ) { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $db =& JFactory::getDBO(); $acl =& JFactory::getACL(); $currentUser =& JFactory::getUser(); $cid = JRequest::getVar( 'cid', array(), '', 'array' ); $block = $this->getTask() == 'block' ? 1 : 0; JArrayHelper::toInteger( $cid ); if (count( $cid ) < 1) { JError::raiseError(500, JText::_( 'Select a User to '.$this->getTask(), true ) ); } foreach ($cid as $id) { // check for a super admin ... can't delete them $objectID = $acl->get_object_id( 'users', $id, 'ARO' ); $groups = $acl->get_object_groups( $objectID, 'ARO' ); $this_group = strtolower( $acl->get_group_name( $groups[0], 'ARO' ) ); $success = false; if ( $this_group == 'super administrator' ) { $msg = JText::_( 'You cannot block a Super Administrator' ); } else if ( $id == $currentUser->get( 'id' ) ) { $msg = JText::_( 'You cannot block Yourself!' ); } else if ( ( $this_group == 'administrator' ) && ( $currentUser->get( 'gid' ) == 24 ) ) { $msg = JText::_( 'WARNBLOCK' ); } else { $user =& JUser::getInstance((int)$id); $count = 2; if ( $user->get( 'gid' ) == 25 ) { // count number of active super admins $query = 'SELECT COUNT( id )' . ' FROM #__users' . ' WHERE gid = 25' . ' AND block = 0' ; $db->setQuery( $query ); $count = $db->loadResult(); } if ( $count <= 1 && $user->get( 'gid' ) == 25 ) { // cannot delete Super Admin where it is the only one that exists $msg = "You cannot block this Super Administrator as it is the only active Super Administrator for your site"; } else { $user =& JUser::getInstance((int)$id); $user->block = $block; $user->save(); if($block) { JRequest::setVar( 'task', 'block' ); JRequest::setVar( 'cid', array($id) ); // delete user acounts active sessions $this->logout(); } } } } $this->setRedirect( 'index.php?option=com_users', $msg); } /** * Force log out a user */ function logout( ) { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); global $mainframe; $db =& JFactory::getDBO(); $task = $this->getTask(); $cids = JRequest::getVar( 'cid', array(), '', 'array' ); $client = JRequest::getVar( 'client', 0, '', 'int' ); $id = JRequest::getVar( 'id', 0, '', 'int' ); JArrayHelper::toInteger($cids); if ( count( $cids ) < 1 ) { $this->setRedirect( 'index.php?option=com_users', JText::_( 'User Deleted' ) ); return false; } foreach($cids as $cid) { $options = array(); if ($task == 'logout' || $task == 'block') { $options['clientid'][] = 0; //site $options['clientid'][] = 1; //administrator } else if ($task == 'flogout') { $options['clientid'][] = $client; } $mainframe->logout((int)$cid, $options); } $msg = JText::_( 'User Session Ended' ); switch ( $task ) { case 'flogout': $this->setRedirect( 'index.php', $msg ); break; case 'remove': case 'block': return; break; default: $this->setRedirect( 'index.php?option=com_users', $msg ); break; } } function contact() { $contact_id = JRequest::getVar( 'contact_id', '', 'post', 'int' ); $this->setRedirect( 'index.php?option=com_contact&atask=edit&cid[]='. $contact_id ); } } elracodelangela/administrator/components/com_users/users.xml0000755000176700017710000000077511061563415025366 0ustar essawireessawire User Manager Joomla! Project April 2006 (C) 2005 - 2008 Open Source Matters. All rights reserved. http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL admin@joomla.org www.joomla.org 1.5.0 User Manager elracodelangela/administrator/components/com_users/config.xml0000755000176700017710000000202311061563415025456 0ustar essawireessawire elracodelangela/administrator/components/com_poll/0000755000176700017710000000000011061563562023277 5ustar essawireessawireelracodelangela/administrator/components/com_poll/poll.xml0000755000176700017710000000101711061563424024766 0ustar essawireessawire Polls Joomla! Project July 2004 Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL admin@joomla.org www.joomla.org 1.5.0 This component manages polls elracodelangela/administrator/components/com_poll/index.html0000755000176700017710000000005411061563424025273 0ustar essawireessawireelracodelangela/administrator/components/com_poll/tables/0000755000176700017710000000000011061563562024551 5ustar essawireessawireelracodelangela/administrator/components/com_poll/tables/index.html0000755000176700017710000000005411061563424026545 0ustar essawireessawireelracodelangela/administrator/components/com_poll/tables/poll.php0000755000176700017710000000612011061563424026227 0ustar essawireessawireid = (int) $this->id; return $result; } /** * Overloaded check function * * @access public * @return boolean * @see JTable::check * @since 1.5 */ function check() { // check for valid name if (trim( $this->title ) == '') { $this->setError(JText::_( 'Your Poll must contain a title.' )); return false; } // check for valid lag $this->lag = intval( $this->lag ); if ($this->lag == 0) { $this->setError(JText::_( 'Your Poll must have a non-zero lag time.' )); return false; } if(empty($this->alias)) { $this->alias = $this->title; } $this->alias = JFilterOutput::stringURLSafe($this->alias); if(trim(str_replace('-','',$this->alias)) == '') { $datenow =& JFactory::getDate(); $this->alias = $datenow->toFormat("%Y-%m-%d-%H-%M-%S"); } return true; } // overloaded delete function function delete( $oid=null ) { $k = $this->_tbl_key; if ( $oid ) { $this->$k = intval( $oid ); } if ( parent::delete( $oid )) { $query = 'DELETE FROM #__poll_data' . ' WHERE pollid = '.(int) $this->$k ; $this->_db->setQuery( $query ); if ( !$this->_db->query() ) { $this->_error .= $this->_db->getErrorMsg() . "\n"; } $query = 'DELETE FROM #__poll_date' . ' WHERE poll_id = '.(int) $this->$k ; $this->_db->setQuery( $query ); if ( !$this->_db->query() ) { $this->_error .= $this->_db->getErrorMsg() . "\n"; } $query = 'DELETE from #__poll_menu' . ' WHERE pollid = '.(int) $this->$k ; $this->_db->setQuery( $query ); if ( !$this->_db->query() ) { $this->_error .= $this->_db->getErrorMsg() . "\n"; } return true; } return false; } } elracodelangela/administrator/components/com_poll/elements/0000755000176700017710000000000011061563562025113 5ustar essawireessawireelracodelangela/administrator/components/com_poll/elements/index.html0000755000176700017710000000005411061563424027107 0ustar essawireessawireelracodelangela/administrator/components/com_poll/elements/poll.php0000755000176700017710000000243211061563424026573 0ustar essawireessawiresetQuery( $query ); $options = $db->loadObjectList(); array_unshift($options, JHTML::_('select.option', '0', '- '.JText::_('Select Poll').' -', 'id', 'title')); return JHTML::_('select.genericlist', $options, ''.$control_name.'['.$name.']', 'class="inputbox"', 'id', 'title', $value, $control_name.$name ); } } elracodelangela/administrator/components/com_poll/views/0000755000176700017710000000000011061563562024434 5ustar essawireessawireelracodelangela/administrator/components/com_poll/views/index.html0000755000176700017710000000005411061563424026430 0ustar essawireessawireelracodelangela/administrator/components/com_poll/views/polls/0000755000176700017710000000000011061563562025565 5ustar essawireessawireelracodelangela/administrator/components/com_poll/views/polls/index.html0000755000176700017710000000005411061563424027561 0ustar essawireessawireelracodelangela/administrator/components/com_poll/views/polls/tmpl/0000755000176700017710000000000011061563562026541 5ustar essawireessawireelracodelangela/administrator/components/com_poll/views/polls/tmpl/index.html0000755000176700017710000000005411061563424030535 0ustar essawireessawireelracodelangela/administrator/components/com_poll/views/polls/tmpl/default.php0000755000176700017710000000762211061563424030705 0ustar essawireessawire
: lists['state']; ?>
items ); $i < $n; $i++) { $row = &$this->items[$i]; $link = JRoute::_( 'index.php?option=com_poll&view=poll&task=edit&cid[]='. $row->id ); $checked = JHTML::_('grid.checkedout', $row, $i ); $published = JHTML::_('grid.published', $row, $i ); ?> ">
lists['order_Dir'], @$this->lists['order'] ); ?> lists['order_Dir'], @$this->lists['order'] ); ?> lists['order_Dir'], @$this->lists['order'] ); ?> lists['order_Dir'], @$this->lists['order'] ); ?> lists['order_Dir'], @$this->lists['order'] ); ?> lists['order_Dir'], @$this->lists['order'] ); ?>
pagination->getListFooter(); ?>
pagination->getRowOffset( $i ); ?> user->get ('id'), $row->checked_out ) ) { echo $row->title; } else { ?> title; ?> voters; ?> numoptions; ?> lag; ?> id; ?>
elracodelangela/administrator/components/com_poll/views/polls/view.html.php0000755000176700017710000000626311061563424030222 0ustar essawireessawiregetUserStateFromRequest( "$option.filter_order", 'filter_order', 'm.id', 'cmd' ); $filter_order_Dir = $mainframe->getUserStateFromRequest( "$option.filter_order_Dir", 'filter_order_Dir', '', 'word' ); $filter_state = $mainframe->getUserStateFromRequest( "$option.filter_state", 'filter_state', '', 'word' ); $search = $mainframe->getUserStateFromRequest( "$option.search", 'search', '', 'string' ); $search = JString::strtolower( $search ); $limit = $mainframe->getUserStateFromRequest( 'global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int' ); $limitstart = $mainframe->getUserStateFromRequest( $option.'.limitstart', 'limitstart', 0, 'int' ); $where = array(); if ( $filter_state ) { if ( $filter_state == 'P' ) { $where[] = 'm.published = 1'; } else if ($filter_state == 'U' ) { $where[] = 'm.published = 0'; } } if ($search) { $where[] = 'LOWER(m.title) LIKE '.$db->Quote( '%'.$db->getEscaped( $search, true ).'%', false ); } $where = ( count( $where ) ? ' WHERE ' . implode( ' AND ', $where ) : '' ); $orderby = ' ORDER BY '. $filter_order .' '. $filter_order_Dir; $query = 'SELECT COUNT(m.id)' . ' FROM #__polls AS m' . $where ; $db->setQuery( $query ); $total = $db->loadResult(); jimport('joomla.html.pagination'); $pagination = new JPagination( $total, $limitstart, $limit ); $query = 'SELECT m.*, u.name AS editor, COUNT(d.id) AS numoptions' . ' FROM #__polls AS m' . ' LEFT JOIN #__users AS u ON u.id = m.checked_out' . ' LEFT JOIN #__poll_data AS d ON d.pollid = m.id AND d.text <> ""' . $where . ' GROUP BY m.id' . $orderby ; $db->setQuery( $query, $pagination->limitstart, $pagination->limit ); $rows = $db->loadObjectList(); if ($db->getErrorNum()) { echo $db->stderr(); return false; } // state filter $lists['state'] = JHTML::_('grid.state', $filter_state ); // table ordering $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; // search filter $lists['search']= $search; $this->assignRef('user', JFactory::getUser()); $this->assignRef('lists', $lists); $this->assignRef('items', $rows); $this->assignRef('pagination', $pagination); parent::display($tpl); } }elracodelangela/administrator/components/com_poll/views/poll/0000755000176700017710000000000011061563562025402 5ustar essawireessawireelracodelangela/administrator/components/com_poll/views/poll/index.html0000755000176700017710000000005411061563424027376 0ustar essawireessawireelracodelangela/administrator/components/com_poll/views/poll/tmpl/0000755000176700017710000000000011061563562026356 5ustar essawireessawireelracodelangela/administrator/components/com_poll/views/poll/tmpl/form.php0000755000176700017710000001014211061563424030030 0ustar essawireessawire [ ' . $text.' ]' ); JToolBarHelper::Preview('index.php?option=com_poll&controller=poll&cid[]='.$cid[0]); JToolBarHelper::save(); JToolBarHelper::apply(); if ($edit) { // for existing items the button is renamed `close` JToolBarHelper::cancel( 'cancel', 'Close' ); } else { JToolBarHelper::cancel(); } JToolBarHelper::help( 'screen.polls.edit' ); ?> poll, ENT_QUOTES ); ?>
: poll->published ); ?>
options ); $i < $n; $i++ ) { ?>
elracodelangela/administrator/components/com_poll/views/poll/tmpl/index.html0000755000176700017710000000005411061563424030352 0ustar essawireessawireelracodelangela/administrator/components/com_poll/views/poll/tmpl/default.php0000755000176700017710000000143511061563424030516 0ustar essawireessawire
options as $option) { if ($option->text <> "") {?>
poll->title; ?>
text; ?>
  
elracodelangela/administrator/components/com_poll/views/poll/view.html.php0000755000176700017710000000365311061563424030037 0ustar essawireessawireload( $uid ); // fail if checked out not by 'me' if ($poll->isCheckedOut( $user->get('id') )) { $msg = JText::sprintf( 'DESCBEINGEDITTED', JText::_( 'The poll' ), $poll->title ); $this->setRedirect( 'index.php?option='. $option, $msg ); } if ($poll->id == 0) { // defaults $row->published = 1; } $options = array(); if ($edit) { $poll->checkout( $user->get('id') ); $query = 'SELECT id, text' . ' FROM #__poll_data' . ' WHERE pollid = '.(int) $uid . ' ORDER BY id' ; $db->setQuery($query); $options = $db->loadObjectList(); } else { $poll->lag = 3600*24; } $this->assignRef('poll', $poll); $this->assignRef('options', $options); parent::display($tpl); } }elracodelangela/administrator/components/com_poll/poll.php0000755000176700017710000000211711061563424024757 0ustar essawireessawireauthorize( 'com_poll', 'manage' )) { $mainframe->redirect( 'index.php', JText::_('ALERTNOTAUTH') ); } require_once( JPATH_COMPONENT.DS.'controller.php' ); // Set the table directory JTable::addIncludePath( JPATH_COMPONENT.DS.'tables' ); // Create the controller $controller = new PollController( ); $controller->execute( JRequest::getCmd( 'task' ) ); $controller->redirect();elracodelangela/administrator/components/com_poll/controller.php0000755000176700017710000001234111061563423026173 0ustar essawireessawireregisterTask( 'apply', 'save'); $this->registerTask( 'unpublish', 'publish'); $this->registerTask( 'preview', 'display'); $this->registerTask( 'edit', 'display'); $this->registerTask( 'add' , 'display' ); } function display( ) { switch($this->getTask()) { case 'add' : { JRequest::setVar( 'hidemainmenu', 1 ); JRequest::setVar( 'layout', 'form' ); JRequest::setVar( 'view', 'poll' ); JRequest::setVar( 'edit', false ); } break; case 'edit' : { JRequest::setVar( 'hidemainmenu', 1 ); JRequest::setVar( 'layout', 'form' ); JRequest::setVar( 'view', 'poll' ); JRequest::setVar( 'edit', true ); } break; case 'preview' : { JRequest::setVar( 'tmpl', 'component' ); JRequest::setVar( 'view', 'poll' ); } break; } //Set the default view, just in case $view = JRequest::getCmd('view'); if(empty($view)) { JRequest::setVar('view', 'polls'); }; parent::display(); } function save() { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $db =& JFactory::getDBO(); // save the poll parent information $row =& JTable::getInstance('poll', 'Table'); $post = JRequest::get( 'post' ); if (!$row->bind( $post )) { JError::raiseError(500, $row->getError() ); } $isNew = ($row->id == 0); if (!$row->check()) { JError::raiseError(500, $row->getError() ); } if (!$row->store()) { JError::raiseError(500, $row->getError() ); } $row->checkin(); // save the poll options $options = JArrayHelper::getValue( $post, 'polloption', array(), 'array' ); foreach ($options as $i=>$text) { $text = htmlspecialchars($text, ENT_QUOTES, 'UTF-8'); if ($isNew) { $obj = new stdClass(); $obj->pollid = (int)$row->id; $obj->text = $text; $db->insertObject('#__poll_data', $obj); } else { $obj = new stdClass(); $obj->id = (int)$i; $obj->text = $text; $db->updateObject('#__poll_data', $obj, 'id'); } } switch ($this->_task) { case 'apply': $msg = JText::_( 'Changes to Poll saved' ); $link = 'index.php?option=com_poll&view=poll&task=edit&cid[]='. $row->id .''; break; case 'save': default: $msg = JText::_( 'Poll saved' ); $link = 'index.php?option=com_poll'; break; } $this->setRedirect($link); } function remove() { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $db =& JFactory::getDBO(); $cid = JRequest::getVar( 'cid', array(), '', 'array' ); JArrayHelper::toInteger($cid); $msg = ''; for ($i=0, $n=count($cid); $i < $n; $i++) { $poll =& JTable::getInstance('poll', 'Table'); if (!$poll->delete( $cid[$i] )) { $msg .= $poll->getError(); } } $this->setRedirect( 'index.php?option=com_poll', $msg ); } /** * Publishes or Unpublishes one or more records * @param array An array of unique category id numbers * @param integer 0 if unpublishing, 1 if publishing * @param string The current url option */ function publish() { global $mainframe; // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $db =& JFactory::getDBO(); $user =& JFactory::getUser(); $cid = JRequest::getVar( 'cid', array(), '', 'array' ); $publish = ( $this->getTask() == 'publish' ? 1 : 0 ); JArrayHelper::toInteger($cid); if (count( $cid ) < 1) { $action = $publish ? 'publish' : 'unpublish'; JError::raiseError(500, JText::_( 'Select an item to' .$action, true ) ); } $cids = implode( ',', $cid ); $query = 'UPDATE #__polls' . ' SET published = ' . (int) $publish . ' WHERE id IN ( '. $cids .' )' . ' AND ( checked_out = 0 OR ( checked_out = '.(int) $user->get('id').' ) )' ; $db->setQuery( $query ); if (!$db->query()) { JError::raiseError(500, $db->getErrorMsg() ); } if (count( $cid ) == 1) { $row =& JTable::getInstance('poll', 'Table'); $row->checkin( $cid[0] ); } $mainframe->redirect( 'index.php?option=com_poll' ); } function cancel() { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $id = JRequest::getVar( 'id', 0, '', 'int' ); $db =& JFactory::getDBO(); $row =& JTable::getInstance('poll', 'Table'); $row->checkin( $id ); $this->setRedirect( 'index.php?option=com_poll' ); } }elracodelangela/administrator/components/com_plugins/0000755000176700017710000000000011061563560024010 5ustar essawireessawireelracodelangela/administrator/components/com_plugins/plugins.xml0000755000176700017710000000100511061563416026212 0ustar essawireessawire Plugin Manager Joomla! Project 2006 Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL admin@joomla.org www.joomla.org 1.5.0 Plugin Manager elracodelangela/administrator/components/com_plugins/controllers/0000755000176700017710000000000011061563560026356 5ustar essawireessawireelracodelangela/administrator/components/com_plugins/controllers/index.html0000755000176700017710000000005411061563416030355 0ustar essawireessawireelracodelangela/administrator/components/com_plugins/plugins.php0000755000176700017710000000201711061563416026205 0ustar essawireessawireauthorize( 'com_plugins', 'manage' )) { $mainframe->redirect( 'index.php', JText::_('ALERTNOTAUTH') ); } require_once( JPATH_COMPONENT.DS.'controller.php' ); // Create the controller $controller = new PluginsController( ); $controller->execute( JRequest::getCmd( 'task' ) ); $controller->redirect();elracodelangela/administrator/components/com_plugins/index.html0000755000176700017710000000005411061563416026007 0ustar essawireessawireelracodelangela/administrator/components/com_plugins/views/0000755000176700017710000000000011061563560025145 5ustar essawireessawireelracodelangela/administrator/components/com_plugins/views/plugin/0000755000176700017710000000000011061563560026443 5ustar essawireessawireelracodelangela/administrator/components/com_plugins/views/plugin/index.html0000755000176700017710000000005411061563416030442 0ustar essawireessawireelracodelangela/administrator/components/com_plugins/views/plugin/tmpl/0000755000176700017710000000000011061563560027417 5ustar essawireessawireelracodelangela/administrator/components/com_plugins/views/plugin/tmpl/form.php0000755000176700017710000001114411061563416031077 0ustar essawireessawire [' .JText::_('Edit'). ']', 'plugin.png' ); JToolBarHelper::save(); JToolBarHelper::apply(); JToolBarHelper::cancel( 'cancel', 'Close' ); JToolBarHelper::help( 'screen.plugins.edit' ); ?> plugin, ENT_QUOTES, '' ); ?> plugin->nameA = ''; if ( $this->plugin->id ) { $row->nameA = '[ '. $this->plugin->name .' ]'; } ?>
: lists['published']; ?>
plugin->folder; ?>
.php
lists['access']; ?>
: lists['ordering']; ?>
: plugin->description ); ?>
true)); echo $pane->startPane('plugin-pane'); echo $pane->startPanel(JText :: _('Plugin Parameters'), 'param-page'); if($output = $this->params->render('params')) : echo $output; else : echo "
".JText::_('There are no parameters for this item')."
"; endif; echo $pane->endPanel(); if ($this->params->getNumParams('advanced')) { echo $pane->startPanel(JText :: _('Advanced Parameters'), "advanced-page"); if($output = $this->params->render('params', 'advanced')) : echo $output; else : echo "
".JText::_('There are no advanced parameters for this item')."
"; endif; echo $pane->endPanel(); } if ($this->params->getNumParams('legacy')) { echo $pane->startPanel(JText :: _('Legacy Parameters'), "legacy-page"); if($output = $this->params->render('params', 'legacy')) : echo $output; else : echo "
".JText::_('There are no legacy parameters for this item')."
"; endif; echo $pane->endPanel(); } echo $pane->endPane(); ?>
elracodelangela/administrator/components/com_plugins/views/plugin/tmpl/index.html0000755000176700017710000000005411061563416031416 0ustar essawireessawireelracodelangela/administrator/components/com_plugins/views/plugin/view.html.php0000755000176700017710000000700711061563416031100 0ustar essawireessawireload( $cid[0] ); // fail if checked out not by 'me' if ($row->isCheckedOut( $user->get('id') )) { $msg = JText::sprintf( 'DESCBEINGEDITTED', JText::_( 'The plugin' ), $row->title ); $this->setRedirect( 'index.php?option='. $option .'&client='. $client, $msg, 'error' ); return false; } if ($client == 'admin') { $where = "client_id='1'"; } else { $where = "client_id='0'"; } // get list of groups if ($row->access == 99 || $row->client_id == 1) { $lists['access'] = 'Administrator'; } else { // build the html select list for the group access $lists['access'] = JHTML::_('list.accesslevel', $row ); } if ($cid[0]) { $row->checkout( $user->get('id') ); if ( $row->ordering > -10000 && $row->ordering < 10000 ) { // build the html select list for ordering $query = 'SELECT ordering AS value, name AS text' . ' FROM #__plugins' . ' WHERE folder = '.$db->Quote($row->folder) . ' AND published > 0' . ' AND '. $where . ' AND ordering > -10000' . ' AND ordering < 10000' . ' ORDER BY ordering' ; $order = JHTML::_('list.genericordering', $query ); $lists['ordering'] = JHTML::_('select.genericlist', $order, 'ordering', 'class="inputbox" size="1"', 'value', 'text', intval( $row->ordering ) ); } else { $lists['ordering'] = ''. JText::_( 'This plugin cannot be reordered' ); } $lang =& JFactory::getLanguage(); $lang->load( 'plg_' . trim( $row->folder ) . '_' . trim( $row->element ), JPATH_ADMINISTRATOR ); $data = JApplicationHelper::parseXMLInstallFile(JPATH_SITE . DS . 'plugins'. DS .$row->folder . DS . $row->element .'.xml'); $row->description = $data['description']; } else { $row->folder = ''; $row->ordering = 999; $row->published = 1; $row->description = ''; } $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $row->published ); // get params definitions $params = new JParameter( $row->params, JApplicationHelper::getPath( 'plg_xml', $row->folder.DS.$row->element ), 'plugin' ); $this->assignRef('lists', $lists); $this->assignRef('plugin', $row); $this->assignRef('params', $params); parent::display($tpl); } }elracodelangela/administrator/components/com_plugins/views/plugins/0000755000176700017710000000000011061563560026626 5ustar essawireessawireelracodelangela/administrator/components/com_plugins/views/plugins/index.html0000755000176700017710000000005411061563416030625 0ustar essawireessawireelracodelangela/administrator/components/com_plugins/views/plugins/tmpl/0000755000176700017710000000000011061563560027602 5ustar essawireessawireelracodelangela/administrator/components/com_plugins/views/plugins/tmpl/index.html0000755000176700017710000000005411061563416031601 0ustar essawireessawireelracodelangela/administrator/components/com_plugins/views/plugins/tmpl/default.php0000755000176700017710000001152211061563416031743 0ustar essawireessawire items; ?>
: lists['type']; echo $this->lists['state']; ?>
client .'&task=edit&cid[]='. $row->id ); $access = JHTML::_('grid.access', $row, $i ); $checked = JHTML::_('grid.checkedout', $row, $i ); $published = JHTML::_('grid.published', $row, $i ); $ordering = ($this->lists['order'] == 'p.folder'); ?> ">
lists['order_Dir'], @$this->lists['order'] ); ?> lists['order_Dir'], @$this->lists['order'] ); ?> lists['order_Dir'], @$this->lists['order'] ); ?> lists['order_Dir'], @$this->lists['order'] ); ?> lists['order_Dir'], @$this->lists['order'] ); ?> lists['order_Dir'], @$this->lists['order'] ); ?> lists['order_Dir'], @$this->lists['order'] ); ?>
pagination->getListFooter(); ?>
pagination->getRowOffset( $i ); ?> user->get ('id'), $row->checked_out ) ) { echo $row->name; } else { ?> name; ?> pagination->orderUpIcon( $i, ($row->folder == @$rows[$i-1]->folder && $row->ordering > -10000 && $row->ordering < 10000), 'orderup', 'Move Up', $ordering ); ?> pagination->orderDownIcon( $i, $n, ($row->folder == @$rows[$i+1]->folder && $row->ordering > -10000 && $row->ordering < 10000), 'orderdown', 'Move Down', $ordering ); ?> class="text_area" style="text-align: center" /> folder;?> element;?> id;?>
elracodelangela/administrator/components/com_plugins/views/plugins/view.html.php0000755000176700017710000001041211061563416031255 0ustar essawireessawiregetUserStateFromRequest( "$option.$client.filter_order", 'filter_order', 'p.folder', 'cmd' ); $filter_order_Dir = $mainframe->getUserStateFromRequest( "$option.$client.filter_order_Dir", 'filter_order_Dir', '', 'word' ); $filter_state = $mainframe->getUserStateFromRequest( "$option.$client.filter_state", 'filter_state', '', 'word' ); $filter_type = $mainframe->getUserStateFromRequest( "$option.$client.filter_type", 'filter_type', 1, 'cmd' ); $search = $mainframe->getUserStateFromRequest( "$option.$client.search", 'search', '', 'string' ); $search = JString::strtolower( $search ); $limit = $mainframe->getUserStateFromRequest( 'global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int' ); $limitstart = $mainframe->getUserStateFromRequest( $option.'.limitstart', 'limitstart', 0, 'int' ); $where = ''; if ($client == 'admin') { $where[] = 'p.client_id = 1'; $client_id = 1; } else { $where[] = 'p.client_id = 0'; $client_id = 0; } // used by filter if ( $filter_type != 1 ) { $where[] = 'p.folder = '.$db->Quote($filter_type); } if ( $search ) { $where[] = 'LOWER( p.name ) LIKE '.$db->Quote( '%'.$db->getEscaped( $search, true ).'%', false ); } if ( $filter_state ) { if ( $filter_state == 'P' ) { $where[] = 'p.published = 1'; } else if ($filter_state == 'U' ) { $where[] = 'p.published = 0'; } } $where = ( count( $where ) ? ' WHERE ' . implode( ' AND ', $where ) : '' ); $orderby = ' ORDER BY '.$filter_order .' '. $filter_order_Dir .', p.ordering ASC'; // get the total number of records $query = 'SELECT COUNT(*)' . ' FROM #__plugins AS p' . $where ; $db->setQuery( $query ); $total = $db->loadResult(); jimport('joomla.html.pagination'); $pagination = new JPagination( $total, $limitstart, $limit ); $query = 'SELECT p.*, u.name AS editor, g.name AS groupname' . ' FROM #__plugins AS p' . ' LEFT JOIN #__users AS u ON u.id = p.checked_out' . ' LEFT JOIN #__groups AS g ON g.id = p.access' . $where . ' GROUP BY p.id' . $orderby ; $db->setQuery( $query, $pagination->limitstart, $pagination->limit ); $rows = $db->loadObjectList(); if ($db->getErrorNum()) { echo $db->stderr(); return false; } // get list of Positions for dropdown filter $query = 'SELECT folder AS value, folder AS text' . ' FROM #__plugins' . ' WHERE client_id = '.(int) $client_id . ' GROUP BY folder' . ' ORDER BY folder' ; $types[] = JHTML::_('select.option', 1, '- '. JText::_( 'Select Type' ) .' -' ); $db->setQuery( $query ); $types = array_merge( $types, $db->loadObjectList() ); $lists['type'] = JHTML::_('select.genericlist', $types, 'filter_type', 'class="inputbox" size="1" onchange="document.adminForm.submit( );"', 'value', 'text', $filter_type ); // state filter $lists['state'] = JHTML::_('grid.state', $filter_state ); // table ordering $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; // search filter $lists['search']= $search; $this->assign('client', $client); $this->assignRef('user', JFactory::getUser()); $this->assignRef('lists', $lists); $this->assignRef('items', $rows); $this->assignRef('pagination', $pagination); parent::display($tpl); } }elracodelangela/administrator/components/com_plugins/controller.php0000755000176700017710000001633711061563415026720 0ustar essawireessawireregisterTask( 'apply', 'save'); $this->registerTask( 'unpublish', 'publish'); $this->registerTask( 'edit' , 'display' ); $this->registerTask( 'add' , 'display' ); $this->registerTask( 'orderup' , 'order' ); $this->registerTask( 'orderdown' , 'order' ); $this->registerTask( 'accesspublic' , 'access' ); $this->registerTask( 'accessregisterd' , 'access' ); $this->registerTask( 'acessspecial' , 'access' ); } function display( ) { switch($this->getTask()) { case 'add' : case 'edit' : { JRequest::setVar( 'hidemainmenu', 1 ); JRequest::setVar( 'layout', 'form' ); JRequest::setVar( 'view', 'plugin' ); } break; } parent::display(); } function save() { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $db =& JFactory::getDBO(); $row =& JTable::getInstance('plugin'); $task = $this->getTask(); $client = JRequest::getWord( 'filter_client', 'site' ); if (!$row->bind(JRequest::get('post'))) { JError::raiseError(500, $row->getError() ); } if (!$row->check()) { JError::raiseError(500, $row->getError() ); } if (!$row->store()) { JError::raiseError(500, $row->getError() ); } $row->checkin(); if ($client == 'admin') { $where = "client_id=1"; } else { $where = "client_id=0"; } $row->reorder( 'folder = '.$db->Quote($row->folder).' AND ordering > -10000 AND ordering < 10000 AND ( '.$where.' )' ); switch ( $task ) { case 'apply': $msg = JText::sprintf( 'Successfully Saved changes to Plugin', $row->name ); $this->setRedirect( 'index.php?option=com_plugins&view=plugin&client='. $client .'&task=edit&cid[]='. $row->id, $msg ); break; case 'save': default: $msg = JText::sprintf( 'Successfully Saved Plugin', $row->name ); $this->setRedirect( 'index.php?option=com_plugins&client='. $client, $msg ); break; } } function publish( ) { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $db =& JFactory::getDBO(); $user =& JFactory::getUser(); $cid = JRequest::getVar( 'cid', array(0), 'post', 'array' ); JArrayHelper::toInteger($cid, array(0)); $publish = ( $this->getTask() == 'publish' ? 1 : 0 ); $client = JRequest::getWord( 'filter_client', 'site' ); if (count( $cid ) < 1) { $action = $publish ? JText::_( 'publish' ) : JText::_( 'unpublish' ); JError::raiseError(500, JText::_( 'Select a plugin to '.$action ) ); } $cids = implode( ',', $cid ); $query = 'UPDATE #__plugins SET published = '.(int) $publish . ' WHERE id IN ( '.$cids.' )' . ' AND ( checked_out = 0 OR ( checked_out = '.(int) $user->get('id').' ))' ; $db->setQuery( $query ); if (!$db->query()) { JError::raiseError(500, $db->getErrorMsg() ); } if (count( $cid ) == 1) { $row =& JTable::getInstance('plugin'); $row->checkin( $cid[0] ); } $this->setRedirect( 'index.php?option=com_plugins&client='. $client ); } function cancel( ) { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $client = JRequest::getWord( 'filter_client', 'site' ); $db =& JFactory::getDBO(); $row =& JTable::getInstance('plugin'); $row->bind(JRequest::get('post')); $row->checkin(); $this->setRedirect( JRoute::_( 'index.php?option=com_plugins&client='. $client, false ) ); } function order( ) { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $db =& JFactory::getDBO(); $cid = JRequest::getVar( 'cid', array(0), 'post', 'array' ); JArrayHelper::toInteger($cid, array(0)); $uid = $cid[0]; $inc = ( $this->getTask() == 'orderup' ? -1 : 1 ); $client = JRequest::getWord( 'filter_client', 'site' ); // Currently Unsupported if ($client == 'admin') { $where = "client_id = 1"; } else { $where = "client_id = 0"; } $row =& JTable::getInstance('plugin'); $row->load( $uid ); $row->move( $inc, 'folder='.$db->Quote($row->folder).' AND ordering > -10000 AND ordering < 10000 AND ('.$where.')' ); $this->setRedirect( 'index.php?option=com_plugins' ); } function access( ) { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $cid = JRequest::getVar( 'cid', array(0), 'post', 'array' ); JArrayHelper::toInteger($cid, array(0)); $uid = $cid[0]; $access = $this->getTask(); $db =& JFactory::getDBO(); switch ( $access ) { case 'accesspublic': $access = 0; break; case 'accessregistered': $access = 1; break; case 'accessspecial': $access = 2; break; } $row =& JTable::getInstance('plugin'); $row->load( $uid ); $row->access = $access; if ( !$row->check() ) { return $row->getError(); } if ( !$row->store() ) { return $row->getError(); } $this->setRedirect( 'index.php?option=com_plugins' ); } function saveorder( ) { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $cid = JRequest::getVar( 'cid', array(0), 'post', 'array' ); JArrayHelper::toInteger($cid, array(0)); $db =& JFactory::getDBO(); $total = count( $cid ); $order = JRequest::getVar( 'order', array(0), 'post', 'array' ); JArrayHelper::toInteger($order, array(0)); $cid = JRequest::getVar( 'cid', array(0), 'post', 'array' ); JArrayHelper::toInteger($cid, array(0)); $row =& JTable::getInstance('plugin'); $conditions = array(); // update ordering values for ( $i=0; $i < $total; $i++ ) { $row->load( (int) $cid[$i] ); if ($row->ordering != $order[$i]) { $row->ordering = $order[$i]; if (!$row->store()) { JError::raiseError(500, $db->getErrorMsg() ); } // remember to updateOrder this group $condition = 'folder = '.$db->Quote($row->folder).' AND ordering > -10000 AND ordering < 10000 AND client_id = ' . (int) $row->client_id; $found = false; foreach ( $conditions as $cond ) { if ($cond[1]==$condition) { $found = true; break; } } if (!$found) $conditions[] = array($row->id, $condition); } } // execute updateOrder for each group foreach ( $conditions as $cond ) { $row->load( $cond[0] ); $row->reorder( $cond[1] ); } $msg = JText::_( 'New ordering saved' ); $this->setRedirect( 'index.php?option=com_plugins', $msg ); } }elracodelangela/administrator/components/com_svmap/0000755000176700017710000000000011074453344023457 5ustar essawireessawireelracodelangela/administrator/components/com_svmap/uninstall.sql0000644000176700017710000000062511074453335026214 0ustar essawireessawireDROP TABLE IF EXISTS `#__svmap_business`; DROP TABLE IF EXISTS `#__svmap_business_link`; DROP TABLE IF EXISTS `#__svmap_business_members`; DROP TABLE IF EXISTS `#__svmap_business_options`; DROP TABLE IF EXISTS `#__svmap_config`; DROP TABLE IF EXISTS `#__svmap_members`; DROP TABLE IF EXISTS `#__svmap_members_link`; DROP TABLE IF EXISTS `#__svmap_options`; DROP TABLE IF EXISTS `#__svmap_markers`;elracodelangela/administrator/components/com_svmap/svmap.css0000644000176700017710000000030611074453335025316 0ustar essawireessawirediv.header.icon-48-svmap { background: url(images/logo-48.png) no-repeat left; color:#58ac25; } .icon-16-svmap { background: url(images/logo-16.png) no-repeat left; color:#58ac25; }elracodelangela/administrator/components/com_svmap/install.sql0000644000176700017710000001570711074453335025660 0ustar essawireessawireDROP TABLE IF EXISTS `#__svmap_business`; CREATE TABLE `#__svmap_business` ( `id` int(11) NOT NULL auto_increment, `user_id` int(11) NOT NULL, `name` text, `address1` text, `address2` text, `address3` text, `postcode` varchar(255) default NULL, `city` text, `country` text, `phone` varchar(255) default NULL, `fax` varchar(255) default NULL, `email` varchar(255) default NULL, `description` text, `marker` varchar(255) NOT NULL default 'http://www.google.com/mapfiles/marker.png', `lat` varchar(255) default NULL, `lon` varchar(255) default NULL, `type` tinyint(1) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM ; DROP TABLE IF EXISTS `#__svmap_business_link`; CREATE TABLE `#__svmap_business_link` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) default NULL, `address1` varchar(255) default NULL, `address2` varchar(255) default NULL, `address3` varchar(255) default NULL, `postcode` varchar(255) default NULL, `city` varchar(255) default NULL, `country` varchar(255) default NULL, `phone` varchar(255) default NULL, `fax` varchar(255) default NULL, `email` varchar(255) default NULL, `description` varchar(255) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM ; INSERT INTO `#__svmap_business_link` (`id`, `name`, `address1`, `address2`, `address3`, `postcode`, `city`, `country`, `phone`, `fax`, `email`, `description`) VALUES (1, '', '', '', '', '', '', '', '', '', '', ''); DROP TABLE IF EXISTS `#__svmap_business_members`; CREATE TABLE `#__svmap_business_members` ( `id_business` int(11) NOT NULL, `id_member` int(11) NOT NULL, `type` tinyint(1) NOT NULL default '0', KEY `id_business` (`id_business`,`id_member`) ) ENGINE=MyISAM; DROP TABLE IF EXISTS `#__svmap_business_options`; CREATE TABLE `#__svmap_business_options` ( `id_business` int(11) NOT NULL, `id_option` int(11) NOT NULL, KEY `id_business` (`id_business`,`id_option`) ) ENGINE=MyISAM; DROP TABLE IF EXISTS `#__svmap_config`; CREATE TABLE `#__svmap_config` ( `id` int(11) NOT NULL, `api_key` varchar(255) NOT NULL, `center` varchar(255) NOT NULL, `firstzoomlevel` varchar(255) NOT NULL, `secondzoomlevel` varchar(255) NOT NULL, `autoview` tinyint(1) NOT NULL, `maptype` text NOT NULL, `mapcontrol` varchar(255) NOT NULL, `overview` tinyint(1) NOT NULL, `dragging` tinyint(1) NOT NULL, `doubleclick` tinyint(1) NOT NULL, `scrollwheelzoom` tinyint(1) NOT NULL, `width` varchar(255) NOT NULL, `height` varchar(255) NOT NULL, `linkwith` tinyint(1) NOT NULL default '0', `linkas` tinyint(1) NOT NULL default '0', `direction` tinyint(1) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM; INSERT INTO `#__svmap_config` (`id`, `api_key`, `center`, `firstzoomlevel`, `secondzoomlevel`, `autoview`, `maptype`, `mapcontrol`, `overview`, `dragging`, `doubleclick`, `scrollwheelzoom`, `width`, `height`, `linkwith`, `linkas`, `direction`) VALUES (1, 'ABQIAAAAvP-yKn0i9tK470Netg74XRRi_j0U6kJrkFvY4-OX2XYmEAa76BQT9ZElNPYCVUqoF5w2ub6uLMnxNA', '43.80505648558359,4.657677412033081', '4', '10', '1', 'G_NORMAL_MAP', 'GLargeMapControl()', 0, 0, 0, 0, '100%', '300px', 0, 0, 0); DROP TABLE IF EXISTS `#__svmap_markers`; CREATE TABLE `#__svmap_markers` ( `id` int(11) NOT NULL auto_increment, `name` text NOT NULL, `url` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM ; INSERT INTO `#__svmap_markers` (`id`, `name`, `url`) VALUES (1, 'marker', 'http://www.google.com/mapfiles/marker.png'), (2, 'dd-start', 'http://www.google.com/mapfiles/dd-start.png'), (3, 'dd-end', 'http://www.google.com/mapfiles/dd-end.png'), (4, 'markerA', 'http://www.google.com/mapfiles/markerA.png'), (5, 'markerB', 'http://www.google.com/mapfiles/markerB.png'), (6, 'markerC', 'http://www.google.com/mapfiles/markerC.png'), (7, 'markerD', 'http://www.google.com/mapfiles/markerD.png'), (8, 'markerE', 'http://www.google.com/mapfiles/markerE.png'), (9, 'markerF', 'http://www.google.com/mapfiles/markerF.png'), (10, 'markerG', 'http://www.google.com/mapfiles/markerG.png'), (11, 'markerH', 'http://www.google.com/mapfiles/markerH.png'), (12, 'markerI', 'http://www.google.com/mapfiles/markerI.png'), (13, 'markerJ', 'http://www.google.com/mapfiles/markerJ.png'), (14, 'markerK', 'http://www.google.com/mapfiles/markerK.png'), (15, 'markerL', 'http://www.google.com/mapfiles/markerL.png'), (16, 'markerM', 'http://www.google.com/mapfiles/markerM.png'), (17, 'markerN', 'http://www.google.com/mapfiles/markerN.png'), (18, 'markerO', 'http://www.google.com/mapfiles/markerO.png'), (19, 'markerP', 'http://www.google.com/mapfiles/markerP.png'), (20, 'markerQ', 'http://www.google.com/mapfiles/markerQ.png'), (21, 'markerR', 'http://www.google.com/mapfiles/markerR.png'), (22, 'markerS', 'http://www.google.com/mapfiles/markerS.png'), (23, 'markerT', 'http://www.google.com/mapfiles/markerT.png'), (24, 'markerU', 'http://www.google.com/mapfiles/markerU.png'), (25, 'markerV', 'http://www.google.com/mapfiles/markerV.png'), (26, 'markerW', 'http://www.google.com/mapfiles/markerW.png'), (27, 'markerX', 'http://www.google.com/mapfiles/markerX.png'), (28, 'markerY', 'http://www.google.com/mapfiles/markerY.png'), (29, 'markerZ', 'http://www.google.com/mapfiles/markerZ.png'), (30, 'purple', 'http://labs.google.com/ridefinder/images/mm_20_purple.png'), (31, 'yellow', 'http://labs.google.com/ridefinder/images/mm_20_yellow.png'), (32, 'blue', 'http://labs.google.com/ridefinder/images/mm_20_blue.png'), (33, 'white', 'http://labs.google.com/ridefinder/images/mm_20_white.png'), (34, 'green', 'http://labs.google.com/ridefinder/images/mm_20_green.png'), (35, 'red', 'http://labs.google.com/ridefinder/images/mm_20_red.png'), (36, 'black', 'http://labs.google.com/ridefinder/images/mm_20_black.png'), (37, 'orange', 'http://labs.google.com/ridefinder/images/mm_20_orange.png'), (38, 'gray', 'http://labs.google.com/ridefinder/images/mm_20_gray.png'), (39, 'brown', 'http://labs.google.com/ridefinder/images/mm_20_brown.png'); DROP TABLE IF EXISTS `#__svmap_members`; CREATE TABLE `#__svmap_members` ( `id` int(11) NOT NULL auto_increment, `first_name` text, `last_name` text, `phone` varchar(255) default NULL, `email` varchar(255) default NULL, `type` tinyint(1) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM ; DROP TABLE IF EXISTS `#__svmap_members_link`; CREATE TABLE `#__svmap_members_link` ( `id` int(11) NOT NULL auto_increment, `first_name` varchar(255) default NULL, `last_name` varchar(255) default NULL, `phone` varchar(255) default NULL, `email` varchar(255) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM ; INSERT INTO `#__svmap_members_link` (`id`, `first_name`, `last_name`, `phone`, `email`) VALUES (1, '', '', '', ''); DROP TABLE IF EXISTS `#__svmap_options`; CREATE TABLE `#__svmap_options` ( `id` int(11) NOT NULL auto_increment, `value` text, PRIMARY KEY (`id`) ) ENGINE=MyISAM ;elracodelangela/administrator/components/com_svmap/controllers/0000755000176700017710000000000011074453335026025 5ustar essawireessawireelracodelangela/administrator/components/com_svmap/controllers/members.php0000644000176700017710000000314511074453335030173 0ustar essawireessawireregisterTask( 'add' , 'edit' ); } function display() { JRequest::setVar( 'view' , 'members'); JRequest::setVar( 'edit', false ); parent::display(); } function edit() { JRequest::setVar( 'view' , 'members'); JRequest::setVar( 'hidemainmenu', 1 ); JRequest::setVar( 'layout', 'form' ); parent::display(); } function save() { $model = $this->getModel('members'); if ($model->store()) { $msg = JText::_( 'SVMAP_MEMBER_SAVED' ); } else { $msg = JText::_( 'SVMAP_MEMBER_SAVE_ERROR' ); } $link = 'index.php?option=com_svmap&controller=members'; $this->setRedirect($link,$msg); } function remove() { $model = $this->getModel('members'); if(!$model->delete()) { $msg = JText::_( 'SVMAP_MEMBER_REMOVE_ERROR' ); } else { $msg = JText::_( 'SVMAP_MEMBER_REMOVED' ); } $link = 'index.php?option=com_svmap&controller=members'; $this->setRedirect($link,$msg); } function cancel() { $link = 'index.php?option=com_svmap&controller=members'; $this->setRedirect($link); } } ?>elracodelangela/administrator/components/com_svmap/controllers/business.php0000644000176700017710000000316411074453335030375 0ustar essawireessawireregisterTask( 'add' , 'edit' ); } function display() { JRequest::setVar( 'view' , 'business'); JRequest::setVar( 'edit', false ); parent::display(); } function edit() { JRequest::setVar( 'view' , 'business'); JRequest::setVar( 'hidemainmenu', 1 ); JRequest::setVar( 'layout', 'form' ); parent::display(); } function save() { $model = $this->getModel('business'); if ($model->store()) { $msg = JText::_( 'SVMAP_BUSINESS_SAVED' ); } else { $msg = JText::_( 'SVMAP_BUSINESS_SAVE_ERROR' ); } $link = 'index.php?option=com_svmap&controller=business'; $this->setRedirect($link,$msg); } function remove() { $model = $this->getModel('business'); if(!$model->delete()) { $msg = JText::_( 'SVMAP_BUSINESS_REMOVE_ERROR' ); } else { $msg = JText::_( 'SVMAP_BUSINESS_REMOVED' ); } $link = 'index.php?option=com_svmap&controller=business'; $this->setRedirect($link,$msg); } function cancel() { $link = 'index.php?option=com_svmap&controller=business'; $this->setRedirect($link); } } ?>elracodelangela/administrator/components/com_svmap/controllers/markers.php0000644000176700017710000000314611074453335030206 0ustar essawireessawireregisterTask( 'add' , 'edit' ); } function display() { JRequest::setVar( 'view' , 'markers'); JRequest::setVar( 'edit', false ); parent::display(); } function edit() { JRequest::setVar( 'view' , 'markers'); JRequest::setVar( 'hidemainmenu', 1 ); JRequest::setVar( 'layout', 'form' ); parent::display(); } function save() { $model = $this->getModel('markers'); if ($model->store()) { $msg = JText::_( 'SVMAP_MARKER_SAVED' ); } else { $msg = JText::_( 'SVMAP_MARKER_SAVE_ERROR' ); } $link = 'index.php?option=com_svmap&controller=markers'; $this->setRedirect($link,$msg); } function remove() { $model = $this->getModel('markers'); if(!$model->delete()) { $msg = JText::_( 'SVMAP_MARKER_REMOVE_ERROR' ); } else { $msg = JText::_( 'SVMAP_MARKER_REMOVED' ); } $link = 'index.php?option=com_svmap&controller=markers'; $this->setRedirect($link,$msg); } function cancel() { $link = 'index.php?option=com_svmap&controller=markers'; $this->setRedirect($link); } } ?>elracodelangela/administrator/components/com_svmap/controllers/configuration.php0000644000176700017710000000165411074453335031413 0ustar essawireessawiregetModel('configuration'); if ($model->store()) { $msg = JText::_( 'SVMAP_CONFIGURATION_SAVED' ); } else { $msg = JText::_( 'SVMAP_CONFIGURATION_SAVE_ERROR' ); } $link = 'index.php?option=com_svmap&controller=configuration'; $this->setRedirect($link,$msg); } } ?>elracodelangela/administrator/components/com_svmap/controllers/link.php0000644000176700017710000000163411074453335027477 0ustar essawireessawiregetModel('link'); if ($model->store()) { $msg = JText::_( 'SVMAP_LINK_SAVED' ); } else { $msg = JText::_( 'SVMAP_LINK_SAVE_ERROR' ); } $link = 'index.php?option=com_svmap&controller=link'; $this->setRedirect($link,$msg); } } ?>elracodelangela/administrator/components/com_svmap/controllers/index.html0000644000176700017710000000000011074453335030010 0ustar essawireessawireelracodelangela/administrator/components/com_svmap/controllers/options.php0000644000176700017710000000314611074453335030235 0ustar essawireessawireregisterTask( 'add' , 'edit' ); } function display() { JRequest::setVar( 'view' , 'options'); JRequest::setVar( 'edit', false ); parent::display(); } function edit() { JRequest::setVar( 'view' , 'options'); JRequest::setVar( 'hidemainmenu', 1 ); JRequest::setVar( 'layout', 'form' ); parent::display(); } function save() { $model = $this->getModel('options'); if ($model->store()) { $msg = JText::_( 'SVMAP_OPTION_SAVED' ); } else { $msg = JText::_( 'SVMAP_OPTION_SAVE_ERROR' ); } $link = 'index.php?option=com_svmap&controller=options'; $this->setRedirect($link,$msg); } function remove() { $model = $this->getModel('options'); if(!$model->delete()) { $msg = JText::_( 'SVMAP_OPTION_REMOVE_ERROR' ); } else { $msg = JText::_( 'SVMAP_OPTION_REMOVED' ); } $link = 'index.php?option=com_svmap&controller=options'; $this->setRedirect($link,$msg); } function cancel() { $link = 'index.php?option=com_svmap&controller=options'; $this->setRedirect($link); } } ?>elracodelangela/administrator/components/com_svmap/svmap.js0000644000176700017710000000113211074453335025140 0ustar essawireessawirefunction addOption(cnt) { cnt2 = eval(cnt)+1; document.getElementById('option_'+cnt).innerHTML = document.getElementById('select').innerHTML+''; document.getElementById('option_'+cnt).innerHTML += '
'; document.getElementById('cnt').value = cnt2; } function addBusiness(cnt) { cnt2 = eval(cnt)+1; document.getElementById('business_'+cnt).innerHTML = document.getElementById('select').innerHTML+''; document.getElementById('business_'+cnt).innerHTML += '
'; document.getElementById('cnt').value = cnt2; } elracodelangela/administrator/components/com_svmap/models/0000755000176700017710000000000011074453335024742 5ustar essawireessawireelracodelangela/administrator/components/com_svmap/models/members.php0000644000176700017710000002714011074453335027111 0ustar essawireessawiresetId((int)$array[0]); $limit = $mainframe->getUserStateFromRequest( 'limit', 'limit', $mainframe->getCfg('list_limit'), 'int'); $limitstart = $mainframe->getUserStateFromRequest( 'limitstart', 'limitstart', 0, 'int' ); $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); $this->getConfig(); } function setId($id) { $this->_id = intval( $id ); $this->_data = null; $this->_total = null; } function getData() { global $mainframe; $task = JRequest::getVar('task'); if (!isset($task) || empty($task)) { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_members' ) ); $this->_data = $this->_db->loadObjectList(); if ($this->_config->linkas == '1') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_members_link' ) ); $membersLink = $this->_db->loadObject(); if ($this->_config->linkwith == '1') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__contact_details' ) ); $contacts = $this->_db->loadObjectList(); } else if ($this->_config->linkwith == '2') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__comprofiler' ) ); $contacts = $this->_db->loadObjectList(); } foreach ($contacts as $contact) { if ($this->_config->linkwith == '2') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__users WHERE id='.$contact->id ) ); $user = $this->_db->loadObject(); } if (($this->_config->linkwith == '1' && $contact->published == '1') || ($this->_config->linkwith == '2' && $user->block != '1')) { $temp = null; $temp->id = $contact->id; if (!empty($membersLink->first_name)) { $temp->first_name = @$contact->{$membersLink->first_name}; } if (!empty($membersLink->last_name)) { $temp->last_name = @$contact->{$membersLink->last_name}; } if (!empty($membersLink->phone)) { $temp->phone = @$contact->{$membersLink->phone}; } if (!empty($membersLink->email)) { $temp->email = @$contact->{$membersLink->email}; } $temp->type = $this->_config->linkwith; $this->_data[] = $temp; } } } usort($this->_data, array($this,'sortArray')); $this->_data = $this->filter($this->_data); $this->_total = count($this->_data ); if ($this->_total < $this->getState('limit')) { $this->setState('limitstart', 0); } $this->_data = $this->limitArray($this->_data,$this->getState('limitstart'),$this->getState('limit')); return $this->_data; } else { if (!empty($this->_id)) { $type = intval( JRequest::getVar('type') ); if ($type == '0') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_members WHERE id = '.$this->_id ) ); $this->_data = $this->_db->loadObject(); } else { if ($type == '1') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__contact_details WHERE id = '.$this->_id ) ); $contact = $this->_db->loadObject(); $this->_data->type = '1'; } else if ($type == '2') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__comprofiler WHERE id = '.$this->_id ) ); $contact = $this->_db->loadObject(); $this->_data->type = '2'; } $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_members_link' ) ); $membersLink = $this->_db->loadObject(); $this->_data->id = $contact->id; if (!empty($membersLink->first_name)) { $this->_data->first_name = @$contact->{$membersLink->first_name}; } if (!empty($membersLink->last_name)) { $this->_data->last_name = @$contact->{$membersLink->last_name}; } if (!empty($membersLink->phone)) { $this->_data->phone = @$contact->{$membersLink->phone}; } if (!empty($membersLink->email)) { $this->_data->email = @$contact->{$membersLink->email}; } } $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_business_members WHERE id_member = '.$this->_id.' AND type='.$type ) ); $this->_data->business = $this->_db->loadObjectList(); } else { $this->_data = new stdClass(); $this->_data->id = 0; $items = array('first_name','last_name','phone','email'); foreach ($items as $item) { $this->_data->$item = null; } } return $this->_data; } } function getConfig() { $this->_db->setQuery( 'SELECT * FROM #__svmap_config' ); $this->_config = $this->_db->loadObject(); return $this->_config; } function getTotal() { return $this->_total; } function getPagination() { jimport('joomla.html.pagination'); $this->_pagination = new JPagination( $this->getTotal(), $this->getState('limitstart'), $this->getState('limit') ); return $this->_pagination; } function getBusiness() { $this->_db->setQuery( 'SELECT * FROM #__svmap_business WHERE type=0' ); $this->_data = $this->_db->loadObjectList(); if ($this->_config->linkas == '2') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_business_link' ) ); $businessLink = $this->_db->loadObject(); if ($this->_config->linkwith == '1') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__contact_details' ) ); $contacts = $this->_db->loadObjectList(); } else if ($this->_config->linkwith == '2') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__comprofiler' ) ); $contacts = $this->_db->loadObjectList(); } foreach ($contacts as $contact) { if ($this->_config->linkwith == '2') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__users WHERE id='.$contact->id ) ); $user = $this->_db->loadObject(); } if (($this->_config->linkwith == '1' && $contact->published == '1') || ($this->_config->linkwith == '2' && $user->block != '1')) { $temp = null; $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_business WHERE user_id='.intval( $contact->id ).' AND type='.$this->_config->linkwith ) ); $business = $this->_db->loadObject(); if (!empty($business)) { $temp->id = $business->id; } else { $temp->id = 0; } $temp->user_id = $contact->id; if (!empty($businessLink->name)) { $temp->name = @$contact->{$businessLink->name}; } if (!empty($businessLink->address1)) { $temp->address1 = @$contact->{$businessLink->address1}; } if (!empty($businessLink->address2)) { $temp->address2 = @$contact->{$businessLink->address2}; } if (!empty($businessLink->address3)) { $temp->address3 = @$contact->{$businessLink->address3}; } if (!empty($businessLink->postcode)) { $temp->postcode = @$contact->{$businessLink->postcode}; } if (!empty($businessLink->city)) { $temp->city = @$contact->{$businessLink->city}; } if (!empty($businessLink->phone)) { $temp->phone = @$contact->{$businessLink->phone}; } if (!empty($businessLink->fax)) { $temp->fax = @$contact->{$businessLink->fax}; } if (!empty($businessLink->email)) { $temp->email = @$contact->{$businessLink->email}; } if (!empty($businessLink->description)) { $temp->description = @$contact->{$businessLink->description}; } $temp->type = $this->_config->linkwith; $this->_data[] = $temp; } } } return $this->_data; } function sortArray($a, $b) { global $mainframe; $filter_order = $mainframe->getUserStateFromRequest( 'members.filter_order', 'filter_order', 'first_name', 'cmd' ); $filter_order_Dir = $mainframe->getUserStateFromRequest( 'members.filter_order_Dir', 'filter_order_Dir', '', 'word' ); if ($filter_order_Dir == 'asc') { $element1 = 'a'; $element2 = 'b'; } else { $element1 = 'b'; $element2 = 'a'; } return @strcasecmp(${$element1}->{$filter_order}, ${$element2}->{$filter_order}); } function limitArray($array,$start,$limit) { $return = Array(); for ($i=0;$i= $start && $i < ($start+$limit)) { $return[] = $array[$i]; } } return $return; } function filter($array) { global $mainframe; $filter1 = $mainframe->getUserStateFromRequest( 'members.filter1', 'filter1', '', 'int' ); $filter2 = $mainframe->getUserStateFromRequest( 'members.filter2', 'filter2', '', 'int' ); $temps = Array(); if (!empty($filter1)) { $id_business = intval( $filter1 ); $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_business_members WHERE id_business = '.$id_business ) ); $business = $this->_db->loadObjectList(); if ($business) { foreach($business as $temp) { $temps[] = $temp->id_member; } } } $return = Array(); for ($i=0;$iid, $temps) || empty($filter1)) { if (($filter2 == '3' && empty($array[$i]->type)) || ($array[$i]->type == $filter2) || empty($filter2)) { $return[] = $array[$i]; } } } return $return; } function store() { $data = JRequest::get( 'post' ); $type = intval( $data['type'] ); if ($type == '0') { $row =& $this->getTable(); if (!$row->bind($data,'business')) { $this->setError($this->_db->getErrorMsg()); return false; } if (!$row->store()) { $this->setError( $row->getErrorMsg() ); return false; } } if($this->_db->insertid()) { $id = intval( $this->_db->insertid() ); } else { $id = intval( $data['id'] ); } $this->_db->setQuery( $this->_db->getEscaped( 'DELETE FROM #__svmap_business_members WHERE id_member='.$id.' AND type='.$type ) ); if(!$this->_db->query()) { $this->setError($this->_db->getErrorMsg()); return false; } foreach($data['business'] as $business) { if (!empty($business)) { $this->_db->setQuery( 'INSERT INTO #__svmap_business_members (id_business,id_member,type) VALUES ("'.$business.'","'.$id.'","'.$type.'")' ); if(!$this->_db->query()) { $this->setError($this->_db->getErrorMsg()); return false; } } } return true; } function delete() { $cids = JRequest::getVar( 'cid', array(0), 'post', 'array' ); $row =& $this->getTable(); if (count( $cids )) { foreach($cids as $cid) { if (!$row->delete( $cid )) { $this->setError( $row->getErrorMsg() ); return false; } $cid = intval( $cid ); $this->_db->setQuery( $this->_db->getEscaped( 'DELETE FROM #__svmap_business_members WHERE id_member='.$cid ) ); if(!$this->_db->query()) { $this->setError($this->_db->getErrorMsg()); return false; } } } return true; } } ?>elracodelangela/administrator/components/com_svmap/models/business.php0000644000176700017710000002762611074453335027323 0ustar essawireessawiresetId($user_id); } else { $array = JRequest::getVar('cid', 0, '', 'array'); $this->setId((int)$array[0]); } $limit = $mainframe->getUserStateFromRequest( 'limit', 'limit', $mainframe->getCfg('list_limit'), 'int'); $limitstart = $mainframe->getUserStateFromRequest( 'limitstart', 'limitstart', 0, 'int' ); $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); $this->getConfig(); } function setId($id) { $this->_id = intval( $id ); $this->_data = null; $this->_total = null; } function getData() { global $mainframe; $task = JRequest::getVar('task'); if (!isset($task) || empty($task)) { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_business WHERE type=0' ) ); $this->_data = $this->_db->loadObjectList(); if ($this->_config->linkas == '2') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_business_link' ) ); $businessLink = $this->_db->loadObject(); if ($this->_config->linkwith == '1') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__contact_details' ) ); $contacts = $this->_db->loadObjectList(); } else if ($this->_config->linkwith == '2') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__comprofiler' ) ); $contacts = $this->_db->loadObjectList(); } foreach ($contacts as $contact) { if ($this->_config->linkwith == '2') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__users WHERE id='.$contact->id ) ); $user = $this->_db->loadObject(); } if (($this->_config->linkwith == '1' && $contact->published == '1') || ($this->_config->linkwith == '2' && $user->block != '1')) { $temp = null; $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_business WHERE user_id='.intval( $contact->id ).' AND type!=0' ) ); $business = $this->_db->loadObject(); if (!empty($business)) { $temp->id = $business->id; } else { $temp->id = 0; } $temp->user_id = $contact->id; if (!empty($businessLink->name)) { $temp->name = @$contact->{$businessLink->name}; } if (!empty($businessLink->address1)) { $temp->address1 = @$contact->{$businessLink->address1}; } if (!empty($businessLink->address2)) { $temp->address2 = @$contact->{$businessLink->address2}; } if (!empty($businessLink->address3)) { $temp->address3 = @$contact->{$businessLink->address3}; } if (!empty($businessLink->postcode)) { $temp->postcode = @$contact->{$businessLink->postcode}; } if (!empty($businessLink->city)) { $temp->city = @$contact->{$businessLink->city}; } if (!empty($businessLink->country)) { $temp->country = @$contact->{$businessLink->country}; } if (!empty($businessLink->phone)) { $temp->phone = @$contact->{$businessLink->phone}; } if (!empty($businessLink->fax)) { $temp->fax = @$contact->{$businessLink->fax}; } if (!empty($businessLink->email)) { $temp->email = @$contact->{$businessLink->email}; } if (!empty($businessLink->description)) { $temp->description = @$contact->{$businessLink->description}; } $temp->type = $this->_config->linkwith; $this->_data[] = $temp; } } } usort($this->_data, array($this,'sortArray')); $this->_data = $this->filter($this->_data); $this->_total = count($this->_data ); if ($this->_total < $this->getState('limit')) { $this->setState('limitstart', 0); } $this->_data = $this->limitArray($this->_data,$this->getState('limitstart'),$this->getState('limit')); return $this->_data; } else { if (!empty($this->_id)) { $type = intval( JRequest::getVar('type') ); if ($type == '0') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_business WHERE id = '.$this->_id ) ); $this->_data = $this->_db->loadObject(); } else { if ($type == '1') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__contact_details WHERE id = '.$this->_id ) ); $contact = $this->_db->loadObject(); $this->_data->type = '1'; } else if ($type == '2') { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__comprofiler WHERE id = '.$this->_id ) ); $contact = $this->_db->loadObject(); $this->_data->type = '2'; } $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_business_link' ) ); $businessLink = $this->_db->loadObject(); $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_business WHERE user_id='.$this->_id.' AND type='.intval( $type ) ) ); $business = $this->_db->loadObject(); if (!empty($business)) { $this->_data->id = $business->id; $this->_data->marker = $business->marker; $this->_data->lat = $business->lat; $this->_data->lon = $business->lon; } else { $this->_data->marker = 'http://www.google.com/mapfiles/marker.png'; $this->_data->id = 0; } $this->_data->user_id = $contact->id; if (!empty($businessLink->name)) { $this->_data->name = $contact->{$businessLink->name}; } if (!empty($businessLink->address1)) { $this->_data->address1 = $contact->{$businessLink->address1}; } if (!empty($businessLink->address2)) { $this->_data->address2 = $contact->{$businessLink->address2}; } if (!empty($businessLink->address3)) { $this->_data->address3 = $contact->{$businessLink->address3}; } if (!empty($businessLink->postcode)) { $this->_data->postcode = $contact->{$businessLink->postcode}; } if (!empty($businessLink->city)) { $this->_data->city = $contact->{$businessLink->city}; } if (!empty($businessLink->country)) { $this->_data->country = $contact->{$businessLink->country}; } if (!empty($businessLink->phone)) { $this->_data->phone = $contact->{$businessLink->phone}; } if (!empty($businessLink->fax)) { $this->_data->fax = $contact->{$businessLink->fax}; } if (!empty($businessLink->email)) { $this->_data->email = $contact->{$businessLink->email}; } if (!empty($businessLink->description)) { $this->_data->description = $contact->{$businessLink->description}; } } $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_business_options WHERE id_business = '.$this->_data->id ) ); $this->_data->options = $this->_db->loadObjectList(); } else { $this->_data = new stdClass(); $this->_data->id = 0; $items = array('name','address1','address2','address3','postcode','city','country','phone','fax','email','description','lat','lon'); foreach ($items as $item) { $this->_data->$item = null; } $this->_data->marker = 'http://www.google.com/mapfiles/marker.png'; } return $this->_data; } } function getTotal() { return $this->_total; } function sortArray($a, $b) { global $mainframe; $filter_order = $mainframe->getUserStateFromRequest( 'business.filter_order', 'filter_order', 'name', 'cmd' ); $filter_order_Dir = $mainframe->getUserStateFromRequest( 'business.filter_order_Dir', 'filter_order_Dir', '', 'word' ); if ($filter_order_Dir == 'asc') { $element1 = 'a'; $element2 = 'b'; } else { $element1 = 'b'; $element2 = 'a'; } return @strcasecmp(${$element1}->{$filter_order}, ${$element2}->{$filter_order}); } function limitArray($array,$start,$limit) { $return = Array(); for ($i=0;$i= $start && $i < ($start+$limit)) { $return[] = $array[$i]; } } return $return; } function filter($array) { global $mainframe; $filter = $mainframe->getUserStateFromRequest( 'business.filter', 'filter', '', 'int' ); $temps = Array(); $return = Array(); for ($i=0;$itype)) || ($array[$i]->type == $filter) || empty($filter)) { $return[] = $array[$i]; } } return $return; } function getPagination() { jimport('joomla.html.pagination'); $this->_pagination = new JPagination( $this->getTotal(), $this->getState('limitstart'), $this->getState('limit') ); return $this->_pagination; } function getConfig() { $this->_db->setQuery( 'SELECT * FROM #__svmap_config' ); $this->_config = $this->_db->loadObject(); return $this->_config; } function getOptions() { $this->_db->setQuery( 'SELECT * FROM #__svmap_options' ); return $this->_db->loadObjectList(); } function getMarkers() { $this->_db->setQuery( 'SELECT * FROM #__svmap_markers' ); return $this->_db->loadObjectList(); } function store() { $row =& $this->getTable(); $data = JRequest::get( 'post' ); $type = intval( $data['type'] ); if ($type == '0') { $description = JRequest::getVar('description', 0, 'post', 'array'); $data['description'] = $description[0]; $data['user_id'] = $data['id']; } else { $data['name'] = null; $data['address1'] = null; $data['address2'] = null; $data['address3'] = null; $data['postcode'] = null; $data['city'] = null; $data['country'] = null; $data['phone'] = null; $data['fax'] = null; $data['email'] = null; $data['description'] = null; } if (!$row->bind($data,'options')) { $this->setError($this->_db->getErrorMsg()); return false; } if (!$row->store()) { $this->setError( $row->getErrorMsg() ); return false; } if($this->_db->insertid()) { $id = intval( $this->_db->insertid() ); if ($data['id'] == '0' && $type == '0') { $this->_db->setQuery( 'UPDATE #__svmap_business SET user_id='.$id.' WHERE id='.$id ); $this->_db->query(); } } else { $id = intval( $data['id'] ); } $this->_db->setQuery( $this->_db->getEscaped( 'DELETE FROM #__svmap_business_options WHERE id_business='.$id ) ); if(!$this->_db->query()) { $this->setError($this->_db->getErrorMsg()); return false; } foreach($data['options'] as $option) { if (!empty($option)) { $this->_db->setQuery( 'INSERT INTO #__svmap_business_options (id_business,id_option) VALUES ("'.$id.'","'.$option.'")' ); if(!$this->_db->query()) { $this->setError($this->_db->getErrorMsg()); return false; } } } return true; } function delete() { $cids = JRequest::getVar( 'cid', array(0), 'post', 'array' ); $row =& $this->getTable(); if (count( $cids )) { foreach($cids as $cid) { if (!$row->delete( $cid )) { $this->setError( $row->getErrorMsg() ); return false; } $cid = intval( $cid ); $this->_db->setQuery( $this->_db->getEscaped( 'DELETE FROM #__svmap_business_options WHERE id_business='.$cid ) ); if(!$this->_db->query()) { $this->setError($this->_db->getErrorMsg()); return false; } } } return true; } } ?>elracodelangela/administrator/components/com_svmap/models/markers.php0000644000176700017710000000645711074453335027133 0ustar essawireessawiresetId((int)$array[0]); $limit = $mainframe->getUserStateFromRequest( 'limit', 'limit', $mainframe->getCfg('list_limit'), 'int'); $limitstart = $mainframe->getUserStateFromRequest( 'limitstart', 'limitstart', 0, 'int' ); $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); } function setId($id) { $this->_id = intval( $id ); $this->_data = null; } function getData() { global $mainframe; $task = JRequest::getVar('task'); if (!isset($task) || empty($task)) { $filter_order = $mainframe->getUserStateFromRequest( 'markers.filter_order', 'filter_order', 'name', 'cmd' ); $filter_order_Dir = $mainframe->getUserStateFromRequest( 'markers.filter_order_Dir', 'filter_order_Dir', '', 'word' ); $orderby = ' ORDER BY '.$filter_order.' '.$filter_order_Dir; $this->_data = $this->_getList( 'SELECT * FROM #__svmap_markers'.$orderby, $this->getState('limitstart'), $this->getState('limit') ); return $this->_data; } else { if (!empty($this->_id)) { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_markers WHERE id = '.$this->_id ) ); $this->_data = $this->_db->loadObject(); } else { $this->_data = new stdClass(); $this->_data->id = 0; $items = array('name','url'); foreach ($items as $item) { $this->_data->$item = null; } } return $this->_data; } } function getConfig() { $this->_db->setQuery( 'SELECT * FROM #__svmap_config' ); $this->_data = $this->_db->loadObject(); return $this->_data; } function getTotal() { if (empty($this->_total)) { $this->_total = $this->_getListCount( 'SELECT * FROM #__svmap_markers' ); } return $this->_total; } function getPagination() { if (empty($this->_pagination)) { jimport('joomla.html.pagination'); $this->_pagination = new JPagination( $this->getTotal(), $this->getState('limitstart'), $this->getState('limit') ); } return $this->_pagination; } function store() { $row =& $this->getTable(); $data = JRequest::get( 'post' ); if (!$row->bind($data)) { $this->setError($this->_db->getErrorMsg()); return false; } if (!$row->store()) { $this->setError( $row->getErrorMsg() ); return false; } return true; } function delete() { $cids = JRequest::getVar( 'cid', array(0), 'post', 'array' ); $row =& $this->getTable(); if (count( $cids )) { foreach($cids as $cid) { if (!$row->delete( $cid )) { $this->setError( $row->getErrorMsg() ); return false; } } } return true; } } ?>elracodelangela/administrator/components/com_svmap/models/svmap.php0000644000176700017710000000102711074453335026601 0ustar essawireessawire_db->setQuery( 'SELECT * FROM #__svmap_config' ); $this->_data = $this->_db->loadObject(); return $this->_data; } } ?>elracodelangela/administrator/components/com_svmap/models/configuration.php0000644000176700017710000000227711074453335030332 0ustar essawireessawire_db->setQuery( 'SELECT * FROM #__svmap_config' ); $this->_data = $this->_db->loadObject(); return $this->_data; } function getTables() { $tables = $this->_db->getTableList(); $prefix = $this->_db->getPrefix(); $return = ''; foreach($tables as $table) { $table = str_replace($prefix,'',$table); $return[] = $table; } return $return; } function store() { $row =& $this->getTable(); $data = JRequest::get( 'post' ); $data['maptype'] = implode(',',$data['maptype']); if (!$row->bind($data)) { $this->setError($this->_db->getErrorMsg()); return false; } if (!$row->store()) { $this->setError($this->_db->getErrorMsg()); return false; } return true; } } ?>elracodelangela/administrator/components/com_svmap/models/link.php0000644000176700017710000000370511074453335026415 0ustar essawireessawire_db->setQuery( 'SELECT * FROM #__svmap_config' ); $this->_data = $this->_db->loadObject(); return $this->_data; } function getLinkMembers() { $this->_db->setQuery( 'SELECT * FROM #__svmap_members_link' ); $this->_data = $this->_db->loadObject(); return $this->_data; } function getLinkBusiness() { $this->_db->setQuery( 'SELECT * FROM #__svmap_business_link' ); $this->_data = $this->_db->loadObject(); return $this->_data; } function getJoomlaFields() { $this->_data = $this->_db->getTableFields( '#__contact_details', false ); $return = ''; foreach ($this->_data as $fields) { foreach ($fields as $field) { $temp['id'] = $field->Field; $temp['name'] = $field->Field; $return[] = $temp; } } return $return; } function getCBFields() { $this->_db->setQuery( 'SELECT * FROM #__comprofiler_fields' ); $this->_data = $this->_db->loadObjectList(); $return = ''; foreach ($this->_data as $field) { if (strstr($field->table,'comprofiler')) { $temp['id'] = $field->name; $temp['name'] = $field->name; $return[] = $temp; } } return $return; } function store() { $data = JRequest::get( 'post' ); $row =& $this->getTable($data['table']); if (!$row->bind($data)) { $this->setError($this->_db->getErrorMsg()); return false; } if (!$row->store()) { $this->setError($this->_db->getErrorMsg()); return false; } return true; } } ?>elracodelangela/administrator/components/com_svmap/models/index.html0000644000176700017710000000000011074453335026725 0ustar essawireessawireelracodelangela/administrator/components/com_svmap/models/options.php0000644000176700017710000000707311074453335027155 0ustar essawireessawiresetId((int)$array[0]); $limit = $mainframe->getUserStateFromRequest( 'limit', 'limit', $mainframe->getCfg('list_limit'), 'int'); $limitstart = $mainframe->getUserStateFromRequest( 'limitstart', 'limitstart', 0, 'int' ); $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); } function setId($id) { $this->_id = intval( $id ); $this->_data = null; } function getData() { global $mainframe; $task = JRequest::getVar('task'); if (!isset($task) || empty($task)) { $filter_order = $mainframe->getUserStateFromRequest( 'options.filter_order', 'filter_order', 'value', 'cmd' ); $filter_order_Dir = $mainframe->getUserStateFromRequest( 'options.filter_order_Dir', 'filter_order_Dir', '', 'word' ); $orderby = ' ORDER BY '.$filter_order.' '.$filter_order_Dir; $this->_data = $this->_getList( 'SELECT * FROM #__svmap_options'.$orderby, $this->getState('limitstart'), $this->getState('limit') ); return $this->_data; } else { if (!empty($this->_id)) { $this->_db->setQuery( $this->_db->getEscaped( 'SELECT * FROM #__svmap_options WHERE id = '.$this->_id ) ); $this->_data = $this->_db->loadObject(); } else { $this->_data = new stdClass(); $this->_data->id = 0; $items = array('value'); foreach ($items as $item) { $this->_data->$item = null; } } return $this->_data; } } function getConfig() { $this->_db->setQuery( 'SELECT * FROM #__svmap_config' ); $this->_data = $this->_db->loadObject(); return $this->_data; } function getTotal() { if (empty($this->_total)) { $this->_total = $this->_getListCount( 'SELECT * FROM #__svmap_options' ); } return $this->_total; } function getPagination() { if (empty($this->_pagination)) { jimport('joomla.html.pagination'); $this->_pagination = new JPagination( $this->getTotal(), $this->getState('limitstart'), $this->getState('limit') ); } return $this->_pagination; } function store() { $row =& $this->getTable(); $data = JRequest::get( 'post' ); if (!$row->bind($data)) { $this->setError($this->_db->getErrorMsg()); return false; } if (!$row->store()) { $this->setError( $row->getErrorMsg() ); return false; } return true; } function delete() { $cids = JRequest::getVar( 'cid', array(0), 'post', 'array' ); $row =& $this->getTable(); if (count( $cids )) { foreach($cids as $cid) { if (!$row->delete( $cid )) { $this->setError( $row->getErrorMsg() ); return false; } $cid = intval( $cid ); $this->_db->setQuery( $this->_db->getEscaped( 'DELETE FROM #__svmap_business_options WHERE id_option='.$cid ) ); if(!$this->_db->query()) { $this->setError($this->_db->getErrorMsg()); return false; } } } return true; } } ?>elracodelangela/administrator/components/com_svmap/images/0000755000176700017710000000000011074453335024724 5ustar essawireessawireelracodelangela/administrator/components/com_svmap/images/business.png0000644000176700017710000000400111074453335027260 0ustar essawireessawirePNG  IHDR00` sBITOPLTEfsJJ0ڇR2S0KI )yOZ@|A&b< vXk0ͭ J+Z0,0.6 fff&roşjCsU7c@ί앆B*}Z72Q2 R_^-wL:!lE"!ޥv:/r8"H+ r n)mjg+{ _VX9\9oPcBtJ?$SދZy膷 B@ lF;9TJנ] ֔A($٭0 M1];XhtRNSHeG pHYs B4%tEXtSoftwareMacromedia Fireworks MX 2004v[IDATx}[J RQ95TLSDbQ9XCԈ1֤ipr_?q󽙝١uybdi)aqׅw>織KӴݟ믱zUcg+i@5P>~,V[u6:(gSz@$UnҘ=څ"O@Uoət~2GQ. U'i,k8Drרh.N(5 0 J@d~OuQ͏ShGWL$ص2fW cPP`7nޝ^d1(A$u7@<,iK i<9I)Fה~OQ `iv}juIAFc1hd_߇`ԝ2~X8Ctos|u*!${+ G2e4*i;"`ǾlRɬhEk`e@D .4 zkpTe! B,abx4FGvUso↿ø̵i(}y4[뀣)tjt&j4F[eݍY\dܥ"^7e ւa.ñȿ ](.9.= 9X'؜zB"_o?Z򯯧6=.g7{{/ZJ*joo~~ ؜ICy|@d,l:=YCv ǽ"ƢpLᣌxcompg#?8( { YϲRtWN7H14!=:ՉnVvNȿW*b MA*詡b5& ϗ?.Ij2bBFoI[[m_ 389n+ח }5 |kQT \ˬrf: 'ml_މ-1o8Da1|+hBϙkc$Ǚi:s6ݼYJ?@}E{zBy9J\|Lf2ߴ;Mz~{(Bm>zi|[u^i Ly G>d,9$NP..`X,>ϽVnr'*\ Ǚt:/.޿p8>\V|z"GظC1SGaxe\>{eVlVMއVvB_B rgJD$ql" &&L:?,"̈CAWBYC]GP%0O,!R哅-8 $Fl+fIENDB`elracodelangela/administrator/components/com_svmap/images/markers.png0000644000176700017710000000401711074453335027100 0ustar essawireessawirePNG  IHDR00` sBITOPLTE33333r\T/浈ff7,żȪhssnxsxZ}Bׯ\zOC~PLn:shxoHɫmtnҡ|3̙|ȉ@d4rG@Yu[+uҝf/$H`݉F2037n*js ȼ:"....7MNs0%s["2}ll2ڇ.fxxWm[[0$>9agsT5|o\dpg}j} lw޿r[}0( "IcJ}}N7hF>w]J](;[w ^Zl1q=w^}@%>~xsz[,H͛wkHY}ǽ-cwF6a?9H|xS  ߊ`$0aG.-=5oܮ b0ZlT;fmՈjfzふ vV@UAٮ r/A?tlk'<;eJɽ86}=ɮSN>ZnB:d0L4dl:I:yCu:m$iy8l?ta7Mic; ,{G4  fU6 6%'L8uXd2 mɼc^WEuczVjqWRY9䓼jƩ GPphZvO3rs< (r@t F"gD" h<7K 8E ihf&f8?ſIENDB`elracodelangela/administrator/components/com_svmap/images/index.html0000644000176700017710000000000011074453335026707 0ustar essawireessawireelracodelangela/administrator/components/com_svmap/images/configuration.png0000644000176700017710000000331011074453335030276 0ustar essawireessawirePNG  IHDR00` sBITOPLTE*wnmњ AԓGD5M&wu̙qWI1G7>3gfs f}ysν= Zׁ`ANZ_lf׽NF廱Tvbӵސzx Hf3d_=-у{L9wZBYWvߏ~{QbPkVކ܎Kgj ?(]X᫪{zzaޟϙB-ff؊{A.~ ˤ7[ }G5jbNVP}KtRNS pHYs B4%tEXtSoftwareMacromedia Fireworks MX 2004v"IDATxSXZ@+Ad]%ݲvl,R B@B,8}G0 sϽ e]݇Ie= ų?H3 h9~:͡ ?T=o/ÂDs4ǽ B6dm WbI@*t=DZ0a8] X(g40]I FI<,/˹ H}>|sH eXSl^UN4 Jn~Y =m$عo Ӓvm0 ˷VڭGÑٟ^yh֥(2Jc7WPKۆzUae8xTUpjvUdhQ3Nw%*Aj9 x/m(QZm}~˜W3?*r3} zyĿQۙaI" gMTC_ІC w 'oy^m zCM3zpĶoN ~S&v?ZjFy&֞/BЙ?IMΚò@.g6IT/5ulU􋦍ǹcI{ wL?sl9q4'h OY -+xW Oa6{b>-ڹ3%µ=ak\.c?rm&#nÕh߿}z 5 bxdz)J5Ȩ #Ptәݥ@4+1פ6`}r&!pe$b p^K&c4i+$Mx=3o_#s$zRk]/Gy[%8uk2g@h[$rᙲ!cEPUO%͙nQ1eW9Oqbb4*@{۟$&v@CbD)TV^$ͭ#Km@NڒֵL:B_VQ\ЩM&aZ*v b!~Uqb .OIENDB`elracodelangela/administrator/components/com_svmap/images/options.png0000644000176700017710000000435311074453335027132 0ustar essawireessawirePNG  IHDR00` sBITOPLTEIm*M3L1I+*8Z C[8VL1I,92Bdc$RiGe7V1T*M ( w>^F[8V1"!UwWu7V$[b_}8V+",@!3 (  LrMmL_}1TARq*Mͽ1",@&2!3C ! 7V31$6CU2Bd,6C[C  yMmRiL_}=]ARq1+3Et6CU{[J yj_Uw_wXmQkRiC[*Mjtwjf`}Ro>*ytqhj_}\?ImTS.+*Ⓐ愨ꃥhZX|Uw\ O12c۞BKaI+JsV3? r ꂦ}{{trzqmnyiie}~cZg hRxc_Lr\*[Fk:`1TL itRNS"""""""""""3333DDDDDDDDUUUUUUUUUfffffffwwwwwwwwwwwc pHYs  ~tEXtSoftwareMacromedia Fireworks 8hxOIDATHgXV]t-t6M{{;{'{&]IiP" m6C`ۀcL O |9νͩ;jn F]s˒,xN|UF_y8vO􏬾O#4[W:陹z~FUnN6*Q7䍭HIhlnz]rsr6{!-9QOڱmx[^^.R^'pM@W-@kt|M$/,hHBnKT}&O4 wD h,n ѭu[[;us nٟ1i^*CNSпalgKmnRU4Vho)0🏬# H:*F8KV#$/Sp. @ۈSX $·?d>kK:lrT` !_Jތ`f J%e* XYp CR6 JI854r8R.Ua+/p,3E[d.-_/W|U$ɠQcl(6 0{W0Q4oJ- zS}lDI-\78趠&ݨtH5@ݵhl {:~`8 #4E?~}U\0B'ǎX֣X1 |V^1Uly)vptk٨VDOe@⣧͞Hw7E6``2Q|7&+ztH\0Q0&9h < gE+)8n̂E׭yRcc_0-Hּi^#v||nWԝQ8wQDUn;_>xiHG,HFCDh=KԜʻJ:iӉ}̮HNIWI{F9IENDB`elracodelangela/administrator/components/com_svmap/images/link.png0000644000176700017710000000375411074453335026400 0ustar essawireessawirePNG  IHDR00` sBITOPLTE!ꝝÄ[\`$tY]:xʅB@C0!鎎l]5N=̑A%ff(q( yMv^89柣zz}!:/o d\Hy֭2Wֶ%vmmxI*fQ1kXpi[ VJ.DvIqHI*(.f@yǞ˼ 9!zz/uwZG"z!ߨi]FH+ZYYmhi܆)%!twp==Ic:!x m*(v{tRNSHeG pHYs B4%tEXtSoftwareMacromedia Fireworks MX 2004vFIDATx[